maint.mk: add strncpy-prohibiting syntax-check rule
[gnulib.git] / ChangeLog
1 2012-05-25  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: add strncpy-prohibiting syntax-check rule
4         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5
6 2012-05-24  Jim Meyering  <meyering@redhat.com>
7
8         maint.mk: compute $(gpg_key_ID) more portably
9         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
10         That use of sed is not portable to some fringe systems.
11         Reported by Paul Eggert in
12         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
13
14 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15
16         mktime: sync from glibc
17         * config/srclist.txt: Uncomment mktime.c.
18         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
19         First, indent with tabs, since glibc uses tabs and doesn't want to
20         change and we'd rather be identical to glibc.  Also, two small
21         coding changes:
22         (isdst_differ): Use &&, not &, as && is the usual style.
23         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
24         for clarity.
25
26 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
27
28         announce-gen: du -h is more portable than du --human
29         * build-aux/announce-gen (sizes): Invoke du with -h instead
30         of --human.  Accept leading white space in its output.
31
32 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
33
34         announce-gen: Improve diagnostics.
35         * build-aux/announce-gen: When parsing command line options,
36         prefer "announce-gen: option --release-type requires an argument"
37         to "Option release-type requires an argument".
38
39 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
40
41         maint.mk: gpg_key_ID: use sed more portably
42         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
43         the closing brace.
44         (refresh-po): Fuse two sed invocations into one.
45
46 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
47
48         gitlog-to-changelog: support the log message format used in Bison.
49         * build-aux/gitlog-to-changelog: Support --strip-tab and
50         --strip-cherry-picked.
51
52 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
53
54         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
55         the rest of the current time slice to another thread in the current
56         process. So if the thread that feeds the file decscriptor we're
57         polling is not in the current process, we get busy-waiting.
58         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
59         Patch from Theodore Leblond.
60         * lib/select.c: Split polling out of the loop that sets the output
61         fd_sets.  Check for zero result and loop if the wait timeout is
62         infinite.
63
64 2012-05-21  Simon Josefsson  <simon@josefsson.org>
65
66         select: Fix build error on IRIX 6.5.
67         * lib/select.c: Include stddef.h for NULL.
68
69 2012-05-21  Simon Josefsson  <simon@josefsson.org>
70
71         gc: fix libgcrypt detection on older machines.
72         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
73         copyright years because the file has been distributed every year
74         since it was created.
75
76 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77
78         crypto: fix bug in large buffer handling
79         Problem reported by Serge Belyshev for glibc in
80         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
81         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
82         * lib/md4.c (md4_process_block):
83         * lib/md5.c (md5_process_block):
84         * lib/sha1.c (sha1_process_block):
85         * lib/sha256.c (sha256_process_block):
86         Don't assume the buffer length is less than 2**32.
87         * lib/sha512.c (sha512_process_block): Likewise.
88         Here, the bug is present only in the rare case where the host does
89         not support uint64_t or where size_t is wider than 64 bits.
90         Use u64size to work around the problems.
91         * lib/u64.h (u64size): New macro.
92
93 2012-05-15  Pádraig Brady  <P@draigBrady.com>
94
95         fsusage: fix block size returned on older Linux 2.6
96
97         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
98         which is available since Linux 2.6.
99         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
100         when the member is available so it can be used as a fallback.
101         * doc/posix-functions/statvfs.texi: Mention the hang issue
102         on Linux < 2.6.36.
103
104 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105
106         bootstrap: suppress stderr chatter
107         * build-aux/bootstrap (insert_sorted_if_absent, main program):
108         Omit unnecessary chatter to stderr.  The main program chatter
109         was there only inadvertantly.
110
111         bootstrap: .gitignore files created by autopoint, libtool
112         I ran into this problem when bootstrapping the latest diffutils.
113         After './bootstrap', 'git status' reported lots of untracked files
114         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
115         autopoint and do not need to be version-controlled.
116         * build-aux/bootstrap: Put into .gitignore the files that
117         autopoint and libtool create, by keeping track of files that exist
118         after but not before these programs are run.
119         (version_controlled_file): Move up.  2nd arg is now full file
120         name, not base name; this is more convenient.  Put CVS at the end,
121         as it's now somewhat deprecated.
122
123 2012-05-14  Jim Meyering  <meyering@redhat.com>
124
125         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
126         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
127         definition.  Reported by Bruno Haible.
128
129 2012-05-13  Bruno Haible  <bruno@clisp.org>
130             Paul Eggert  <eggert@cs.ucla.edu>
131
132         binary-io: Define set_binary_mode function.
133         * lib/binary-io.h (set_binary_mode): New function.
134         (SET_BINARY): Define in terms of set_binary_mode.
135         * modules/binary-io (configure.ac): Require AC_C_INLINE.
136         * tests/test-binary-io.c (main): Accept an argument, and test either
137         set_binary_mode or SET_BINARY depending on the argument.
138         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
139         argument. Clean up also t-bin-out0.tmp.
140
141 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
142
143         bootstrap: take advantage of POSIX shell features
144
145         The 'bootstrap' script offered by Gnulib script already uses POSIX
146         shell features (like $((...)) arithmetic expansions) that are not
147         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
148         means that bootstrap must already be run using a proper POSIX shell,
149         which will thus provide more features, like ${var#pattern} parameter
150         expansion or inversion of a command exit status with '!'.  We can
151         thus use these features to improve the clarity and the performances
152         of the bootstrap script.
153
154         Suggested by Eric Blake.
155
156         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
157         of sed/expr plus command substitutions, to save some forks.  While
158         we are at it, prefer the POSIX $(...) form of command substitution,
159         rather than the legacy form `...` (since the former is visually
160         clearer and interacts better with quoting), and prefer the idiom:
161           "if ! CMD; then ACTION ..."
162         over the idiom:
163           "if CMD; then :; else ACTION ..."
164         which was required by legacy Bourne shells not supporting '!'.
165
166 2012-05-12  Bruno Haible  <bruno@clisp.org>
167
168         system-quote: Add more comments.
169         * lib/system-quote.h: Add more comments about wilcards and limitations.
170         Suggested by Eli Zaretskii <eliz@gnu.org>.
171
172         sh-quote, system-quote: Add comments about wildcards.
173         * lib/sh-quote.h: Clarify what happens with wildcard characters.
174         * lib/system-quote.h: Likewise.
175         Reported by Eli Zaretskii <eliz@gnu.org>.
176
177 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
178
179         fsusage: check for GNU/Linux statvfs problem dynamically
180         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
181         Define STAT_STATFS2_BSIZE too, since in this case the code now
182         checks dynamically whether statvfs is reliable, falling back on
183         Linux-style statfs otherwise.
184         (statvfs_works): New function, for dynamically testing statvfs.
185         (get_fs_usage) [STAT_STATVFS]: Use it.
186         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
187         statvfs on GNU/Linux hosts, since it's now done dynamically.
188
189 2012-05-10  Bruno Haible  <bruno@clisp.org>
190
191         system-quote, execute, spawn-pipe: Escape '?' on Windows.
192         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
193         '?' character.
194         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
195         * tests/test-system-quote-main.c (check_all): Check also strings like
196         "??????????".
197         Reported by Eli Zaretskii <eliz@gnu.org>.
198
199 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
200
201         _Noreturn: port config.h to gcc -Wundef
202         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
203         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
204         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
205
206 2012-05-10  Bruno Haible  <bruno@clisp.org>
207
208         system-quote: Refactor.
209         * lib/system-quote.h (system_quote_copy): Fix comment.
210         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
211         New functions, extracted from system_quote_copy.
212         (system_quote_length, system_quote_copy): Use these functions.
213         Reported by Paul Eggert.
214
215 2012-05-08  Bruno Haible  <bruno@clisp.org>
216
217         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
218         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
219
220 2012-05-08  Bruno Haible  <bruno@clisp.org>
221
222         Tests for module 'system-quote'.
223         * modules/system-quote-tests: New file.
224         * tests/test-system-quote.sh: New file.
225         * tests/test-system-quote-main.c: New file.
226         * tests/test-system-quote-child.c: New file.
227
228         New module 'system-quote'.
229         * lib/system-quote.h: New file.
230         * lib/system-quote.c: New file.
231         * modules/system-quote: New file.
232
233 2012-05-08  Bruno Haible  <bruno@clisp.org>
234
235         sh-quote: Make C++ safe and allow multiple inclusion.
236         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
237         declarations in extern "C".
238
239 2012-05-08  Bruno Haible  <bruno@clisp.org>
240
241         sh-quote tests: Make tests stricter.
242         * tests/test-sh-quote.c (check_one): Check the return value of
243         shell_quote_copy.
244         (main): Check a string with a CR character. Check a string that
245         contains UCHAR_MAX.
246
247 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
248
249         warnings.m4: provide a means to specify the program to compile.
250         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
251         (gl_WARN_ADD): here.
252         Use gl_AS_VAR_APPEND.
253         Support an argument to specify the program to compile.
254         (gl_WARN_ADD): Accept an argument to specify the program to compile.
255         AC_SUBST the WARN_CFLAGS when they are used.
256         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
257         leave this to gl_WARN_ADD.
258
259 2012-05-08  Eric Blake  <eblake@redhat.com>
260
261         doc: recommendations on gettext version
262         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
263         choice between versions.
264         * DEPENDENCIES (gettext): Cover both approaches.
265
266 2012-05-08  Jim Meyering  <meyering@redhat.com>
267
268         init.sh: explain why EXEEXT support uses aliases rather than functions
269         * tests/init.sh: Add a comment.
270
271         init.sh: don't let bash aliases interfere with tests
272         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
273         is bash.  This avoids problems for those who alias standard commands to
274         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
275         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
276
277 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
278
279         stdint: be more consistent with glibc, SunOS libc
280         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
281         (gl_int_fast16_t, gl_uint_fast16_t)
282         (gl_int_fast32_t, gl_uint_fast32_t)
283         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
284         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
285         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
286         Be consistent with glibc by default, and with SunOS 5.10 and later
287         if __sun is defined.  This lessens the likelihood of clashes if
288         code compiled for older hosts is combined with code compiled for
289         newer ones.  Problem reported by Niels Möller in
290         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
291
292 2012-05-07  Eric Blake  <eblake@redhat.com>
293
294         isatty: relax license to LGPLv2+
295         * modules/isatty (License): Relax license.
296
297 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
298
299         stat-size: comment fix
300         * lib/stat-size.h: Remove obsolete comment about indenting.
301
302 2012-05-06  Bruno Haible  <bruno@clisp.org>
303
304         Tests for module 'sh-quote'.
305         * modules/sh-quote-tests: New file.
306         * tests/test-sh-quote.c: New file.
307
308 2012-05-06  Bruno Haible  <bruno@clisp.org>
309
310         sh-quote: Improve shell_quote_argv's signature.
311         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
312         * lib/sh-quote.c (shell_quote_argv): Likewise.
313
314 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
315
316         stdint: document issues with int_fast8_t etc.
317         * doc/posix-headers/stdint.texi (stdint.h): Say that other
318         stdint.h substitutes may define these types differently.  See
319         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
320
321 2012-05-05  Bruno Haible  <bruno@clisp.org>
322
323         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
325         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
326         or 'guessing no (mishandles large arguments)'.
327
328 2012-05-05  Bruno Haible  <bruno@clisp.org>
329
330         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
331         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
332         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
333         set gl_cv_func_link_follows_symlink to "guessing no".
334
335 2012-05-05  Bruno Haible  <bruno@clisp.org>
336
337         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
338         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
339         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
340         "guessing no".
341         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
342
343 2012-05-05  Bruno Haible  <bruno@clisp.org>
344
345         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
346         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
347         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
348         set gl_cv_struct_dirent_d_ino to "guessing yes".
349
350 2012-05-05  Bruno Haible  <bruno@clisp.org>
351
352         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
353         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
354         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
355         "guessing yes".
356
357 2012-05-05  Bruno Haible  <bruno@clisp.org>
358
359         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
360         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
361         compiling to a glibc system, set gl_cv_func_signbit and
362         gl_cv_func_signbit_gcc to "guessing yes".
363
364 2012-05-05  Bruno Haible  <bruno@clisp.org>
365
366         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
367         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
368         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
369         to "guessing yes".
370         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
371         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
372
373 2012-05-05  Bruno Haible  <bruno@clisp.org>
374
375         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
376         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
377         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
378         gl_cv_func_realpath_works to "guessing yes".
379
380 2012-05-05  Bruno Haible  <bruno@clisp.org>
381
382         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
383         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
384         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
385
386 2012-05-04  Bruno Haible  <bruno@clisp.org>
387
388         Tweak last commit.
389         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
390         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
391
392 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
393
394         unistd_h: make it easier to avoid sys_types_h
395         This is useful for Emacs, which has its own method of porting to
396         Windows, and which therefore does not need the sys_types_h module.
397         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
398         code moved here from gl_SYS_TYPES_H.
399         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
400         using the code directly.
401         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
402         gl_SYS_TYPES_H.
403         * modules/sys_types (Files):
404         * modules/unistd (Files): Add m4/off_t.m4.
405
406 2012-05-03  Bruno Haible  <bruno@clisp.org>
407
408         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
409         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
410         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
411         "guessing yes" or "guessing no".
412         (gl_FUNC_LSTAT): Update.
413         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
414         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
415         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
416
417 2012-05-03  Bruno Haible  <bruno@clisp.org>
418
419         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
420         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
421         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
422         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
423         cross-compiling, choose the first alternative on glibc systems.
424         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
425
426 2012-05-03  Bruno Haible  <bruno@clisp.org>
427
428         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
429         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
430         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
431
432 2012-05-03  Bruno Haible  <bruno@clisp.org>
433
434         chown: Avoid "guessing no" when cross-compiling to glibc systems.
435         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
436
437 2012-05-03  Bruno Haible  <bruno@clisp.org>
438
439         Avoid "guessing no" guesses when cross-compiling to glibc systems.
440         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
441         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
442         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
443         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
444         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
445         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
446         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
447         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
448         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
449         compiling to glibc systems, set gl_cv_func_chown_slash_works,
450         gl_cv_func_chown_ctime_works to "guessing yes".
451         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
452         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
453         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
454         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
455         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
457         compiling to glibc systems, set gl_cv_func_open_directory_works to
458         "guessing yes".
459         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
460         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
461         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
462         "guessing yes".
463         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
464         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
465         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
466         compiling to glibc systems, set gl_cv_func_floorf_ieee to
467         "guessing yes".
468         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
469         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
470         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
471         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
472         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
473         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
474         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
475         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
476         "guessing yes".
477         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
478         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
479         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
480         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
481         "guessing yes".
482         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
483         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
484         "guessing yes".
485         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
486         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
487         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
488         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
489         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
490         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
491         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
492         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
493         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
494         compiling to glibc systems, set gl_cv_func_log10f_ieee to
495         "guessing yes".
496         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
497         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
498         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
499         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
500         "guessing yes".
501         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
502         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
503         "guessing yes".
504         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
505         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
506         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
507         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
508         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
509         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
510         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
511         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
512         compiling to glibc systems, set gl_cv_func_mkfifo_works to
513         "guessing yes".
514         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
515         compiling to glibc systems, set gl_cv_func_mknod_works to
516         "guessing yes".
517         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
518         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
519         "guessing yes".
520         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
521         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
522         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
523         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
524         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
525         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
526         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
527         compiling to glibc systems, set gl_cv_func_svid_putenv to
528         "guessing yes".
529         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
530         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
531         "guessing yes".
532         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
533         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
534         "guessing yes".
535         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
536         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
537         to "guessing yes".
538         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
539         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
540         to "guessing yes".
541         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
542         compiling to glibc systems, set gl_cv_func_rmdir_works to
543         "guessing yes".
544         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
545         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
546         gl_cv_func_unlink_parent_fails to "guessing yes".
547         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
548         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
549         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
550         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
551         gl_cv_func_rename_dest_works to "guessing yes".
552         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
553         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
555         compiling to glibc systems, set gl_cv_func_roundf_ieee to
556         "guessing yes".
557         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
558         compiling to glibc systems, set gl_cv_func_roundl_ieee to
559         "guessing yes".
560         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
561         compiling to glibc systems, set gl_cv_func_setenv_works to
562         "guessing yes".
563         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
564         compiling to glibc systems, set gl_cv_func_unsetenv_works to
565         "guessing yes".
566         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
567         compiling to glibc systems, set gl_cv_func_sleep_works to
568         "guessing yes".
569         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
570         compiling to glibc systems, set gl_cv_func_stat_file_slash to
571         "guessing yes".
572         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
573         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
574         "guessing yes".
575         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
576         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
577         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
578         compiling to glibc systems, set gl_cv_func_truncf_ieee to
579         "guessing yes".
580         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
581         compiling to glibc systems, set gl_cv_func_truncl_ieee to
582         "guessing yes".
583         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
584         compiling to glibc systems, set gl_cv_func_usleep_works to
585         "guessing yes".
586         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
587         compiling to glibc systems, set gl_cv_func_futimesat_works to
588         "guessing yes".
589
590 2012-05-03  Bruno Haible  <bruno@clisp.org>
591
592         Say "guessing yes" or "guessing no" when cross-compiling.
593         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
594         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
595         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
596         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
597         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
598         am_cv_func_working_getline to "guessing yes" or "guessing no".
599         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
600         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
601         (gl_FUNC_MEMMEM): When cross-compiling, set
602         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
603         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
604         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
606         set gl_cv_func_strcasestr_works_always to "guessing yes" or
607         "guessing no".
608         (gl_FUNC_STRCASESTR): When cross-compiling, set
609         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
610         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
611         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
612         (gl_FUNC_STRSTR): When cross-compiling, set
613         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
614         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
615         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
616         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
617         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
618
619 2012-05-01  Bruno Haible  <bruno@clisp.org>
620
621         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
622         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
623         * build-aux/reloc-ldflags: Likewise.
624         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
625
626 2012-05-01  Bruno Haible  <bruno@clisp.org>
627
628         gnulib-tool: Remove transitional code.
629         * gnulib-tool: Don't warn about --import with 0 arguments any more.
630         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
631
632 2012-05-01  Bruno Haible  <bruno@clisp.org>
633
634         getcwd: Fix misindentation.
635         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
636
637 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
638
639         exclude: process exclude and include directives in order
640         This restores the pre-2009 behavior, and is part of a fix of a
641         grep bug reported by Quentin Arce in
642         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
643         * lib/exclude.c (struct exclude): Remove 'tail' member.
644         (new_exclude_segment): Prepend the new segment instead of appending.
645         Return void, since that's now more convenient.
646         (file_pattern_matches): Renamed from excluded_file_pattern_p.
647         (file_name_matches): Renamed from excluded_file_name_p.
648         (file_pattern_matches, file_name_matches):
649         Return true if the pattern matches, not if it excludes.
650         All callers changed.
651         (excluded_file_name): Process the list in reverse order;
652         since the list is now reversed this restores the pre-2009 behavior.
653         (add_exclude): Adjust to new reversed-order list.  Use local var
654         rather than macro, for clarity.
655         * tests/test-exclude7.sh: Adjust to corrected behavior.
656
657         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
658         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
659         it's not possible here.  Handle the case of \ at end of pattern
660         without dumping core.
661         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
662
663         _Noreturn: future-proof non-GNU and non-MSVC compilers
664         * build-aux/snippet/_Noreturn.h (_Noreturn):
665         * m4/gnulib-common.m4 (gl_COMMON_BODY):
666         Do not define _Noreturn if __STDC_VERSION__ indicates this is
667         C11 or later.  This is more likely to work with random future C
668         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
669         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
670
671         exclude: handle wildcards with FNM_EXTMATCH
672         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
673         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
674         comment that "has wildcards" really means "has or may have
675         wildcards".  Simplify by avoiding the need to call strcspn.
676
677 2012-04-29  Bruno Haible  <bruno@clisp.org>
678
679         gnulib-tool: Fix list of authors.
680         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
681
682 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
683
684         bootstrap: support Automake-NG in $buildreq
685         * bootstrap (check_versions): Handle automake and aclocal from
686         Automake-NG specially.  They can be specified as respectively
687         the "automake-ng" and "aclocal-ng" requirements.
688
689 2012-04-25  Eric Blake  <eblake@redhat.com>
690
691         bootstrap: only force latest Makefile.in.in for gettext module
692         * build-aux/bootstrap (with_gettext): Only install latest
693         Makefile.in.in for projects requesting bleeding edge gettext.
694
695 2012-04-22  Bruno Haible  <bruno@clisp.org>
696
697         doc: Mention reason for replacement on glibc/Linux systems.
698         * doc/posix-functions/dprintf.texi: Mention the problem with special
699         'long double' values.
700         * doc/posix-functions/fprintf.texi: Likewise.
701         * doc/posix-functions/printf.texi: Likewise.
702         * doc/posix-functions/snprintf.texi: Likewise.
703         * doc/posix-functions/sprintf.texi: Likewise.
704         * doc/posix-functions/vdprintf.texi: Likewise.
705         * doc/posix-functions/vfprintf.texi: Likewise.
706         * doc/posix-functions/vprintf.texi: Likewise.
707         * doc/posix-functions/vsnprintf.texi: Likewise.
708         * doc/posix-functions/vsprintf.texi: Likewise.
709         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
710         platforms with F_DUPFD_CLOEXEC problems.
711         * doc/posix-functions/glob.texi: Mention which platforms are affected
712         by the problem with symbolic links.
713         * doc/posix-functions/linkat.texi: Mention the problem with
714         AT_SYMLINK_FOLLOW on Linux.
715
716 2012-04-22  Bruno Haible  <bruno@clisp.org>
717
718         pwrite: Don't replace on all platforms.
719         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
720
721 2012-04-22  Bruno Haible  <bruno@clisp.org>
722
723         rint* tests: Avoid gcc warnings.
724         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
725         * tests/test-rintf.c (INFINITY, NAN): Likewise.
726         * tests/test-rintl.c (INFINITY, NAN): Likewise.
727
728 2012-04-21  Bruno Haible  <bruno@clisp.org>
729
730         users.txt: Update.
731         * users.txt: Add freedink, wdiff. Update URLs for projects that have
732         switched from CVS to git, bzr, or svn.
733
734 2012-04-21  Bruno Haible  <bruno@clisp.org>
735
736         Large File Support for native Windows platforms.
737
738         * m4/largefile.m4 (gl_LARGEFILE): New macro.
739         * modules/largefile (configure.ac): Require gl_LARGEFILE.
740
741         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
742         type.
743         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
744         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
745         * doc/posix-headers/sys_types.texi: Mention the effect of the
746         'largefile' module.
747
748         * lib/fcntl.in.h: Add comments about off_t.
749         * modules/fcntl-h (Depends-on): Add sys_types.
750
751         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
752         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
753         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
754         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
755         * modules/unistd (Depends-on): Add sys_types.
756         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
757
758         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
759         instead of lseek.
760         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
761         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
762         * modules/lseek (Depends-on): Add sys_types.
763
764         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
765         msvc-nothrow.h.
766         (SetFileSize): New function.
767         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
768         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
769         if Large File Support is requested.
770         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
771         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
772
773         * lib/stdio.in.h: Add comments about off_t.
774         * modules/stdio (Depends-on): Add sys_types.
775
776         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
777         instead of ftello.
778         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
779         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
780         (gl_PREREQ_FTELLO): New macro.
781         * modules/ftello (Depends-on): Add sys_types.
782         (configure.ac): Incoke gl_PREREQ_FTELLO.
783
784         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
785         instead of fseeko.
786         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
787         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
788         (gl_PREREQ_FSEEKO): New macro.
789         * modules/fseeko (Depends-on): Add sys_types.
790         (configure.ac): Invoke gl_PREREQ_FSEEKO.
791
792         * lib/sys_stat.in.h: Add comments about off_t.
793         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
794         64-bit integer for st_size in 'struct stat'.
795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
796         Define _GL_WINDOWS_64_BIT_ST_SIZE.
797         * modules/sys_stat (Depends-on): Add sys_types.
798         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
799
800         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
801         instead of stat or _stat.
802
803         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
804         'struct _stati64' instead of fstat and 'struct stat'.
805         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
806         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
807
808         Reported by Ray Satiro <raysatiro@yahoo.com>.
809
810 2012-04-19  Eric Blake  <eblake@redhat.com>
811
812         bootstrap: accommodate older libtool
813         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
814         Reported by Daniel P. Berrange.
815
816 2012-04-19  Jim Meyering  <meyering@redhat.com>
817
818         announce-gen: avoid failure due to lack of Digest::SHA1
819         Even with the preferred Digest::SHA available, this script
820         would fail when the backup module, Digest::SHA1, was not installed.
821         * build-aux/announce-gen: Quote the conditional use of "use".
822         Reported by Reuben Thomas in:
823         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
824
825         bootstrap: don't let a user's CDPATH setting affect this script
826         When CDPATH is set, cd will sometimes generate output.
827         When "cd" is run in a subshell whose output matters, that
828         surprising-to-some output can cause malfunction.
829         Unsetting CDPATH turns off this shell "feature."
830         * build-aux/bootstrap (CDPATH): Unset.
831         Reported by Reuben Thomas in:
832         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
833         and inspired by his patch here:
834         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
835
836 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
837         and Jim Meyering  <meyering@redhat.com>
838
839         maint.mk: catch "see @xref{}" and similar
840         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
841         prohibit "See also @xref{", "Also see @pxref{", and similar.
842
843 2012-04-16  Jim Meyering  <meyering@redhat.com>
844
845         bootstrap: really use gnulib's po/Makefile.in.in
846         * build-aux/bootstrap: Correct the source file name in previous change.
847         Reported by Akim Demaille.
848
849         configmake: correct minor inconsistency in Makefile rule
850         * modules/configmake (Makefile.am): All other rules like this one
851         run the final "mv -f ..." in the same backslash-continued command
852         as the one that does everything else.  This one put the mv -f ...
853         command on a separate, non-backslash-continued line.
854         Make it like the others.
855
856         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
857         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
858         the one from gettext.  Reported by Akim Demaille.
859
860 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
861
862         Fix recursion of install-* into po directories.
863         Bison's install-pdf bug reported by Hans Aberg at
864         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
865         * build-aux/po/Makefile.in.in (install-dvi, install-html)
866         (install-info, install-pdf, install-ps): New targets.
867
868 2012-04-16  Jim Meyering  <meyering@redhat.com>
869
870         maint: avoid spurious "make sc_maint" failure
871         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
872         exempt all *.class file names, for lib/javaversion.class.
873
874 2012-04-15  Bruno Haible  <bruno@clisp.org>
875
876         lseek: Make configure test independent of environment.
877         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
878         Windows, we know that lseek() on pipes is broken; skip the runtime
879         test.
880
881 2012-04-14  Bruno Haible  <bruno@clisp.org>
882
883         stat: Bypass buggy override in mingw64.
884         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
885         * lib/stat.c (stat) [mingw64]: Define to _stat.
886         * doc/posix-functions/stat.texi: Mention mingw64 bug.
887
888 2012-04-14  Bruno Haible  <bruno@clisp.org>
889
890         pathmax: Fix compilation error on MSVC 9.
891         * modules/pathmax (Depends-on): Add unistd.
892
893 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
894
895         README: document pointer comparison assumption
896         * README (Portability guidelines): Document assumption about
897         pointer comparisons, in response to a recent bug-gnulib comment by
898         Jeffrey Kegler.
899
900 2012-04-12  Bruno Haible  <bruno@clisp.org>
901
902         Tests for module 'getrusage'.
903         * modules/getrusage-tests: New file.
904         * tests/test-getrusage.c: New file.
905
906         New module 'getrusage'.
907         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
908         warn-on-use.h.
909         (getrusage): New declaration.
910         * lib/getrusage.c: New file.
911         * m4/getrusage.m4: New file.
912         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
913         is declared.
914         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
915         HAVE_GETRUSAGE.
916         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
917         snippet/c++defs, snippet/warn-on-use.
918         (Makefile.am): Update generation of sys/resource.h. Substitute
919         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
920         * modules/getrusage: New file.
921         * doc/posix-functions/getrusage.texi: Mention the new module.
922
923 2012-04-12  Bruno Haible  <bruno@clisp.org>
924
925         Tests for module 'sys_resource'.
926         * modules/sys_resource-tests: New file.
927         * tests/test-sys_resource.c: New file.
928
929         New module 'sys_resource'.
930         * lib/sys_resource.in.h: New file.
931         * m4/sys_resource_h.m4: New file.
932         * modules/sys_resource: New file.
933         * doc/posix-headers/sys_resource.texi: Mention the new module.
934
935 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
936
937         ioctl: Fix compilation error on mingw.
938         * lib/ioctl.c: Include <windows.h>.
939         Also reported by Ray Satiro <raysatiro@yahoo.com>.
940
941 2012-04-04  Jim Meyering  <meyering@redhat.com>
942
943         regex: correct #pragma guard expression
944         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
945         not 4.3.  Correct its cpp guard expression.
946
947 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
948
949         regex: remove unnecessary type punning
950         Problem reported by Vladimir Serbinenko in
951         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
952         * lib/regex.h (struct re_pattern_buffer): Change the type of
953         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
954         Fix comment to match code.
955         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
956         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
957         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
958         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
959         (set_regs):
960         Omit no-longer-necessary casts.
961
962 2012-04-03  Bruno Haible  <bruno@clisp.org>
963
964         Tests for module 'ilogbl'.
965         * modules/ilogbl-tests: New file.
966         * tests/test-ilogbl.c: New file.
967
968         New module 'ilogbl'.
969         * lib/math.in.h (ilogbl): New declaration.
970         * lib/ilogbl.c: New file.
971         * m4/ilogbl.m4: New file.
972         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
974         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
975         Split sed invocation, to avoid the limit of 100 substitutions of
976         HP-UX 'sed'.
977         * modules/ilogbl: New file.
978         * tests/test-math-c++.cc: Check the declaration of ilogbl.
979         * doc/posix-functions/ilogbl.texi: Mention the new module.
980
981 2012-04-03  Bruno Haible  <bruno@clisp.org>
982
983         Tests for module 'ilogbf'.
984         * modules/ilogbf-tests: New file.
985         * tests/test-ilogbf.c: New file.
986
987         New module 'ilogbf'.
988         * lib/math.in.h (ilogbf): New declaration.
989         * lib/ilogbf.c: New file.
990         * m4/ilogbf.m4: New file.
991         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
993         REPLACE_ILOGBF.
994         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
995         REPLACE_ILOGBF.
996         * modules/ilogbf: New file.
997         * tests/test-math-c++.cc: Check the declaration of ilogbf.
998         * doc/posix-functions/ilogbf.texi: Mention the new module.
999
1000 2012-04-03  Bruno Haible  <bruno@clisp.org>
1001
1002         Tests for module 'ilogb'.
1003         * modules/ilogb-tests: New file.
1004         * tests/test-ilogb.c: New file.
1005         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1006         tests/test-logb-ieee.h.
1007
1008         New module 'ilogb'.
1009         * lib/math.in.h (ilogb): New declaration.
1010         * lib/ilogb.c: New file.
1011         * m4/ilogb.m4: New file.
1012         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1014         REPLACE_ILOGB.
1015         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1016         REPLACE_ILOGB.
1017         * modules/ilogb: New file.
1018         * tests/test-math-c++.cc: Check the declaration of ilogb.
1019         * doc/posix-functions/ilogb.texi: Mention the new module.
1020
1021 2012-04-03  Bruno Haible  <bruno@clisp.org>
1022
1023         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1024         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1025         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1026         (main): Check their values.
1027         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1028         problem.
1029
1030 2012-04-03  Bruno Haible  <bruno@clisp.org>
1031
1032         Tests for module 'logbl-ieee'.
1033         * modules/logbl-ieee-tests: New file.
1034         * tests/test-logbl-ieee.c: New file.
1035
1036         New module 'logbl-ieee'.
1037         * modules/logbl-ieee: New file.
1038
1039         Tests for module 'logb-ieee'.
1040         * modules/logb-ieee-tests: New file.
1041         * tests/test-logb-ieee.c: New file.
1042
1043         New module 'logb-ieee'.
1044         * modules/logb-ieee: New file.
1045
1046         Tests for module 'logbf-ieee'.
1047         * modules/logbf-ieee-tests: New file.
1048         * tests/test-logbf-ieee.c: New file.
1049         * tests/test-logb-ieee.h: New file.
1050
1051         New module 'logbf-ieee'.
1052         * modules/logbf-ieee: New file.
1053
1054 2012-04-03  Bruno Haible  <bruno@clisp.org>
1055
1056         Tests for module 'logbl'.
1057         * modules/logbl-tests: New file.
1058         * tests/test-logbl.c: New file.
1059
1060         New module 'logbl'.
1061         * lib/math.in.h (logbl): New declaration.
1062         * lib/logbl.c: New file.
1063         * m4/logbl.m4: New file.
1064         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1066         REPLACE_LOGBL.
1067         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1068         REPLACE_LOGBL.
1069         * modules/logbl: New file.
1070         * tests/test-math-c++.cc: Check the declaration of logbl.
1071         * doc/posix-functions/logbl.texi: Mention the new module.
1072
1073 2012-04-02  Bruno Haible  <bruno@clisp.org>
1074
1075         Tests for module 'logbf'.
1076         * modules/logbf-tests: New file.
1077         * tests/test-logbf.c: New file.
1078
1079         New module 'logbf'.
1080         * lib/math.in.h (logbf): New declaration.
1081         * lib/logbf.c: New file.
1082         * m4/logbf.m4: New file.
1083         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1084         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1085         REPLACE_LOGBF.
1086         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1087         REPLACE_LOGBF.
1088         * modules/logbf: New file.
1089         * tests/test-math-c++.cc: Check the declaration of logbf.
1090         * doc/posix-functions/logbf.texi: Mention the new module.
1091
1092 2012-04-02  Bruno Haible  <bruno@clisp.org>
1093
1094         logb tests: More tests.
1095         * tests/test-logb.h: New file, based on tests/test-logb.c and
1096         tests/test-frexp.h.
1097         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1098         (main): Just invoke test_function.
1099         * modules/logb-tests (Files): Add tests/test-logb.h,
1100         tests/minus-zero.h, tests/randomd.c.
1101         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1102
1103         logb: Provide replacement and workarounds.
1104         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1105         is 1.
1106         * lib/logb.c: New file.
1107         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1108         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1110         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1111         * modules/logb (Files): Add lib/logb.c.
1112         (Depends-on): Add isfinite, frexp, isnand.
1113         (configure.ac): Compile the replacement code logb.c if needed.
1114         * tests/test-math-c++.cc: Check the declaration of logb.
1115         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1116         with subnormal numbers.
1117
1118 2012-04-02  Bruno Haible  <bruno@clisp.org>
1119
1120         log10* tests: Speed up.
1121         * tests/test-log10.h (test_function): Reduce amount of random numbers
1122         to test.
1123
1124 2012-04-01  Bruno Haible  <bruno@clisp.org>
1125
1126         logf-ieee: Fix test whether logf works.
1127         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1128
1129 2012-04-01  Bruno Haible  <bruno@clisp.org>
1130
1131         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1132         * lib/log10l.c: Include <float.h>
1133         (log10l): On IRIX, normalize the +Infinity value.
1134         * modules/log10l (Depends-on): Add 'float'.
1135         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1136         +Infinity.
1137
1138         log10f-ieee: Work around test failure on NetBSD 5.1.
1139         * m4/log10f-ieee.m4: New file.
1140         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1141         test whether log10f works with a negative argument. Replace it if not.
1142         * lib/log10f.c (log10f): For negative arguments, return NaN.
1143         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1144         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1145         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1146
1147         log10f-ieee: Work around test failure on Solaris 9.
1148         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1149         (configure.ac): Require gl_FUNC_LOG10F.
1150
1151         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1152         * m4/log10-ieee.m4: New file.
1153         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1154         whether log10 works with a negative argument. Replace it if not.
1155         * lib/log10.c (log10): For negative arguments, return NaN.
1156         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1157         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1158         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1159
1160         Tests for module 'log10l-ieee'.
1161         * modules/log10l-ieee-tests: New file.
1162         * tests/test-log10l-ieee.c: New file.
1163
1164         New module 'log10l-ieee'.
1165         * modules/log10l-ieee: New file.
1166
1167         Tests for module 'log10-ieee'.
1168         * modules/log10-ieee-tests: New file.
1169         * tests/test-log10-ieee.c: New file.
1170
1171         New module 'log10-ieee'.
1172         * modules/log10-ieee: New file.
1173
1174         Tests for module 'log10f-ieee'.
1175         * modules/log10f-ieee-tests: New file.
1176         * tests/test-log10f-ieee.c: New file.
1177         * tests/test-log10-ieee.h: New file.
1178
1179         New module 'log10f-ieee'.
1180         * modules/log10f-ieee: New file.
1181
1182 2012-04-01  Bruno Haible  <bruno@clisp.org>
1183
1184         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1185         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1186         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1187         workaround.
1188         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1189         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1191         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1192         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1193         (Depends-on): Update conditions.
1194         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1195         IRIX 6.5, OSF/1 5.1 problems.
1196
1197 2012-04-01  Bruno Haible  <bruno@clisp.org>
1198
1199         log10f: Work around OSF/1 5.1 bug.
1200         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1201         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1202         workaround.
1203         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1204         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1206         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1207         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1208         (Depends-on): Update conditions.
1209         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1210
1211 2012-04-01  Bruno Haible  <bruno@clisp.org>
1212
1213         log10: Work around OSF/1 5.1 bug.
1214         * lib/math.in.h (log10): New declaration.
1215         * lib/log10.c: New file.
1216         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1217         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1218         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1220         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1221         * modules/log10 (Files): Add lib/log10.c.
1222         (Depends-on): Add math.
1223         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1224         * tests/test-math-c++.cc: Check the declaration of log10.
1225         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1226
1227 2012-03-31  Bruno Haible  <bruno@clisp.org>
1228
1229         log10l tests: More tests.
1230         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1231         tests/minus-zero.h, tests/randoml.c.
1232         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1233         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1234         (main): Invoke test_function.
1235
1236         log10f tests: More tests.
1237         * modules/log10f-tests (Files): Add tests/test-log10.h,
1238         tests/minus-zero.h, tests/randomf.c.
1239         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1240         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1241         (main): Invoke test_function.
1242
1243         log10 tests: More tests.
1244         * tests/test-log10.h: New file.
1245         * modules/log10-tests (Files): Add tests/test-log10.h,
1246         tests/minus-zero.h, tests/randomd.c.
1247         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1248         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1249         (main): Invoke test_function.
1250
1251 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1252
1253         fflush: Fix syntax error.
1254         * lib/fflush.c: Include unused-parameter.h, needed for
1255         _GL_UNUSED_PARAMETER.
1256         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1257
1258 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1259
1260         regex: pacify GCC when compiling GRUB
1261         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1262         a diagnostic.  Reported by Vladimir Serbinenko in
1263         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1264
1265 2012-03-29  Eric Blake  <eblake@redhat.com>
1266
1267         stdio: don't assume gets any more
1268         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1269         support.
1270         * modules/stdio (Makefile.am): Likewise.
1271         * lib/stdio-read.c (gets): Likewise.
1272         * tests/test-stdio-c++.cc: Likewise.
1273         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1274         * lib/stdio.in.h (gets): Make warning occur in more places.
1275         * doc/posix-functions/gets.texi (gets): Update documentation.
1276         Reported by Christer Solskogen.
1277
1278         maint.mk: fix syntax checks without exclusions
1279         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1280         Reported by Daniel P. Berrange.
1281
1282         strerror_r: avoid compiler warning
1283         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1284         level.
1285
1286         fflush: avoid compiler warning
1287         * lib/fflush.c (update_fpos_cache): Mark variables that are
1288         potentially unused.
1289
1290 2012-03-25  Bruno Haible  <bruno@clisp.org>
1291
1292         Tests for module 'localeconv'.
1293         * modules/localeconv-tests: New file.
1294         * tests/test-localeconv.c: New file.
1295
1296         New module 'localeconv'.
1297         * lib/locale.in.h (localeconv): New declaration.
1298         * lib/localeconv.c: New file.
1299         * m4/localeconv.m4: New file.
1300         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1301         REPLACE_LOCALECONV.
1302         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1303         REPLACE_LOCALECONV.
1304         * modules/localeconv: New file.
1305         * modules/nl_langinfo (Depends-on): Add localeconv.
1306         * modules/human (Depends-on): Likewise.
1307         * doc/posix-functions/localeconv.texi: Mention the new module.
1308
1309 2012-03-25  Bruno Haible  <bruno@clisp.org>
1310
1311         locale: Provide a complete 'struct lconv'.
1312         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1313         'struct lconv' does not contain int_p_cs_precedes.
1314         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1315         * doc/posix-headers/locale.texi: Update.
1316
1317         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1318         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1319         * doc/posix-headers/locale.texi: Update.
1320
1321         locale: Provide a working 'struct lconv'.
1322         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1323         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1324         'struct lconv' does not even contain decimal_point.
1325         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1326         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1327         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1328         * doc/posix-headers/locale.texi: Mention the problems with
1329         'struct lconv'.
1330         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1331
1332 2012-03-24  Bruno Haible  <bruno@clisp.org>
1333
1334         Enable common subexpression optimization in GCC.
1335         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1336         macros.
1337         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1338         GCC attribute 'const'.
1339         (uc_locale_language): Declare with GCC attribute 'pure'.
1340         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1341         with GCC attribute 'const'.
1342         * lib/unictype.in.h (uc_is_general_category_withtable,
1343         uc_combining_class, uc_combining_class_name,
1344         uc_combining_class_long_name, uc_bidi_class_name,
1345         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1346         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1347         uc_decimal_value, uc_digit_value, uc_numeric_value,
1348         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1349         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1350         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1351         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1352         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1353         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1354         Declare with GCC attribute 'const'.
1355         (uc_general_category_name, uc_general_category_long_name,
1356         uc_general_category_byname, uc_general_category,
1357         uc_is_general_category, uc_combining_class_byname,
1358         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1359         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1360         Declare with GCC attribute 'pure'.
1361         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1362         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1363         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1364         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1365         with GCC attribute 'pure'.
1366         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1367         'const'.
1368         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1369         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1370         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1371         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1372         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1373         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1374         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1375         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1376         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1377         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1378         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1379         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1380         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1381         GCC attribute 'pure'.
1382         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1383         'const'.
1384         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1385         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1386         u32_strwidth): Declare with GCC attribute 'pure'.
1387
1388         Enable common subexpression optimization in GCC.
1389         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1390         (alphasort): Declare with GCC attribute 'pure'.
1391         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1392         (atoll): Declare with GCC attribute 'pure'.
1393         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1394         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1395         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1396         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1397         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1398         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1399         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1400
1401 2012-03-24  Bruno Haible  <bruno@clisp.org>
1402
1403         gnulib-tool: Avoid unintended error output from 'cmp'.
1404         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1405         "cmp -s", not "cmp > /dev/null".
1406
1407 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1408
1409         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1410
1411         It's not just Automake versions < 1.9b that creates an empty
1412         pkgdatadir at installation time if pkgdata_DATA is specified
1413         to empty; modern automake versions do this as well, at least
1414         until automake 1.11.4 (not yet released at the moment of writing,
1415         but soon to appear).  That behaviour was generally considered a
1416         feature rather than a bug, at least until this discussion:
1417         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1418
1419         See also automake bugs #10997 and #11030.
1420
1421         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1422         reference to relevant automake bug numbers.
1423         (func_emit_tests_Makefile_am): Likewise.
1424
1425 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1426
1427         announce-gen: use Digest::SHA when possible
1428         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1429         back to Digest::SHA1 if necessary.
1430
1431 2012-03-20  Jim Meyering  <meyering@redhat.com>
1432
1433         tests: avoid gcc warnings about argv vs. const initializers
1434         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1435         warnings about discarding 'const' qualifier from pointer target type.
1436         * tests/test-posix_spawn2.c (main): Likewise.
1437
1438 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1439
1440         README-release: simplify slightly
1441         * top/README-release: Run "git checkout master" only once.
1442
1443 2012-03-15  Mark Wielaard  <mark@klomp.org>
1444
1445         git-merge-changelog: add specific example on how to use with hg.
1446         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1447
1448 2012-03-18  Mark Wielaard  <mark@klomp.org>
1449
1450         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1451
1452 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1453
1454         git-version-gen: don't let "prefix" envvar cause trouble
1455         * build-aux/git-version-gen (prefix): Initialize properly,
1456         so as not to use a value specified via the environment.
1457         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1458
1459 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1460
1461         regex: diagnose too-large repeat counts in EREs
1462         Previously, the code did not diagnose the too-large repeat count
1463         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1464         as if it were 'b\{1000000000}', which is unexpected.
1465         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1466         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1467         is a reasonable one for this problem.  Another option would be to
1468         create a new REG_OVERFLOW error for repeat counts that are too large.
1469         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1470         count is too large, so that the caller can distinguish the two cases.
1471         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1472         "Too large" return code, and that repeat counts are one example of this.
1473
1474 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1475
1476         doc: some glibc x32 integer width issues
1477         * doc/posix-headers/sys_types.texi (sys/types.h):
1478         * doc/posix-headers/time.texi (time.h):
1479         Mention that glibc x32 does not conform to POSIX in a couple of
1480         areas related to integer widths.
1481
1482 2012-03-15  Bruno Haible  <bruno@clisp.org>
1483
1484         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1485         * lib/fma.c (VOLATILE): New macro.
1486         (FUNC): Use it to work around a GCC compiler bug.
1487
1488 2012-03-13  Bruno Haible  <bruno@clisp.org>
1489
1490         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1491         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1492         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1493         REPLACE_HYPOTL to 1.
1494         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1495
1496 2012-03-13  Bruno Haible  <bruno@clisp.org>
1497
1498         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1499         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1500         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1501         REPLACE_REMAINDERL to 1.
1502         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1503         bug.
1504
1505 2012-03-13  Bruno Haible  <bruno@clisp.org>
1506
1507         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1508         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1509         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1510         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1511         too big rounding errors.
1512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1513         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1514         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1515         (Depends-on): Update conditions.
1516         * tests/test-sqrtl.c (my_ldexpl): New function.
1517         (main): Add test of a particular value.
1518         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1519
1520 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1521
1522         doc: Update timer_* platform portability notes.
1523         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1524         that always return ENOSYS.
1525         * doc/posix-functions/timer_delete.texi: Likewise.
1526         * doc/posix-functions/timer_gettime.texi: Likewise.
1527         * doc/posix-functions/timer_settime.texi: Likewise.
1528
1529 2012-03-13  Bruno Haible  <bruno@clisp.org>
1530
1531         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1532         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1533         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1534         REPLACE_CBRTL to 1.
1535         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1536
1537 2012-03-13  Bruno Haible  <bruno@clisp.org>
1538
1539         remainderl: Avoid compilation error on AIX >= 5.2.
1540         * lib/math.in.h (remainderl): Undefine macro from the system header.
1541
1542 2012-03-13  Bruno Haible  <bruno@clisp.org>
1543
1544         Avoid compilation errors with MSVC option -fp:strict.
1545         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1546         * lib/cbrtf.c: Likewise.
1547         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1548
1549 2012-03-12  Bruno Haible  <bruno@clisp.org>
1550
1551         uninorm: Don't crash in out-of-memory conditions.
1552         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1553         gracefully.
1554         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1555         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1556
1557 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1558
1559         quote: fix syntax-check
1560         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1561         also exports quote_quoting_options.
1562
1563 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1564
1565         Collapse list of copyright years to ranges.  See
1566         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1567         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1568         build-aux/csharpexec.sh.in, build-aux/gnupload,
1569         build-aux/install-reloc, build-aux/javacomp.sh.in,
1570         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1571         build-aux/move-if-change, build-aux/reloc-ldflags,
1572         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1573
1574 2012-03-11  Bruno Haible  <bruno@clisp.org>
1575
1576         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1577         * m4/log2f-ieee.m4: New file.
1578         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1579         whether log2f works with a minus zero argument. Replace it if not.
1580         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1581         (Depends-on): Add log2-ieee.
1582         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1583         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1584
1585         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1586         * m4/log2-ieee.m4: New file.
1587         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1588         whether log2 works with a minus zero argument. Replace it if not.
1589         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1590         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1591         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1592
1593         Tests for module 'log2l-ieee'.
1594         * modules/log2l-ieee-tests: New file.
1595         * tests/test-log2l-ieee.c: New file.
1596
1597         New module 'log2l-ieee'.
1598         * modules/log2l-ieee: New file.
1599
1600         Tests for module 'log2-ieee'.
1601         * modules/log2-ieee-tests: New file.
1602         * tests/test-log2-ieee.c: New file.
1603
1604         New module 'log2-ieee'.
1605         * modules/log2-ieee: New file.
1606
1607         Tests for module 'log2f-ieee'.
1608         * modules/log2f-ieee-tests: New file.
1609         * tests/test-log2f-ieee.c: New file.
1610         * tests/test-log2-ieee.h: New file.
1611
1612         New module 'log2f-ieee'.
1613         * modules/log2f-ieee: New file.
1614
1615 2012-03-11  Bruno Haible  <bruno@clisp.org>
1616
1617         Tests for module 'log2l'.
1618         * modules/log2l-tests: New file.
1619         * tests/test-log2l.c: New file.
1620
1621         New module 'log2l'.
1622         * lib/math.in.h (log2l): New declaration.
1623         * lib/log2l.c: New file.
1624         * m4/log2l.m4: New file.
1625         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1627         REPLACE_LOG2L.
1628         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1629         REPLACE_LOG2L.
1630         * modules/log2l: New file.
1631         * tests/test-math-c++.cc: Check the declaration of log2l.
1632         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1633         and OSF/1 problems.
1634
1635 2012-03-11  Bruno Haible  <bruno@clisp.org>
1636
1637         Tests for module 'log2f'.
1638         * modules/log2f-tests: New file.
1639         * tests/test-log2f.c: New file.
1640
1641         New module 'log2f'.
1642         * lib/math.in.h (log2f): New declaration.
1643         * lib/log2f.c: New file.
1644         * m4/log2f.m4: New file.
1645         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1647         REPLACE_LOG2F.
1648         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1649         REPLACE_LOG2F.
1650         * modules/log2f: New file.
1651         * tests/test-math-c++.cc: Check the declaration of log2f.
1652         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1653         and OSF/1 and Cygwin problems.
1654
1655 2012-03-11  Bruno Haible  <bruno@clisp.org>
1656
1657         Tests for module 'log2'.
1658         * modules/log2-tests: New file.
1659         * tests/test-log2.c: New file.
1660         * tests/test-log2.h: New file.
1661
1662         New module 'log2'.
1663         * lib/math.in.h (log2): New declaration.
1664         * lib/log2.c: New file.
1665         * m4/log2.m4: New file.
1666         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1668         REPLACE_LOG2.
1669         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1670         REPLACE_LOG2.
1671         * modules/log2: New file.
1672         * tests/test-math-c++.cc: Check the declaration of log2.
1673         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1674         and OSF/1 and Cygwin problems.
1675
1676 2012-03-11  Bruno Haible  <bruno@clisp.org>
1677
1678         exp2* tests: More tests.
1679         * tests/test-exp2.h (test_function): Test all integral arguments that
1680         don't need to overflow or denormalized numbers.
1681         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1682         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1683         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1684
1685 2012-03-10  Bruno Haible  <bruno@clisp.org>
1686
1687         log1pl-ieee: Work around test failure on AIX 7.1.
1688         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1689
1690         log1pl-ieee: Work around test failure on IRIX 6.5.
1691         * m4/log1pl-ieee.m4: New file.
1692         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1693         test whether log1pl works with a minus zero argument. Replace it if
1694         not.
1695         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1697         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1698         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1699         (Depends-on): Update conditions.
1700         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1701         m4/signbit.m4.
1702         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1703         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1704
1705         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1706         * m4/log1pf-ieee.m4: New file.
1707         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1708         test whether log1pf works with a minus zero argument. Replace it if
1709         not.
1710         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1711         m4/signbit.m4.
1712         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1713         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1714
1715         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1716         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1717         (configure.ac): Require gl_FUNC_LOG1PF.
1718
1719         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1720         * m4/log1p-ieee.m4: New file.
1721         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1722         whether log1p works with a minus zero argument. Replace it if not.
1723         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1725         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1726         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1727         (Depends-on): Update conditions.
1728         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1729         m4/signbit.m4.
1730         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1731         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1732
1733         Tests for module 'log1pl-ieee'.
1734         * modules/log1pl-ieee-tests: New file.
1735         * tests/test-log1pl-ieee.c: New file.
1736
1737         New module 'log1pl-ieee'.
1738         * modules/log1pl-ieee: New file.
1739
1740         Tests for module 'log1p-ieee'.
1741         * modules/log1p-ieee-tests: New file.
1742         * tests/test-log1p-ieee.c: New file.
1743
1744         New module 'log1p-ieee'.
1745         * modules/log1p-ieee: New file.
1746
1747         Tests for module 'log1pf-ieee'.
1748         * modules/log1pf-ieee-tests: New file.
1749         * tests/test-log1pf-ieee.c: New file.
1750         * tests/test-log1p-ieee.h: New file.
1751
1752         New module 'log1pf-ieee'.
1753         * modules/log1pf-ieee: New file.
1754
1755 2012-03-10  Bruno Haible  <bruno@clisp.org>
1756
1757         Tests for module 'log1pl'.
1758         * modules/log1pl-tests: New file.
1759         * tests/test-log1pl.c: New file.
1760
1761         New module 'log1pl'.
1762         * lib/math.in.h (log1pl): New declaration.
1763         * lib/log1pl.c: New file.
1764         * m4/log1pl.m4: New file.
1765         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1767         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1768         * modules/log1pl: New file.
1769         * tests/test-math-c++.cc: Check the declaration of log1pl.
1770         * doc/posix-functions/log1pl.texi: Mention the new module.
1771
1772 2012-03-10  Bruno Haible  <bruno@clisp.org>
1773
1774         Tests for module 'log1pf'.
1775         * modules/log1pf-tests: New file.
1776         * tests/test-log1pf.c: New file.
1777
1778         New module 'log1pf'.
1779         * lib/math.in.h (log1pf): New declaration.
1780         * lib/log1pf.c: New file.
1781         * m4/log1pf.m4: New file.
1782         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1784         REPLACE_LOG1PF.
1785         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1786         REPLACE_LOG1PF.
1787         * modules/log1pf: New file.
1788         * tests/test-math-c++.cc: Check the declaration of log1pf.
1789         * doc/posix-functions/log1pf.texi: Mention the new module.
1790
1791 2012-03-10  Bruno Haible  <bruno@clisp.org>
1792
1793         log1p tests: More tests.
1794         * tests/test-log1p.h: New file.
1795         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1796         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1797         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1798         (main): Invoke test_function.
1799
1800         log1p: Provide replacement for Minix and MSVC.
1801         * lib/math.in.h (log1p): New declaration.
1802         * lib/log1p.c: New file.
1803         * m4/log1p.m4: New file.
1804         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1806         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1807         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1808         (Depends-on): Add math, isnand, log, round.
1809         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1810         HAVE_LOG1P is 0.
1811         * tests/test-math-c++.cc: Check the declaration of log1p.
1812         * doc/posix-functions/log1p.texi: Mention the replacement.
1813
1814 2012-03-10  Bruno Haible  <bruno@clisp.org>
1815
1816         math tests: Small simplification.
1817         * tests/test-exp.h (test_function): Use the same err_bound for
1818         'double' on platforms with sizeof (long double) == sizeof (double)
1819         than on platforms with sizeof (long double) > sizeof (double).
1820         * tests/test-exp2.h (test_function): Likewise.
1821         * tests/test-expm1.h (test_function): Likewise.
1822         * tests/test-log.h (test_function): Likewise.
1823
1824 2012-03-10  Bruno Haible  <bruno@clisp.org>
1825
1826         Fix some comments.
1827         * lib/expl.c: Fix an ambiguous comment.
1828         * lib/expm1.c: Likewise.
1829         * lib/expm1l.c: Likewise.
1830         * lib/exp2.c: Likewise.
1831         * lib/exp2l.c: Likewise.
1832
1833 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1834
1835         regex: allow inclusion of <regex.h> before <limits.h>
1836         Without this patch, portable programs had to include <limits.h> before
1837         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1838         I ran into this problem with a test version of GNU grep on Solaris 8.
1839         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1840         This is done conditionally so that this change can be merged
1841         back to glibc.
1842         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1843         using the included regex.
1844
1845         fts: depend on fdopendir
1846         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1847         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1848         problem was introduced when fdopendir was split out.
1849
1850 2012-03-10  Bruno Haible  <bruno@clisp.org>
1851
1852         Remove unused variables.
1853         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1854         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1855
1856 2012-03-10  Bruno Haible  <bruno@clisp.org>
1857
1858         isnanf-nolibm: Fix last commit.
1859         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1860
1861         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1862         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1863
1864 2012-03-10  Bruno Haible  <bruno@clisp.org>
1865
1866         logf-ieee: Work around test failure on NetBSD 5.1.
1867         * m4/logf-ieee.m4: New file.
1868         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1869         whether logf works with a negative argument. Replace it if not.
1870         * lib/logf.c (logf): For negative arguments, return NaN.
1871         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1872         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1873         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1874
1875         logf-ieee: Work around test failure on Solaris 9.
1876         * modules/logf-ieee (Depends-on): Add log-ieee.
1877         (configure.ac): Require gl_FUNC_LOGF.
1878
1879         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1880         * m4/log-ieee.m4: New file.
1881         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1882         log works with a negative argument. Replace it if not.
1883         * lib/log.c (log): For negative arguments, return NaN.
1884         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1885         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1886         * doc/posix-functions/log.texi: Mention the log-ieee module.
1887
1888         Tests for module 'logl-ieee'.
1889         * modules/logl-ieee-tests: New file.
1890         * tests/test-logl-ieee.c: New file.
1891
1892         New module 'logl-ieee'.
1893         * modules/logl-ieee: New file.
1894
1895         Tests for module 'log-ieee'.
1896         * modules/log-ieee-tests: New file.
1897         * tests/test-log-ieee.c: New file.
1898
1899         New module 'log-ieee'.
1900         * modules/log-ieee: New file.
1901
1902         Tests for module 'logf-ieee'.
1903         * modules/logf-ieee-tests: New file.
1904         * tests/test-logf-ieee.c: New file.
1905         * tests/test-log-ieee.h: New file.
1906
1907         New module 'logf-ieee'.
1908         * modules/logf-ieee: New file.
1909
1910 2012-03-10  Bruno Haible  <bruno@clisp.org>
1911
1912         log: Fix bug introduced on 2012-03-09.
1913         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1914
1915 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1916
1917         timer-time: link explicitly with pthreads on glibc
1918         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1919         to support static linking, when newer glibc is
1920         detected, as that contains pthread emulation of
1921         POSIX timer functions where required.
1922         * modules/timer-time: Depend on threadlib to
1923         pull in the appropriate library to link.
1924
1925 2012-03-10  Bruno Haible  <bruno@clisp.org>
1926
1927         log* tests: More tests.
1928         * tests/test-log.h: New file.
1929         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1930         (main): Invoke test_function.
1931         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1932         (main): Invoke test_function.
1933         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1934         (main): Invoke test_function.
1935         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1936         tests/randomd.c.
1937         (Makefile.am): Add randomd.c to test_log_SOURCES.
1938         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1939         tests/randomf.c.
1940         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1941         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1942         tests/randoml.c.
1943         (Depends-on): Add 'float'.
1944         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1945
1946 2012-03-09  Bruno Haible  <bruno@clisp.org>
1947
1948         logl: Work around OSF/1 5.1 bug.
1949         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1950         * lib/logl.c (logl): If logl exists, use it and provide just the
1951         workaround.
1952         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1953         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1955         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1956         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1957         (Depends-on): Update conditions.
1958         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1959
1960 2012-03-09  Bruno Haible  <bruno@clisp.org>
1961
1962         logf: Work around OSF/1 5.1 bug.
1963         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1964         * lib/logf.c (logf): If logf exists, use it and provide just the
1965         workaround.
1966         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1967         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1969         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1970         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1971         (Depends-on): Update conditions.
1972         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1973
1974 2012-03-09  Bruno Haible  <bruno@clisp.org>
1975
1976         log: Work around OSF/1 5.1 bug.
1977         * lib/math.in.h (log): New declaration.
1978         * lib/log.c: New file.
1979         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1980         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1981         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1983         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1984         * modules/log (Files): Add lib/log.c.
1985         (Depends-on): Add math.
1986         (configure.ac): If REPLACE_LOG is 1, compile an override.
1987         * tests/test-math-c++.cc: Check the declaration of log.
1988         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1989
1990 2012-03-09  Jim Meyering  <meyering@redhat.com>
1991
1992         readtokens.c: adjust wording in a comment
1993         * lib/readtokens.c: Insert omitted "that" in a comment.
1994
1995 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1996
1997         modechange: add notations +40, 00440, etc.
1998         * lib/modechange.c (mode_compile): Support new notations
1999         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2000
2001 2012-03-08  Bruno Haible  <bruno@clisp.org>
2002
2003         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2004         * m4/exp2l-ieee.m4: New file.
2005         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2006         test whether exp2l works with a NaN argument and with a negative
2007         infinity argument. Replace it if not.
2008         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2010         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2011         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2012         (Depends-on): Update conditions.
2013         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2014         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2015         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2016
2017         Tests for module 'exp2l-ieee'.
2018         * modules/exp2l-ieee-tests: New file.
2019         * tests/test-exp2l-ieee.c: New file.
2020
2021         New module 'exp2l-ieee'.
2022         * modules/exp2l-ieee: New file.
2023
2024         Tests for module 'exp2-ieee'.
2025         * modules/exp2-ieee-tests: New file.
2026         * tests/test-exp2-ieee.c: New file.
2027
2028         New module 'exp2-ieee'.
2029         * modules/exp2-ieee: New file.
2030
2031         Tests for module 'exp2f-ieee'.
2032         * modules/exp2f-ieee-tests: New file.
2033         * tests/test-exp2f-ieee.c: New file.
2034         * tests/test-exp2-ieee.h: New file.
2035
2036         New module 'exp2f-ieee'.
2037         * modules/exp2f-ieee: New file.
2038
2039 2012-03-08  Bruno Haible  <bruno@clisp.org>
2040
2041         Tests for module 'exp2l'.
2042         * modules/exp2l-tests: New file.
2043         * tests/test-exp2l.c: New file.
2044
2045         New module 'exp2l'.
2046         * lib/math.in.h (exp2l): New declaration.
2047         * lib/exp2l.c: New file.
2048         * lib/expl-table.c: New file, extracted from lib/expl.c.
2049         * lib/expl.c (gl_expl_table): New declaration.
2050         (expl): Remove expl_table. Update reference.
2051         * m4/exp2l.m4: New file.
2052         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2054         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2055         * modules/exp2l: New file.
2056         * modules/expl (Files): Add lib/expl-table.c.
2057         (configure.ac): Compile also expl-table.c.
2058         * tests/test-math-c++.cc: Check the declaration of exp2l.
2059         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2060         problem.
2061
2062 2012-03-08  Bruno Haible  <bruno@clisp.org>
2063
2064         Tests for module 'exp2f'.
2065         * modules/exp2f-tests: New file.
2066         * tests/test-exp2f.c: New file.
2067
2068         New module 'exp2f'.
2069         * lib/math.in.h (exp2f): New declaration.
2070         * lib/exp2f.c: New file.
2071         * m4/exp2f.m4: New file.
2072         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2074         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2075         * modules/exp2f: New file.
2076         * tests/test-math-c++.cc: Check the declaration of exp2f.
2077         * doc/posix-functions/exp2f.texi: Mention the new module and the
2078         IRIX problem.
2079
2080 2012-03-08  Bruno Haible  <bruno@clisp.org>
2081
2082         Tests for module 'exp2'.
2083         * modules/exp2-tests: New file.
2084         * tests/test-exp2.c: New file.
2085         * tests/test-exp2.h: New file.
2086
2087         New module 'exp2'.
2088         * lib/math.in.h (exp2): New declaration.
2089         * lib/exp2.c: New file.
2090         * m4/exp2.m4: New file.
2091         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2093         REPLACE_EXP2.
2094         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2095         REPLACE_EXP2.
2096         * modules/exp2: New file.
2097         * tests/test-math-c++.cc: Check the declaration of exp2.
2098         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2099         and OpenBSD problems.
2100
2101 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2102
2103         savedir: fix comment typo
2104         * lib/savedir.c (savedirstream): Fix typo in comment.
2105
2106 2012-03-08  Bruno Haible  <bruno@clisp.org>
2107
2108         test-readtokens.c: use const; remove unwarranted cast
2109         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2110
2111 2012-03-08  Bruno Haible  <bruno@clisp.org>
2112
2113         fmal: Avoid compilation error on AIX.
2114         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2115         AIX 5.2..7.1.
2116
2117 2012-03-08  Bruno Haible  <bruno@clisp.org>
2118
2119         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2120         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2121         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2122         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2123         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2124         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2125         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2126
2127 2012-03-08  Bruno Haible  <bruno@clisp.org>
2128
2129         remainderf: Override buggy system function on IRIX 6.5.
2130         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2131         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2132         when it exists.
2133         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2134
2135 2012-03-08  Jim Meyering  <meyering@redhat.com>
2136
2137         test-readtokens.c: avoid const-related compilation warnings
2138         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2139
2140 2012-03-07  Jim Meyering  <meyering@redhat.com>
2141             Bruno Haible  <bruno@clisp.org>
2142
2143         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2144         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2145         tests/randomd.c.
2146         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2147         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2148         tests/randoml.c.
2149         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2150
2151 2012-03-07  Bruno Haible  <bruno@clisp.org>
2152
2153         expm1l: Avoid compilation error on AIX.
2154         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2155         AIX 5.2..7.1.
2156
2157 2012-03-07  Bruno Haible  <bruno@clisp.org>
2158
2159         expm1l: Don't override undeclared system function on IRIX 6.5.
2160         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2161         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2162         it exists. Set HAVE_DECL_EXPM1L.
2163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2164         HAVE_EXPM1L.
2165         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2166         HAVE_EXPM1L.
2167         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2168
2169 2012-03-07  Bruno Haible  <bruno@clisp.org>
2170
2171         remainderl: Don't override undeclared system function on IRIX 6.5.
2172         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2173         HAVE_REMAINDERL.
2174         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2175         declared when it exists. Set HAVE_DECL_REMAINDERL.
2176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2177         not HAVE_REMAINDERL.
2178         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2179         HAVE_REMAINDERL.
2180         * doc/posix-functions/remainderl.texi: Mention missing declaration
2181         problem.
2182
2183 2012-03-07  Bruno Haible  <bruno@clisp.org>
2184
2185         rintf: Don't override undeclared system function on IRIX 6.5.
2186         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2187         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2188         exists. Set HAVE_DECL_RINTF.
2189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2190         HAVE_RINTF.
2191         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2192         HAVE_RINTF.
2193         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2194
2195 2012-03-07  Bruno Haible  <bruno@clisp.org>
2196
2197         roundl: Avoid compilation error on AIX.
2198         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2199         AIX 5.2..7.1.
2200
2201 2012-03-07  Bruno Haible  <bruno@clisp.org>
2202
2203         roundl: Don't override undeclared system function on IRIX 6.5.
2204         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2205         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2206         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2207         * modules/roundl (configure.ac): For replacement code, test
2208         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2209         (Depends-on): Update conditions.
2210         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2211
2212 2012-03-07  Bruno Haible  <bruno@clisp.org>
2213
2214         roundf: Don't override undeclared system function on IRIX 6.5.
2215         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2216         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2217         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2218         * modules/roundf (configure.ac): For replacement code, test
2219         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2220         (Depends-on): Update conditions.
2221         * modules/roundf-ieee (Depends-on): Update conditions.
2222         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2223
2224 2012-03-07  Bruno Haible  <bruno@clisp.org>
2225
2226         round: Don't override undeclared system function on IRIX 6.5.
2227         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2228         argument.
2229         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2230         also when it is not declared. Set HAVE_ROUND. For replacement code,
2231         test HAVE_ROUND, not HAVE_DECL_ROUND.
2232         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2233         not HAVE_DECL_ROUND.
2234         (Depends-on): Update conditions.
2235         * modules/round-ieee (Depends-on): Update conditions.
2236         * doc/posix-functions/round.texi: Mention the IRIX problem.
2237
2238 2012-03-07  Bruno Haible  <bruno@clisp.org>
2239
2240         copysignf: Don't override undeclared system function on IRIX 6.5.
2241         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2242         HAVE_COPYSIGNF.
2243         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2244         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2246         not HAVE_COPYSIGNF.
2247         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2248         HAVE_COPYSIGNF.
2249         * doc/posix-functions/copysignf.texi: Mention missing declaration
2250         problem.
2251
2252 2012-03-07  Jim Meyering  <meyering@redhat.com>
2253
2254         readtokens: add tests
2255         * modules/readtokens-tests: New file.
2256         * tests/test-readtokens.c: New file.
2257
2258 2012-03-07  Jim Meyering  <meyering@redhat.com>
2259
2260         quotearg: the module must now include quote.h
2261         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2262         So must the module.
2263         * modules/quotearg (Files): Add quote.h.
2264
2265 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2266
2267         readtokens: avoid core dumps with unusual calling patterns
2268         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2269         * lib/readtokens.c: Include limits.h.
2270         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2271         (readtoken): Don't cache the delimiters; the cache code was buggy
2272         if !delim && saved_delim, or if the new n_delim differs from the old.
2273         Also, it wasn't thread-safe.
2274
2275 2012-03-07  Bruno Haible  <bruno@clisp.org>
2276
2277         quote: Adhere to common module description layout.
2278         * modules/quote (Makefile.am): Add back empty section.
2279
2280 2012-03-06  Akim Demaille  <demaille@gostai.com>
2281
2282         quote: fuse into quotearg
2283         This patch is made for the benefit of Bison.
2284         quote does not leave the choice of the quoting style to the user.
2285         quoting_style provides poor customizability, yet quoting_options,
2286         which is very rich, is hidden inside quotearg.c.  So in order to
2287         allow quote customization, move its implementation to quotearg.c.
2288         * lib/quote.c: Remove.
2289         * modules/quote: Adjust.
2290         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2291         warning: provide all the members of literal structs.
2292         (quote_quoting_options): New.
2293         (quote, quote_n): Import implementation from quote.c.
2294         * lib/quote.h: Import the comments from quote.c.
2295         (quote_quoting_options): New.
2296
2297 2012-03-06  Bruno Haible  <bruno@clisp.org>
2298
2299         Tests for module 'expm1l-ieee'.
2300         * modules/expm1l-ieee-tests: New file.
2301         * tests/test-expm1l-ieee.c: New file.
2302
2303         New module 'expm1l-ieee'.
2304         * modules/expm1l-ieee: New file.
2305
2306         Tests for module 'expm1f-ieee'.
2307         * modules/expm1f-ieee-tests: New file.
2308         * tests/test-expm1f-ieee.c: New file.
2309
2310         New module 'expm1f-ieee'.
2311         * modules/expm1f-ieee: New file.
2312
2313         Tests for module 'expm1-ieee'.
2314         * modules/expm1-ieee-tests: New file.
2315         * tests/test-expm1-ieee.c: New file.
2316         * tests/test-expm1-ieee.h: New file.
2317
2318         New module 'expm1-ieee'.
2319         * modules/expm1-ieee: New file.
2320         * m4/expm1-ieee.m4: New file.
2321         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2322         whether expm1 works with a minus zero argument. Replace it if not.
2323         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2325         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2326         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2327         (Depends-on): Update conditions.
2328         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2329         AIX problem.
2330
2331 2012-03-06  Bruno Haible  <bruno@clisp.org>
2332
2333         Work around expm1f bug on IRIX 6.5.
2334         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2335         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2336         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2337         not work.
2338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2339         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2340         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2341         (Depends-on): Update conditions.
2342         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2343
2344 2012-03-06  Bruno Haible  <bruno@clisp.org>
2345
2346         Tests for module 'expm1l'.
2347         * modules/expm1l-tests: New file.
2348         * tests/test-expm1l.c: New file.
2349
2350         New module 'expm1l'.
2351         * lib/math.in.h (expm1l): New declaration.
2352         * lib/expm1l.c: New file.
2353         * m4/expm1l.m4: New file.
2354         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2356         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2357         * modules/expm1l: New file.
2358         * tests/test-math-c++.cc: Check the declaration of expm1l.
2359         * doc/posix-functions/expm1l.texi: Mention the new module.
2360
2361 2012-03-06  Bruno Haible  <bruno@clisp.org>
2362
2363         Tests for module 'expm1f'.
2364         * modules/expm1f-tests: New file.
2365         * tests/test-expm1f.c: New file.
2366
2367         New module 'expm1f'.
2368         * lib/math.in.h (expm1f): New declaration.
2369         * lib/expm1f.c: New file.
2370         * m4/expm1f.m4: New file.
2371         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2373         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2374         * modules/expm1f: New file.
2375         * tests/test-math-c++.cc: Check the declaration of expm1f.
2376         * doc/posix-functions/expm1f.texi: Mention the new module.
2377
2378 2012-03-06  Bruno Haible  <bruno@clisp.org>
2379
2380         Tests for module 'expm1'.
2381         * modules/expm1-tests: New file.
2382         * tests/test-expm1.c: New file.
2383         * tests/test-expm1.h: New file.
2384
2385         New module 'expm1'.
2386         * lib/math.in.h (expm1): New declaration.
2387         * lib/expm1.c: New file.
2388         * m4/expm1.m4: New file.
2389         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2391         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2392         * modules/expm1: New file.
2393         * tests/test-math-c++.cc: Check the declaration of expm1.
2394         * doc/posix-functions/expm1.texi: Mention the new module.
2395
2396 2012-03-06  Bruno Haible  <bruno@clisp.org>
2397
2398         math: Ensure declarations of math functions.
2399         * modules/acosf (Depends-on): Add 'extensions'.
2400         * modules/asinf (Depends-on): Likewise.
2401         * modules/atan2f (Depends-on): Likewise.
2402         * modules/atanf (Depends-on): Likewise.
2403         * modules/cbrt (Depends-on): Likewise.
2404         * modules/cbrtf (Depends-on): Likewise.
2405         * modules/cbrtl (Depends-on): Likewise.
2406         * modules/copysignf (Depends-on): Likewise.
2407         * modules/copysignl (Depends-on): Likewise.
2408         * modules/cosf (Depends-on): Likewise.
2409         * modules/coshf (Depends-on): Likewise.
2410         * modules/expf (Depends-on): Likewise.
2411         * modules/fabsf (Depends-on): Likewise.
2412         * modules/fabsl (Depends-on): Likewise.
2413         * modules/fmaf (Depends-on): Likewise.
2414         * modules/fmal (Depends-on): Likewise.
2415         * modules/fmodf (Depends-on): Likewise.
2416         * modules/fmodl (Depends-on): Likewise.
2417         * modules/frexpf (Depends-on): Likewise.
2418         * modules/frexpl (Depends-on): Likewise.
2419         * modules/hypot (Depends-on): Likewise.
2420         * modules/hypotf (Depends-on): Likewise.
2421         * modules/hypotl (Depends-on): Likewise.
2422         * modules/ldexpf (Depends-on): Likewise.
2423         * modules/ldexpl (Depends-on): Likewise.
2424         * modules/log10f (Depends-on): Likewise.
2425         * modules/log10l (Depends-on): Likewise.
2426         * modules/log1p (Depends-on): Likewise.
2427         * modules/logb (Depends-on): Likewise.
2428         * modules/logf (Depends-on): Likewise.
2429         * modules/modff (Depends-on): Likewise.
2430         * modules/modfl (Depends-on): Likewise.
2431         * modules/powf (Depends-on): Likewise.
2432         * modules/remainderf (Depends-on): Likewise.
2433         * modules/remainderl (Depends-on): Likewise.
2434         * modules/rintf (Depends-on): Likewise.
2435         * modules/rintl (Depends-on): Likewise.
2436         * modules/sinf (Depends-on): Likewise.
2437         * modules/sinhf (Depends-on): Likewise.
2438         * modules/sqrtf (Depends-on): Likewise.
2439         * modules/tanf (Depends-on): Likewise.
2440         * modules/tanhf (Depends-on): Likewise.
2441         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2442         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2443         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2444         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2445         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2446         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2447         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2448         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2449         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2450         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2451         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2452         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2453         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2454         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2455         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2456         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2457         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2458         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2459         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2460         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2461         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2462         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2463         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2464         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2465         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2466         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2467         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2468         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2469         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2470         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2471         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2472         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2473         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2474         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2475         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2476         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2477         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2478         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2479         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2480         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2481         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2482
2483 2012-03-06  Bruno Haible  <bruno@clisp.org>
2484
2485         math: Update module names in warnings.
2486         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2487         tanl): Use specific module name in warn-on-use warning.
2488
2489 2012-03-06  Bruno Haible  <bruno@clisp.org>
2490
2491         expl: Simplify computation.
2492         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2493
2494 2012-03-05  Bruno Haible  <bruno@clisp.org>
2495
2496         exp* tests: More tests.
2497         * tests/test-exp.h: New file.
2498         * tests/test-exp.c: Include <float.h> and test-exp.h.
2499         (main): Invoke test_function.
2500         * tests/test-expf.c: Include <float.h> and test-exp.h.
2501         (main): Invoke test_function.
2502         * tests/test-expl.c: Include <float.h> and test-exp.h.
2503         (main): Invoke test_function.
2504         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2505         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2506         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2507         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2508         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2509         (Depends-on): Add 'float'.
2510         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2511
2512         expl: Fix precision of computed result.
2513         * lib/expl.c: Completely rewritten.
2514         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2515         (Maintainer): Add me.
2516         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2517
2518 2012-03-05  Bruno Haible  <bruno@clisp.org>
2519
2520         cbrt* tests: More tests.
2521         * tests/test-cbrt.h: New file.
2522         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2523         (main): Invoke test_function.
2524         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2525         (main): Invoke test_function.
2526         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2527         (main): Invoke test_function.
2528         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2529         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2530         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2531         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2532         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2533         (Depends-on): Add 'float'.
2534         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2535
2536 2012-03-05  Bruno Haible  <bruno@clisp.org>
2537
2538         hypot* tests: More tests.
2539         * tests/test-hypot.h: New file, partially extracted from
2540         tests/test-hypotl.c.
2541         * tests/test-hypot.c: Include test-hypot.h.
2542         (main): Invoke test_function.
2543         * tests/test-hypotf.c: Include test-hypot.h.
2544         (main): Invoke test_function.
2545         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2546         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2547         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2548         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2549         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2550         tests/randomf.c.
2551         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2552         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2553         tests/randoml.c.
2554         (Depends-on): Add 'fpucw', 'float'.
2555         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2556
2557 2012-03-05  Bruno Haible  <bruno@clisp.org>
2558
2559         fpucw: Doc about FreeBSD.
2560         * lib/fpucw.h: Mention FreeBSD in comments.
2561
2562 2012-03-04  Bruno Haible  <bruno@clisp.org>
2563
2564         sqrt* tests: More tests.
2565         * tests/test-sqrt.h: New file.
2566         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2567         (main): Invoke test_function.
2568         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2569         (main): Invoke test_function.
2570         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2571         (main): Invoke test_function.
2572         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2573         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2574         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2575         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2576         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2577         (Depends-on): Add 'float'.
2578         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2579
2580 2012-03-04  Bruno Haible  <bruno@clisp.org>
2581
2582         remainder* tests: More tests.
2583         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2584         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2585         (main): Invoke test_function.
2586         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2587         (main): Invoke test_function.
2588         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2589         (main): Invoke test_function.
2590         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2591         tests/randomd.c.
2592         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2593         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2594         tests/randomf.c.
2595         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2596         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2597         tests/randoml.c.
2598         (Depends-on): Add 'float'.
2599         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2600
2601 2012-03-04  Bruno Haible  <bruno@clisp.org>
2602
2603         remainder, remainderf, remainderl: Fix computation for large quotients.
2604         * lib/remainder.c: Completely rewritten.
2605         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2606         USE_FLOAT.
2607         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2608         USE_LONG_DOUBLE.
2609         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2610         isnand, isinf. Remove round, fma.
2611         * modules/remainderf (Files): Add lib/remainder.c.
2612         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2613         Remove roundf, fmaf.
2614         * modules/remainderl (Files): Add lib/remainder.c.
2615         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2616         isinf. Remove roundl, fmal.
2617         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2618         REMAINDER_LIBM.
2619         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2620         REMAINDERF_LIBM.
2621         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2622         REMAINDERL_LIBM.
2623
2624 2012-03-04  Bruno Haible  <bruno@clisp.org>
2625
2626         fmod* tests: More tests.
2627         * tests/test-fmod.h (my_ldexp): New function.
2628         (test_function): Reduce amount of random numbers to test. Add tests
2629         of very large quotients x / y.
2630         * tests/test-fmod.c (MAX_EXP): New macro.
2631         * tests/test-fmodf.c (MAX_EXP): Likewise.
2632         * tests/test-fmodl.c (MAX_EXP): Likewise.
2633
2634 2012-03-04  Bruno Haible  <bruno@clisp.org>
2635
2636         fmod, fmodl: Fix computation for large quotients x / y.
2637         * lib/fmod.c: Completely rewritten.
2638         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2639         USE_LONG_DOUBLE.
2640         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2641         isnand. Remove fma.
2642         * modules/fmodl (Files): Add lib/fmod.c.
2643         (Depends-on): Add float, isfinite, signbit, fabsl,
2644         frexpl, ldexpl, isnanl. Remove fma.
2645         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2646         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2647
2648 2012-03-03  Bruno Haible  <bruno@clisp.org>
2649
2650         fmod* tests: More tests.
2651         * tests/test-fmod.h: New file.
2652         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2653         (main): Invoke test_function.
2654         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2655         (main): Invoke test_function.
2656         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2657         (main): Invoke test_function.
2658         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2659         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2660         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2661         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2662         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2663         (Depends-on): Add 'float'.
2664         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2665
2666 2012-03-03  Bruno Haible  <bruno@clisp.org>
2667
2668         rint* tests: More tests.
2669         * tests/test-rint.h: New file, partially extracted from
2670         tests/test-rintl.c.
2671         * tests/test-rint.c: Include test-rint.h.
2672         (main): Invoke test_function.
2673         * tests/test-rintf.c: Include test-rint.h.
2674         (main): Invoke test_function.
2675         * tests/test-rintl.c: Include test-rint.h.
2676         (main): Invoke test_function.
2677         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2678         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2679         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2680         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2681         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2682         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2683
2684 2012-03-03  Bruno Haible  <bruno@clisp.org>
2685
2686         modf* tests: More tests.
2687         * tests/test-modf.h: New file.
2688         * tests/test-modf.c: Include <float.h> and test-modf.h.
2689         (main): Invoke test_function.
2690         * tests/test-modff.c: Include <float.h> and test-modf.h.
2691         (main): Invoke test_function.
2692         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2693         (main): Invoke test_function.
2694         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2695         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2696         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2697         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2698         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2699         (Depends-on): Add 'float'.
2700         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2701
2702 2012-03-03  Bruno Haible  <bruno@clisp.org>
2703
2704         fabs* tests: More tests.
2705         * tests/test-fabs.h: New file, partially extracted from
2706         tests/test-fabsl.c.
2707         * tests/test-fabs.c (RANDOM): New macro.
2708         * tests/test-fabsf.c (RANDOM): New macro.
2709         * tests/test-fabsl.c (RANDOM): New macro.
2710         * modules/fabs-tests (Files): Add tests/randomd.c.
2711         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2712         * modules/fabsf-tests (Files): Add tests/randomf.c.
2713         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2714         * modules/fabsl-tests (Files): Add tests/randoml.c.
2715         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2716
2717 2012-03-03  Bruno Haible  <bruno@clisp.org>
2718
2719         ldexp* tests: More tests.
2720         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2721         * tests/test-ldexp.c (RANDOM): New macro.
2722         * tests/test-ldexpf.c (RANDOM): New macro.
2723         * tests/test-ldexpl.c (RANDOM): New macro.
2724         * modules/ldexp-tests (Files): Add tests/randomd.c.
2725         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2726         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2727         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2728         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2729         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2730
2731 2012-03-03  Bruno Haible  <bruno@clisp.org>
2732
2733         frexp* tests: More tests.
2734         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2735         * tests/test-frexp.c (RANDOM): New macro.
2736         * tests/test-frexpf.c (RANDOM): New macro.
2737         * tests/test-frexpl.c (RANDOM): New macro.
2738         * modules/frexp-tests (Files): Add tests/randomd.c.
2739         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2740         * modules/frexpf-tests (Files): Add tests/randomf.c.
2741         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2742         * modules/frexpl-tests (Files): Add tests/randoml.c.
2743         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2744
2745 2012-03-03  Bruno Haible  <bruno@clisp.org>
2746
2747         Support for pseudo-random numbers in tests.
2748         * tests/randomf.c: New file.
2749         * tests/randomd.c: New file.
2750         * tests/randoml.c: New file.
2751         * tests/macros.h (randomf, randomd, randoml): New declarations.
2752
2753 2012-03-03  Bruno Haible  <bruno@clisp.org>
2754
2755         frexp* tests: Refactor.
2756         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2757         * tests/test-frexp.c: Include and use it.
2758         * tests/test-frexpf.c: Likewise.
2759         * tests/test-frexpl.c: Likewise.
2760         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2761         * modules/frexpf-tests (Files): Likewise.
2762         * modules/frexpl-tests (Files): Likewise.
2763
2764 2012-03-02  Jim Meyering  <meyering@redhat.com>
2765
2766         maint: don't specify XZ_OPT=-9ev in dist-related rule
2767         Using xz's -9 option is warranted only if you have a very large
2768         tarball (see xz's documentation for the sizes vs. presets), and
2769         requires 64MiB of memory at decompression time.
2770         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2771         Automake's default of just "-e" is fine.  Override on a
2772         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2773
2774 2012-03-01  Eric Blake  <eblake@redhat.com>
2775
2776         maint.mk: allow announcement for non-gnulib project
2777         * maint.mk (announcement): Skip gnulib version if not used.
2778
2779 2012-03-01  Jim Meyering  <meyering@redhat.com>
2780
2781         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2782         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2783         envvar settings cannot interfere.  Otherwise, setting envvars like
2784         prohibit=foo require=bar, etc. would cause spurious test failures.
2785
2786 2012-03-01  Eric Blake  <eblake@redhat.com>
2787
2788         maint.mk: add per-line exclusions to prohibitions
2789         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2790         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2791         (sc_const_long_option): Use it.
2792
2793 2012-03-01  Bruno Haible  <bruno@clisp.org>
2794
2795         Tests for module 'expl-ieee'.
2796         * modules/expl-ieee-tests: New file.
2797         * tests/test-expl-ieee.c: New file.
2798
2799         New module 'expl-ieee'.
2800         * modules/expl-ieee: New file.
2801
2802         Tests for module 'exp-ieee'.
2803         * modules/exp-ieee-tests: New file.
2804         * tests/test-exp-ieee.c: New file.
2805
2806         New module 'exp-ieee'.
2807         * modules/exp-ieee: New file.
2808
2809         Tests for module 'expf-ieee'.
2810         * modules/expf-ieee-tests: New file.
2811         * tests/test-expf-ieee.c: New file.
2812         * tests/test-exp-ieee.h: New file.
2813
2814         New module 'expf-ieee'.
2815         * modules/expf-ieee: New file.
2816
2817 2012-02-29  Bruno Haible  <bruno@clisp.org>
2818
2819         cbrtl-ieee: Work around test failure on IRIX 6.5.
2820         * m4/cbrtl-ieee.m4: New file.
2821         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2822         test whether cbrtl works with a minus zero argument. Replace it if not.
2823         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2825         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2826         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2827         (Depends-on): Update conditions.
2828         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2829         m4/signbit.m4.
2830         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2831         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2832         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2833
2834         Tests for module 'cbrtl-ieee'.
2835         * modules/cbrtl-ieee-tests: New file.
2836         * tests/test-cbrtl-ieee.c: New file.
2837
2838         New module 'cbrtl-ieee'.
2839         * modules/cbrtl-ieee: New file.
2840
2841         Tests for module 'cbrt-ieee'.
2842         * modules/cbrt-ieee-tests: New file.
2843         * tests/test-cbrt-ieee.c: New file.
2844
2845         New module 'cbrt-ieee'.
2846         * modules/cbrt-ieee: New file.
2847
2848         Tests for module 'cbrtf-ieee'.
2849         * modules/cbrtf-ieee-tests: New file.
2850         * tests/test-cbrtf-ieee.c: New file.
2851         * tests/test-cbrt-ieee.h: New file.
2852
2853         New module 'cbrtf-ieee'.
2854         * modules/cbrtf-ieee: New file.
2855
2856 2012-02-29  Bruno Haible  <bruno@clisp.org>
2857
2858         cbrtf: Work around bug in IRIX 6.5 system function.
2859         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2860         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2861         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2862         work.
2863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2864         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2865         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2866         (Depends-on): Update conditions.
2867         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2868
2869 2012-02-29  Bruno Haible  <bruno@clisp.org>
2870
2871         Tests for module 'cbrtl'.
2872         * modules/cbrtl-tests: New file.
2873         * tests/test-cbrtl.c: New file.
2874
2875         New module 'cbrtl'.
2876         * lib/math.in.h (cbrtl): New declaration.
2877         * lib/cbrtl.c: New file.
2878         * m4/cbrtl.m4: New file.
2879         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2881         HAVE_DECL_CBRTL.
2882         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2883         HAVE_DECL_CBRTL.
2884         * modules/cbrtl: New file.
2885         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2886         * doc/posix-functions/cbrtl.texi: Mention the new module.
2887
2888 2012-02-29  Bruno Haible  <bruno@clisp.org>
2889
2890         Tests for module 'cbrtf'.
2891         * modules/cbrtf-tests: New file.
2892         * tests/test-cbrtf.c: New file.
2893
2894         New module 'cbrtf'.
2895         * lib/math.in.h (cbrtf): New declaration.
2896         * lib/cbrtf.c: New file.
2897         * m4/cbrtf.m4: New file.
2898         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2900         HAVE_DECL_CBRTF.
2901         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2902         HAVE_DECL_CBRTF.
2903         * modules/cbrtf: New file.
2904         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2905         * doc/posix-functions/cbrtf.texi: Mention the new module.
2906
2907 2012-02-29  Bruno Haible  <bruno@clisp.org>
2908
2909         cbrt: Provide replacement on MSVC and Minix.
2910         * lib/math.in.h (cbrt): New declaration.
2911         * lib/cbrt.c: New file.
2912         * m4/cbrt.m4: New file.
2913         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2915         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2916         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2917         (Depends-on): Add dependencies.
2918         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2919         * tests/test-math-c++.cc: Check the declaration of cbrt.
2920         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2921         replacement.
2922
2923 2012-02-29  Bruno Haible  <bruno@clisp.org>
2924
2925         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2926         * m4/hypotl-ieee.m4: New file.
2927         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2928         test whether hypotl works with mixed NaN and Infinity arguments.
2929         Replace it if not.
2930         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2932         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2933         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2934         (Depends-on): Update conditions.
2935         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2936         (Depends-on): Add hypot-ieee.
2937         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2938         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2939
2940         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2941         * m4/hypotf-ieee.m4: New file.
2942         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2943         test whether hypotf works with mixed NaN and Infinity arguments.
2944         Replace it if not.
2945         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2946         (Depends-on): Add hypot-ieee.
2947         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2948         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2949
2950         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2951         * lib/math.in.h (hypot): New declaration.
2952         * lib/hypot.c: New file.
2953         * m4/hypot-ieee.m4: New file.
2954         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2955         whether hypot works with mixed NaN and Infinity arguments. Replace it
2956         if not.
2957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2958         REPLACE_HYPOT.
2959         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2960         * modules/hypot (Files): Add lib/hypot.c.
2961         (Depends-on): Add dependencies.
2962         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2963         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2964         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2965         * tests/test-math-c++.cc: Check the declaration of hypot.
2966         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2967
2968         Tests for module 'hypotl-ieee'.
2969         * modules/hypotl-ieee-tests: New file.
2970         * tests/test-hypotl-ieee.c: New file.
2971
2972         New module 'hypotl-ieee'.
2973         * modules/hypotl-ieee: New file.
2974
2975         Tests for module 'hypot-ieee'.
2976         * modules/hypot-ieee-tests: New file.
2977         * tests/test-hypot-ieee.c: New file.
2978
2979         New module 'hypot-ieee'.
2980         * modules/hypot-ieee: New file.
2981
2982         Tests for module 'hypotf-ieee'.
2983         * modules/hypotf-ieee-tests: New file.
2984         * tests/test-hypotf-ieee.c: New file.
2985         * tests/test-hypot-ieee.h: New file.
2986
2987         New module 'hypotf-ieee'.
2988         * modules/hypotf-ieee: New file.
2989
2990 2012-02-29  Bruno Haible  <bruno@clisp.org>
2991
2992         Remove unused variables.
2993         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2994         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2995         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2996         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2997
2998 2012-02-29  Eric Blake  <eblake@redhat.com>
2999
3000         termios: fix pid_t always, not just for tcgetsid
3001         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3002         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3003         just when building tcgetsid.
3004
3005 2012-02-29  Bruno Haible  <bruno@clisp.org>
3006
3007         Tests for module 'hypotl'.
3008         * modules/hypotl-tests: New file.
3009         * tests/test-hypotl.c: New file.
3010
3011         New module 'hypotl'.
3012         * lib/math.in.h (hypotl): New declaration.
3013         * lib/hypotl.c: New file.
3014         * m4/hypotl.m4: New file.
3015         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3017         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3018         * modules/hypotl: New file.
3019         * tests/test-math-c++.cc: Check the hypotl declaration.
3020         * doc/posix-functions/hypotl.texi: Mention the new module.
3021
3022 2012-02-29  Eric Blake  <eblake@redhat.com>
3023
3024         tcgetsid: fix cygwin header bug
3025         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3026
3027         docs: update cygwin progress
3028         * doc/posix-functions/llround.texi (llround): Added in cygwin
3029         1.7.8.
3030         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3031         * doc/glibc-functions/program_invocation_name.texi
3032         (program_invocation_name): Likewise.
3033         * doc/glibc-functions/program_invocation_short_name.texi
3034         (program_invocation_short_name): Likewise.
3035         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3036         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3037         Likewise.
3038         * doc/posix-functions/pthread_spin_destroy.texi
3039         (pthread_spin_destroy): Added in cygwin 1.7.10.
3040         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3041         Likewise.
3042         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3043         Likewise.
3044         * doc/posix-functions/pthread_spin_trylock.texi
3045         (pthread_spin_trylock): Likewise.
3046         * doc/posix-functions/pthread_spin_unlock.texi
3047         (pthread_spin_unlock): Likewise.
3048         * doc/posix-functions/pthread_setschedprio.texi
3049         (pthread_setschedprio): Likewise.
3050         * doc/posix-functions/pthread_attr_getstack.texi
3051         (pthread_attr_getstack): Likewise.
3052         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3053         (pthread_attr_getstackaddr): Likewise.
3054         * doc/glibc-functions/pthread_getattr_np.texi
3055         (pthread_getattr_np): Likewise.
3056         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3057         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3058         * doc/posix-functions/clock_settime.texi (clock_settime):
3059         Likewise.
3060         * doc/posix-functions/pthread_attr_getguardsize.texi
3061         (pthread_attr_getguardsize): Likewise.
3062         * doc/posix-functions/pthread_attr_setguardsize.texi
3063         (pthread_attr_setguardsize): Likewise.
3064         * doc/posix-functions/pthread_attr_setstack.texi
3065         (pthread_attr_setstack): Likewise.
3066         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3067         (pthread_attr_setstackaddr): Likewise.
3068         * doc/posix-functions/clock_getcpuclockid.texi
3069         (clock_getcpuclockid): Likewise.
3070         * doc/posix-functions/pthread_getcpuclockid.texi
3071         (pthread_getcpuclockid): Likewise.
3072         * doc/glibc-functions/error.texi (error): Likewise.
3073         * doc/glibc-functions/error_at_line.texi (error_at_line):
3074         Likewise.
3075         * doc/glibc-functions/error_message_count.texi
3076         (error_message_count): Likewise.
3077         * doc/glibc-functions/error_one_per_line.texi
3078         (error_one_per_line): Likewise.
3079         * doc/glibc-functions/error_print_progname.texi
3080         (error_print_progname): Likewise.
3081         * doc/posix-functions/pthread_condattr_getclock.texi
3082         (pthread_condattr_getclock): Likewise.
3083         * doc/posix-functions/pthread_condattr_setclock.texi
3084         (pthread_condattr_setclock): Likewise.
3085         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3086         Likewise.
3087         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3088         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3089         * doc/glibc-functions/get_current_dir_name.texi
3090         (get_current_dir_name): Likewise.
3091         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3092         Likewise.
3093         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3094         wrong return type.
3095         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3096         1.7.11.
3097
3098 2012-02-29  Bruno Haible  <bruno@clisp.org>
3099
3100         Tests for module 'hypotf'.
3101         * modules/hypotf-tests: New file.
3102         * tests/test-hypotf.c: New file.
3103
3104         New module 'hypotf'.
3105         * lib/math.in.h (hypotf): New declaration.
3106         * lib/hypotf.c: New file.
3107         * m4/hypotf.m4: New file.
3108         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3109         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3110         REPLACE_HYPOTF.
3111         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3112         REPLACE_HYPOTF.
3113         * modules/hypotf: New file.
3114         * tests/test-math-c++.cc: Check the hypotf declaration.
3115         * doc/posix-functions/hypotf.texi: Mention the new module.
3116
3117         hypot: Prepare for hypotf module.
3118         * m4/hypot.m4: New file.
3119         * modules/hypot (Files): Add m4/hypot.m4.
3120         (configure.ac): Invoke gl_FUNC_HYPOT.
3121
3122 2012-02-29  Bruno Haible  <bruno@clisp.org>
3123
3124         hypot tests: More tests.
3125         * tests/test-hypot.c: Include <float.h>.
3126         (main): Add tests about overflow and underflow.
3127
3128 2012-02-29  Bruno Haible  <bruno@clisp.org>
3129
3130         math code: Add comments.
3131         * lib/acosl.c: Add comment about related glibc source files.
3132         * lib/asinl.c: Likewise.
3133         * lib/atanl.c: Likewise.
3134         * lib/expl.c: Likewise.
3135         * lib/logl.c: Likewise.
3136         * lib/sincosl.c: Likewise.
3137         * lib/sinl.c: Likewise.
3138         * lib/tanl.c: Likewise.
3139         * lib/trigl.c: Likewise.
3140         * lib/cosl.c: Likewise. Fix comments.
3141
3142 2012-02-28  Bruno Haible  <bruno@clisp.org>
3143
3144         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3145         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3146         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3147         HUGE_VALL are defined.
3148         (numeric_equald): Renamed from numeric_equal.
3149         (numeric_equalf, numeric_equall): New functions.
3150         (main): Check also HUGE_VALF, HUGE_VALL.
3151         * modules/math-tests (Files): Add tests/macros.h.
3152         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3153         HUGE_VALL.
3154
3155 2012-02-28  Bruno Haible  <bruno@clisp.org>
3156
3157         doc: Move ISO C11 feature notes into POSIX chapters.
3158         * doc/posix-functions/aligned_alloc.texi: Renamed from
3159         doc/glibc-functions/aligned_alloc.texi.
3160         * doc/posix-functions/quick_exit.texi: Renamed from
3161         doc/glibc-functions/quick_exit.texi.
3162         * doc/posix-headers/uchar.texi: Renamed from
3163         doc/glibc-headers/uchar.texi.
3164         * doc/posix-functions/c16rtomb.texi: Renamed from
3165         doc/glibc-functions/c16rtomb.texi.
3166         * doc/posix-functions/c32rtomb.texi: Renamed from
3167         doc/glibc-functions/c32rtomb.texi.
3168         * doc/posix-functions/mbrtoc16.texi: Renamed from
3169         doc/glibc-functions/mbrtoc16.texi.
3170         * doc/posix-functions/mbrtoc32.texi: Renamed from
3171         doc/glibc-functions/mbrtoc32.texi.
3172         * doc/gnulib.texi: Update.
3173         (Glibc uchar.h): Remove section.
3174         Suggested by Eric Blake.
3175
3176 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3177
3178         stdnoreturn: port to MSVC better
3179         MSVC standard headers use __declspec(noreturn), so #define noreturn
3180         to empty on that platform.  Reported by Bruno Haible in
3181         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3182         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3183         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3184
3185 2012-02-28  Bruno Haible  <bruno@clisp.org>
3186
3187         doc: Mention new glibc headers and functions.
3188         * doc/glibc-headers/uchar.texi: New file.
3189         * doc/glibc-functions/aligned_alloc.texi: New file.
3190         * doc/glibc-functions/c16rtomb.texi: New file.
3191         * doc/glibc-functions/c32rtomb.texi: New file.
3192         * doc/glibc-functions/clock_adjtime.texi: New file.
3193         * doc/glibc-functions/fanotify_init.texi: New file.
3194         * doc/glibc-functions/fanotify_mark.texi: New file.
3195         * doc/glibc-functions/inet6_opt_append.texi: New file.
3196         * doc/glibc-functions/inet6_opt_find.texi: New file.
3197         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3198         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3199         * doc/glibc-functions/inet6_opt_init.texi: New file.
3200         * doc/glibc-functions/inet6_opt_next.texi: New file.
3201         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3202         * doc/glibc-functions/inet6_rth_add.texi: New file.
3203         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3204         * doc/glibc-functions/inet6_rth_init.texi: New file.
3205         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3206         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3207         * doc/glibc-functions/inet6_rth_space.texi: New file.
3208         * doc/glibc-functions/login.texi: New file.
3209         * doc/glibc-functions/mbrtoc16.texi: New file.
3210         * doc/glibc-functions/mbrtoc32.texi: New file.
3211         * doc/glibc-functions/name_to_handle_at.texi: New file.
3212         * doc/glibc-functions/ntp_gettimex.texi: New file.
3213         * doc/glibc-functions/open_by_handle_at.texi: New file.
3214         * doc/glibc-functions/prlimit.texi: New file.
3215         * doc/glibc-functions/process_vm_readv.texi: New file.
3216         * doc/glibc-functions/process_vm_writev.texi: New file.
3217         * doc/glibc-functions/recvmmsg.texi: New file.
3218         * doc/glibc-functions/scandirat.texi: New file.
3219         * doc/glibc-functions/sendmmsg.texi: New file.
3220         * doc/glibc-functions/setns.texi: New file.
3221         * doc/glibc-functions/timespec_get.texi: New file.
3222         * doc/gnulib.texi: Include them.
3223         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3224         sections.
3225         Reported by Eric Blake.
3226
3227 2012-02-28  Bruno Haible  <bruno@clisp.org>
3228
3229         Avoid compilation errors with MSVC option -fp:strict.
3230         * lib/floor.c: Use MSVC specific pragma fenv_access.
3231         * lib/ceil.c: Likewise.
3232         * lib/trunc.c: Likewise.
3233         * lib/round.c: Likewise.
3234         * lib/rint.c: Likewise.
3235         * lib/fma.c: Likewise.
3236         * lib/integer_length.c: Likewise.
3237         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3238         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3239         * tests/test-floor2.c: Likewise.
3240         * tests/test-floorf2.c: Likewise.
3241         * tests/test-ceil2.c: Likewise.
3242         * tests/test-ceilf2.c: Likewise.
3243         * tests/test-trunc2.c: Likewise.
3244         * tests/test-truncf2.c: Likewise.
3245         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3246
3247 2012-02-27  Bruno Haible  <bruno@clisp.org>
3248
3249         Tests for module 'sqrtl-ieee'.
3250         * modules/sqrtl-ieee-tests: New file.
3251         * tests/test-sqrtl-ieee.c: New file.
3252
3253         New module 'sqrtl-ieee'.
3254         * modules/sqrtl-ieee: New file.
3255
3256         Tests for module 'sqrt-ieee'.
3257         * modules/sqrt-ieee-tests: New file.
3258         * tests/test-sqrt-ieee.c: New file.
3259
3260         New module 'sqrt-ieee'.
3261         * modules/sqrt-ieee: New file.
3262
3263         Tests for module 'sqrtf-ieee'.
3264         * modules/sqrtf-ieee-tests: New file.
3265         * tests/test-sqrtf-ieee.c: New file.
3266         * tests/test-sqrt-ieee.h: New file.
3267
3268         New module 'sqrtf-ieee'.
3269         * modules/sqrtf-ieee: New file.
3270
3271 2012-02-27  Bruno Haible  <bruno@clisp.org>
3272
3273         remainderl-ieee: Work around test failure on OSF/1.
3274         * m4/remainderl-ieee.m4: New file.
3275         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3276         present, test whether remainderl works with a zero second argument.
3277         Replace it if not.
3278         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3280         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3281         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3282         (Depends-on): Update conditions.
3283         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3284         (Depends-on): Add remainder-ieee.
3285         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3286         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3287         module.
3288
3289         remainderf-ieee: Work around test failure on OSF/1.
3290         * m4/remainderf-ieee.m4: New file.
3291         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3292         present, test whether remainderf works with a zero second argument.
3293         Replace it if not.
3294         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3296         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3297         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3298         (Depends-on): Update conditions.
3299         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3300         (Depends-on): Add remainder-ieee.
3301         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3302         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3303         module.
3304
3305         remainder-ieee: Work around test failure on OSF/1.
3306         * m4/remainder-ieee.m4: New file.
3307         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3308         present, test whether remainder works with a zero second argument.
3309         Replace it if not.
3310         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3312         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3313         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3314         (Depends-on): Update dependencies.
3315         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3316         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3317         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3318
3319         Tests for module 'remainderl-ieee'.
3320         * modules/remainderl-ieee-tests: New file.
3321         * tests/test-remainderl-ieee.c: New file.
3322
3323         New module 'remainderl-ieee'.
3324         * modules/remainderl-ieee: New file.
3325
3326         Tests for module 'remainder-ieee'.
3327         * modules/remainder-ieee-tests: New file.
3328         * tests/test-remainder-ieee.c: New file.
3329
3330         New module 'remainder-ieee'.
3331         * modules/remainder-ieee: New file.
3332
3333         Tests for module 'remainderf-ieee'.
3334         * modules/remainderf-ieee-tests: New file.
3335         * tests/test-remainderf-ieee.c: New file.
3336         * tests/test-remainder-ieee.h: New file.
3337
3338         New module 'remainderf-ieee'.
3339         * modules/remainderf-ieee: New file.
3340
3341 2012-02-27  Bruno Haible  <bruno@clisp.org>
3342
3343         modff, modfl: Fix configure syntax error.
3344         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3345         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3346
3347 2012-02-27  Bruno Haible  <bruno@clisp.org>
3348
3349         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3350         * m4/fmodl-ieee.m4: New file.
3351         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3352         whether fmodl works with zero arguments. Replace it if not.
3353         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3354         (Depends-on): Add fmod-ieee.
3355         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3356         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3357
3358         fmodf-ieee: Work around test failure on OSF/1.
3359         * m4/fmodf-ieee.m4: New file.
3360         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3361         whether fmodf works with zero arguments. Replace it if not.
3362         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3364         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3365         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3366         (Depends-on): Update dependencies.
3367         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3368         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3369         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3370
3371         fmodf-ieee: Work around test failure on MSVC 9.
3372         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3373         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3374
3375         fmod-ieee: Work around test failures on OSF/1, mingw.
3376         * m4/fmod-ieee.m4: New file.
3377         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3378         whether fmod works with zero arguments. Replace it if not.
3379         * lib/math.in.h (fmod): New declaration.
3380         * lib/fmod.c: New file.
3381         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3383         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3384         * modules/fmod (Files): Add lib/fmod.c.
3385         (Depends-on): Add math, isinf, trunc, fma.
3386         (configure.ac): Arrange to compile lib/fmod.c if needed.
3387         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3388         m4/signbit.m4.
3389         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3390         * tests/test-math-c++.cc: Check the declaration of fmod.
3391         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3392
3393         fmodl-ieee: Fix test failures.
3394         * lib/fmodl.c (fmodl): Treat Inf specially.
3395         * modules/fmodl (Depends-on): Add isinf.
3396
3397         Tests for module 'fmodl-ieee'.
3398         * modules/fmodl-ieee-tests: New file.
3399         * tests/test-fmodl-ieee.c: New file.
3400
3401         New module 'fmodl-ieee'.
3402         * modules/fmodl-ieee: New file.
3403
3404         Tests for module 'fmod-ieee'.
3405         * modules/fmod-ieee-tests: New file.
3406         * tests/test-fmod-ieee.c: New file.
3407
3408         New module 'fmod-ieee'.
3409         * modules/fmod-ieee: New file.
3410
3411         Tests for module 'fmodf-ieee'.
3412         * modules/fmodf-ieee-tests: New file.
3413         * tests/test-fmodf-ieee.c: New file.
3414         * tests/test-fmod-ieee.h: New file.
3415
3416         New module 'fmodf-ieee'.
3417         * modules/fmodf-ieee: New file.
3418
3419 2012-02-27  Bruno Haible  <bruno@clisp.org>
3420
3421         Tests for module 'rintl-ieee'.
3422         * modules/rintl-ieee-tests: New file.
3423         * tests/test-rintl-ieee.c: New file.
3424
3425         New module 'rintl-ieee'.
3426         * modules/rintl-ieee: New file.
3427
3428         Tests for module 'rint-ieee'.
3429         * modules/rint-ieee-tests: New file.
3430         * tests/test-rint-ieee.c: New file.
3431
3432         New module 'rint-ieee'.
3433         * modules/rint-ieee: New file.
3434
3435         Tests for module 'rintf-ieee'.
3436         * modules/rintf-ieee-tests: New file.
3437         * tests/test-rintf-ieee.c: New file.
3438         * tests/test-rint-ieee.h: New file.
3439
3440         New module 'rintf-ieee'.
3441         * modules/rintf-ieee: New file.
3442
3443 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         regex: re_search etc. should return -2 when memory exhausted
3446         This bug was uncovered when testing 'grep'.  Without the fix,
3447         re_search and friends return -1 when memory is exhausted, but -1
3448         means no match, and this causes grep to falsely report no-match
3449         instead of memory-exhaustion.  See
3450         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3451         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3452         trouble; this can occur if re_search_internal ran out of memory.
3453
3454 2012-02-26  Bruno Haible  <bruno@clisp.org>
3455
3456         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3457         * m4/modfl-ieee.m4: New file.
3458         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3459         whether modfl works with Inf. Replace it if not.
3460         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3462         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3463         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3464         (Depends-on): Update dependencies.
3465         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3466         m4/signbit.m4.
3467         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3468         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3469
3470         modfl-ieee: Fix dependencies.
3471         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3472
3473         modfl-ieee: Fix test failures.
3474         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3475         * modules/modfl (Depends-on): Add isfinite, isinf.
3476
3477         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3478         * m4/modff-ieee.m4: New file.
3479         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3480         whether modff works with NaN and Inf. Replace it if not.
3481         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3483         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3484         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3485         (Depends-on): Update dependencies.
3486         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3487         m4/signbit.m4.
3488         (Depends-on): Add modf-ieee.
3489         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3490         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3491
3492         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3493         * m4/modf-ieee.m4: New file.
3494         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3495         whether modf works with NaN and Inf. Replace it if not.
3496         * lib/math.in.h (modf): New declaration.
3497         * lib/modf.c: New file.
3498         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3500         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3501         * modules/modf (Files): Add lib/modf.c.
3502         (Depends-on): Add math, isfinite, trunc, isinf.
3503         (configure.ac): Addrange to compile lib/modf.c if needed.
3504         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3505         m4/signbit.m4.
3506         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3507         * tests/test-math-c++.cc: Check the declaration of modf.
3508         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3509
3510         Tests for module 'modfl-ieee'.
3511         * modules/modfl-ieee-tests: New file.
3512         * tests/test-modfl-ieee.c: New file.
3513
3514         New module 'modfl-ieee'.
3515         * modules/modfl-ieee: New file.
3516
3517         Tests for module 'modf-ieee'.
3518         * modules/modf-ieee-tests: New file.
3519         * tests/test-modf-ieee.c: New file.
3520
3521         New module 'modf-ieee'.
3522         * modules/modf-ieee: New file.
3523
3524         Tests for module 'modff-ieee'.
3525         * modules/modff-ieee-tests: New file.
3526         * tests/test-modff-ieee.c: New file.
3527         * tests/test-modf-ieee.h: New file.
3528
3529         New module 'modff-ieee'.
3530         * modules/modff-ieee: New file.
3531
3532 2012-02-26  Bruno Haible  <bruno@clisp.org>
3533
3534         Tests for module 'fabsl-ieee'.
3535         * modules/fabsl-ieee-tests: New file.
3536         * tests/test-fabsl-ieee.c: New file.
3537
3538         New module 'fabsl-ieee'.
3539         * modules/fabsl-ieee: New file.
3540
3541         Tests for module 'fabs-ieee'.
3542         * modules/fabs-ieee-tests: New file.
3543         * tests/test-fabs-ieee.c: New file.
3544
3545         New module 'fabs-ieee'.
3546         * modules/fabs-ieee: New file.
3547
3548         Tests for module 'fabsf-ieee'.
3549         * modules/fabsf-ieee-tests: New file.
3550         * tests/test-fabsf-ieee.c: New file.
3551         * tests/test-fabs-ieee.h: New file.
3552
3553         New module 'fabsf-ieee'.
3554         * modules/fabsf-ieee: New file.
3555
3556 2012-02-26  Bruno Haible  <bruno@clisp.org>
3557
3558         Tests for module 'fmal-ieee'.
3559         * modules/fmal-ieee-tests: New file.
3560         * tests/test-fmal-ieee.c: New file.
3561
3562         New module 'fmal-ieee'.
3563         * modules/fmal-ieee: New file.
3564
3565         Tests for module 'fma-ieee'.
3566         * modules/fma-ieee-tests: New file.
3567         * tests/test-fma-ieee.c: New file.
3568
3569         New module 'fma-ieee'.
3570         * modules/fma-ieee: New file.
3571
3572         Tests for module 'fmaf-ieee'.
3573         * modules/fmaf-ieee-tests: New file.
3574         * tests/test-fmaf-ieee.c: New file.
3575         * tests/test-fma-ieee.h: New file.
3576
3577         New module 'fmaf-ieee'.
3578         * modules/fmaf-ieee: New file.
3579
3580 2012-02-26  Bruno Haible  <bruno@clisp.org>
3581
3582         Tests for module 'ldexpl-ieee'.
3583         * modules/ldexpl-ieee-tests: New file.
3584         * tests/test-ldexpl-ieee.c: New file.
3585
3586         New module 'ldexpl-ieee'.
3587         * modules/ldexpl-ieee: New file.
3588
3589         Tests for module 'ldexp-ieee'.
3590         * modules/ldexp-ieee-tests: New file.
3591         * tests/test-ldexp-ieee.c: New file.
3592
3593         New module 'ldexp-ieee'.
3594         * modules/ldexp-ieee: New file.
3595
3596         Tests for module 'ldexpf-ieee'.
3597         * modules/ldexpf-ieee-tests: New file.
3598         * tests/test-ldexpf-ieee.c: New file.
3599         * tests/test-ldexp-ieee.h: New file.
3600
3601         New module 'ldexpf-ieee'.
3602         * modules/ldexpf-ieee: New file.
3603
3604 2012-02-26  Bruno Haible  <bruno@clisp.org>
3605
3606         Refactor frexp*-ieee tests.
3607         * tests/test-frexp-ieee.h: New file.
3608         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3609         (main): Just call test_function.
3610         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3611         (main): Just call test_function.
3612         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3613         (main): Just call test_function.
3614         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3615         * modules/frexp-ieee-tests (Files): Likewise.
3616         * modules/frexpl-ieee-tests (Files): Likewise.
3617
3618         Tests for module 'frexpl-ieee'.
3619         * modules/frexpl-ieee-tests: New file.
3620         * tests/test-frexpl-ieee.c: New file.
3621
3622         New module 'frexpl-ieee'.
3623         * modules/frexpl-ieee: New file.
3624
3625         Tests for module 'frexp-ieee'.
3626         * modules/frexp-ieee-tests: New file.
3627         * tests/test-frexp-ieee.c: New file.
3628
3629         New module 'frexp-ieee'.
3630         * modules/frexp-ieee: New file.
3631
3632         Tests for module 'frexpf-ieee'.
3633         * modules/frexpf-ieee-tests: New file.
3634         * tests/test-frexpf-ieee.c: New file.
3635
3636         New module 'frexpf-ieee'.
3637         * modules/frexpf-ieee: New file.
3638
3639 2012-02-26  Bruno Haible  <bruno@clisp.org>
3640
3641         roundl-ieee tests: More tests.
3642         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3643         (main): Add tests for [MX] shaded specification in POSIX.
3644         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3645         (Depends-on): Add isnanl-nolibm.
3646
3647         round-ieee tests: More tests.
3648         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3649         (main): Add tests for [MX] shaded specification in POSIX.
3650         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3651         (Depends-on): Add isnand-nolibm.
3652
3653         roundf-ieee tests: More tests.
3654         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3655         (main): Add tests for [MX] shaded specification in POSIX.
3656         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3657         (Depends-on): Add isnanf-nolibm.
3658
3659         truncl-ieee tests: More tests.
3660         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3661         (main): Add tests for [MX] shaded specification in POSIX.
3662         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3663         (Depends-on): Add isnanl-nolibm.
3664
3665         trunc-ieee tests: More tests.
3666         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3667         (main): Add tests for [MX] shaded specification in POSIX.
3668         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3669         (Depends-on): Add isnand-nolibm.
3670
3671         truncf-ieee tests: More tests.
3672         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3673         (main): Add tests for [MX] shaded specification in POSIX.
3674         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3675         (Depends-on): Add isnanf-nolibm.
3676
3677         ceill-ieee tests: More tests.
3678         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3679         (main): Add tests for [MX] shaded specification in POSIX.
3680         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3681         (Depends-on): Add isnanl-nolibm.
3682
3683         ceil-ieee tests: More tests.
3684         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3685         (main): Add tests for [MX] shaded specification in POSIX.
3686         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3687         (Depends-on): Add isnand-nolibm.
3688
3689         ceilf-ieee tests: More tests.
3690         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3691         (main): Add tests for [MX] shaded specification in POSIX.
3692         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3693         (Depends-on): Add isnanf-nolibm.
3694
3695         floorl-ieee tests: More tests.
3696         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3697         (main): Add tests for [MX] shaded specification in POSIX.
3698         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3699         (Depends-on): Add isnanl-nolibm.
3700
3701         floor-ieee tests: More tests.
3702         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3703         (main): Add tests for [MX] shaded specification in POSIX.
3704         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3705         (Depends-on): Add isnand-nolibm.
3706
3707         floorf-ieee tests: More tests.
3708         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3709         (main): Add tests for [MX] shaded specification in POSIX.
3710         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3711         (Depends-on): Add isnanf-nolibm.
3712
3713 2012-02-26  Bruno Haible  <bruno@clisp.org>
3714
3715         fpieee: More comments.
3716         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3717
3718 2012-02-25  Bruno Haible  <bruno@clisp.org>
3719
3720         Tests for module 'log10l'.
3721         * modules/log10l-tests: New file.
3722         * tests/test-log10l.c: New file.
3723         * tests/test-math-c++.cc: Check the declaration of log10l.
3724
3725         New module 'log10l'.
3726         * lib/math.in.h (log10l): New declaration.
3727         * lib/log10l.c: New file.
3728         * m4/log10l.m4: New file.
3729         * modules/log10l: New file.
3730         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3732         HAVE_DECL_LOG10L.
3733         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3734         HAVE_DECL_LOG10L.
3735         * doc/posix-functions/log10l.texi: Mention the new module.
3736
3737 2012-02-25  Bruno Haible  <bruno@clisp.org>
3738
3739         fmodl, remainder*: Avoid wrong results due to rounding errors.
3740         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3741         expected bounds.
3742         * lib/remainderf.c (remainderf): Likewise.
3743         * lib/remainder.c (remainder): Likewise.
3744         * lib/remainderl.c (remainderl): Likewise.
3745
3746 2012-02-25  Bruno Haible  <bruno@clisp.org>
3747
3748         Tests for module 'remainderl'.
3749         * modules/remainderl-tests: New file.
3750         * tests/test-remainderl.c: New file.
3751         * tests/test-math-c++.cc: Check the declaration of remainderl.
3752
3753         New module 'remainderl'.
3754         * lib/math.in.h (remainderl): New declaration.
3755         * lib/remainderl.c: New file.
3756         * m4/remainderl.m4: New file.
3757         * modules/remainderl: New file.
3758         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3760         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3761         HAVE_REMAINDERL.
3762         * doc/posix-functions/remainderl.texi: Mention the new module.
3763
3764 2012-02-25  Bruno Haible  <bruno@clisp.org>
3765
3766         Tests for module 'remainderf'.
3767         * modules/remainderf-tests: New file.
3768         * tests/test-remainderf.c: New file.
3769         * tests/test-math-c++.cc: Check the declaration of remainderf.
3770
3771         New module 'remainderf'.
3772         * lib/math.in.h (remainderf): New declaration.
3773         * lib/remainderf.c: New file.
3774         * m4/remainderf.m4: New file.
3775         * modules/remainderf: New file.
3776         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3778         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3779         HAVE_REMAINDERF.
3780         * doc/posix-functions/remainderf.texi: Mention the new module.
3781
3782 2012-02-25  Bruno Haible  <bruno@clisp.org>
3783
3784         remainder: Support for MSVC.
3785         * lib/math.in.h (remainder): New declaration.
3786         * lib/remainder.c: New file.
3787         * m4/remainder.m4: New file.
3788         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3789         (Depends-on): Add math, round, fma.
3790         (configure.ac): Use results of gl_FUNC_REMAINDER.
3791         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3793         HAVE_DECL_REMAINDER.
3794         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3795         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3796         * tests/test-math-c++.cc: Check the declaration of remainder.
3797         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3798         problems are fixed.
3799
3800 2012-02-25  Bruno Haible  <bruno@clisp.org>
3801
3802         Tests for module 'fmodl'.
3803         * modules/fmodl-tests: New file.
3804         * tests/test-fmodl.c: New file.
3805         * tests/test-math-c++.cc: Check the declaration of fmodl.
3806
3807         New module 'fmodl'.
3808         * lib/math.in.h (fmodl): New declaration.
3809         * lib/fmodl.c: New file.
3810         * m4/fmodl.m4: New file.
3811         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3813         REPLACE_FMODL.
3814         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3815         REPLACE_FMODL.
3816         * modules/fmodl: New file.
3817         * doc/posix-functions/fmodl.texi: Mention the new module.
3818
3819 2012-02-25  Bruno Haible  <bruno@clisp.org>
3820
3821         Tests for module 'modfl'.
3822         * modules/modfl-tests: New file.
3823         * tests/test-modfl.c: New file.
3824         * tests/test-math-c++.cc: Check the declaration of modfl.
3825
3826         New module 'modfl'.
3827         * lib/math.in.h (modfl): New declaration.
3828         * lib/modfl.c: New file.
3829         * m4/modfl.m4: New file.
3830         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3832         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3833         * modules/modfl: New file.
3834         * doc/posix-functions/modfl.texi: Mention the new module.
3835
3836 2012-02-25  Bruno Haible  <bruno@clisp.org>
3837
3838         Tests for module 'fabsl'.
3839         * modules/fabsl-tests: New file.
3840         * tests/test-fabsl.c: New file.
3841         * tests/test-math-c++.cc: Check the declaration of fabsl.
3842
3843         New module 'fabsl'.
3844         * lib/math.in.h (fabsl): New declaration.
3845         * lib/fabsl.c: New file.
3846         * m4/fabsl.m4: New file.
3847         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3849         REPLACE_FABSL.
3850         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3851         REPLACE_FABSL.
3852         * modules/fabsl: New file.
3853         * doc/posix-functions/fabsl.texi: Mention the new module.
3854
3855 2012-02-25  Bruno Haible  <bruno@clisp.org>
3856
3857         fabs tests: More tests.
3858         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3859         (zero): New variable.
3860         (main): Add tests for signed zero.
3861         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3862
3863         fabsf tests: More tests.
3864         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3865         (zero): New variable.
3866         (main): Add tests for signed zero.
3867         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3868
3869 2012-02-24  Bruno Haible  <bruno@clisp.org>
3870
3871         atanl: Provide function definition on MSVC.
3872         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3873         function pointer.
3874         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3875
3876 2012-02-24  Bruno Haible  <bruno@clisp.org>
3877
3878         acosl: Provide function definition on MSVC.
3879         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3880         function pointer.
3881         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3882
3883 2012-02-24  Bruno Haible  <bruno@clisp.org>
3884
3885         asinl: Provide function definition on MSVC.
3886         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3887         function pointer.
3888         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3889
3890 2012-02-24  Bruno Haible  <bruno@clisp.org>
3891
3892         tanl: Provide function definition on MSVC.
3893         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3894         function pointer.
3895         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3896
3897 2012-02-24  Bruno Haible  <bruno@clisp.org>
3898
3899         cosl: Provide function definition on MSVC.
3900         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3901         function pointer.
3902         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3903
3904 2012-02-24  Bruno Haible  <bruno@clisp.org>
3905
3906         sinl: Provide function definition on MSVC.
3907         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3908         function pointer.
3909         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3910
3911 2012-02-24  Bruno Haible  <bruno@clisp.org>
3912
3913         logl: Provide function definition on MSVC.
3914         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3915         function pointer.
3916         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3917
3918 2012-02-24  Bruno Haible  <bruno@clisp.org>
3919
3920         expl: Provide function definition on MSVC.
3921         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3922         function pointer.
3923         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3924
3925 2012-02-24  Bruno Haible  <bruno@clisp.org>
3926
3927         sqrtl: Provide function definition on MSVC.
3928         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3929         a function pointer.
3930         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3931
3932 2012-02-24  Bruno Haible  <bruno@clisp.org>
3933
3934         ceill: Provide function definition on MSVC.
3935         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3936         used as a function pointer.
3937         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3938
3939 2012-02-24  Bruno Haible  <bruno@clisp.org>
3940
3941         floorl: Provide function definition on MSVC.
3942         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3943         used as a function pointer.
3944         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3945
3946 2012-02-24  Bruno Haible  <bruno@clisp.org>
3947
3948         ceilf: Provide function definition on MSVC.
3949         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3950         used as a function pointer.
3951         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3952
3953 2012-02-24  Bruno Haible  <bruno@clisp.org>
3954
3955         floorf: Provide function definition on MSVC.
3956         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3957         used as a function pointer.
3958         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3959
3960 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3961
3962         stdnoreturn: new module
3963         This implements a replacement for C11's <stdnoreturn.h>.
3964         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3965         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3966         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3967         * tests/test-stdnoreturn.c: New files.
3968
3969 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3970
3971         regex: fix false multibyte matches in some regular expressions
3972         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3973         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3974         * lib/regex_internal.c (re_string_skip_chars):
3975         Fix miscomputation of remain_len that may cause incomplete
3976         multi-byte character and false match.
3977
3978 2012-02-24  Jim Meyering  <meyering@redhat.com>
3979
3980         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3981         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3982         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3983         Remove now-unnecessary str''cmp obfuscation.
3984         Suggested by Akim Demaille.
3985
3986 2012-02-24  Bruno Haible  <bruno@clisp.org>
3987
3988         streq: Rename macro.
3989         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3990         * NEWS: Mention the change.
3991         * lib/mbrtowc.c (mbrtowc): Update.
3992         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3993         * lib/wcwidth.c (wcwidth): Update.
3994         Suggested by Akim Demaille and Jim Meyering.
3995
3996 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3997
3998         regex: fix typo in definition of MIN
3999         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4000         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4001
4002 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4003             Bruno Haible  <bruno@clisp.org>
4004
4005         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4006         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4007         entries into a stack-allocated buffer directly.
4008         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4009
4010 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4011             Bruno Haible  <bruno@clisp.org>
4012
4013         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4014
4015          - There were several instances of this pattern:
4016
4017              for (;;) {
4018                n = acl (f, GETACLCNT, 0, NULL);
4019                [ allocate an array A of size N ]
4020                if (acl (f, GETACL, n, a) == n)
4021                  break;
4022              }
4023
4024            This loop might never terminate if some other process is constantly
4025            manipulating the file's ACL.  The loop should be rewritten to
4026            terminate.
4027
4028          - The acl (... GETACLNT ...) call is merely an optimization; its value
4029            is merely a hint as to how big to make the array.  A better
4030            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4031            and just guess a reasonably-big size, growing the size and trying
4032            again if it's not large enough.  This guarantees termination, and
4033            saves a system call.
4034
4035         * lib/acl-internal.h: Include <limits.h>.
4036         (MIN, SIZE_MAX): New macros.
4037         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4038         a stack-allocated buffer, and use malloc if it does not fit. Don't
4039         use GETACLCNT.
4040         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4041
4042 2012-02-19  Bruno Haible  <bruno@clisp.org>
4043
4044         acl: Fix endless loop on Solaris with vxfs.
4045         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4046         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4047         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4048         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4049         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4050         Reported by Bill Jones in
4051         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4052
4053 2012-02-19  Bruno Haible  <bruno@clisp.org>
4054
4055         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4056         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4057         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4058         that this function returns 0 in some more cases.
4059
4060 2012-02-19  Bruno Haible  <bruno@clisp.org>
4061
4062         acl: Update doc references.
4063         * doc/acl-resources.txt: Update links to Solaris documentation.
4064
4065 2012-02-19  Bruno Haible  <bruno@clisp.org>
4066
4067         Fix test failure in many locales on Solaris 11.
4068         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4069         'tr' arguments.
4070         * tests/test-pipe-filter-ii1.c (main): Likewise.
4071         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4072         expressions in the C locale.
4073         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4074         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4075
4076 2012-02-19  Bruno Haible  <bruno@clisp.org>
4077
4078         gnulib-tool: Improve usage message.
4079         * gnulib-tool (func_usage): Move doc of --help and --version to the
4080         section "Operation modes".
4081
4082 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4083
4084         README-release: make it easier to execute commands
4085         * top/README-release: break commands out on to separate lines.
4086
4087 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4088
4089         GNUmakefile: simplify detection of unconfigured trees
4090         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4091         whether the tree make is being run from is already configured or
4092         not.  Related simplifications.
4093
4094 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4095
4096         * gnulib-tool (func_usage): Document --help and --version.
4097
4098 2012-02-11  Jim Meyering  <meyering@redhat.com>
4099
4100         bootstrap: don't exit 0 upon gnulib-tool failure
4101         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4102         its exit status, not 0.
4103
4104 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4105
4106         README-release: various improvements
4107         * top/README-release: Give a command to push changes for the
4108         release.  Add "distcheck" to list of other pre-release checks.
4109         Fix instance of "make stable" which should be "make TYPE".
4110
4111 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4112
4113         maint: replace FSF snail-mail addresses with URLs
4114         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4115         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4116         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4117         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4118         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4119         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4120         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4121         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4122         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4123         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4124         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4125         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4126         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4127         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4128         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4129         * lib/glthread/thread.c, lib/glthread/thread.h:
4130         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4131         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4132         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4133         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4134         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4135         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4136         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4137         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4138         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4139         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4140         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4141         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4142         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4143         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4144         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4145         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4146         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4147         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4148         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4149         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4150         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4151         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4152         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4153         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4154         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4155         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4156         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4157         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4158         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4159         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4160         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4161         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4162         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4163         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4164         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4165         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4166         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4167         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4168         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4169         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4170         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4171         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4172         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4173         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4174         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4175         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4176         * tests/test-poll.c, tests/test-quotearg-simple.c:
4177         * tests/test-quotearg.c, tests/test-quotearg.h:
4178         * tests/test-round-ieee.c, tests/test-round1.c:
4179         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4180         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4181         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4182         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4183         * tests/test-strerror.c, tests/test-strerror_r.c:
4184         * tests/test-strsignal.c, tests/test-strverscmp.c:
4185         * tests/test-xmemdup0.c:
4186         Replace FSF snail mail addresses with URLs, as per GNU coding
4187         standards.  See glibc bug
4188         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4189
4190 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4191
4192         README-release: capitalize a word and split a line
4193         * top/README-release: Fix punctuation and spacing.
4194
4195 2012-02-08  Akim Demaille  <demaille@gostai.com>
4196
4197         fatal-signal: use C prototypes (with explicit void).
4198         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4199         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4200
4201 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4202
4203         regex: spelling fix
4204         * lib/regexec.c: spelling fix
4205
4206         regex: rely on stdint.h for SIZE_MAX
4207         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4208
4209 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4210
4211         regex: merge glibc changes
4212
4213         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4214         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4215         (init_word_char): Work even if bitset words are not exactly 32 or
4216         64 bits wide.  Don't assume there are no padding bits.
4217         * lib/regex.c [_LIBC]: Do not include <config.h>.
4218         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4219         and -Wtype-limits.
4220         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4221         needless disagreement with glibc.  All uses changed.  Define it to
4222         1 only if _GNU_SOURCE, to match glibc.
4223         (_REG_RM_NAME): Remove; no longer needed, since the names in
4224         question are now all protected by __USE_GNU.
4225         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4226         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4227         * lib/regex_internal.h (MIN): New macro.
4228
4229         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4230         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4231
4232         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4233         * lib/regex_internal.c (re_string_fetch_byte_case):
4234         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4235         is miscompiled, and it turns out it is because of an incorrect
4236         attribute on re_string_fetch_byte_case.  Unlike
4237         re_string_peek_byte_case, this one is really not pure, it modifies
4238         memory (increments pstr->cur_idx), and with the pure attribute GCC
4239         assumed it doesn't and it cached the presumed value of
4240         regexp->cur_idx in a variable across the
4241          for (;; ++i)
4242            {
4243              if (i >= BRACKET_NAME_BUF_SIZE)
4244                return REG_EBRACK;
4245              if (token->type == OP_OPEN_CHAR_CLASS)
4246                ch = re_string_fetch_byte_case (regexp);
4247              else
4248                ch = re_string_fetch_byte (regexp);
4249              if (re_string_eoi(regexp))
4250                return REG_EBRACK;
4251              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4252                break;
4253              elem->opr.name[i] = ch;
4254            }
4255
4256         2011-11-29 Andreas Schwab <schwab@redhat.com>
4257         * lib/regcomp.c (build_equiv_class):
4258         Fix access after end of search string in regex matcher.
4259
4260         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4261         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4262
4263         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4264         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4265
4266         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4267         * lib/regcomp.c (parse_branch, parse_sub_exp):
4268         More regex memory leak fixes and tests.
4269         (parse_sub_exp, parse_bracket_exp):
4270         Fix memory leak for some invalid regular expressions.
4271
4272         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4273         * lib/regex_internal.c, lib/regexec.c:
4274         Fix unnecessary overallocation due to incomplete character.  When
4275         incomplete characters are found at the end of a string the code
4276         ran amok and allocated lots of memory.  Stricter limits are now in
4277         place.
4278
4279         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4280         * lib/regex.h: Update documentation.
4281
4282         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4283         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4284
4285         2010-05-05 Andreas Schwab <schwab@redhat.com>
4286         * lib/regexec.c (find_collation_sequence_value):
4287         Fix lookup of collation sequence value during regexp matching.
4288
4289         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4290         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4291
4292         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4293         * lib/regex.h: Cleanup namespace.
4294
4295         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4296         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4297
4298         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4299         * lib/regex_internal.h: Prevent some declarations and definitions
4300         to be seen when used in tests.
4301
4302         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4303         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4304         __libc_lock_* macros if not _LIBC.
4305         (struct re_dfa_t): Add lock.
4306
4307 2012-02-07  Eric Blake  <eblake@redhat.com>
4308
4309         maint.mk: also prohibit lower-case @var@
4310         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4311         lower case, like @top_srcdir@.
4312
4313 2012-02-04  Eric Blake  <eblake@redhat.com>
4314
4315         canonicalize: avoid uninitialized memory use
4316         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4317         random '/' left in dest.
4318         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4319
4320 2012-02-04  Bruno Haible  <bruno@clisp.org>
4321
4322         isatty: Fix test failure of ptsname_r on native Windows.
4323         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4324         and don't set errno.
4325         (isatty): Test first whether fd is valid. Set errno when returning 0.
4326
4327 2012-02-04  Bruno Haible  <bruno@clisp.org>
4328
4329         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4330         * tests/test-spawn-pipe-main.c: Include progname.h.
4331         (main): Invoke set_program_name.
4332         * modules/spawn-pipe-tests (Depends-on): Add progname.
4333
4334         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4335         * tests/test-nonblocking-socket-main.c: Include progname.h.
4336         (main): Invoke set_program_name.
4337         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4338
4339         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4340         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4341         (main): Invoke set_program_name.
4342         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4343
4344 2012-02-04  Eric Blake  <eblake@redhat.com>
4345
4346         canonicalize-lgpl: fix // handling
4347         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4348
4349         canonicalize: fix // handling
4350         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4351         /// to //, since only // is special.
4352
4353 2012-02-04  Bruno Haible  <bruno@clisp.org>
4354
4355         ioctl: Fix test failure on native Windows.
4356         * lib/ioctl.c: Include msvc-nothrow.h.
4357         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4358
4359 2012-02-04  Bruno Haible  <bruno@clisp.org>
4360
4361         fsync: Avoid test failure on native Windows.
4362         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4363         read-only.
4364
4365 2012-02-04  Bruno Haible  <bruno@clisp.org>
4366
4367         sys_select: Avoid syntax error on OpenBSD 5.0.
4368         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4369         currently being included, just include the system's <sys/select.h>.
4370
4371 2012-02-04  Bruno Haible  <bruno@clisp.org>
4372
4373         sys_select: Avoid syntax error on OpenBSD 5.0.
4374         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4375         <sys/select.h>, not before.
4376         Reported by Jiri B <jirib@devio.us>.
4377
4378 2012-02-04  Bruno Haible  <bruno@clisp.org>
4379
4380         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4381         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4382         global variables.
4383         * tests/test-get-rusage-data.c (main): Likewise.
4384         Reported by Jim Meyering.
4385
4386 2012-02-04  Bruno Haible  <bruno@clisp.org>
4387
4388         stdioext: Fix last commit.
4389         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4390
4391 2012-02-03  Bruno Haible  <bruno@clisp.org>
4392
4393         stdioext: Add tentative support for Plan9.
4394         * lib/stdio-impl.h: Include <errno.h>.
4395         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4396         * lib/freadable.c (freadable): Likewise.
4397         * lib/fwritable.c (fwritable): Likewise.
4398         * lib/fbufmode.c (fbufmode): Likewise.
4399         * lib/freading.c (freading): Likewise.
4400         * lib/fwriting.c (fwriting): Likewise.
4401         * lib/freadptr.c (freadptr): Likewise.
4402         * lib/freadseek.c (freadptrinc): Likewise.
4403         * lib/freadahead.c (freadahead): Likewise.
4404         * lib/fpurge.c (fpurge): Likewise.
4405         * lib/fseeko.c (rpl_fseeko): Likewise.
4406         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4407         Reported by Jens Staal <staal1978@gmail.com>.
4408
4409 2012-02-02  Jim Meyering  <meyering@redhat.com>
4410
4411         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4412         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4413         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4414         not even to try to add the attribute.  Instead, add a pragma to suppress
4415         the suggestion/warning.
4416
4417 2012-01-31  Karl Berry  <karl@gnu.org>
4418
4419         setstate doc: typo.
4420         * doc/posix-functions/setstate.texi (setstate): { not (.
4421
4422 2012-01-31  Bruno Haible  <bruno@clisp.org>
4423
4424         popen: Make more robust on Windows.
4425         * lib/popen.c: On native Windows, use the _popen based code even if
4426         HAVE_POPEN is set.
4427         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4428         environment variable on native Windows.
4429
4430 2012-01-30  Bruno Haible  <bruno@clisp.org>
4431
4432         pclose: Fix typo.
4433         * lib/stdio.in.h (pclose): Fix typo in warning message.
4434
4435 2012-01-30  Bruno Haible  <bruno@clisp.org>
4436
4437         doc about getlogin_r, setstate.
4438         * doc/posix-functions/getlogin_r.texi: List the incompatible
4439         declaration problem under "not fixed by gnulib".
4440         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4441         problem on Solaris 11 and other platforms.
4442
4443 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4444             Bruno Haible  <bruno@clisp.org>
4445
4446         poll tests: Make test more robust.
4447         * tests/test-poll.c: Include macros.h.
4448         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4449         return value of various I/O operations.
4450         * modules/poll-tests (Files): Add tests/macros.h.
4451
4452 2012-01-30  Bruno Haible  <bruno@clisp.org>
4453
4454         sys_stat: Fix support for mingw64 and MSVC.
4455         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4456         header files already do it.
4457         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4458         stat itself.
4459         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4460
4461 2012-01-30  Bruno Haible  <bruno@clisp.org>
4462
4463         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4465         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4466
4467 2012-01-29  Bruno Haible  <bruno@clisp.org>
4468
4469         quotearg: Fix test failure on MacOS X 10.5.
4470         * tests/test-quotearg-simple.c: Include localcharset.h.
4471         (main): If the locale encoding is not ASCII, bypass the tests of
4472         locale_quoting_style and clocale_quoting_style.
4473         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4474
4475 2012-01-29  Jim Meyering  <meyering@redhat.com>
4476
4477         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4478         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4479         detect uses of canonicalize_file_name.
4480
4481 2012-01-28  Bruno Haible  <bruno@clisp.org>
4482
4483         test-framework-sh: Fix test failure with AIX 7.1 diff.
4484         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4485         in column 1, like 'diff -c' does.
4486         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4487         whether 'diff -u' is used. Instead, test whether the output contains
4488         some '@' character.
4489
4490 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4491
4492         strtoimax: eliminate need for stdint.h, inttypes.h checks
4493         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4494         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4495         the prerequisites for a recently-introduced strtoimax test.
4496         I guess this might cause strtoimax to be replaced when not
4497         strictly necessary on older hosts, but this shouldn't introduce
4498         any bugs and it should make Emacs 'configure' faster on typical
4499         modern hosts.  Problem discovered when importing the latest gnulib
4500         to an Emacs test version.
4501         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4502
4503 2012-01-28  Bruno Haible  <bruno@clisp.org>
4504
4505         sys_time: Override 'struct timeval' on some native Windows platforms.
4506         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4507         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4508         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4509         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4510         needs to be overridden.
4511         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4512         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4513         * tests/test-sys_select.c: Check that the tv_sec member has the same
4514         size as a 'time_t'.
4515         * tests/test-sys_time.c: Likewise.
4516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4517         is set, set also REPLACE_GETTIMEOFDAY.
4518         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4519         convert the resulting 'struct timeval' before returning.
4520         * lib/select.c: Include <sys/time.h>.
4521         (select, timeval): Undefine at the right place.
4522         * modules/select (Depends-on): Add sys_time.
4523         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4524         some Windows platforms.
4525         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4526
4527 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4528
4529         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4530         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4531         an integer.
4532         * lib/fcntl.c (dupfd): Likewise.
4533         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4534
4535 2012-01-28  Bruno Haible  <bruno@clisp.org>
4536
4537         fcntl: Avoid compilation error on native Windows.
4538         * modules/fcntl (Depends-on): Add 'close'.
4539
4540 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4541
4542         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4543         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4544         pointer to an integer.
4545         * lib/poll.c (IsConsoleHandle): Likewise.
4546         * lib/isatty.c (IsConsoleHandle): Likewise.
4547
4548 2012-01-28  Jim Meyering  <meyering@redhat.com>
4549
4550         doc: clarify README-release
4551         * top/README-release: Clarify: you should make a point to have
4552         the latest stable versions of build tools in your PATH, and the
4553         reference to buildreq is solely for its list of tool names, not
4554         for its minimal-functional version numbers.
4555         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4556
4557         maint.mk: use more readable (yet functionally equivalent) quoting
4558         It is common to quote a single quote in a single quoted string like
4559         this:  '...'\''...'.  Unless you know the idiom, that looks like
4560         gibberish, so prefer to double-quote the string when possible.
4561         Then you can use a more readable, lone single quote: "...'..."
4562         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4563         "don't" is more readable than the equivalent 'don'\''t'.
4564         (sc_cast_of_x_alloc_return_value): Likewise.
4565         (sc_cast_of_alloca_return_value): Likewise.
4566         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4567         rather than '\'':'\''.
4568
4569 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4570
4571         stdalign: relax _Alignof and tighten _Alignas test
4572         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4573         as it was too strict: alignof must divide offsetof, but it need
4574         not equal offsetof.  Inspired by Joseph S. Myers's comment
4575         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4576         Conversely, tighten the _Alignas test a bit, as the resulting
4577         alignment must be exactly 8.
4578
4579 2012-01-27  Bruno Haible  <bruno@clisp.org>
4580
4581         stdalign: Document the last change.
4582         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4583
4584 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4585
4586         stdalign: check that alignof and offsetof are consistent
4587         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4588         Problem reported for gnulib by Richard W.M. Jones in
4589         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4590
4591 2012-01-27  Jim Meyering  <meyering@redhat.com>
4592
4593         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4594         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4595         convert a sequence with gaps to the minimal containing range.
4596         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4597         * tests/test-update-copyright.sh: Test for this.
4598         The FSF confirmed it is ok to do this, assuming there is at
4599         least one significant change per year in the affected range:
4600         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4601
4602 2012-01-26  Bruno Haible  <bruno@clisp.org>
4603
4604         pipe2: refine doc about thread-safety
4605         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4606         multithread-safety problem.
4607         * doc/glibc-functions/accept4.texi: Likewise.
4608
4609 2012-01-26  Bruno Haible  <bruno@clisp.org>
4610
4611         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4612         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4613         In the test program, include <fcntl.h>, for O_RDONLY.
4614
4615 2012-01-26  Eric Blake  <eblake@redhat.com>
4616
4617         pipe2: document lack of thread-safety in replacement
4618         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4619         issue in replacement.
4620         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4621         Based on a report by Eric Wong.
4622
4623 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4624             Bruno Haible  <bruno@clisp.org>
4625
4626         malloca: Avoid warnings on x86_64 mingw64.
4627         * lib/malloca.c: Include <stdint.h>.
4628         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4629         * modules/malloca (Depends-on): Add stdint.
4630         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4631
4632 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4633
4634         obstack: remove __STDC__ conditionals
4635         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4636         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4637         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4638         m4/include_next.m4 as the only gnulib-maintained places that still
4639         refer to __STDC__.
4640
4641 2012-01-24  Bruno Haible  <bruno@clisp.org>
4642
4643         havelib: Modern quoting.
4644         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4645         the recent change to the GNU coding standards.
4646
4647 2012-01-24  Bruno Haible  <bruno@clisp.org>
4648
4649         stdint: Improve support for Android.
4650         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4651         Reported by Simon Josefsson <simon@josefsson.org>.
4652
4653 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         doc: omit trailing empty lines from INSTALL etc.
4656         * doc/Makefile (INSTALL): Omit trailing empty lines.
4657         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4658         omit trailing empty lines.  This simplifies the build procedure.
4659
4660 2012-01-23  Jim Meyering  <meyering@redhat.com>
4661
4662         tests: avoid spurious warnings about gl_sockets_startup
4663         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4664         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4665         reporting a "statement with no effect".
4666         * tests/test-accept.c (main): Mark as "(void)".
4667         * tests/test-accept4.c (main): Likewise.
4668         * tests/test-bind.c (main): Likewise.
4669         * tests/test-connect.c (main): Likewise.
4670         * tests/test-getpeername.c (main): Likewise.
4671         * tests/test-getsockname.c (main): Likewise.
4672         * tests/test-getsockopt.c (main): Likewise.
4673         * tests/test-listen.c (main): Likewise.
4674         * tests/test-recv.c (main): Likewise.
4675         * tests/test-recvfrom.c (main): Likewise.
4676         * tests/test-send.c (main): Likewise.
4677         * tests/test-sendto.c (main): Likewise.
4678         * tests/test-setsockopt.c (main): Likewise.
4679         * tests/test-shutdown.c (main): Likewise.
4680
4681 2012-01-21  Bruno Haible  <bruno@clisp.org>
4682
4683         locale-fr.m4: Fix for Android.
4684         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4685         failure of the test program on Bionic libc.
4686
4687 2012-01-21  Jim Meyering  <meyering@redhat.com>
4688
4689         bootstrap: fail when bootstrap_post_import_hook fails
4690         Otherwise, it's far too easy to miss diagnostics emitted
4691         between gnulib-tool's output and that of running configure.
4692         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4693
4694 2012-01-17  Jim Meyering  <meyering@redhat.com>
4695
4696         maint: enable sc_trailing_blank
4697         * build-aux/pmccabe.css: Remove trailing blanks.
4698         * doc/acl-cygwin.txt: Likewise.
4699         * doc/gnu-oids.texi: Likewise
4700         * cfg.mk: Enable sc_trailing_blank.
4701         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4702
4703 2012-01-17  Jim Meyering  <meyering@redhat.com>
4704
4705         maint: enable sc_prohibit_openat_without_use
4706         * cfg.mk: Enable sc_prohibit_openat_without_use.
4707         Exempt lib/selinux-at.c.
4708
4709 2012-01-17  Jim Meyering  <meyering@redhat.com>
4710
4711         maint: enable sc_prohibit_cloexec_without_use
4712         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4713         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4714
4715 2012-01-17  Jim Meyering  <meyering@redhat.com>
4716
4717         maint: enable sc_prohibit_intprops_without_use
4718         * cfg.mk: Enable sc_prohibit_intprops_without_use
4719         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4720
4721 2012-01-17  Jim Meyering  <meyering@redhat.com>
4722
4723         maint: enable sc_prohibit_hash_pjw_without_use
4724         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4725         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4726         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4727         following " (".
4728
4729 2012-01-17  Jim Meyering  <meyering@redhat.com>
4730
4731         maint: enable double-word-prohibiting rule
4732         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4733         Exempt three files.
4734
4735 2012-01-17  Jim Meyering  <meyering@redhat.com>
4736
4737         maint: remove empty lines at EOF, but excluding modules/*
4738         Apply syntax rules at home as well as abroad.  Most changes
4739         were induced by running this:
4740           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4741             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4742             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4743         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4744         Exempt modules/* and two binary files.
4745         Also exempt doc/INSTALL*, per request from Bruno Haible.
4746         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4747         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4748         * doc/Copyright/request-assign.future: Likewise.
4749         * doc/Copyright/request-disclaim.changes: Likewise.
4750         * doc/INSTALL: Likewise.
4751         * doc/INSTALL.ISO: Likewise.
4752         * doc/INSTALL.UTF-8: Likewise.
4753         * doc/acl-cygwin.txt: Likewise.
4754         * doc/acl-resources.txt: Likewise.
4755         * doc/fdl-1.2.texi: Likewise.
4756         * doc/fdl-1.3.texi: Likewise.
4757         * doc/fdl.texi: Likewise.
4758         * lib/argp-pin.c: Likewise.
4759         * lib/round.c: Likewise.
4760         * lib/unicase/u16-totitle.c: Likewise.
4761         * lib/unictype/block_test.c: Likewise.
4762         * lib/uninorm/canonical-decomposition.c: Likewise.
4763         * m4/README: Likewise.
4764         * m4/relocatable-lib.m4: Likewise.
4765         * tests/test-isnand-nolibm.c: Likewise.
4766         * tests/test-isnand.c: Likewise.
4767         * tests/uninorm/NormalizationTest.txt: Likewise.
4768
4769 2012-01-17  Jim Meyering  <meyering@redhat.com>
4770
4771         maint: add framework to run syntax-check rules against gnulib sources
4772         * cfg.mk: New file, to disable all currently-failing tests.
4773         We'll enable them one by one, as they are made to pass.
4774         * Makefile (sc_maint): New rule.
4775
4776 2012-01-21  Bruno Haible  <bruno@clisp.org>
4777
4778         stdint: Add support for Android.
4779         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4780         include the system's <stdint.h>.
4781         Reported by Simon Josefsson <simon@josefsson.org>.
4782
4783 2012-01-19  Jim Meyering  <meyering@redhat.com>
4784
4785         bootstrap: add bootstrap_post_import_hook
4786         Bison does still need something like the gnulib_mk_hook whose
4787         invocation I had to remove along with slurp in commit 767ccd40.
4788         Technically, we could get along without it, but doing so would
4789         have required living with a warning and a mandatory post-bootstrap
4790         automake rerun.
4791         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4792         (bootstrap_post_import_hook): New function.
4793         Invoke it after gnulib-tool --import and before autoreconf.
4794
4795 2012-01-18  Jim Meyering  <meyering@redhat.com>
4796
4797         gitlog-to-changelog: don't use "no_"-prefixed variable name
4798         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4799         to enable both --cluster and --no-cluster.  Change variable name,
4800         s/\$no_cluster/$cluster/, and reverse usage to match.
4801
4802         gitlog-to-changelog: use "||", not "or" in expressions
4803         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4804         expressions.
4805
4806 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4807
4808         gitlog-to-changelog: new option --no-cluster
4809         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4810         clustering of adjacent commit messages.
4811
4812 2012-01-17  Jim Meyering  <meyering@redhat.com>
4813
4814         maint: spell file systems with two words, not one
4815         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4816         two words, not one.
4817
4818 2012-01-16  Jim Meyering  <meyering@redhat.com>
4819
4820         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4821         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4822
4823 2012-01-16  Eric Blake  <eblake@redhat.com>
4824
4825         bootstrap: cater to autoconf 2.59
4826         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4827         is not available.
4828
4829         bootstrap: properly check for libtool
4830         * build-aux/bootstrap (libtoolize): Also run libtool when older
4831         usage is detected.
4832
4833 2012-01-15  Bruno Haible  <bruno@clisp.org>
4834
4835         Improve support for MSVC 9.
4836         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4837         clashes on MSVC.
4838         * lib/fcntl.in.h: Likewise.
4839         * lib/stdlib.in.h: Likewise.
4840         * lib/sys_stat.in.h: Likewise.
4841
4842 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4843
4844         gnupload: we hold the master copy of this script now
4845         For motivation and more information, see:
4846         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4847         * build-aux/gnupload: Make it clear in the heading comments that the
4848         master copy of this file is maintained by gnulib.  Since we are at
4849         it, bump its copyright year and ...
4850         ($scriptversion): ... the date in its version.
4851         ($usage): Patches and bug reports should be sent to the gnulib list,
4852         not the automake one.
4853         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4854         anymore.
4855
4856 2012-01-15  Bruno Haible  <bruno@clisp.org>
4857
4858         Fix module 'random'.
4859         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4860         initstate, setstate are declared.
4861
4862 2012-01-14  Bruno Haible  <bruno@clisp.org>
4863
4864         Tests for module 'random'.
4865         * modules/random-tests: New file.
4866         * tests/test-random.c: New file, based on tests/test-random_r.c.
4867
4868         New module 'random'.
4869         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4870         declarations.
4871         * lib/random.c: New file, based on glibc/stdlib/random.c.
4872         * m4/random.m4: New file.
4873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4874         HAVE_RANDOM.
4875         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4876         * modules/random: New file.
4877         * config/srclist.txt: Add an entry for random.c.
4878         * doc/posix-functions/random.texi: Mention the 'random' module.
4879         * doc/posix-functions/initstate.texi: Likewise.
4880         * doc/posix-functions/setstate.texi: Likewise.
4881         * doc/posix-functions/srandom.texi: Likewise.
4882
4883 2012-01-12  Bruno Haible  <bruno@clisp.org>
4884
4885         random_r: Use common idioms.
4886         * lib/random_r.c: Include <stdlib.h> first.
4887
4888         random_r: Override incompatible API on AIX, OSF/1.
4889         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4890         Override the system function if REPLACE_RANDOM_R is 1.
4891         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4892         and OSF/1, set REPLACE_RANDOM_R.
4893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4894         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4895         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4896         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4897         * doc/glibc-functions/random_r.texi: Likewise.
4898         * doc/glibc-functions/setstate_r.texi: Likewise.
4899
4900         random_r: Support for MSVC 9.
4901         * lib/random_r.c: Include stdint.h, not inttypes.h.
4902
4903 2012-01-12  Eric Blake  <eblake@redhat.com>
4904
4905         inet_ntop: guard extra work by IF_LINT
4906         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4907         better code generation when not checking for warnings.
4908         Suggested by Paul Eggert and Jim Meyering.
4909
4910         strptime: fix regression on mingw
4911         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4912         Fix regression.  Reported by Bruno Haible.
4913
4914 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4915             Bruno Haible  <bruno@clisp.org>
4916
4917         copy-file: add error-code-returning variant.
4918         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4919         (qcopy_file_preserving): New declaration.
4920         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4921         copy_file_preserving. Change return type to 'int'. Don't emit an error
4922         message here.
4923         (copy_file_preserving): New function.
4924         * tests/test-copy-file.c: Include <stdlib.h>.
4925         (main): Test qcopy_file_preserving if the environment variable
4926         NO_STDERR_OUTPUT is set.
4927         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4928         with NO_STDERR_OUTPUT
4929         * tests/test-copy-file-2.sh: Likewise.
4930
4931 2012-01-10  Bruno Haible  <bruno@clisp.org>
4932
4933         copy-file: Use 'quote' module consistently.
4934         * lib/copy-file.c (copy_file_preserving): Use quote().
4935
4936         copy-file: Refactor.
4937         * lib/copy-file.c: Include quote.h.
4938         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4939         message here.
4940         * modules/copy-file (Depends-on): Add quote.
4941
4942         acl: Export qcopy_acl.
4943         * lib/acl.h (qcopy_acl): New declaration.
4944         * lib/copy-acl.c (qcopy_acl): Make non-static.
4945
4946         acl: Rename a local variable.
4947         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4948
4949         acl: Align return values of copy_acl and qcopy_acl.
4950         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4951         maybe < -1.
4952
4953 2012-01-11  Eric Blake  <eblake@redhat.com>
4954
4955         strptime: silence gcc warnings
4956         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4957         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4958         Reported by Daniel P. Berrange.
4959
4960         inet_ntop: silence gcc warning
4961         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4962         Reported by Daniel P. Berrange.
4963
4964 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4965
4966         getloadavg test: skip the test on GNU/Linux without /proc mounted
4967         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4968         file.  When /proc is not mounted, it always fails with ENOENT.
4969         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4970         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4971
4972 2012-01-10  Bruno Haible  <bruno@clisp.org>
4973
4974         regex: Avoid link error on MSVC 9.
4975         * modules/regex (Depends-on): Add wctype.
4976
4977 2012-01-10  Bruno Haible  <bruno@clisp.org>
4978
4979         doc: Mention --with-tests option.
4980         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4981         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4982         --with-tests.
4983         Reported by Reuben Thomas.
4984
4985 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4986
4987         users.txt: order package names lexicographically.
4988         * users.txt: Order package names lexicographically.
4989
4990 2012-01-10  Jim Meyering  <meyering@redhat.com>
4991
4992         maint.mk: fix description in comment
4993         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4994
4995         ignore-value: remove deprecated ignore_ptr function
4996         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4997         * NEWS: Note this.
4998
4999 2012-01-09  Jim Meyering  <meyering@redhat.com>
5000
5001         test-init.sh: avoid a subshell
5002         * tests/test-init.sh: Remove protective subshell.
5003         Suggested by Bernhard Voelker.  While a subshell is normally
5004         required to protect against older shells (Solaris, FreeBSD) that
5005         warn about a missing program before performing redirection, the
5006         shell-selection tests performed by init.sh probably exclude any
5007         offending shell.
5008
5009 2012-01-08  Bruno Haible  <bruno@clisp.org>
5010
5011         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5012         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5013         variable.
5014
5015 2012-01-08  Bruno Haible  <bruno@clisp.org>
5016
5017         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5018         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5019         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5020         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5021         macro.
5022         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5023         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5024         * lib/spawn_faction_addopen.c: Add workaround implementation if
5025         HAVE_WORKING_POSIX_SPAWN.
5026         * modules/spawn (Makefile): Substitute
5027         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5028         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5029         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5030         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5031         (Depends-on): Update conditions.
5032         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5033         the Solaris 11 bug.
5034
5035 2012-01-08  Bruno Haible  <bruno@clisp.org>
5036
5037         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5038         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5039         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5040         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5041         macro.
5042         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5043         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5044         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5045         HAVE_WORKING_POSIX_SPAWN.
5046         * modules/spawn (Makefile): Substitute
5047         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5048         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5049         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5050         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5051         (Depends-on): Update conditions.
5052         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5053         the Solaris 11 bug.
5054
5055 2012-01-08  Bruno Haible  <bruno@clisp.org>
5056
5057         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5058         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5060         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5061         HAVE_WORKING_POSIX_SPAWN.
5062         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5063         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5064         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5065         * lib/spawn_faction_addclose.c: Add workaround implementation if
5066         HAVE_WORKING_POSIX_SPAWN.
5067         * modules/spawn (Makefile): Substitute
5068         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5069         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5070         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5071         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5072         (Depends-on): Update conditions.
5073         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5074         the Solaris 11 bug.
5075
5076 2012-01-08  Bruno Haible  <bruno@clisp.org>
5077
5078         doc: Update for Solaris 11 2011-11.
5079         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5080         * m4/printf.m4: Update comments.
5081
5082 2012-01-08  Bruno Haible  <bruno@clisp.org>
5083
5084         mktime: Avoid compilation error on Solaris 11.
5085         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5086
5087 2012-01-08  Bruno Haible  <bruno@clisp.org>
5088
5089         doc: Small fix.
5090         * doc/posix-headers/nl_types.texi: Correct platforms list.
5091
5092 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5093
5094         Add lgpl-3.0 module.
5095         * MODULES.html.sh (Support for building documentation): Add
5096         lgpl-3.0.
5097         * modules/lgpl-3.0: New file.
5098
5099 2012-01-08  Jim Meyering  <meyering@redhat.com>
5100
5101         select.c: indent with spaces, not TABs
5102         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5103
5104 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5105
5106         quotearg: do not use grave accent for left quote
5107         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5108         locale_quoting_style.
5109         (quotearg_buffer_restyled): Fix example.
5110         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5111
5112 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5113
5114         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5115         Most programs do not have translation catalogs for English and much
5116         less separate catalogs for British and American English.  Drop the
5117         suggestion to translators about these two, and provide it
5118         automatically for Unicode locales.  Like most programs, even those
5119         using American English, we use single quotation marks.  This conflicts
5120         with the American typographic convention, but works better when you
5121         cite the entire error message within double quotes.  It also tries not
5122         to clash with established practice and with what non-gnulib programs
5123         will usually do.
5124         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5125         using an UTF-8 or GB-18030 locale.  The list of other locales with
5126         quotes was provided by Bruno Haible.
5127         (quotearg_buffer_restyled): Adjust instructions to translators.
5128         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5129         text, since this would be wrong when using Unicode.
5130         * modules/quotearg: Depend on c-strcaseeq.
5131
5132 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5133
5134         quotearg: fix Wikipedia link
5135         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5136
5137 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5138
5139         Fix for mingw with MSVC9.
5140         * m4/ld-version-script.m4: Check that compiler rejects version
5141         scripts with syntax errors.  Reported by Bruno Haible
5142         <bruno@clisp.org>.
5143
5144 2012-01-06  Bruno Haible  <bruno@clisp.org>
5145
5146         Talk about "native Windows API", not "Woe32".
5147         * lib/accept4.c: Update comments to mention native Windows.
5148         * lib/execute.c: Likewise.
5149         * lib/fatal-signal.c: Likewise.
5150         * lib/localcharset.c: Likewise.
5151         * lib/nanosleep.c: Likewise.
5152         * lib/nl_langinfo.c: Likewise.
5153         * lib/pclose.c: Likewise.
5154         * lib/pipe-filter-gi.c: Likewise.
5155         * lib/pipe-filter-ii.c: Likewise.
5156         * lib/pipe.c: Likewise.
5157         * lib/pipe2.c: Likewise.
5158         * lib/popen.c: Likewise.
5159         * lib/progreloc.c: Likewise.
5160         * lib/relocatable.c: Likewise.
5161         * lib/sigaction.c: Likewise.
5162         * lib/sigprocmask.c: Likewise.
5163         * lib/spawn-pipe.h: Likewise.
5164         * lib/spawn-pipe.c: Likewise.
5165         * lib/spawni.c: Likewise.
5166         * lib/stat-time.h: Likewise.
5167         * lib/w32spawn.h: Likewise.
5168         * tests/test-isatty.c: Likewise.
5169         * lib/config.charset: More comments.
5170         * doc/gnulib-intro.texi: Mention native Windows.
5171         * doc/posix-functions/_Exit_C99.texi: Likewise.
5172         * doc/posix-headers/fcntl.texi: Likewise.
5173
5174 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5175
5176         argp: Avoid crash if translator uses % characters in a translation.
5177         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5178         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5179
5180 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5181
5182         doc: C11 and C++11 are now official
5183         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5184         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5185         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5186         * modules/stdalign:
5187         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5188
5189 2012-01-06  Bruno Haible  <bruno@clisp.org>
5190
5191         uc-is-grapheme-break tests: Tweak.
5192         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5193         message.
5194
5195 2012-01-06  Bruno Haible  <bruno@clisp.org>
5196
5197         test-init.sh: correct the test for diff -u
5198         * tests/test-init.sh: Also redirect stdout to /dev/null.
5199
5200 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5201
5202         Use ', not `, for quoting output.
5203         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5204         (print_changelog_deltas, get_tool_versions, main program):
5205         * build-aux/git-version-gen:
5206         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5207         * build-aux/move-if-change (help):
5208         * build-aux/useless-if-before-free (usage, main program):
5209         * check-module (parse_module_file, usage)
5210         (find_included_lib_files, check_module):
5211         * lib/argmatch.c (main) [TEST]:
5212         * lib/argp-help.c (_help):
5213         * lib/getopt1.c (main) [TEST]:
5214         * lib/git-merge-changelog.c (usage):
5215         * lib/xstrtol-error.c (xstrtol_error):
5216         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5217         * m4/argz.m4 (gl_FUNC_ARGZ):
5218         * m4/bison.m4 (gl_BISON):
5219         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5220         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5221         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5222         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5223         * m4/gc-random.m4 (gl_GC_RANDOM):
5224         * m4/intl.m4 (gt_CHECK_DECL):
5225         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5226         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5227         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5228         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5229         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5230         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5231         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5232         * tests/test-dirname.c (main):
5233         * tests/test-getpass.c (main):
5234         * tests/test-iconvme.c (main):
5235         * tests/test-parse-datetime.c (LOG):
5236         * tests/test-xstrtoimax.sh:
5237         * tests/test-xstrtol.sh:
5238         * tests/test-xstrtoll.sh:
5239         * tests/test-xstrtoumax.sh:
5240         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5241         * top/GNUmakefile (abort-due-to-no-makefile):
5242         Quote 'like this', not `like this', as per the recent change to
5243         the GNU coding standards.
5244
5245 2012-01-05  Bruno Haible  <bruno@clisp.org>
5246
5247         strtoimax: Don't force a replacement on systems where intmax_t is int.
5248         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5249         'intmax_t' is not larger than 'int'.
5250         Reported by Pádraig Brady <P@draigBrady.com>.
5251
5252 2012-01-05  Bruno Haible  <bruno@clisp.org>
5253
5254         doc: Mention NetBSD bugs.
5255         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5256         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5257
5258 2012-01-05  Bruno Haible  <bruno@clisp.org>
5259
5260         strtoumax tests: Enhance tests.
5261         * tests/test-strtoumax.c (main): Add tests for large values.
5262
5263 2012-01-05  Bruno Haible  <bruno@clisp.org>
5264
5265         strtoimax: Work around AIX 5.1 bug.
5266         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5267         definition.
5268         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5269         Set HAVE_STRTOIMAX.
5270         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5271         REPLACE_STRTOIMAX.
5272         * modules/inttypes-incomplete (Makefile.am): Substitute
5273         REPLACE_STRTOIMAX.
5274         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5275         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5276         (Depends-on): Update conditions.
5277         * tests/test-strtoimax.c (main): Add tests for large values.
5278         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5279
5280 2012-01-05  Bruno Haible  <bruno@clisp.org>
5281
5282         inttypes: Modernize.
5283         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5284         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5285         (Makefile.am): Update inttypes.h rule.
5286
5287 2012-01-05  Jim Meyering  <meyering@redhat.com>
5288
5289         init.sh: don't waste a subshell just to redirect stderr
5290         * tests/init.sh: In testing for diff -u and diff -c, use a
5291         stderr-redirecting exec inside `...` rather than a subshell.
5292
5293         test-init.sh: avoid failure on HP-UX 11.00
5294         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5295         resolves to diff -c or cmp.  Reported by Bruno Haible.
5296
5297 2012-01-05  Bruno Haible  <bruno@clisp.org>
5298
5299         Tests for module 'strtoull'.
5300         * modules/strtoull-tests: New file.
5301         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5302
5303 2012-01-05  Bruno Haible  <bruno@clisp.org>
5304
5305         Tests for module 'strtoll'.
5306         * modules/strtoll-tests: New file.
5307         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5308
5309 2012-01-05  Bruno Haible  <bruno@clisp.org>
5310
5311         Tests for module 'strtoul'.
5312         * modules/strtoul-tests: New file.
5313         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5314
5315 2012-01-05  Bruno Haible  <bruno@clisp.org>
5316
5317         Tests for module 'strtol'.
5318         * modules/strtol-tests: New file.
5319         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5320
5321 2012-01-04  Jim Meyering  <meyering@redhat.com>
5322
5323         test-init.sh: accommodate Solaris 5.10's different diff -u output
5324         * tests/test-init.sh: Also exempt @@ lines from the comparison
5325         of diff output, since Solaris 5.10 and GNU diff formats differ.
5326         Reported by Stefano Lattarini.
5327
5328 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5329
5330         test-posixtm: don't assume signed integer wraparound
5331         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5332         after signed integer overflow.  Inspired by (though it may not
5333         fix) Bruno Haible's bug report in
5334         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5335
5336         Spell out "Windows 9x" and "Windows XP".
5337         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5338         "Windows 9x" and "WinXP" with "Windows XP".
5339
5340 2012-01-04  Jim Meyering  <meyering@redhat.com>
5341
5342         test-vc-list-files-cvs.sh: remove obsolete comment
5343         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5344         double exit.  Now that's all encapsulated via skip_ and Exit.
5345
5346 2012-01-04  Bruno Haible  <bruno@clisp.org>
5347
5348         Talk about "native Windows API", not "Win32".
5349         * lib/classpath.c: Update comments to mention native Windows.
5350         * lib/csharpexec.c: Likewise.
5351         * lib/dup2.c: Likewise.
5352         * lib/error.c: Likewise.
5353         * lib/fcntl.c: Likewise.
5354         * lib/filename.h: Likewise.
5355         * lib/findprog.c: Likewise.
5356         * lib/get-rusage-as.c: Likewise.
5357         * lib/get-rusage-data.c: Likewise.
5358         * lib/getpagesize.c: Likewise.
5359         * lib/javaexec.c: Likewise.
5360         * lib/msvc-inval.c: Likewise.
5361         * lib/msvc-nothrow.c: Likewise.
5362         * lib/nanosleep.c: Likewise.
5363         * lib/nonblocking.c: Likewise.
5364         * lib/printf-parse.c: Likewise.
5365         * lib/setlocale.c: Likewise.
5366         * lib/sigaction.c: Likewise.
5367         * lib/strerror_r.c: Likewise.
5368         * lib/tmpdir.c: Likewise.
5369         * lib/vasnprintf.c: Likewise.
5370         * lib/w32spawn.h: Likewise.
5371         * lib/waitpid.c: Likewise.
5372         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5373         * m4/locale-ar.m4: Likewise.
5374         * m4/locale-fr.m4: Likewise.
5375         * m4/locale-ja.m4: Likewise.
5376         * m4/locale-tr.m4: Likewise.
5377         * m4/locale-zh.m4: Likewise.
5378         * m4/printf.m4: Likewise.
5379         * tests/test-cloexec.c: Likewise.
5380         * tests/test-copy-acl.sh: Likewise.
5381         * tests/test-copy-file.sh: Likewise.
5382         * tests/test-file-has-acl.sh: Likewise.
5383         * tests/test-set-mode-acl.sh: Likewise.
5384         * tests/test-dup-safer.c: Likewise.
5385         * tests/test-dup2.c: Likewise.
5386         * tests/test-dup3.c: Likewise.
5387         * tests/test-fcntl.c: Likewise.
5388         * tests/test-nonblocking-pipe.h: Likewise.
5389         * tests/test-nonblocking-socket.h: Likewise.
5390         * tests/test-pipe.c: Likewise.
5391         * tests/test-pipe2.c: Likewise.
5392         * tests/test-spawn-pipe-child.c: Likewise.
5393         * doc/acl-resources.txt: Likewise.
5394         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5395         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5396         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5397         * lib/localcharset.c: Update comments to mention native Windows.
5398         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5399         * lib/localename.c: Likewise.
5400         * lib/progreloc.c: Likewise.
5401         * lib/relocatable.c: Likewise.
5402         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5403         (windows_compute_revents): Renamed from win32_compute_revents.
5404         (windows_compute_revents_socket): Renamed from
5405         win32_compute_revents_socket.
5406         * lib/select.c: Update comments to mention native Windows.
5407         (windows_poll_handle): Renamed from win32_poll_handle.
5408         * m4/threadlib.m4: Update comments to mention native Windows.
5409         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5410         --enable-threads=windows instead of --enable-threads=win32. Set
5411         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5412         * lib/glthread/lock.h: Update comments to mention native Windows.
5413         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5414         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5415         USE_WIN32_THREADS.
5416         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5417         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5418         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5419         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5420         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5421         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5422         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5423         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5424         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5425         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5426         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5427         * tests/test-tls.c: Likewise.
5428         Rationale:
5429         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5430         on both 32-bit and 64-bit Windows systems.
5431         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5432         line of distinction is between "native Windows" on one side and Unix/
5433         POSIX systems on the other side. More details in
5434         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5435         Suggested by Paul Eggert.
5436
5437 2012-01-03  Bruno Haible  <bruno@clisp.org>
5438
5439         isatty: Support for MSVC 9.
5440         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5441         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5442         (_isatty_nothrow): New function.
5443         (isatty): Use it instead of _isatty.
5444         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5445         * lib/poll.c (IsConsoleHandle): Likewise.
5446         * lib/select.c (IsConsoleHandle): Likewise.
5447         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5448         (gl_PREREQ_ISATTY): New macro.
5449         * modules/isatty (Depends-on): Add msvc-inval.
5450         (configure.ac): Invoke gl_PREREQ_ISATTY.
5451
5452 2012-01-03  Jim Meyering  <meyering@redhat.com>
5453
5454         maint.mk: remove temporary transition aid from over 1.5 years ago
5455         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5456         purpose was to aid in the transition (avoiding silent malfunction)
5457         from that old name to the new _sc_search_regexp.  This shim was
5458         added by commit 219c504b.
5459
5460         init.sh: do not try to accommodate compare arguments starting with "-"
5461         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5462         compare arguments that start with "-".  Besides, we do not worry
5463         about this when invoking diff or cmp; why start now with sed?
5464         Using "--" to separate options from argument would trigger sed
5465         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5466         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5467
5468 2012-01-02  Bruno Haible  <bruno@clisp.org>
5469
5470         Enhance tests for module 'isatty'.
5471         * modules/isatty-tests (Depends-on): Add pipe-posix.
5472         * tests/test-isatty.c: Include <fcntl.h>.
5473         (DEV_NULL): New macro.
5474         (main): Test the resut of isatty() also on regular files, pipes, and
5475         /dev/null.
5476
5477         New module 'isatty'.
5478         * lib/unistd.in.h (isatty): New declaration.
5479         * lib/isatty.c: New file, based on an idea of
5480         Bastien Roucariès <roucaries.bastien@gmail.com>.
5481         * m4/isatty.m4: New file.
5482         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5483         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5484         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5485         REPLACE_ISATTY.
5486         * modules/isatty: New file.
5487         * doc/posix-functions/isatty.texi: Mention the new module.
5488         Suggested by Paolo Bonzini.
5489
5490 2012-01-02  Bruno Haible  <bruno@clisp.org>
5491
5492         canonicalize: Tweak 2011-12-29 commit.
5493         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5494         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5495
5496 2012-01-02  Jim Meyering  <meyering@redhat.com>
5497
5498         gitlog-to-changelog: describe input syntax in --help output
5499         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5500
5501         gitlog-to-changelog: fix typo in --help: show backslash before email @
5502         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5503         in sources, but not in actual output.
5504
5505 2011-12-30  Jim Meyering  <meyering@redhat.com>
5506
5507         gitlog-to-changelog: don't malfunction when name contains %-directive
5508         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5509         in a name string cause trouble.  E.g., with a user name of "%s",
5510         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5511
5512 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5513
5514         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5515         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5516         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5517         the "  (tiny change)" notation that is appended to the standard
5518         ChangeLog "date  name  email" header line.
5519
5520 2012-01-01  Jim Meyering  <meyering@redhat.com>
5521
5522         test-framework-sh: init.sh: fix "make dist" failure
5523         When using gnulib-tool's --with-tests option and any module that
5524         depends on test-framework-sh, "make dist" would fail due to the
5525         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5526         in the gltests directory, and not in the gllib/ directory.
5527         One way to work around that is to move the EXTRA_DIST += init.sh
5528         from the primary module to the -tests one:
5529         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5530         * modules/test-framework-sh (Makefile.am): ...not here.
5531         Reported by Tom G. Christensen in
5532         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5533
5534         version-etc: update copyright year reported by --version
5535         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5536
5537 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5538
5539         canonicalize: only stat() if required
5540         * lib/canonicalize.c (canonicalize_filename_mode):
5541         Avoid calling l?stat() when both CAN_MISSING,
5542         and CAN_NOLINKS are set, as we neither need
5543         to resolve symlinks or test component existence.
5544
5545 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5546
5547         doc: cover st_ino issues once; add OpenVMS etc.
5548         * doc/posix-functions/stat.texi (stat):
5549         * doc/posix-functions/lstat.texi (lstat):
5550         * doc/posix-functions/fstatat.texi (fstatat):
5551         * doc/posix-functions/fstat.texi (fstat):
5552         Move general 'struct stat' stuff to sys_stat.texi,
5553         leaving behind a pointer.
5554         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5555         Merge duplicate info about 'struct stat' problems into here.
5556         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5557         and suggest partial workarounds.
5558
5559         same-inode: port to OpenVMS
5560         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5561         three st_ino values.
5562
5563 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5564
5565         canonicalize: fix references to stat() and lstat()
5566         * lib/canonicalize.c (canonicalize_filename_mode):
5567         Ensure references always resolve to a replacement
5568         function if required (even via a macro).
5569
5570 2011-12-30  Jim Meyering  <meyering@redhat.com>
5571
5572         gitlog-to-changelog: remove a little duplication
5573         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5574         rather than twice.
5575
5576 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5577
5578         canonicalize: add support for not resolving symlinks
5579         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5580         indicate we don't want to follow symlinks.  Also
5581         provide CAN_MODE_MASK to aid setting these existing
5582         mutually exclusive values.
5583         * lib/canonicalize.c (canonicalize_filename_mode):
5584         Extract the flags from can_mode parameter, which
5585         are currently just used to select between stat()
5586         and lstat().  Also ensure that mutually exclusive
5587         values are flagged immediately as invalid.
5588         * tests/test-canonicalize.c: Verify symlinks are
5589         not followed, and that invalid flag combinations
5590         are diagnosed.
5591
5592 2011-12-25  Jim Meyering  <meyering@redhat.com>
5593
5594         gitlog-to-changelog: do not clump multi-paragraph entries
5595         Identical header lines (date,name,email+coauthors) are suppressed,
5596         thus putting all entries with those same characteristics under
5597         a single header.  However, when a log entry consists of two or
5598         more paragraphs, it may not be clear where it starts and ends.
5599         This change makes it so that such an entry is always separated
5600         from others by a header line, even when that header would
5601         otherwise be suppressed.
5602         * build-aux/gitlog-to-changelog: Implement the above.
5603         Inspired by a related request from Stefano Lattarini in
5604         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5605
5606 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5607
5608         announce-gen: fix `cmd' typo in diagnostic
5609         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5610         diagnostic: a missing '$' meant that the command was not output.
5611
5612 2011-12-23  Jim Meyering  <meyering@redhat.com>
5613
5614         test-framework-sh: distribute init.sh
5615         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5616         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5617         fail due to the lack of init.sh.
5618
5619         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5620         * modules/atexit-tests: Rather than listing tests/init.sh,
5621         now that there's a module for it, simply depend on that new module.
5622         * modules/closein-tests: Likewise.
5623         * modules/exclude-tests: Likewise.
5624         * modules/getcwd-tests: Likewise.
5625         * modules/perror-tests: Likewise.
5626         * modules/pread-tests: Likewise.
5627         * modules/pwrite-tests: Likewise.
5628         * modules/vc-list-files-tests: Likewise.
5629         * modules/verify-tests: Likewise.
5630         * modules/xalloc-die-tests: Likewise.
5631         * modules/xstrtoimax-tests: Likewise.
5632         * modules/xstrtol-tests: Likewise.
5633         * modules/xstrtoll-tests: Likewise.
5634         * modules/xstrtoumax-tests: Likewise.
5635         * modules/yesno-tests: Likewise.
5636
5637 2011-12-22  Jim Meyering  <meyering@redhat.com>
5638
5639         test-framework-sh: add minimal tests of init.sh's compare function
5640         * modules/test-framework-sh-tests: New file.
5641         * tests/test-init.sh: New file.
5642
5643         test-framework-sh: new module
5644         * modules/test-framework-sh: New file.
5645         * MODULES.html.sh (Support for maintaining and releasing projects):
5646         List it.
5647
5648         init.sh: do not emit simulated diff output to stderr
5649         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5650
5651 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5652
5653         .gitignore: ignore gnulib.dvi and regex.info
5654         * doc/.gitignore:add gnulib.dvi and regex.info
5655
5656 2011-12-22  Jim Meyering  <meyering@redhat.com>
5657
5658         init.sh: correct previous change
5659         * tests/init.sh (compare): My previous change was wrong.
5660         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5661
5662         init.sh: avoid unwarranted test failure when using "set -e"
5663         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5664         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5665         a use like "compare exp out" would get evoke an unconditional failure.
5666
5667 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5668
5669         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5670         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5671         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5672         autoreconf that did not.
5673         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5674         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5675
5676 2011-12-17  Jim Meyering  <meyering@redhat.com>
5677
5678         bootstrap: remove some now-unneeded code
5679         This script arose back when gnulib-tool was young.
5680         Since then, it has seen improvements that render much of this
5681         script unnecessary.  In particular, it can now make symlinks
5682         to the files it uses.  Also, I no longer see as much value in
5683         marking files as read-only via comments.
5684         If you relied on the symlink-creation feature of the preceding
5685         version of this script, you can get most of that functionality
5686         by adding the --symlink option to the definition of
5687         gnulib_tool_option_extras in your bootstrap.conf file.
5688         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5689         Run autopoint and libtoolize *before* gnulib-tool.
5690         After it, run an abbreviated autoreconf, rather than a loop around
5691         all tools.
5692         (slirp, bt_mark_as_generated): Remove functions.
5693
5694 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5695
5696         ftoastr: fix typo
5697         * lib/ftoastr.h: Fix misspelling in comment.
5698
5699 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5700
5701         * top/README-release: fix punctuation.
5702
5703 2011-12-17  Jim Meyering  <meyering@redhat.com>
5704
5705         bootstrap: correct the recent buildreq change
5706         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5707         had no effect.
5708         * build-aux/bootstrap (buildreq): Bracket each search term with
5709         "*...*", so that the shell "case" statement works as intended.
5710         Add comments.
5711
5712 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5713
5714         build: let bootstrap resort to wget when downloading .po files
5715         * build-aux/bootstrap (download_po_files): Fallback to wget when
5716         downloading the .po files via rsync fails.  This is necessary to
5717         bootstrap from behind a strict firewall.
5718
5719 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5720
5721         stdint: don't assume C++11 when compiling with g++
5722         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5724         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5725         work also in C++ before C++11, as that improperly inhibits
5726         generating a substitute stdint.h for that case.
5727
5728 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5729
5730         alloca: protect comment from gnulib-tool
5731         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5732         that gnulib-tool doesn't think it's a license, and munge it to
5733         say "GCC version 3".
5734
5735 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5736
5737         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5738         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5739         $(abs_top_builddir) instead of $(top_builddir).
5740
5741 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5742
5743         strftime-tests: also test nanoseconds
5744         * tests/test-strftime.c (T): Add a test of %N.
5745
5746 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5747
5748         inttypes, stdint: add C++11 support
5749         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5750         when including inttypes.h and stdint.h.  Support this change to
5751         the standard.
5752         * doc/posix-headers/inttypes.texi (inttypes.h):
5753         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5754         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5755         Define if not defined already, for the benefit of pre-C++11 hosts.
5756         Define the standard format macros (e.g., PRId8) always.
5757         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5758         Likewise, if __cpluspus.  Define the standard constant and limit
5759         macros (e.g., INT8_C, INT8_MAX) always.
5760         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5761         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5762         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5763         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5764         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5765         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5766         Likewise.
5767
5768 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5769
5770         nonblocking tests: Fix test failure on Linux/PPC.
5771         Suggested by Prerna Saxena in
5772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5773         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5774         Set to 1100000.
5775
5776 2011-12-12  Jim Meyering  <meyering@redhat.com>
5777
5778         argmatch: don't hard-code `' when listing valid option arguments
5779         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5780         use the quote function to add quotes.  Use fputs rather than
5781         fprintf for the format string with no format directive.
5782
5783 2011-12-07  Eric Blake  <eblake@redhat.com>
5784
5785         bootstrap: detect tools required by gnulib-tool
5786         * build-aux/bootstrap (buildreq): Provide minimum implicit
5787         dependencies.
5788         * DEPENDENCIES: Mention patch as a prereq.
5789
5790 2011-12-04  Bruno Haible  <bruno@clisp.org>
5791
5792         sethostname: Port to Windows platforms.
5793         * lib/sethostname.c: Provide an alternate implementation for Windows
5794         platforms.
5795         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5796         (main): Skip the test if sethostname() fails with EPERM. On Windows
5797         platforms, don't check the result of gethostname().
5798
5799 2011-12-04  Bruno Haible  <bruno@clisp.org>
5800             Jim Meyering  <meyering@redhat.com>
5801
5802         tests: Avoid spurious error message on platforms without mktemp program.
5803         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5804
5805 2011-12-04  Bruno Haible  <bruno@clisp.org>
5806
5807         sethostname: Fix documentation.
5808         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5809         "not fixed" section.
5810
5811 2011-12-03  Bruno Haible  <bruno@clisp.org>
5812
5813         gnulib-tool: Verify that the License field is present and non-empty.
5814         * gnulib-tool (func_get_license_raw): New function, extracted from
5815         func_get_license.
5816         (func_get_license): Use it. Warn if the module is not a test module and
5817         has no license.
5818         Suggested by Jim Meyering.
5819
5820 2011-12-03  Bruno Haible  <bruno@clisp.org>
5821
5822         sethostname tests: Fix link error on mingw.
5823         * tests/test-sethostname1.c: New file, extracted from
5824         tests/test-sethostname.c.
5825         * tests/test-sethostname2.c: New file, extracted from
5826         tests/test-sethostname.c.
5827         * tests/test-sethostname.c: Remove file.
5828         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5829         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5830         (Depends-on): Add gethostname.
5831         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5832         Link the latter with $(GETHOSTNAME_LIB).
5833
5834         sethostname tests: Fix compilation error on mingw.
5835         * tests/test-sethostname.c: Don't include <sys/types.h>.
5836         (geteuid): Use a dummy value without uid_t.
5837         * modules/sethostname-tests (Depends-on): Remove sys_types.
5838
5839         sethostname tests: Avoid a gcc warning.
5840         * tests/test-sethostname.c (main): Remove an unused variable.
5841
5842         Tweak last commit.
5843         * modules/sethostname-tests (Files): Sort by decreasing importance.
5844         (configure.ac): Check for geteuid.
5845         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5846         the test when there's nothing to test. Drop an unnecessary cast.
5847         Improve an error message. Verify that the final sethostname() call
5848         succeeds.
5849
5850 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5851
5852         Add a test suite for the sethostname module.
5853         * modules/sethostname-tests: New file.  A test program
5854         for the sethostname module.
5855         * tests/test-sethostname.c: Likewise.
5856
5857 2011-12-03  Bruno Haible  <bruno@clisp.org>
5858
5859         Tweak last commit.
5860         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5861         Fix preprocessor directives indentation. Fix typos.
5862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5863         * modules/unistd (Makefile): Likewise.
5864
5865 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5866
5867         Integrate the sethostname module into unistd.
5868         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5869         into the unistd.h header.
5870         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5871         preprocessor directives.
5872         * modules/unistd: Setup the Makefile substitutions of the
5873         SETHOSTNAME preprocessor directives.
5874
5875 2011-12-03  Bruno Haible  <bruno@clisp.org>
5876
5877         Tweak last commit.
5878         * lib/sethostname.c: Don't include <string.h>.
5879         (sethostname): No need to copy the argument string to the stack. Don't
5880         call clearerr. Preserve errno when fprintf failed.
5881         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5882         Don't invoke AC_REPLACE_FUNCS.
5883         * modules/sethostname (Link): Remove empty section.
5884         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5885         failure problem.
5886
5887 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5888
5889         New module 'sethostname'.
5890         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5891         for systems that lack it.
5892         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5893         sethostname declaration and function.
5894         * modules/sethostname: New file.  Define the sethostname module.
5895
5896 2011-12-03  Bruno Haible  <bruno@clisp.org>
5897
5898         Tweak last commit.
5899         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5900
5901 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5902
5903         Split the HOST_NAME_MAX detection into a separate m4 macro.
5904         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5905         macro so it can be used by the pending sethostname module.
5906
5907 2011-12-03  Bruno Haible  <bruno@clisp.org>
5908
5909         Fix module descriptions syntax.
5910         * modules/argv-iter (License): Fix syntax.
5911         * modules/di-set (License): Likewise.
5912         * modules/ino-map (License): Likewise.
5913         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5914
5915 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5916
5917         stdalign: port to Clang 3.0
5918         Problem reported by Simon Josefsson in
5919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5920         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5921         which has <stdalign.h> but which does not define alignof.
5922         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5923
5924 2011-12-01  Eric Blake  <eblake@redhat.com>
5925
5926         mktempd: silence dd usage
5927         * build-aux/mktempd (rand_bytes): Silence dd.
5928
5929 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5930
5931         manywarnings: Don't mention gcc version in docstring.
5932         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5933         Jim Meyering <meyering@redhat.com>.
5934
5935 2011-11-30  Jim Meyering  <meyering@redhat.com>
5936
5937         hash: mark a few floating point constants with "f" suffix
5938         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5939         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5940         floating point constants with "f", since they're destined to be
5941         saved/used as "float"s.
5942
5943 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5944
5945         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5946         * tests/test-float.c (test_long_double): Correct and re-enable the
5947         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5948
5949 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5950
5951         Avoid subtracting two pointers that don't point into the same block.
5952         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5953         only pointers into the same memory block are subtracted. We cannot
5954         assume that sizeof (ptrdiff_t) == sizeof (void *).
5955
5956 2011-11-29  Eric Blake  <eblake@redhat.com>
5957
5958         maint.mk: add syntax check for use of compare from init.sh
5959         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5960         moved here from coreutils.
5961
5962         manywarnings: drop -Wunsuffixed-float-constants
5963         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5964         '1.0D', which is the only way to silence this warning for 'double'.
5965
5966 2011-11-29  Jim Meyering  <meyering@redhat.com>
5967
5968         hash: mark compute_bucket_size with the pure attribute
5969         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5970
5971         quotearg, propername: correct pragma guard expression
5972         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5973         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5974
5975 2011-11-28  Jim Meyering  <meyering@redhat.com>
5976
5977         propername: do not mark proper_name with the const attribute
5978         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5979         since it examines data pointed to by its parameter.
5980         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5981         the suggestion from -Wsuggest-attribute=const.
5982
5983         propername: mark one more function as const
5984         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5985
5986 2011-11-27  Jim Meyering  <meyering@redhat.com>
5987
5988         mark functions with const and pure attributes
5989
5990         Mark functions per suggestions from gcc-4.6 when using these options:
5991         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5992         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5993         Follow these guidelines: when possible, apply the attribute to
5994         an extern declaration, not to its definition.  Apply it to the
5995         definition only when the definition is static.
5996         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5997         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5998         * lib/base64.h (isbase64): Likewise.
5999         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6000         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6001         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6002         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6003         (c_tolower, c_toupper): Likewise.
6004         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6005         * lib/chdir-long.c (find_non_slash): Likewise.
6006         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6007         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6008         * lib/file-type.h (file_type): Likewise.
6009         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6010         * lib/filevercmp.c (verrevcmp): Likewise.
6011         * lib/freadahead.h (freadahead): Likewise.
6012         * lib/fts.c (fts_maxarglen): Likewise.
6013         * lib/hash-pjw.h (hash_pjw): Likewise.
6014         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6015         * lib/hash.c (is_prime, next_prime): Likewise.
6016         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6017         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6018         (hash_table_ok, hash_get_first, hash_string): Likewise.
6019         (compute_bucket_size): Likewise.
6020         * lib/i-ring.h (i_ring_empty): Likewise.
6021         * lib/isnan.c (isnanl): Likewise.
6022         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6023         * lib/memcasecmp.h (memcasecmp): Likewise.
6024         * lib/memchr2.h (memchr2): Likewise.
6025         * lib/memcmp2.h (memcmp2): Likewise.
6026         * lib/parse-datetime.y (lookup_zone): Likewise.
6027         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6028         [!WINDOWS_SOCKETS]: Likewise.
6029         * lib/strnlen1.h (strnlen1): Likewise.
6030         * lib/uniwidth.in.h (uc_width): Likewise.
6031         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6032         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6033         (quoting_options_from_style): Add a comment.
6034         * lib/propername.h (proper_name): Add a comment.
6035
6036 2011-11-27  Bruno Haible  <bruno@clisp.org>
6037
6038         Remove unused macros from !_LIBC code in glibc-borrowed files.
6039         * lib/fnmatch.c (STRCOLL): Remove macro.
6040         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6041         * lib/glob.c (__stat, __readdir64): Remove macros.
6042         * lib/tempname.c (__open64, __xstat64): Remove macros.
6043         Suggested by Paul Eggert.
6044
6045 2011-11-27  Bruno Haible  <bruno@clisp.org>
6046
6047         getcwd: Fix link error on MSVC 9.
6048         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6049
6050 2011-11-27  Bruno Haible  <bruno@clisp.org>
6051
6052         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6053         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6054         HAVE_OPENDIR is 0.
6055         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6056         HAVE_CLOSEDIR is 0.
6057         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6058         is 0.
6059         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6060
6061 2011-11-27  Bruno Haible  <bruno@clisp.org>
6062
6063         getcwd: Fix bug from 2011-08-17.
6064         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6065         platforms that need it.
6066         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6067         code of 4 to be a failure, not a success. This ensures that
6068         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6069
6070 2011-11-27  Bruno Haible  <bruno@clisp.org>
6071
6072         binary-io tests: Avoid test failure on mingw when libtool is used.
6073         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6074         Don't verify the size of t-bin-out1.tmp here.
6075         * tests/test-binary-io.sh: Verify it here.
6076         Reported by Simon Josefsson.
6077
6078 2011-11-26  Bruno Haible  <bruno@clisp.org>
6079
6080         Fix conflict between two instantiations of module 'unistd'.
6081         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6082         ${include_guard_prefix} also in the autoconf snippet.
6083         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6085         GNULIB_UNISTD_H_GETOPT.
6086         * modules/getopt-posix (configure.ac): Set the
6087         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6088         * modules/getopt-gnu (configure.ac): Likewise.
6089         * modules/unistd (Makefile.am): Change the substitution value of
6090         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6091         Reported by Simon Josefsson.
6092
6093 2011-11-25  Bruno Haible  <bruno@clisp.org>
6094
6095         pagealign_alloc: Doc and comments.
6096         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6097         module.
6098         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6099
6100 2011-11-25  Jim Meyering  <meyering@redhat.com>
6101
6102         test-update-copyright.sh: avoid false-positive failure
6103         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6104         around false positive failure on Cygwin/Windows.  The latter was
6105         matching erroneously-created files with names like
6106         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6107
6108 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6109
6110         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6111         * m4/valgrind-tests.m4: Check that the parameters that will be
6112         used works, not just a subset of them.  Reported by Bruno Haible
6113         <bruno@clisp.org>.
6114
6115 2011-11-24  Jim Meyering  <meyering@redhat.com>
6116
6117         test-stdalign.c: comment out long double tests
6118         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6119         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6120         error: '_Alignas' specifiers cannot reduce alignment of \
6121         'static_longdouble_alignas'.
6122
6123 2011-11-22  Jim Meyering  <meyering@redhat.com>
6124
6125         init.sh: make "compare /dev/null FILE" output more readable
6126         * tests/init.sh (compare_): Document the preferred order of arguments.
6127         (emit_diff_u_header_): New function.
6128         (compare_dev_null_): Emit a simulated diff, rather than just the
6129         contents of the unexpected file.  Suggestion from Bruno Haible.
6130
6131 2011-11-21  Jim Meyering  <meyering@redhat.com>
6132             Eric Blake  <eblake@redhat.com>
6133
6134         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6135         * tests/init.sh: Make our compare function slightly more portable.
6136         Reported by Bruno Haible in
6137         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6138
6139 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6140
6141         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6142         before using it, in code that ends up in config.h.
6143
6144 2011-11-20  Bruno Haible  <bruno@clisp.org>
6145
6146         getcwd: Work around getcwd bug on AIX 5..7.
6147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6148         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6149         Use a different value for gl_cv_func_getcwd_path_max. Move the
6150         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6151         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6152         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6153         Define HAVE_MINIMALLY_WORKING_GETCWD.
6154         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6155         where it is not even minimally working, that is, on AIX.
6156         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6157         m4/getcwd-path-max.m4.
6158         (main): Update exit code computation.
6159         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6160         getcwd does not handle long file names.
6161
6162 2011-11-20  Bruno Haible  <bruno@clisp.org>
6163
6164         getcwd: Fix bug from 2009-09-10.
6165         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6166         like "no".
6167
6168 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6169
6170         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6171
6172 2011-11-20  Bruno Haible  <bruno@clisp.org>
6173
6174         fma tests: Avoid shadowing local variables.
6175         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6176         expected.
6177
6178 2011-11-20  Bruno Haible  <bruno@clisp.org>
6179
6180         copysignf tests: Fix.
6181         * tests/test-copysignf.c: Fix signature check.
6182
6183 2011-11-20  Bruno Haible  <bruno@clisp.org>
6184
6185         fma: Remove unused code.
6186         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6187         unused macros.
6188
6189 2011-11-20  Bruno Haible  <bruno@clisp.org>
6190
6191         sethostname: Fix doc about AIX.
6192         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6193         sethostname; it has it.
6194
6195         sethostname: Mention more portability problems.
6196         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6197         problem.
6198         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6199
6200 2011-11-19  Bruno Haible  <bruno@clisp.org>
6201
6202         Depend on module fcntl-h when AT_FDCWD is used.
6203         * modules/utimens (Depends-on): Add fcntl-h.
6204         * modules/areadlinkat (Depends-on): Likewise.
6205         * modules/areadlinkat-with-size (Depends-on): Likewise.
6206         * modules/faccessat (Depends-on): Likewise.
6207         * modules/fchmodat (Depends-on): Likewise.
6208         * modules/fchownat (Depends-on): Likewise.
6209         * modules/getcwd (Depends-on): Likewise.
6210         * modules/mkdirat (Depends-on): Likewise.
6211         * modules/mkfifoat (Depends-on): Likewise.
6212         * modules/readlinkat (Depends-on): Likewise.
6213         * modules/symlinkat (Depends-on): Likewise.
6214         * modules/dup2-tests (Depends-on): Likewise.
6215         * modules/fdutimensat-tests (Depends-on): Likewise.
6216         * modules/futimens-tests (Depends-on): Likewise.
6217
6218 2011-11-19  Bruno Haible  <bruno@clisp.org>
6219
6220         euidaccess: Update a comment.
6221         * lib/euidaccess.c: Update comment about platforms with faccessat.
6222
6223 2011-11-19  Bruno Haible  <bruno@clisp.org>
6224
6225         openat: Fix file list.
6226         * modules/openat (Files): Remove lib/at-func.c.
6227
6228 2011-11-19  Bruno Haible  <bruno@clisp.org>
6229
6230         fstatat: Simplify.
6231         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6232         gnulib should define rpl_fstatat, there is a
6233         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6234
6235 2011-11-19  Bruno Haible  <bruno@clisp.org>
6236
6237         Ensure 'inline' can be used in tests/test-utimens-common.h.
6238         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6239         * modules/futimens-tests (configure.ac): Likewise.
6240         * modules/utimens-tests (configure.ac): Likewise.
6241         * modules/utimensat-tests (configure.ac): Likewise.
6242
6243 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6244
6245         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6246         not hash_insert0.
6247         (hash_insert_if_absent): Doc fix.
6248
6249 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6250
6251         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6252
6253 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6254
6255         test-getcwd: disambiguate exit status
6256         * tests/test-getcwd.c (test_long_name): Return 0..7.
6257         (main): Exit with an unambiguous exit status.  The old
6258         code yielded a mysterious mixture of two failure codes.
6259
6260         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6261         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6262         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6263         rpl_fstatat or fstatat.  This should fix the other problem
6264         reported by Kai Habel in
6265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6266         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6268         and I reproduced it on a Solaris 8 host we still have in production.
6269
6270 2011-11-18  Jim Meyering  <meyering@redhat.com>
6271
6272         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6273         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6274         Add a sentence to the comment.
6275         (hash_insert0): New function that simply calls hash_insert_if_absent.
6276         * lib/hash.h (hash_insert_if_absent): Declare it.
6277         (hash_insert0): Add deprecation attribute.
6278         (_GL_ATTRIBUTE_DEPRECATED): Define.
6279         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6280         not hash_insert0.
6281         * NEWS: Mention it, even though it's not really an incompatible change.
6282
6283 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6284
6285         openat: avoid compilation failure due to lack of <errno.h> inclusion
6286         * lib/openat.c: Include <errno.h>.
6287
6288 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6289
6290         * modules/getcwd (Depends-on): Add fdopendir.
6291         This fixes one of the two problems reported by Kai Habel in
6292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6293
6294         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6295         stdalign problem reported by Ian Beckwith in
6296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6297         * modules/crypto/gc-arcfour (Depends-on):
6298         Depend conditionally on crypto/arcfour.
6299         * modules/crypto/gc-arctwo (Depends-on):
6300         Depend conditionally on crypto/arctwo.
6301         * modules/crypto/gc-des (Depends-on):
6302         Depend conditionally on crypto/des.
6303         * modules/crypto/gc-hmac-md5 (Depends-on):
6304         Depend conditionally on crypto/hmac-md5.
6305         * modules/crypto/gc-hmac-sha1 (Depends-on):
6306         Depend conditionally on crypto/hmac-sha1.
6307         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6308         * modules/crypto/gc-md4 (Depends-on):
6309         Depend conditionally on crypto/md4.
6310         * modules/crypto/gc-md5 (Depends-on):
6311         Depend conditionally on crypto/md5.
6312         * modules/crypto/gc-rijndael (Depends-on):
6313         Depend conditionally on crypto/rijndael.
6314         * modules/crypto/gc-sha1 (Depends-on):
6315         Depend conditionally on crypto/sha1.
6316         * modules/crypto/gc-arcfour:
6317         * modules/crypto/gc-arctwo:
6318         * modules/crypto/gc-des:
6319         * modules/crypto/gc-hmac-md5:
6320         * modules/crypto/gc-hmac-sha1:
6321         * modules/crypto/gc-md2:
6322         * modules/crypto/gc-md4:
6323         * modules/crypto/gc-md5:
6324         * modules/crypto/gc-rijndael:
6325         * modules/crypto/gc-sha1:
6326         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6327         now that the conditional dependencies do the work for us.
6328
6329 2011-11-17  Jim Meyering  <meyering@redhat.com>
6330
6331         tests: factor st_ctime-comparison out of two headers
6332         * tests/test-utimens-common.h (ctime_compare): Define.
6333         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6334         * tests/test-lutimens.h (test_lutimens): Likewise.
6335         * tests/test-utimens.h (test_utimens): Likewise.
6336
6337         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6338         Invoke the test program via an init.sh-using wrapper.
6339         * tests/test-getcwd.sh: New file.
6340         * modules/getcwd-tests (Files): Add it.
6341         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6342
6343 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6344
6345         gitlog-to-changelog: support multi-author commits.
6346         The FSF cares about keeping track of all authors of patches to its
6347         projects, but Git doesn't provide obvious support for multi-author
6348         changesets. Consensus seems to be forming around the use of extra
6349         Signed-off-by inspired lines in the log message formatted as
6350         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6351         multi-author commits between version control systems.
6352         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6353         log message and output in standard ChangeLog multi-author format.
6354         Reported by Peter Rosin <peda@lysator.liu.se>
6355
6356 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6357             Bruno Haible  <bruno@clisp.org>
6358
6359         Fix some modules' file list.
6360         * modules/fstatat (Files): Add m4/lstat.m4.
6361         * modules/openat (Files): Likewise.
6362         * modules/unlinkat (Files): Likewise.
6363
6364 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6365
6366         maint.mk: fix tight-scope.mk generation in VPATH builds.
6367         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6368         reference with $(srcdir) so that the file is found correctly even
6369         when running `make syntax-check' in a VPATH build.
6370
6371 2011-11-13  Bruno Haible  <bruno@clisp.org>
6372             Jim Meyering  <meyering@redhat.com>
6373
6374         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6375         * tests/init.sh (compare): Remove "No differences encountered" or
6376         synonymous output from the 'diff' program.
6377
6378 2011-11-13  Bruno Haible  <bruno@clisp.org>
6379
6380         Makefile: Tweak indentation.
6381         * Makefile: Use tab as first character in every line that contains rule
6382         commands.
6383
6384 2011-11-13  Bruno Haible  <bruno@clisp.org>
6385
6386         Syntax check for copyright statements.
6387         * check-copyright: New file.
6388         * Makefile (sc_check_copyright): New rule.
6389
6390 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6391
6392         * build-aux/git-version-gen: Add --prefix to configure the tag
6393         match string.
6394
6395 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6396
6397         * build-aux/git-version-gen: Add --help and --version.
6398
6399 2011-11-12  Jim Meyering  <meyering@redhat.com>
6400
6401         revamp the other test-exclude?.sh scripts to use init.sh, too
6402         * tests/test-exclude1.sh: Use init.sh.
6403         * tests/test-exclude2.sh: Likewise.
6404         * tests/test-exclude3.sh: Likewise.
6405         * tests/test-exclude4.sh: Likewise.
6406         * tests/test-exclude5.sh: Likewise.
6407         * tests/test-exclude6.sh: Likewise.
6408         * tests/test-exclude7.sh: Likewise.
6409         * tests/test-exclude8.sh: Likewise.
6410         * modules/exclude-tests (Files): List init.sh.
6411
6412         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6413         These shell scripts ignored failure of the binary test-exclude,
6414         so making the latter return 77 didn't cause them to be skipped.
6415         * tests/test-exclude5.sh: Exit with test-exclude's error status
6416         when that program fails.  Revamp to use init.sh.
6417         * tests/test-exclude2.sh: Likewise.
6418
6419         test-exclude: fix a typo
6420         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6421
6422 2011-11-11  Bruno Haible  <bruno@clisp.org>
6423
6424         obstack: Fix compilation error on MSVC 9.
6425         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6426
6427 2011-11-11  Jim Meyering  <meyering@redhat.com>
6428
6429         test-exclude: skip tests rather than failing on deficient systems
6430         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6431         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6432         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6433         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6434
6435 2011-11-10  Bruno Haible  <bruno@clisp.org>
6436
6437         ptsname_r test: Avoid gcc warning on glibc systems.
6438         * tests/test-ptsname_r.c (null_ptr): New function.
6439         (test_errors): Use it.
6440
6441 2011-11-10  Bruno Haible  <bruno@clisp.org>
6442
6443         ptsname_r: Avoid compilation error on OSF/1 5.1.
6444         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6446         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6447         function is not declared or incompatibly declared.
6448         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6449         * modules/ptsname_r (Depends-on, configure.ac): Update.
6450         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6451
6452 2011-11-10  Bruno Haible  <bruno@clisp.org>
6453
6454         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6455         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6456         When cross-compiling, guess yes on all platforms except AIX.
6457         Reported by Ludovic Courtès <ludo@gnu.org>.
6458
6459 2011-11-09  Bruno Haible  <bruno@clisp.org>
6460
6461         ptsname_r tests: Fix bugs.
6462         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6463         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6464
6465 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6466
6467         fstatat: work with cross-compilation
6468         Problem reported by Ludovic Courtès in
6469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6470         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6471         "cross-compiling" and assume the bug is present.  Replace
6472         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6473         an inverted sense, to be more conservative about our assumptions.
6474         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6475
6476 2011-11-09  Bruno Haible  <bruno@clisp.org>
6477
6478         Improve MODULES.html output.
6479         * modules/mkfifoat (Description): Use the word "function".
6480         * modules/readlinkat (Description): Likewise.
6481         * modules/symlinkat (Description): Likewise.
6482
6483 2011-11-09  Eric Blake  <eblake@redhat.com>
6484
6485         ptsname_r-tests: new test module
6486         * modules/ptsname_r-tests: New module.
6487         * tests/test-ptsname_r.c: New file.
6488
6489         ptsname_r: new module
6490         * modules/ptsname_r: New module.
6491         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6492         * lib/ptsname.c (__ptsname_r): Split...
6493         * lib/ptsname_r.c: ...into new file.
6494         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6495         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6496         * modules/stdlib (Makefile.am): Substitute witnesses.
6497         * lib/stdlib.in.h (ptsname_r): Declare it.
6498         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6499         * MODULES.html.sh (Misc): Likewise.
6500         * modules/ptsname (Depends-on): Alter dependency.
6501         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6502
6503 2011-11-09  Jim Meyering  <meyering@redhat.com>
6504
6505         announce-gen: be more concise when there's only one URL+tarball
6506         * build-aux/announce-gen (get_tool_versions): When you distribute
6507         only one type of tarball, combine the first two "Here are..."
6508         sections and make the key-checking grammar independent of
6509         how many tarballs there are.
6510
6511 2011-11-09  Eric Blake  <eblake@redhat.com>
6512
6513         openpty: provide a stub on mingw
6514         * lib/pty.in.h (includes): Provide forward declarations.
6515         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6516
6517         raise: fix mingw handling of SIGPIPE
6518         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6519
6520 2011-11-08  Bruno Haible  <bruno@clisp.org>
6521
6522         More conditional dependencies.
6523         * modules/faccessat (Depends-on): Add conditions.
6524         * modules/fchmodat (Depends-on): Likewise.
6525         * modules/fchownat (Depends-on): Likewise.
6526         * modules/fstatat (Depends-on): Likewise.
6527         * modules/mkfifoat (Depends-on): Likewise.
6528         * modules/readlinkat (Depends-on): Likewise.
6529         * modules/symlinkat (Depends-on): Likewise.
6530         * modules/unlinkat (Depends-on): Likewise.
6531         * modules/utimensat (Depends-on): Likewise.
6532         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6533         * modules/linkat (Depends-on): Refine the conditions.
6534         * modules/renameat (Depends-on): Likewise.
6535
6536 2011-11-08  Bruno Haible  <bruno@clisp.org>
6537
6538         faccessat: Move AC_LIBOBJ invocation to module description.
6539         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6540         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6541         invocation from here...
6542         * modules/faccessat (configure.ac): ... to here. Invoke
6543         gl_PREREQ_FACCESSAT.
6544
6545 2011-11-08  Bruno Haible  <bruno@clisp.org>
6546
6547         faccessat: Simplify autoconf macro.
6548         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6549         gl_FUNC_EUIDACCESS.
6550
6551 2011-11-08  Bruno Haible  <bruno@clisp.org>
6552
6553         renameat: Fix dependencies.
6554         * modules/renameat (Depends-on): Add stdbool.
6555
6556 2011-11-08  Bruno Haible  <bruno@clisp.org>
6557
6558         mkfifoat: Fix module description.
6559         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6560         not gl_UNISTD_MODULE_INDICATOR.
6561
6562 2011-11-08  Bruno Haible  <bruno@clisp.org>
6563
6564         fstatat: Remove unused dependency.
6565         * modules/fstatat (Depends-on): Remove fstat.
6566
6567 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6568
6569         GNUmakefile: behave when Makefile is missing.
6570         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6571
6572 2011-11-08  Bruno Haible  <bruno@clisp.org>
6573
6574         openat: Conditionalize dependencies.
6575         * lib/openat.c: Reduce the scope of some #includes.
6576         * modules/openat (Depends-on): Add conditions.
6577
6578 2011-11-07  Jim Meyering  <meyering@redhat.com>
6579
6580         maint.mk: extract GPG key ID without using a temporary file
6581         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6582         without using a temporary file.  Based on a suggestion from Werner Koch
6583         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6584
6585 2011-11-07  Eric Blake  <eblake@redhat.com>
6586
6587         grantpt: fix typo
6588         * lib/stdlib.in.h (grantpt): Check correct function.
6589
6590         maint.mk: silence new syntax check
6591         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6592
6593 2011-11-06  Bruno Haible  <bruno@clisp.org>
6594
6595         Doc about floating-point and math API.
6596         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6597         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6598
6599 2011-11-06  Bruno Haible  <bruno@clisp.org>
6600
6601         stdalign tests: Skip the test when compiled by Sun C.
6602         * tests/test-stdalign.c (main): Skip the test on Sun C.
6603
6604 2011-11-06  Bruno Haible  <bruno@clisp.org>
6605
6606         ansi-c++-opt: Complete the 2011-06-05 change.
6607         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6608         does not support namespaces, set the variable to "no", not to ":".
6609
6610 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6611
6612         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6613
6614 2011-11-06  Bruno Haible  <bruno@clisp.org>
6615
6616         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6617         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6618         (minus_zerol) [HP-UX]: New macro.
6619         (unary_minus) [HP-UX]: New function.
6620         (copysignl) [HP-UX]: Use unary_minus function.
6621
6622 2011-11-06  Bruno Haible  <bruno@clisp.org>
6623
6624         ldexp, ldexpf, ldexpl: Enhance tests.
6625         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6626         and tests/test-ldexpl.c.
6627         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6628         LDEXP, MIN_EXP, MAX_EXP): New macros.
6629         Include test-ldexp.h.
6630         (main): Just call test_function.
6631         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6632         infinity.h, nan.h.
6633         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6634         MAX_EXP): New macros.
6635         Include test-ldexp.h.
6636         (x, y): Remove variables.
6637         (main): Just call test_function.
6638         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6639         infinity.h, nan.h.
6640         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6641         MAX_EXP): New macros.
6642         Include test-ldexp.h.
6643         (x, y): Remove variables.
6644         (main): Just call test_function.
6645         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6646         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6647         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6648         (Depends-on): Add isnand-nolibm, signbit, float.
6649         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6650         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6651         (Depends-on): Add isnanf-nolibm, signbit, float.
6652
6653 2011-11-06  Bruno Haible  <bruno@clisp.org>
6654
6655         math tests: Cosmetics.
6656         * tests/test-math-c++.cc: Reorder declarations.
6657
6658 2011-11-05  Bruno Haible  <bruno@clisp.org>
6659
6660         fma*: Simplify test.
6661         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6662         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6663
6664         Tests for module 'fmal'.
6665         * modules/fmal-tests: New file.
6666         * tests/test-fmal1.c: New file.
6667         * tests/test-fmal2.c: New file.
6668
6669         New module 'fmal'.
6670         * lib/math.in.h (fmal): New declaration.
6671         * lib/fmal.c: New file.
6672         * m4/fmal.m4: New file.
6673         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6675         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6676         REPLACE_FMAL.
6677         * modules/fmal: New file.
6678         * doc/posix-functions/fmal.texi: Mention the new module and the various
6679         bugs.
6680
6681         Tests for module 'fmaf'.
6682         * modules/fmaf-tests: New file.
6683         * tests/test-fmaf1.c: New file.
6684         * tests/test-fmaf2.c: New file.
6685
6686         New module 'fmaf'.
6687         * lib/math.in.h (fmaf): New declaration.
6688         * lib/fmaf.c: New file.
6689         * m4/fmaf.m4: New file.
6690         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6692         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6693         REPLACE_FMAF.
6694         * modules/fmaf: New file.
6695         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6696         bugs.
6697
6698         Tests for module 'fma'.
6699         * modules/fma-tests: New file.
6700         * tests/test-fma1.c: New file.
6701         * tests/test-fma1.h: New file.
6702         * tests/test-fma2.c: New file.
6703         * tests/test-fma2.h: New file.
6704
6705         New module 'fma'.
6706         * lib/math.in.h (fma): New declaration.
6707         * lib/fma.c: New file.
6708         * m4/fma.m4: New file.
6709         * m4/fegetround.m4: New file.
6710         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6712         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6713         REPLACE_FMA.
6714         * modules/fma: New file.
6715         * doc/posix-functions/fma.texi: Mention the new module and the various
6716         bugs.
6717
6718         Extend gl_MATHFUNC.
6719         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6720         Support 'void' as argument type.
6721         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6722
6723 2011-11-05  Jim Meyering  <meyering@redhat.com>
6724
6725         maint.mk: also prohibit inclusion of dirent.h without use
6726         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6727
6728 2011-11-05  Bruno Haible  <bruno@clisp.org>
6729
6730         ldexpl tests: Avoid test failure on MSVC 9.
6731         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6732         value. Needed in order to enforce the conversion from a value greater
6733         than LDBL_MAX to Infinity.
6734
6735 2011-11-05  Bruno Haible  <bruno@clisp.org>
6736
6737         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6738         * modules/at-internal: New file, extracted from modules/openat.
6739         * modules/openat-h: New file.
6740         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6741         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6742         * modules/openat (Description): Add reference to POSIX function.
6743         (Files): Remove lib/openat.h, lib/openat-proc.c.
6744         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6745         intprops, unistd.
6746         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6747         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6748         gl_FCNTL_MODULE_INDICATOR.
6749         (Include): Remove unistd.h, openat.h.
6750         * modules/areadlinkat (Files): Add lib/at-func.c.
6751         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6752         openat-die, openat-h, save-cwd.
6753         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6754         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6755         openat-die, openat-h, save-cwd, unistd.
6756         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6757         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6758         openat-h, save-cwd. Remove fcntl-h, openat.
6759         * modules/fchmodat (Files): Remove lib/openat.h.
6760         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6761         openat, stdbool, unistd.
6762         * modules/fchownat (Files): Remove lib/openat.h.
6763         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6764         openat, stdbool, sys_stat.
6765         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6766         lib/openat-proc.c.
6767         (Depends-on): Add at-internal.
6768         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6769         * modules/fstatat (Files): Remove lib/openat.h.
6770         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6771         stdbool, unistd.
6772         * modules/fts (Depends-on): Add openat-h.
6773         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6774         openat.
6775         * modules/mkdirat (Files): Remove lib/openat.h.
6776         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6777         openat, stdbool, sys_stat.
6778         * modules/mkfifoat (Files): Add lib/at-func.c.
6779         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6780         openat-h, save-cwd. Remove fcntl-h, openat.
6781         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6782         * modules/readlinkat (Files): Add lib/at-func.c.
6783         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6784         openat-h, save-cwd. Remove fcntl-h, openat.
6785         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6786         openat.
6787         * modules/selinux-at (Files): Add lib/at-func.c.
6788         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6789         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6790         * modules/symlinkat (Files): Add lib/at-func.c.
6791         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6792         openat-h, save-cwd. Remove fcntl-h, openat.
6793         * modules/unlinkat (Files): Remove lib/openat.h.
6794         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6795         stdbool.
6796         * modules/utimensat (Files): Add lib/at-func.c.
6797         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6798         openat-die, openat-h, save-cwd.
6799         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6800         * modules/fdutimensat-tests (Depends-on): Add openat.
6801         * modules/fstatat-tests (Depends-on): Add openat-h.
6802         * modules/readlinkat-tests (Depends-on): Add openat.
6803         * modules/symlinkat-tests (Depends-on): Add openat.
6804
6805 2011-11-05  Bruno Haible  <bruno@clisp.org>
6806
6807         openat: Include <stdbool.h>.
6808         * lib/openat.c: Include <stdbool.h>.
6809
6810 2011-11-04  Bruno Haible  <bruno@clisp.org>
6811
6812         fchownat, renameat, unlinkat: Fix dependencies.
6813         * modules/fchownat (Depends-on): Add fstatat.
6814         * modules/renameat (Depends-on): Likewise.
6815         * modules/unlinkat (Depends-on): Likewise.
6816
6817 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6818
6819         openat: remove direct dependency on dirent
6820         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6821         and hasn't been needed ever since fdopendir was split into its own
6822         module on 2009-08-31.
6823         * modules/openat (Depends-on): Remove dirent.
6824
6825 2011-11-04  Bruno Haible  <bruno@clisp.org>
6826
6827         renameat: Optimize code size.
6828         * modules/renameat (configure.ac): Don't compile at-func2.c if
6829         REPLACE_RENAMEAT is 1.
6830
6831 2011-11-04  Bruno Haible  <bruno@clisp.org>
6832
6833         openat tests: Fix file list.
6834         * modules/openat-tests (Files): Add tests/test-open.h.
6835
6836 2011-11-04  Bruno Haible  <bruno@clisp.org>
6837
6838         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6839         * modules/fchmodat (Depends-on): Add openat-die.
6840         * modules/fchownat (Depends-on): Likewise.
6841         * modules/linkat (Depends-on): Likewise.
6842         * modules/renameat (Depends-on): Likewise.
6843         * modules/openat (Depends-on): Add dirent.
6844
6845 2011-11-04  Jim Meyering  <meyering@redhat.com>
6846
6847         at-func*.c: fix comments
6848         * lib/at-func2.c: Correct/improve first-line comment.
6849         * lib/at-func.c: Correct grammar in first-line comment.
6850
6851 2011-11-04  Bruno Haible  <bruno@clisp.org>
6852
6853         New module 'mkdirat', split off from module 'openat'.
6854         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6855         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6856         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6857         * modules/mkdirat: New file, extracted from modules/openat.
6858         * modules/openat (Files): Remove lib/mkdirat.c.
6859         (Depends-on): Remove mkdir.
6860         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6861         (Include): Remove <sys/stat.h>.
6862         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6863         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6864         tests/test-mkdir.h.
6865         (Depends-on): Remove ignore-value.
6866         (Makefile.am): Remove rules for test-mkdirat.
6867         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6868         of module 'openat'.
6869         * NEWS: Mention the change.
6870
6871 2011-11-04  Bruno Haible  <bruno@clisp.org>
6872
6873         closedir: Avoid warning on mingw.
6874         * lib/closedir.c: Include <unistd.h>.
6875
6876 2011-11-04  Bruno Haible  <bruno@clisp.org>
6877
6878         New module 'fstatat', split off from module 'openat'.
6879         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6880         defined.
6881         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6882         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6883         gl_FUNC_FSTATAT.
6884         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6885         * modules/fstatat: New file, extracted from modules/openat.
6886         * modules/openat (Files): Remove lib/fstatat.c.
6887         (Depends-on): Remove lstat.
6888         (configure.ac): Remove AC_LIBOBJ of fstatat.
6889         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6890         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6891         tests/test-lstat.h, tests/test-stat.h.
6892         (Depends-on): Remove getcwd-lgpl.
6893         (Makefile.am): Remove rules for test-fstatat.
6894         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6895         of module 'openat'.
6896         * NEWS: Mention the change.
6897         * modules/getcwd (Depends-on): Add fstatat.
6898         * modules/linkat (Depends-on): Likewise.
6899         * modules/mkfifoat-tests (Depends-on): Likewise.
6900         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6901
6902 2011-11-03  Bruno Haible  <bruno@clisp.org>
6903
6904         New module 'unlinkat', split off from module 'openat'.
6905         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6906         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6907         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6908         * modules/unlinkat: New file, extracted from modules/openat. Correct
6909         the dependency conditions.
6910         * modules/openat (Files): Remove lib/unlinkat.c.
6911         (Depends-on): Remove rmdir, unlink.
6912         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6913         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6914         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6915         tests/test-rmdir.h, tests/test-unlink.h.
6916         (Depends-on): Remove unlinkdir.
6917         (Makefile.am): Remove rules for test-unlinkat.
6918         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6919         of module 'openat'.
6920         * NEWS: Mention the change.
6921         * modules/linkat-tests (Depends-on): Add unlinkat.
6922         * modules/mkfifoat-tests (Depends-on): Likewise.
6923         * modules/readlinkat-tests (Depends-on): Likewise.
6924
6925 2011-11-02  Bruno Haible  <bruno@clisp.org>
6926
6927         New module 'fchmodat', split off from module 'openat'.
6928         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6929         defined.
6930         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6931         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6932         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6933         * modules/fchmodat: New file, extracted from modules/openat.
6934         * modules/openat (Files): Remove lib/fchmodat.c.
6935         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6936         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6937         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6938         (Makefile.am): Remove rules for test-fchmodat.
6939         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6940         of module 'openat'.
6941         * NEWS: Mention the change.
6942
6943 2011-11-02  Jim Meyering  <meyering@redhat.com>
6944
6945         putenv: indent #definition of "environ" to placate cppi
6946         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6947
6948         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6949         Git logs are often treated as immutable, because editing them
6950         changes the SHA1 checksums of all descendants.  Thus, errors in
6951         git logs tend to stay there forever.  However, when we generate
6952         a ChangeLog file -- typically for distribution -- from that git log,
6953         we can actually make corrections in the generated file.  The key
6954         lies in recording in machine-readable/applicable form the desired
6955         corrections.  See --help for description and an example.
6956         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6957         (usage): Describe it; alphabetize option descriptions.
6958         (main): Honor the new option, carefully.
6959
6960 2011-11-01  Jim Meyering  <meyering@redhat.com>
6961
6962         gitlog-to-changelog: avoid an infloop
6963         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6964         that ends up being empty.
6965
6966 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6967
6968         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6969         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6970         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6971         contains (possibly-quoted) backslashes.  This should avoid
6972         all-too-common shell bugs if COMPLICATED contains backslashes in
6973         the "wrong" places.  Reported by David Evans in
6974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6975         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6976         because we want ASCII ranges.  Is there some reason we don't use
6977         the C locale everywhere in this script?
6978         (func_module, top level): Avoid unwanted pathname expansion when
6979         $repo_url_prefix or $repo_url_suffix_repl contain shell
6980         metacharacters like '?' and '*'.
6981
6982 2011-11-01  Bruno Haible  <bruno@clisp.org>
6983
6984         fchownat: Improve description.
6985         * modules/fchownat (Description): Add link to function.
6986
6987 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6988
6989         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6990         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6992         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6993
6994 2011-11-01  Bruno Haible  <bruno@clisp.org>
6995
6996         alignof: Avoid collision with stdalign module.
6997         * lib/alignof.h (alignof): Remove macro.
6998         * NEWS: Mention the change.
6999         Reported by Paul Eggert.
7000
7001 2011-11-01  Bruno Haible  <bruno@clisp.org>
7002
7003         New module 'fchownat', split off from module 'openat'.
7004         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7005         defined.
7006         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7007         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7008         invoke gl_FUNC_FCHOWNAT.
7009         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7010         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7011         * modules/fchownat: New file, extracted from modules/openat.
7012         * modules/openat (Files): Remove lib/fchownat.c.
7013         (Depends-on): Remove lchown.
7014         (configure.ac): Remove AC_LIBOBJ of fchownat.
7015         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7016         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7017         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7018         (Depends-on): Remove mgetgroups, usleep, stat-time.
7019         (configure.ac): Remove test for getegid.
7020         (Makefile.am): Remove rules for test-fchownat.
7021         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7022         of module 'openat'.
7023         * NEWS: Mention the change.
7024
7025 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7026
7027         stdalign: port better to MSVC and to Sun C 5.11
7028         This fixes some of the problems reported by Bruno Haible in
7029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7030         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7031         shortcomings of MSVC and of Sun C 5.11.
7032         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7033         around __declspec arg.
7034         * modules/stdalign-tests (Files): Add tests/macros.h.
7035         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7036         Include macros.h, for ASSERT.
7037         (DECLARE_ALIGNED): Remove.
7038         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7039         to catch bug), and to 1 if not (simplifies the rest of the code).
7040         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7041         (CHECK_AUTO): Remove.
7042         (CHECK_ALIGNED): Check only the alignment of the static vars,
7043         since auto var alignment isn't supported by Sun C 5.11.
7044         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7045         ASSERT failures are easier to diagnose.
7046
7047 2011-10-31  Bruno Haible  <bruno@clisp.org>
7048
7049         doc about some IRIX 5.3 problems.
7050         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7051         on IRIX 5.3.
7052         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7053         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7054         5.3.
7055         * doc/posix-functions/grantpt.texi: Likewise.
7056         * doc/posix-functions/unlockpt.texi: Likewise.
7057         * doc/posix-functions/lgamma.texi: Likewise.
7058         * doc/posix-functions/nextafter.texi: Likewise.
7059         * doc/posix-functions/remainder.texi: Likewise.
7060         * doc/posix-functions/select.texi: Mention misplaced declaration on
7061         IRIX 5.3.
7062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7063
7064 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7065
7066         gitlog-to-changelog: fix git-log invocation.
7067         git-log mishandles date strings before 1970-01-01 UTC, and there is
7068         no use to specify --since=1970-01-01 by default anyway.
7069         * build-aux/gitlog-to-changelog: By default, when no --since option
7070         was given, do not specify explicit --since option to git-log.
7071
7072 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7073
7074         gitlog-to-changelog: new option --append-dot.
7075         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7076         first non-blank line of each commit message terminated with a dot.
7077
7078 2011-10-30  Bruno Haible  <bruno@clisp.org>
7079
7080         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7081         * lib/ffsl.h: Include <config.h>.
7082         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7083
7084 2011-10-30  Jim Meyering  <meyering@redhat.com>
7085
7086         GNUmakefile: reenable "make syntax-check" for most projects
7087         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7088         build-aux variable", "syntax-check" would do nothing but succeed with
7089         the "No version control files detected..." diagnostic (unless you
7090         happened to override _build-aux via cfg.mk).
7091         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7092         to precede inclusion of maint.mk.  Otherwise, these variables would
7093         be used undefined in any project that does not override the default.
7094
7095 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7096
7097         gitlog-to-changelog: treat a message with only blank lines as empty.
7098         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7099         trailing blank lines before the code that issues a warning about an
7100         empty commit message.
7101
7102 2011-10-30  Jim Meyering  <meyering@redhat.com>
7103
7104         test-parse-datetime.c: avoid new DST-related false positive test failure
7105         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7106         based on the time/date we'll convert, not the current time.
7107         Otherwise, the moment we cross a DST boundary like today's in
7108         Europe, (CEST to CET), that offset ends up being one hour off.
7109
7110 2011-10-27  Bruno Haible  <bruno@clisp.org>
7111
7112         fstat: Tweak documentation.
7113         * modules/fstat (Description): More precise description.
7114
7115 2011-10-27  Bruno Haible  <bruno@clisp.org>
7116
7117         Update documentation regarding 'largefile' module.
7118         * doc/posix-functions/fstat.texi: Tweak wording.
7119         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7120         problems with huge directories and/or small ino_t types.
7121         * doc/posix-functions/readdir.texi: Likewise.
7122         * doc/posix-functions/rewinddir.texi: Likewise.
7123
7124 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7125
7126         maint.mk: don't maintain a second build-aux variable.
7127         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7128         depends on GNUmakefile, which already maintains a cfg.mk
7129         overridable $(_build-aux) for projects with a non-standard
7130         build-aux directory location, although without the $(srcdir)
7131         prefix.  Use that variable consistently instead of introducing a
7132         second one.  Adjust all call sites.
7133
7134 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7135
7136         Add stdalign module and use it in other modules.
7137         This is based on a previous proposal by Bruno Haible
7138         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7139
7140         stdalign: new module
7141         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7142         * modules/stdalign: New files.
7143         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7144         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7145
7146         stdalign-tests: new module
7147         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7148
7149         argp: use stdalign
7150         * lib/argp-parse.c: Include <stdalign.h>.
7151         (alignof): Remove.
7152         * modules/argp (Depends-on): Add stdalign.
7153
7154         crypto libraries: use stdalign
7155         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7156         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7157         Do not include <stdlib.h> twice, in md4.c.
7158         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7159         because we are accessing a pointer's bit-pattern, not a size.
7160         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7161         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7162         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7163         * modules/crypto/sha512: Likewise.
7164
7165         sys_socket: use stdalign, not alignof
7166         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7167         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7168
7169 2011-10-27  Bruno Haible  <bruno@clisp.org>
7170
7171         raise test: Avoid a test failure on Linux/MIPS.
7172         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7173         because 99 is a valid signal on Linux/MIPS.
7174
7175 2011-10-27  Bruno Haible  <bruno@clisp.org>
7176
7177         nonblocking tests: Fix test failure on Linux/MIPS.
7178         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7179         Set to 270000.
7180
7181 2011-10-27  Bruno Haible  <bruno@clisp.org>
7182
7183         utimensat: Work around problem on Linux/hppa.
7184         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7185         values.
7186         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7187
7188 2011-10-25  Jim Meyering  <meyering@redhat.com>
7189
7190         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7191         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7192         after symbols like NULL, size_t, etc.
7193         Reported by Alfred M. Szmidt.
7194
7195         maint.mk: exempt ENODATA from a syntax-check rule
7196         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7197         from the sc_prohibit_always-defined_macros syntax-check rule.
7198         Add a comment.  See this for more details:
7199         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7200
7201 2011-10-23  Jim Meyering  <meyering@redhat.com>
7202
7203         fts: close parent dir FD before returning from post-traversal fts_read
7204         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7205         unlink A, even though an FD open on A remained.  This is suboptimal
7206         (holding a file descriptor open longer than needed), but otherwise not
7207         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7208         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7209         that represents a real problem: it causes the removal of A to fail
7210         with e.g., "rm: cannot remove `A': Device or resource busy"
7211
7212         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7213         directory file descriptors.  After completing the final, FTS_DP,
7214         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7215         cache, but then proceeded to add a new FD to it via the subsequent
7216         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7217         final file descriptor would be closed only via fts_close's call to
7218         fd_ring_clear.  Now, it is usually closed earlier, via the final
7219         FTS_DP-returning fts_read call.
7220         * lib/fts.c (restore_initial_cwd): New function, converted from
7221         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7222         Update callers.
7223         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7224         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7225
7226 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7227             Bruno Haible  <bruno@clisp.org>
7228             Jim Meyering  <jim@meyering.net>
7229
7230         readme-release: improve safety of release prep instructions.
7231         * README-release: Don't git pull all branches when only master
7232         is needed for the release process.
7233         Run make maintainer-clean before changing trees and merging.
7234         Don't try to run ./configure right after git pull in case files
7235         that influence the bootstrap process have changed, move the
7236         ./configure step to after running ./bootstrap.
7237         Don't bootstrap "one last time"... it's the first time!
7238
7239 2011-10-22  Bruno Haible  <bruno@clisp.org>
7240
7241         errno, strerror-override: Support for MSVC 10.
7242         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7243         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7244         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7245         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7246         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7247         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7248         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7249         Assign values compatible with MSVC 10.
7250         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7251         New macros.
7252         (GNULIB_defined_EWINSOCK): New macro.
7253         * lib/strerror-override.c (strerror_override): Update accordingly.
7254         * lib/strerror-override.h: Likewise.
7255         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7256         longer equal to the corresponding errno value.
7257         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7258
7259 2011-10-22  Bruno Haible  <bruno@clisp.org>
7260
7261         perror: Recognize when test program crashes.
7262         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7263         strerror, set gl_cv_func_perror_works to no.
7264         Reported by Daniel Richard G. <skunk@iskunk.org>.
7265
7266         perror: Fix indentation.
7267         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7268
7269 2011-10-22  Bruno Haible  <bruno@clisp.org>
7270
7271         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7272         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7273         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7274         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7275         functions, not as a macro.
7276         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7277         macros.
7278         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7279         absence of macro.
7280         Suggested by Eric Blake.
7281         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7282
7283 2011-10-21  Bruno Haible  <bruno@clisp.org>
7284
7285         relocatable-prog-wrapper: Don't leave object files behind.
7286         * build-aux/install-reloc: Re-synchronize list of .o files to be
7287         removed with list of compilation units.
7288
7289 2011-10-20  Bruno Haible  <bruno@clisp.org>
7290
7291         openpty, posix_openpt: Remove code duplication.
7292         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7293         * lib/openpty.c: Include <stdlib.h>.
7294         (openpty): Use posix_openpt on all platforms except IRIX.
7295         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7296
7297 2011-10-20  Bruno Haible  <bruno@clisp.org>
7298
7299         unlockpt: Detect invalid argument.
7300         * lib/unlockpt.c: Include <fcntl.h>.
7301         (unlockpt): Check whether fd is valid, using fcntl().
7302         * modules/unlockpt (Depends-on): Add fcntl-h.
7303
7304 2011-10-20  Bruno Haible  <bruno@clisp.org>
7305
7306         openpty: Avoid compilation error on AIX 6.1.
7307         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7308
7309 2011-10-20  Bruno Haible  <bruno@clisp.org>
7310
7311         posix_openpt: Support for OpenBSD.
7312         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7313         (posix_openpt) [OpenBSD]: New code.
7314         * lib/grantpt.c: Include <fcntl.h>.
7315         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7316         * modules/grantpt (Depends-on): Add fcntl-h.
7317
7318 2011-10-20  Bruno Haible  <bruno@clisp.org>
7319
7320         posix_openpt test: Coding style.
7321         * tests/test-posix_openpt.c: Use GNU coding style.
7322
7323 2011-10-20  Bruno Haible  <bruno@clisp.org>
7324
7325         grantpt: Support --avoid=pt_chown.
7326         * modules/grantpt (Files): Add lib/pty-private.h.
7327
7328 2011-10-20  Bruno Haible  <bruno@clisp.org>
7329
7330         posix_openpt: Fix autoconf macro.
7331         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7332         unneeded check for _getpty.
7333
7334 2011-10-20  Bruno Haible  <bruno@clisp.org>
7335
7336         openpty: Update comments.
7337         * lib/openpty.c: Add comments about Minix.
7338
7339 2011-10-19  Eric Blake  <eblake@redhat.com>
7340
7341         openpty: relax license
7342         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7343
7344         pt_chown: use configmake to simplify build
7345         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7346
7347         ptsname and others: relax license
7348         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7349         * modules/unlockpt (License): Likewise.
7350         * modules/pt_chown (License): Likewise.
7351         * modules/ptsname (License): Likewise.
7352         * modules/ttyname_r (License): Likewise.
7353
7354 2011-10-19  Jim Meyering  <meyering@redhat.com>
7355
7356         posix_openpt: remove spurious #endif
7357         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7358
7359 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7360
7361         maint.mk: Respect $(build_aux) in web-manual rule.
7362         * top/maint.mk (web-manual): Find gen-announce script in user's
7363         $(build_aux) directory instead of hard-coding 'build-aux'.
7364
7365 2011-10-19  Bruno Haible  <bruno@clisp.org>
7366
7367         posix_openpt: Fix compilation error.
7368         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7369         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7370         Mention the openpty module as an alternative.
7371
7372 2011-10-19  Bruno Haible  <bruno@clisp.org>
7373
7374         Support for old NeXTstep 3.3 frexp().
7375         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7376         execution time of the test to 5 seconds.
7377         Reported by Daniel Richard G. <skunk@iskunk.org>.
7378
7379 2011-10-19  Bruno Haible  <bruno@clisp.org>
7380
7381         Support for old NeXTstep 3.3 sed.
7382         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7383         part, use /.../, not \|...|. Escape periods in the header file name.
7384         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7385         Reported by Daniel Richard G. <skunk@iskunk.org>.
7386
7387 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7388
7389         Support for old NeXTstep 3.3 gcc.
7390         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7391         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7392         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7393         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7394         * lib/regex.h (_Restrict_arr_): Likewise.
7395         * lib/regex_internal.h (re_token_t): Likewise.
7396         * lib/regexec.c (check_node_accept_bytes): Likewise.
7397         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7398
7399 2011-10-18  Eric Blake  <eblake@redhat.com>
7400
7401         posix_openpt: new module
7402         * modules/posix_openpt: New module.
7403         * m4/posix_openpt.m4: New file.
7404         * lib/posix_openpt.c: Likewise.
7405         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7406         (gl_STDLIB_H_DEFAULTS): Set defaults.
7407         * modules/stdlib (Makefile.am): Substitute macros.
7408         * lib/stdlib.in.h (posix_openpt): Declare.
7409         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7410         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7411         * modules/posix_openpt-tests: New test module.
7412         * tests/test-posix_openpt.c: New test.
7413
7414 2011-10-15  Bruno Haible  <bruno@clisp.org>
7415
7416         xstrtoll: Fix compilation failure.
7417         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7418         from lib/strtol.c.
7419         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7420         some platforms.
7421         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7422
7423 2011-10-15  Bruno Haible  <bruno@clisp.org>
7424
7425         vasnprintf: Optimize bit search operation.
7426         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7428         gl_DOUBLE_EXPONENT_LOCATION.
7429         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7430         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7431         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7432         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7433         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7434         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7435         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7436         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7437         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7438
7439 2011-10-15  Bruno Haible  <bruno@clisp.org>
7440
7441         vasnprintf: Fix comments.
7442         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7443
7444 2011-10-14  Bruno Haible  <bruno@clisp.org>
7445
7446         Tests for module 'integer_length_ll'.
7447         * modules/integer_length_ll-tests: New file.
7448         * tests/test-integer_length_ll.c: New file.
7449
7450         New module 'integer_length_ll'.
7451         * lib/integer_length_ll.c: New file.
7452         * modules/integer_length_ll: New file.
7453
7454 2011-10-14  Bruno Haible  <bruno@clisp.org>
7455
7456         Tests for module 'integer_length_l'.
7457         * modules/integer_length_l-tests: New file.
7458         * tests/test-integer_length_l.c: New file.
7459
7460         New module 'integer_length_l'.
7461         * lib/integer_length_l.c: New file.
7462         * modules/integer_length_l: New file.
7463
7464 2011-10-14  Bruno Haible  <bruno@clisp.org>
7465
7466         Tests for module 'integer_length'.
7467         * modules/integer_length-tests: New file.
7468         * tests/test-integer_length.c: New file.
7469
7470         New module 'integer_length'.
7471         * lib/integer_length.h: New file.
7472         * lib/integer_length.c: New file.
7473         * modules/integer_length: New file.
7474
7475 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7476
7477         popen: Fix dependency conditions.
7478         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7479
7480 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7481
7482         perror: Fix autoconf test.
7483         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7484         <stdlib.h> and <string.h>.
7485
7486 2011-10-14  Bruno Haible  <bruno@clisp.org>
7487
7488         ffsl: Optimize on 64-bit platforms.
7489         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7490         unrolling.
7491
7492 2011-10-13  Bruno Haible  <bruno@clisp.org>
7493
7494         ffsl: Optimize on 32-bit platforms.
7495         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7496         use ffs() without a loop.
7497
7498         ffsl, ffsll: Optimize for GCC.
7499         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7500         * lib/ffsl.c (GCC_BUILTIN): New macro.
7501         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7502
7503 2011-10-13  Bruno Haible  <bruno@clisp.org>
7504
7505         ffs, bcopy, memset: Support symbol renaming via config.h.
7506         * lib/ffs.c: Include <config.h>.
7507         * lib/bcopy.c: Likewise.
7508         * lib/memset.c: Likewise.
7509
7510 2011-10-10  Bruno Haible  <bruno@clisp.org>
7511
7512         atanl: Simplify for platforms where 'long double' == 'double'.
7513         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7514         alternative implementation.
7515         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7516         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7517         * modules/atanl (Depends-on): Add atan. Update conditions.
7518
7519 2011-10-10  Bruno Haible  <bruno@clisp.org>
7520
7521         acosl: Simplify for platforms where 'long double' == 'double'.
7522         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7523         alternative implementation.
7524         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7525         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7526         * modules/acosl (Depends-on): Add acos. Update conditions.
7527
7528 2011-10-10  Bruno Haible  <bruno@clisp.org>
7529
7530         asinl: Simplify for platforms where 'long double' == 'double'.
7531         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7532         alternative implementation.
7533         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7534         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7535         * modules/asinl (Depends-on): Add asin. Update conditions.
7536
7537 2011-10-10  Bruno Haible  <bruno@clisp.org>
7538
7539         tanl: Simplify for platforms where 'long double' == 'double'.
7540         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7541         implementation.
7542         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7543         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7544         * modules/tanl (Depends-on): Add tan. Update conditions.
7545         (configure.ac): Don't compile trigl.c if
7546         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7547
7548 2011-10-10  Bruno Haible  <bruno@clisp.org>
7549
7550         cosl: Simplify for platforms where 'long double' == 'double'.
7551         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7552         implementation.
7553         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7554         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7555         * modules/cosl (Depends-on): Add cos. Update conditions.
7556         (configure.ac): Don't compile sincosl.c and trigl.c if
7557         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7558
7559 2011-10-10  Bruno Haible  <bruno@clisp.org>
7560
7561         sinl: Simplify for platforms where 'long double' == 'double'.
7562         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7563         implementation.
7564         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7565         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7566         * modules/sinl (Depends-on): Add sin. Update conditions.
7567         (configure.ac): Don't compile sincosl.c and trigl.c if
7568         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7569
7570 2011-10-10  Bruno Haible  <bruno@clisp.org>
7571
7572         logl: Simplify for platforms where 'long double' == 'double'.
7573         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7574         implementation.
7575         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7576         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7577         * modules/logl (Depends-on): Add log. Update conditions.
7578
7579 2011-10-10  Bruno Haible  <bruno@clisp.org>
7580
7581         expl: Simplify for platforms where 'long double' == 'double'.
7582         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7583         implementation.
7584         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7585         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7586         * modules/expl (Depends-on): Add exp. Update conditions.
7587
7588 2011-10-10  Bruno Haible  <bruno@clisp.org>
7589
7590         sqrtl: Simplify for platforms where 'long double' == 'double'.
7591         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7592         alternative implementation.
7593         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7594         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7595         * modules/sqrtl (Depends-on): Update conditions.
7596
7597 2011-10-10  Bruno Haible  <bruno@clisp.org>
7598
7599         ldexpl: Simplify for platforms where 'long double' == 'double'.
7600         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7601         alternative implementation.
7602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7603         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7604         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7605
7606 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7607
7608         ffsll: set correct witness
7609         * modules/ffsll (configure.ac): Fix typo.
7610
7611 2011-10-10  Bruno Haible  <bruno@clisp.org>
7612
7613         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7614         * lib/printf-frexpl.c: Include <config.h>.
7615         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7616         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7617         second time.
7618         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7619         gl_LONG_DOUBLE_VS_DOUBLE.
7620         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7621         conditions.
7622
7623 2011-10-10  Bruno Haible  <bruno@clisp.org>
7624
7625         frexpl: Simplify for platforms where 'long double' == 'double'.
7626         * lib/frexpl.c: Include <config.h>.
7627         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7628         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7629         time.
7630         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7631         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7632         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7633         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7634         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7635         conditions.
7636
7637 2011-10-10  Jim Meyering  <meyering@redhat.com>
7638
7639         test-renameat: don't leave behind a temporary file
7640         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7641           ERROR: files left in build directory after distclean:
7642           ./gltests/test-renameat.too
7643           make[1]: *** [distcleancheck] Error 1
7644         Reported by Tom G. Christensen.
7645
7646 2011-10-09  Bruno Haible  <bruno@clisp.org>
7647
7648         rint: Determine RINT_LIBM correctly on AIX 7.
7649         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7650         directly, not only through a function pointer. Also accept an optional
7651         4th argument with extra code.
7652         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7653         rintf() call by gcc when optimizing.
7654
7655         mathfunc.m4: Refactor.
7656         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7657         m4 variable.
7658
7659 2011-10-09  Bruno Haible  <bruno@clisp.org>
7660
7661         rintl: Simplify for platforms where 'long double' == 'double'.
7662         * lib/rintl.c: Include <config.h>.
7663         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7664         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7665         time.
7666         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7667         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7668         * modules/rintl (Depends-on): Add rint. Update conditions.
7669
7670 2011-10-09  Bruno Haible  <bruno@clisp.org>
7671
7672         roundl: Simplify for platforms where 'long double' == 'double'.
7673         * lib/roundl.c: Include <config.h>.
7674         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7675         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7676         time.
7677         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7678         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7679         * modules/roundl (Depends-on): Add round. Update conditions.
7680
7681 2011-10-09  Bruno Haible  <bruno@clisp.org>
7682
7683         truncl: Simplify for platforms where 'long double' == 'double'.
7684         * lib/truncl.c: Include <config.h>.
7685         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7686         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7687         time.
7688         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7689         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7690         * modules/truncl (Depends-on): Add trunc. Update conditions.
7691
7692 2011-10-09  Bruno Haible  <bruno@clisp.org>
7693
7694         ceill: Simplify for platforms where 'long double' == 'double'.
7695         * lib/ceill.c: Include <config.h>.
7696         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7697         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7698         time.
7699         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7700         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7701         * modules/ceill (Depends-on): Add ceil. Update conditions.
7702
7703 2011-10-09  Bruno Haible  <bruno@clisp.org>
7704
7705         floorl: Simplify for platforms where 'long double' == 'double'.
7706         * lib/floorl.c: Include <config.h>.
7707         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7708         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7709         time.
7710         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7711         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7712         * modules/floorl (Depends-on): Add floor. Update conditions.
7713
7714 2011-10-09  Bruno Haible  <bruno@clisp.org>
7715
7716         rint: Fix ordering constraints.
7717         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7718         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7719         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7720
7721 2011-10-09  Bruno Haible  <bruno@clisp.org>
7722
7723         copysignl: Simplify for platforms where 'long double' == 'double'.
7724         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7725         alternative.
7726         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7727         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7728         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7729
7730 2011-10-09  Bruno Haible  <bruno@clisp.org>
7731
7732         Tests for module 'rintl'.
7733         * modules/rintl-tests: New file.
7734         * tests/test-rintl.c: New file.
7735
7736         New module 'rintl'.
7737         * lib/math.in.h (rintl): New declaration.
7738         * lib/rintl.c: New file.
7739         * m4/rintl.m4: New file.
7740         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7742         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7743         * modules/rintl: New file.
7744         * tests/test-math-c++.cc: Check the declaration of rintl.
7745         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7746         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7747         * doc/posix-functions/rintl.texi: Mention the new module.
7748
7749 2011-10-09  Bruno Haible  <bruno@clisp.org>
7750
7751         Tests for module 'rintf'.
7752         * modules/rintf-tests: New file.
7753         * tests/test-rintf.c: New file.
7754
7755         New module 'rintf'.
7756         * lib/math.in.h (rintf): New declaration.
7757         * lib/rintf.c: New file.
7758         * m4/rintf.m4: New file.
7759         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7761         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7762         * modules/rintf: New file.
7763         * tests/test-math-c++.cc: Check the declaration of rintf.
7764         * doc/posix-functions/rintf.texi: Mention the new module.
7765
7766 2011-10-09  Bruno Haible  <bruno@clisp.org>
7767
7768         rint: Support for MSVC.
7769         * lib/math.in.h (rint): New declaration.
7770         * lib/rint.c: New file.
7771         * m4/rint.m4: New file.
7772         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7774         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7775         * modules/rint (Description): Fix.
7776         (Files): Add lib/rint.c, m4/rint.m4.
7777         (Depends-on): Add math.
7778         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7779         gl_MATH_MODULE_INDICATOR.
7780         * tests/test-math-c++.cc: Check the declaration of rint.
7781         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7782         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7783         * doc/posix-functions/rint.texi: Mention the replacement provided by
7784         the module.
7785
7786         rint tests: More tests.
7787         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7788         minus-zero.h, infinity.h, nan.h.
7789         (main): Skip the test if the current rounding mode is not standard. Add
7790         tests for negative numbers, minus zero, infinity, NaN.
7791         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7792         tests/nan.h.
7793         (Depends-on): Add isnand-nolibm.
7794
7795 2011-10-09  Bruno Haible  <bruno@clisp.org>
7796
7797         Tests for module 'copysignl'.
7798         * modules/copysignl-tests: New file.
7799         * tests/test-copysignl.c: New file.
7800
7801         New module 'copysignl'.
7802         * lib/math.in.h (copysignl): New declaration.
7803         * lib/copysignl.c: New file.
7804         * m4/copysignl.m4: New file.
7805         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7807         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7808         HAVE_COPYSIGNL.
7809         * modules/copysignl: New file.
7810         * tests/test-math-c++.cc: Check the declaration of copysignl.
7811         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7812         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7813         * doc/posix-functions/copysignl.texi: Mention the new module.
7814
7815 2011-10-09  Bruno Haible  <bruno@clisp.org>
7816
7817         Tests for module 'copysignf'.
7818         * modules/copysignf-tests: New file.
7819         * tests/test-copysignf.c: New file.
7820
7821         New module 'copysignf'.
7822         * lib/math.in.h (copysignf): New declaration.
7823         * lib/copysignf.c: New file.
7824         * m4/copysignf.m4: New file.
7825         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7827         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7828         HAVE_COPYSIGNF.
7829         * modules/copysignf: New file.
7830         * tests/test-math-c++.cc: Check the declaration of copysignf.
7831         * doc/posix-functions/copysignf.texi: Mention the new module.
7832
7833 2011-10-09  Bruno Haible  <bruno@clisp.org>
7834
7835         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7836         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7837         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7838         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7839         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7840         gl_SIGNAL_H_DEFAULTS.
7841
7842 2011-10-09  Bruno Haible  <bruno@clisp.org>
7843
7844         poll: Make macro safer.
7845         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7846         ac_cv_header_poll_h is not set.
7847
7848 2011-10-09  Bruno Haible  <bruno@clisp.org>
7849
7850         copysign: Provide replacement.
7851         * lib/math.in.h (copysign): New declaration.
7852         * lib/copysign.c: New file.
7853         * m4/copysign.m4: New file.
7854         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7856         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7857         HAVE_COPYSIGN.
7858         * modules/copysign (Description): Clarify.
7859         (Files): Add lib/copysign.c, m4/copysign.m4.
7860         (Depends-on): Add math, signbit.
7861         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7862         gl_MATH_MODULE_INDICATOR.
7863         * tests/test-math-c++.cc: Check the declaration of copysign.
7864         * doc/posix-functions/copysign.texi: Mention the effects of the module
7865         on Minix and MSVC.
7866
7867 2011-10-09  Bruno Haible  <bruno@clisp.org>
7868
7869         isinf: Ensure macro on AIX 5.1.
7870         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7871         macro.
7872         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7873
7874 2011-10-09  Bruno Haible  <bruno@clisp.org>
7875
7876         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7877         * modules/snprintf-posix-tests (configure.ac): Require
7878         gl_LONG_DOUBLE_VS_DOUBLE.
7879         * modules/sprintf-posix-tests (configure.ac): Likewise.
7880         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7881         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7882         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7883         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7884         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7885         tests on platforms where 'long double' is the same as 'double'.
7886         * tests/test-sprintf-posix.h (test_function): Likewise.
7887         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7888         * tests/test-vasprintf-posix.c (test_function): Likewise.
7889
7890         *printf: Fix for platforms where 'long double' == 'double'.
7891         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7892         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7893         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7894         * modules/fprintf-posix (Files): Likewise.
7895         * modules/obstack-printf-posix (Files): Likewise.
7896         * modules/snprintf-posix (Files): Likewise.
7897         * modules/sprintf-posix (Files): Likewise.
7898         * modules/vasnprintf (Files): Likewise.
7899         * modules/vasnprintf-posix (Files): Likewise.
7900         * modules/vasprintf-posix (Files): Likewise.
7901         * modules/vdprintf-posix (Files): Likewise.
7902         * modules/vfprintf-posix (Files): Likewise.
7903         * modules/vsnprintf-posix (Files): Likewise.
7904         * modules/vsprintf-posix (Files): Likewise.
7905         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7906         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7907         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7908         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7909         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7910         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7911         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7912
7913         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7914         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7915         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7916         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7917         'long double'.
7918         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7919
7920         isinf: Fix for platforms where 'long double' == 'double'.
7921         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7922         Don't blindly assume 80-bit 'long double'.
7923
7924         isfinite: Fix for platforms where 'long double' == 'double'.
7925         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7926         Don't blindly assume 80-bit 'long double'.
7927
7928         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7929         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7930         * modules/isfinite-tests (configure.ac): Require
7931         gl_LONG_DOUBLE_VS_DOUBLE.
7932         * modules/isinf-tests (configure.ac): Likewise.
7933         * modules/isnan-tests (configure.ac): Likewise.
7934         * modules/isnanl-tests (configure.ac): Likewise.
7935         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7936         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7937         tests on platforms where 'long double' is the same as 'double'.
7938         * tests/test-isinf.c (test_isinfl): Likewise.
7939         * tests/test-isnan.c (test_long_double): Likewise.
7940         * tests/test-isnanl.h (main): Likewise.
7941
7942 2011-10-08  Bruno Haible  <bruno@clisp.org>
7943
7944         Tests for module 'tanhf'.
7945         * modules/tanhf-tests: New file.
7946         * tests/test-tanhf.c: New file.
7947
7948         New module 'tanhf'.
7949         * lib/math.in.h (tanhf): New declaration.
7950         * lib/tanhf.c: New file.
7951         * m4/tanhf.m4: New file.
7952         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7954         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7955         * modules/tanhf: New file.
7956         * tests/test-math-c++.cc: Check the declaration of tanhf.
7957         * doc/posix-functions/tanhf.texi: Mention the new module.
7958
7959         tanh: Use a .m4 file.
7960         * m4/tanh.m4: New file.
7961         * modules/tanh (Files): Add it.
7962         (configure.ac): Just invoke gl_FUNC_TANH.
7963
7964 2011-10-08  Bruno Haible  <bruno@clisp.org>
7965
7966         Tests for module 'coshf'.
7967         * modules/coshf-tests: New file.
7968         * tests/test-coshf.c: New file.
7969
7970         New module 'coshf'.
7971         * lib/math.in.h (coshf): New declaration.
7972         * lib/coshf.c: New file.
7973         * m4/coshf.m4: New file.
7974         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7976         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7977         * modules/coshf: New file.
7978         * tests/test-math-c++.cc: Check the declaration of coshf.
7979         * doc/posix-functions/coshf.texi: Mention the new module.
7980
7981         cosh: Use a .m4 file.
7982         * m4/cosh.m4: New file.
7983         * modules/cosh (Files): Add it.
7984         (configure.ac): Just invoke gl_FUNC_COSH.
7985
7986 2011-10-08  Bruno Haible  <bruno@clisp.org>
7987
7988         Tests for module 'sinhf'.
7989         * modules/sinhf-tests: New file.
7990         * tests/test-sinhf.c: New file.
7991
7992         New module 'sinhf'.
7993         * lib/math.in.h (sinhf): New declaration.
7994         * lib/sinhf.c: New file.
7995         * m4/sinhf.m4: New file.
7996         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7998         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7999         * modules/sinhf: New file.
8000         * tests/test-math-c++.cc: Check the declaration of sinhf.
8001         * doc/posix-functions/sinhf.texi: Mention the new module.
8002
8003         sinh: Use a .m4 file.
8004         * m4/sinh.m4: New file.
8005         * modules/sinh (Files): Add it.
8006         (configure.ac): Just invoke gl_FUNC_SINH.
8007
8008 2011-10-08  Bruno Haible  <bruno@clisp.org>
8009
8010         Tests for module 'atan2f'.
8011         * modules/atan2f-tests: New file.
8012         * tests/test-atan2f.c: New file.
8013
8014         New module 'atan2f'.
8015         * lib/math.in.h (atan2f): New declaration.
8016         * lib/atan2f.c: New file.
8017         * m4/atan2f.m4: New file.
8018         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8020         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8021         * modules/atan2f: New file.
8022         * tests/test-math-c++.cc: Check the declaration of atan2f.
8023         * doc/posix-functions/atan2f.texi: Mention the new module.
8024
8025         atan2: Use a .m4 file.
8026         * m4/atan2.m4: New file.
8027         * modules/atan2 (Files): Add it.
8028         (configure.ac): Just invoke gl_FUNC_ATAN2.
8029
8030 2011-10-08  Bruno Haible  <bruno@clisp.org>
8031
8032         Tests for module 'atanf'.
8033         * modules/atanf-tests: New file.
8034         * tests/test-atanf.c: New file.
8035
8036         New module 'atanf'.
8037         * lib/math.in.h (atanf): New declaration.
8038         * lib/atanf.c: New file.
8039         * m4/atanf.m4: New file.
8040         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8042         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8043         * modules/atanf: New file.
8044         * tests/test-math-c++.cc: Check the declaration of atanf.
8045         * doc/posix-functions/atanf.texi: Mention the new module.
8046
8047         atan: Use a .m4 file.
8048         * m4/atan.m4: New file.
8049         * modules/atan (Files): Add it.
8050         (configure.ac): Just invoke gl_FUNC_ATAN.
8051
8052 2011-10-08  Bruno Haible  <bruno@clisp.org>
8053
8054         Tests for module 'acosf'.
8055         * modules/acosf-tests: New file.
8056         * tests/test-acosf.c: New file.
8057
8058         New module 'acosf'.
8059         * lib/math.in.h (acosf): New declaration.
8060         * lib/acosf.c: New file.
8061         * m4/acosf.m4: New file.
8062         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8064         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8065         * modules/acosf: New file.
8066         * tests/test-math-c++.cc: Check the declaration of acosf.
8067         * doc/posix-functions/acosf.texi: Mention the new module.
8068
8069         acos: Use a .m4 file.
8070         * m4/acos.m4: New file.
8071         * modules/acos (Files): Add it.
8072         (configure.ac): Just invoke gl_FUNC_ACOS.
8073
8074 2011-10-08  Bruno Haible  <bruno@clisp.org>
8075
8076         Tests for module 'asinf'.
8077         * modules/asinf-tests: New file.
8078         * tests/test-asinf.c: New file.
8079
8080         New module 'asinf'.
8081         * lib/math.in.h (asinf): New declaration.
8082         * lib/asinf.c: New file.
8083         * m4/asinf.m4: New file.
8084         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8086         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8087         * modules/asinf: New file.
8088         * tests/test-math-c++.cc: Check the declaration of asinf.
8089         * doc/posix-functions/asinf.texi: Mention the new module.
8090
8091         asin: Use a .m4 file.
8092         * m4/asin.m4: New file.
8093         * modules/asin (Files): Add it.
8094         (configure.ac): Just invoke gl_FUNC_ASIN.
8095
8096 2011-10-08  Bruno Haible  <bruno@clisp.org>
8097
8098         Tests for module 'tanf'.
8099         * modules/tanf-tests: New file.
8100         * tests/test-tanf.c: New file.
8101
8102         New module 'tanf'.
8103         * lib/math.in.h (tanf): New declaration.
8104         * lib/tanf.c: New file.
8105         * m4/tanf.m4: New file.
8106         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8108         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8109         * modules/tanf: New file.
8110         * tests/test-math-c++.cc: Check the declaration of tanf.
8111         * doc/posix-functions/tanf.texi: Mention the new module.
8112
8113         tan: Use a .m4 file.
8114         * m4/tan.m4: New file.
8115         * modules/tan (Files): Add it.
8116         (configure.ac): Just invoke gl_FUNC_TAN.
8117
8118 2011-10-08  Bruno Haible  <bruno@clisp.org>
8119
8120         Tests for module 'cosf'.
8121         * modules/cosf-tests: New file.
8122         * tests/test-cosf.c: New file.
8123
8124         New module 'cosf'.
8125         * lib/math.in.h (cosf): New declaration.
8126         * lib/cosf.c: New file.
8127         * m4/cosf.m4: New file.
8128         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8130         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8131         * modules/cosf: New file.
8132         * tests/test-math-c++.cc: Check the declaration of cosf.
8133         * doc/posix-functions/cosf.texi: Mention the new module.
8134
8135         cos: Use a .m4 file.
8136         * m4/cos.m4: New file.
8137         * modules/cos (Files): Add it.
8138         (configure.ac): Just invoke gl_FUNC_COS.
8139
8140 2011-10-08  Bruno Haible  <bruno@clisp.org>
8141
8142         Tests for module 'sinf'.
8143         * modules/sinf-tests: New file.
8144         * tests/test-sinf.c: New file.
8145
8146         New module 'sinf'.
8147         * lib/math.in.h (sinf): New declaration.
8148         * lib/sinf.c: New file.
8149         * m4/sinf.m4: New file.
8150         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8152         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8153         * modules/sinf: New file.
8154         * tests/test-math-c++.cc: Check the declaration of sinf.
8155         * doc/posix-functions/sinf.texi: Mention the new module.
8156
8157         sin: Use a .m4 file.
8158         * m4/sin.m4: New file.
8159         * modules/sin (Files): Add it.
8160         (configure.ac): Just invoke gl_FUNC_SIN.
8161
8162 2011-10-08  Bruno Haible  <bruno@clisp.org>
8163
8164         Tests for module 'powf'.
8165         * modules/powf-tests: New file.
8166         * tests/test-powf.c: New file.
8167
8168         New module 'powf'.
8169         * lib/math.in.h (powf): New declaration.
8170         * lib/powf.c: New file.
8171         * m4/powf.m4: New file.
8172         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8174         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8175         * modules/powf: New file.
8176         * tests/test-math-c++.cc: Check the declaration of powf.
8177         * doc/posix-functions/powf.texi: Mention the new module.
8178
8179         pow: Use a .m4 file.
8180         * m4/pow.m4: New file.
8181         * modules/pow (Files): Add it.
8182         (configure.ac): Just invoke gl_FUNC_POW.
8183
8184 2011-10-08  Bruno Haible  <bruno@clisp.org>
8185
8186         Tests for module 'log10f'.
8187         * modules/log10f-tests: New file.
8188         * tests/test-log10f.c: New file.
8189
8190         New module 'log10f'.
8191         * lib/math.in.h (log10f): New declaration.
8192         * lib/log10f.c: New file.
8193         * m4/log10f.m4: New file.
8194         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8196         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8197         * modules/log10f: New file.
8198         * tests/test-math-c++.cc: Check the declaration of log10f.
8199         * doc/posix-functions/log10f.texi: Mention the new module.
8200
8201         log10: Use a .m4 file.
8202         * m4/log10.m4: New file.
8203         * modules/log10 (Files): Add it.
8204         (configure.ac): Just invoke gl_FUNC_LOG10.
8205
8206 2011-10-08  Bruno Haible  <bruno@clisp.org>
8207
8208         Tests for module 'logf'.
8209         * modules/logf-tests: New file.
8210         * tests/test-logf.c: New file.
8211
8212         New module 'logf'.
8213         * lib/math.in.h (logf): New declaration.
8214         * lib/logf.c: New file.
8215         * m4/logf.m4: New file.
8216         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8218         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8219         * modules/logf: New file.
8220         * tests/test-math-c++.cc: Check the declaration of logf.
8221         * doc/posix-functions/logf.texi: Mention the new module.
8222
8223         log: Use a .m4 file.
8224         * m4/log.m4: New file.
8225         * modules/log (Files): Add it.
8226         (configure.ac): Just invoke gl_FUNC_LOG.
8227
8228 2011-10-08  Bruno Haible  <bruno@clisp.org>
8229
8230         Tests for module 'expf'.
8231         * modules/expf-tests: New file.
8232         * tests/test-expf.c: New file.
8233
8234         New module 'expf'.
8235         * lib/math.in.h (expf): New declaration.
8236         * lib/expf.c: New file.
8237         * m4/expf.m4: New file.
8238         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8240         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8241         * modules/expf: New file.
8242         * tests/test-math-c++.cc: Check the declaration of expf.
8243         * doc/posix-functions/expf.texi: Mention the new module.
8244
8245         exp: Use a .m4 file.
8246         * m4/exp.m4: New file.
8247         * modules/exp (Files): Add it.
8248         (configure.ac): Just invoke gl_FUNC_EXP.
8249
8250 2011-10-08  Bruno Haible  <bruno@clisp.org>
8251
8252         Tests for module 'sqrtf'.
8253         * modules/sqrtf-tests: New file.
8254         * tests/test-sqrtf.c: New file.
8255
8256         New module 'sqrtf'.
8257         * lib/math.in.h (sqrtf): New declaration.
8258         * lib/sqrtf.c: New file.
8259         * m4/sqrtf.m4: New file.
8260         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8262         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8263         * modules/sqrtf: New file.
8264         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8265         * doc/posix-functions/sqrtf.texi: Mention the new module.
8266
8267 2011-10-08  Bruno Haible  <bruno@clisp.org>
8268
8269         Tests: Avoid link failures w.r.t. libintl.
8270         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8271         $(LIBINTL).
8272         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8273         $(LIBINTL).
8274         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8275         against $(LIBINTL).
8276         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8277         $(LIBINTL).
8278         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8279         $(LIBINTL).
8280         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8281
8282 2011-10-08  Bruno Haible  <bruno@clisp.org>
8283
8284         pow tests: Defeat compiler optimizations.
8285         * tests/test-pow.c (main): Assign arguments to x and y before use.
8286
8287 2011-10-08  Bruno Haible  <bruno@clisp.org>
8288
8289         gnulib-tool: Improve last commit.
8290         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8291         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8292         ignore dependencies that are not among the modules list.
8293
8294 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8295
8296         gnulib-tool: don't follow dependencies to avoided modules
8297         This fixes a bug that is related to the previous one.
8298         * gnulib-tool (func_modules_transitive_closure)
8299         (func_emit_autoconf_snippets):
8300         Check whether a dependency is acceptable before using it.
8301         (--extract-dependencies): Report an error if --avoid is also used,
8302         since this combination of options is not yet supported.
8303
8304         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8305         Problem reported by Peter Dyballa in
8306         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8307         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8308         when echoing "$condition".
8309
8310 2011-10-07  Bruno Haible  <bruno@clisp.org>
8311
8312         Fix documentation about math functions on MacOS X.
8313         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8314         MacOS X 10.5.
8315         * doc/posix-functions/fdim.texi: Likewise.
8316         * doc/posix-functions/feclearexcept.texi: Likewise.
8317         * doc/posix-functions/fegetenv.texi: Likewise.
8318         * doc/posix-functions/fegetround.texi: Likewise.
8319         * doc/posix-functions/feholdexcept.texi: Likewise.
8320         * doc/posix-functions/feraiseexcept.texi: Likewise.
8321         * doc/posix-functions/fesetenv.texi: Likewise.
8322         * doc/posix-functions/fesetround.texi: Likewise.
8323         * doc/posix-functions/fetestexcept.texi: Likewise.
8324         * doc/posix-functions/feupdateenv.texi: Likewise.
8325         * doc/posix-functions/fmax.texi: Likewise.
8326         * doc/posix-functions/fmin.texi: Likewise.
8327         * doc/posix-functions/log2.texi: Likewise.
8328         * doc/posix-functions/modff.texi: Likewise.
8329         * doc/posix-functions/nan.texi: Likewise.
8330         * doc/posix-functions/nanf.texi: Likewise.
8331         * doc/posix-functions/nextafterf.texi: Likewise.
8332         * doc/posix-functions/remquo.texi: Likewise.
8333
8334 2011-10-07  Bruno Haible  <bruno@clisp.org>
8335
8336         modff: Drop assumption about library that defines modff.
8337         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8338         AC_CHECK_FUNCS.
8339         * modules/modff (Files): Add m4/mathfunc.m4.
8340
8341 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8342
8343         raise tests: Avoid a GCC warning.
8344         * tests/test-raise.c (handler): Use _Noreturn.
8345
8346 2011-10-07  Bruno Haible  <bruno@clisp.org>
8347
8348         Tests for module 'ldexpf'.
8349         * modules/ldexpf-tests: New file.
8350         * tests/test-ldexpf.c: New file.
8351
8352         New module 'ldexpf'.
8353         * lib/math.in.h (ldexpf): New declaration.
8354         * lib/ldexpf.c: New file.
8355         * m4/ldexpf.m4: New file.
8356         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8358         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8359         * modules/ldexpf: New file.
8360         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8361         * doc/posix-functions/ldexpf.texi: Mention the new module.
8362
8363 2011-10-06  Bruno Haible  <bruno@clisp.org>
8364
8365         frexpf: Work around problems on IRIX and mingw.
8366         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8368         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8369         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8370         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8371         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8372         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8373
8374 2011-10-06  Bruno Haible  <bruno@clisp.org>
8375
8376         fabsf: Drop assumption about library that defines fabsf.
8377         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8378         AC_CHECK_FUNCS.
8379         * modules/fabsf (Files): Add m4/mathfunc.m4.
8380
8381 2011-10-06  Bruno Haible  <bruno@clisp.org>
8382
8383         frexpf: Drop assumption about library that defines frexpf.
8384         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8385         'int *', 'float *', 'long double *', 'float', 'long double'.
8386         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8387         AC_CHECK_FUNCS.
8388         * modules/frexpf (Files): Add m4/mathfunc.m4.
8389
8390         Tests for module 'frexpf'.
8391         * modules/frexpf-tests: New file.
8392         * tests/test-frexpf.c: New file.
8393
8394         New module 'frexpf'.
8395         * lib/math.in.h (frexpf): New declaration.
8396         * lib/frexpf.c: New file.
8397         * m4/frexpf.m4: New file.
8398         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8400         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8401         * modules/frexpf: New file.
8402         * tests/test-math-c++.cc: Check the declaration of frexpf.
8403         * doc/posix-functions/frexpf.texi: Mention the new module.
8404
8405 2011-10-06  Bruno Haible  <bruno@clisp.org>
8406
8407         math: Sort function declarations of math.in.h.
8408         * lib/math.in.h (frexp, logb): Move declarations.
8409
8410 2011-10-05  Bruno Haible  <bruno@clisp.org>
8411
8412         Tests for module 'modff'.
8413         * modules/modff-tests: New file.
8414         * tests/test-modff.c: New file.
8415
8416         New module 'modff'.
8417         * lib/math.in.h (modff): New declaration.
8418         * lib/modff.c: New file.
8419         * m4/modff.m4: New file.
8420         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8422         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8423         * modules/modff: New file.
8424         * tests/test-math-c++.cc: Check the declaration of modff.
8425         * doc/posix-functions/modff.texi: Mention the new module.
8426
8427         modf tests: Make test sharper.
8428         * tests/test-modf.c (main): Strengthen upper bound.
8429
8430         modf: Use a .m4 file.
8431         * m4/modf.m4: New file.
8432         * modules/modf (Files): Add it.
8433         (configure.ac): Just invoke gl_FUNC_MODF.
8434
8435 2011-10-05  Bruno Haible  <bruno@clisp.org>
8436
8437         Tests for module 'fmodf'.
8438         * modules/fmodf-tests: New file.
8439         * tests/test-fmodf.c: New file.
8440
8441         New module 'fmodf'.
8442         * lib/math.in.h (fmodf): New declaration.
8443         * lib/fmodf.c: New file.
8444         * m4/fmodf.m4: New file.
8445         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8447         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8448         * modules/fmodf: New file.
8449         * tests/test-math-c++.cc: Check the declaration of fmodf.
8450         * doc/posix-functions/fmodf.texi: Mention the new module.
8451
8452         fmod: Use a .m4 file.
8453         * m4/fmod.m4: New file.
8454         * modules/fmod (Files): Add it.
8455         (configure.ac): Just invoke gl_FUNC_FMOD.
8456
8457 2011-10-05  Bruno Haible  <bruno@clisp.org>
8458
8459         Tests for module 'fabsf'.
8460         * modules/fabsf-tests: New file.
8461         * tests/test-fabsf.c: New file.
8462
8463         New module 'fabsf'.
8464         * lib/math.in.h (fabsf): New declaration.
8465         * lib/fabsf.c: New file.
8466         * m4/fabsf.m4: New file.
8467         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8469         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8470         * modules/fabsf: New file.
8471         * tests/test-math-c++.cc: Check the declaration of fabsf.
8472         * doc/posix-functions/fabsf.texi: Mention the new module.
8473
8474         fabs: Use a .m4 file.
8475         * m4/fabs.m4: New file.
8476         * modules/fabs (Files): Add it.
8477         (configure.ac): Just invoke gl_FUNC_FABS.
8478
8479 2011-10-05  Jim Meyering  <meyering@redhat.com>
8480
8481         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8482         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8483         ls -lL regression introduced in coreutils-8.12, it does so at the
8484         cost of an additional stat call in the common case.  Besides, now
8485         that the kernel change that prompted commit 95f7c57f has been reverted
8486         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8487         we have no use for commit 95f7c57f, "file-has-acl: use
8488         acl_extended_file_nofollow if available".
8489
8490 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8491
8492         file-has-acl: revert unintended change in behavior of ls -L
8493         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8494         derived from...
8495         (file_has_acl): ...code here.  Call it.
8496         This problem was introduced with 2011-07-22 commit 95f7c57f,
8497         "file-has-acl: use acl_extended_file_nofollow if available".
8498         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8499
8500 2011-10-03  Bruno Haible  <bruno@clisp.org>
8501
8502         poll: Avoid link errors on MSVC.
8503         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8504         * modules/poll (Depends-on): Add sockets.
8505         (Link): New section.
8506         * NEWS: Mention the change.
8507         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8508         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8509         $(LIB_POLL) instead of $(LIBSOCKET).
8510
8511 2011-10-03  Bruno Haible  <bruno@clisp.org>
8512
8513         sys_select tests: Fix link error on MSVC 9.
8514         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8515         with $(LIB_SELECT) instead of $(LIBSOCKET).
8516
8517 2011-10-03  Bruno Haible  <bruno@clisp.org>
8518
8519         sys_select: Fix compilation error on mingw.
8520         * lib/sys_select.in.h: On native Windows, include <io.h>.
8521
8522 2011-10-03  Bruno Haible  <bruno@clisp.org>
8523
8524         wmemset: Support for MSVC.
8525         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8526         whether wmemset() exists.
8527
8528 2011-10-03  Bruno Haible  <bruno@clisp.org>
8529
8530         wmemmove: Support for MSVC.
8531         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8532         whether wmemmove() exists.
8533
8534 2011-10-03  Bruno Haible  <bruno@clisp.org>
8535
8536         wmemcpy: Support for MSVC.
8537         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8538         whether wmemcpy() exists.
8539
8540 2011-10-03  Bruno Haible  <bruno@clisp.org>
8541
8542         wmemcmp: Support for MSVC.
8543         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8544         whether wmemcmp() exists.
8545
8546 2011-10-03  Bruno Haible  <bruno@clisp.org>
8547
8548         wmemchr: Support for MSVC.
8549         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8550         whether wmemchr() exists.
8551
8552 2011-10-03  Bruno Haible  <bruno@clisp.org>
8553
8554         glthread/*, strsignal: Support for MSVC.
8555         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8556         including <winsock.h> on MSVC 9.
8557         * lib/glthread/lock.h: Likewise.
8558         * lib/glthread/thread.h: Likewise.
8559         * lib/glthread/tls.h: Likewise.
8560         * lib/glthread/yield.h: Likewise.
8561         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8562         if HAVE_UNISTD_H is false.
8563         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8564
8565 2011-10-03  Bruno Haible  <bruno@clisp.org>
8566
8567         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8568         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8569         Set to 100000.
8570
8571 2011-10-03  Bruno Haible  <bruno@clisp.org>
8572
8573         acl: Fix specification.
8574         * lib/file-has-acl.c (file_has_acl): Fix specification.
8575
8576 2011-10-03  Bruno Haible  <bruno@clisp.org>
8577
8578         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8579         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8580         (compute_curr_prefix, shared_library_fullname,
8581         find_shared_library_fullname, get_shared_library_fullname, relocate):
8582         Use it together with PIC && INSTALLDIR.
8583         Reported by <jojelino@gmail.com>
8584         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8585
8586 2011-10-01  Jim Meyering  <meyering@redhat.com>
8587
8588         maint.mk: adjust a release-related rule not to require use of gzip
8589         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8590         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8591         projects that build only .tar.xz files.  Also fix an erroneous test.
8592
8593         test-linkat: don't leave behind a temporary file
8594         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8595         Otherwise, coreutils' "make distcheck" would fail with this:
8596           Only in /c/cu/tests/torture/coreutils/test/\
8597             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8598           make[2]: *** [my-distcheck] Error 1
8599
8600         float, math: add omitted file
8601         * lib/itold.c: Add file, required for yesterday's float change.
8602
8603 2011-10-01  Bruno Haible  <bruno@clisp.org>
8604
8605         isinf: Fix for OpenBSD/x86.
8606         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8607         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8608         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8609
8610 2011-10-01  Bruno Haible  <bruno@clisp.org>
8611
8612         isfinite: Fix syntax error in configure test.
8613         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8614
8615         isfinite: Fix typo.
8616         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8617         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8618
8619 2011-10-01  Bruno Haible  <bruno@clisp.org>
8620
8621         nonblocking tests: Fix test failure on Linux/IA-64.
8622         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8623         Set to 270000.
8624
8625 2011-10-01  Bruno Haible  <bruno@clisp.org>
8626
8627         mkfifoat tests: Fix a test failure on mingw.
8628         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8629         with error ENOSYS.
8630
8631 2011-09-30  Bruno Haible  <bruno@clisp.org>
8632
8633         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8634         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8635         'long double'. Set REPLACE_ITOLD.
8636         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8637         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8638         * lib/itold.c: New file.
8639         * modules/float (Files): Add lib/itold.c.
8640         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8641         (Makefile.am): Substitute REPLACE_ITOLD.
8642         * modules/math (Depends-on): Add float.
8643         (Makefile.am): Substitute REPLACE_ITOLD.
8644         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8645         * doc/posix-headers/math.texi: Likewise.
8646         * doc/posix-functions/logl.texi: Likewise.
8647
8648 2011-09-30  Bruno Haible  <bruno@clisp.org>
8649
8650         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8651         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8652         Set to 140000.
8653
8654 2011-09-30  Bruno Haible  <bruno@clisp.org>
8655
8656         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8657         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8658         invocation, say "right after AC_PROG_CC_STDC", not "right after
8659         AC_PROG_CC".
8660         Reported by Gary V. Vaughan <gary@gnu.org>.
8661
8662 2011-09-30  Bruno Haible  <bruno@clisp.org>
8663
8664         Centralize C99 requirement.
8665         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8666         * modules/stdarg (configure.ac-early): Invoke it instead of
8667         AC_PROG_CC_STDC.
8668         Reported by Gary V. Vaughan and Paul Eggert.
8669
8670 2011-09-29  Bruno Haible  <bruno@clisp.org>
8671
8672         float: Fix LDBL_MAX value on Linux/PowerPC.
8673         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8674         on Linux/PowerPC.
8675         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8676         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8677         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8678         platform.
8679         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8680
8681 2011-09-29  Bruno Haible  <bruno@clisp.org>
8682
8683         doc: Improve doc about gl_EARLY.
8684         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8685         AC_PROG_CC_STDC invocation.
8686         Reported by Gary V. Vaughan <gary@gnu.org>.
8687
8688 2011-09-28  Bruno Haible  <bruno@clisp.org>
8689
8690         fgetc, fputc, fread, fwrite tests: Fix link error.
8691         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8692         on non-MSVC platforms.
8693         * tests/test-fputc.c (main): Likewise.
8694         * tests/test-fread.c (main): Likewise.
8695         * tests/test-fwrite.c (main): Likewise.
8696         Reported by Jim Meyering.
8697
8698 2011-09-27  Bruno Haible  <bruno@clisp.org>
8699
8700         fputc, fwrite tests: Avoid test failure on MSVC.
8701         * tests/test-fgetc.c: Include msvc-inval.h.
8702         (main): Invoke gl_msvc_inval_ensure_handler.
8703         * tests/test-fputc.c: Include msvc-inval.h.
8704         (main): Invoke gl_msvc_inval_ensure_handler.
8705         * tests/test-fread.c: Include msvc-inval.h.
8706         (main): Invoke gl_msvc_inval_ensure_handler.
8707         * tests/test-fwrite.c: Include msvc-inval.h.
8708         (main): Invoke gl_msvc_inval_ensure_handler.
8709         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8710         * modules/fputc-tests (Depends-on): Likewise.
8711         * modules/fread-tests (Depends-on): Likewise.
8712         * modules/fwrite-tests (Depends-on): Likewise.
8713
8714 2011-09-27  Bruno Haible  <bruno@clisp.org>
8715
8716         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8717         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8718         (raise): Remove older, duplicated declaration.
8719         (_gl_raise_SIGPIPE): New declaration.
8720         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8721         (rpl_raise): Remove function.
8722         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8723         a gnulib-defined SIGPIPE here.
8724         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8725         'sigprocmask' has detected missing signal-blocking and the module
8726         'sigpipe' is enabled.
8727         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8728
8729 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8730
8731         base64-tests: avoid memory leak
8732         * tests/test-base64.c (main): Plug memory leak.
8733
8734         base32: new module
8735         * modules/base32: New module.
8736         * lib/base32.c: New file.
8737         * lib/base32.h: Likewise.
8738         * m4/base32.m4: Likewise.
8739         * modules/base32-tests: New test.
8740         * tests/test-base32.c: Likewise.
8741         * MODULES.html.sh (Misc): Mention it.
8742
8743 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8744
8745         gnulib: use more-standard license notice wording
8746         * gnulib-tool (func_emit_copyright_notice): When emitting a
8747         license notice into a file, use the standard wording as suggested
8748         by the current information for GNU maintainers, except say "file"
8749         rather than "program".  The new wording gives a license version
8750         number, which addresses an issue raised by Glenn Morris in
8751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8752         * m4/onceonly.m4: Use that same wording here, too.
8753
8754         dup2: minor simplification
8755         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8756         as lib/dup2.c no longer uses 'inline'.
8757
8758 2011-09-25  Bruno Haible  <bruno@clisp.org>
8759
8760         strings: Fix compilation error on MSVC.
8761         * lib/strings.in.h: Include <stddef.h> for size_t.
8762
8763 2011-09-25  Bruno Haible  <bruno@clisp.org>
8764
8765         fflush et al.: Document limitation on MSVC.
8766         * doc/posix-functions/fflush.texi: Document possible crash in handling
8767         mode other than DEFAULT_HANDLING.
8768         * doc/posix-functions/fgetc.texi: Likewise.
8769         * doc/posix-functions/fputc.texi: Likewise.
8770         * doc/posix-functions/fread.texi: Likewise.
8771         * doc/posix-functions/fwrite.texi: Likewise.
8772
8773 2011-09-25  Bruno Haible  <bruno@clisp.org>
8774
8775         msvc-inval: Allow three invalid parameter handling modes.
8776         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8777         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8778         macros.
8779         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8780         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8781         SANE_LIBRARY_HANDLING as a no-op.
8782         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8783         <stdlib.h>.
8784         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8785
8786 2011-09-25  Bruno Haible  <bruno@clisp.org>
8787
8788         msvc-inval: Make handler multithread-safe.
8789         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8790         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8791         declarations.
8792         (gl_msvc_inval_current): New declaration.
8793         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8794         Operate on the structure returned by gl_msvc_inval_current().
8795         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8796         Remove varaiables.
8797         (tls_index, tls_initialized): New variables.
8798         (not_per_thread): New variable.
8799         (gl_msvc_inval_current): New function.
8800         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8801         returned by gl_msvc_inval_current().
8802
8803 2011-09-25  Bruno Haible  <bruno@clisp.org>
8804
8805         msvc-inval: Install handler globally.
8806         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8807         !_MSC_VER.
8808         (gl_msvc_invalid_parameter_handler): Remove declaration.
8809         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8810         declarations.
8811         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8812         Install the handler globally, don't uninstall it.
8813         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8814         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8815         currently valid, call RaiseException instead.
8816         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8817         for !_MSC_VER.
8818
8819 2011-09-25  Bruno Haible  <bruno@clisp.org>
8820
8821         strerror_r-posix: Fix for MSVC 9.
8822         * lib/strerror_r.c (local_snprintf): New function.
8823         (snprintf): Define to local_snprintf, not to _snprintf.
8824
8825 2011-09-25  Bruno Haible  <bruno@clisp.org>
8826
8827         ftruncate: Support for MSVC 9.
8828         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8829         (chsize_nothrow): New function.
8830         (chsize): Redefine as a macro.
8831         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8832         * modules/ftruncate (Depends-on): Add msvc-inval.
8833
8834 2011-09-25  Bruno Haible  <bruno@clisp.org>
8835
8836         New module 'fstat'.
8837         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8838         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8839         * lib/fchdir.c (rpl_fstat): Remove function.
8840         * m4/fstat.m4: New file.
8841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8843         declared.
8844         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8845         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8846         * modules/fstat: New file.
8847         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8848         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8849         is set.
8850         * doc/posix-functions/fstat.texi: Mention the new module and the
8851         problem on MSVC.
8852         * NEWS: Mention the change.
8853         * modules/acl (Depends-on): Add fstat.
8854         * modules/chdir-safer (Depends-on): Likewise.
8855         * modules/chown (Depends-on): Likewise.
8856         * modules/copy-file (Depends-on): Likewise.
8857         * modules/fchdir (Depends-on): Likewise.
8858         * modules/fdopendir (Depends-on): Likewise.
8859         * modules/fopen (Depends-on): Likewise.
8860         * modules/fts (Depends-on): Likewise.
8861         * modules/getcwd (Depends-on): Likewise.
8862         * modules/isapipe (Depends-on): Likewise.
8863         * modules/linkat (Depends-on): Likewise.
8864         * modules/lseek (Depends-on): Likewise.
8865         * modules/mkdir-p (Depends-on): Likewise.
8866         * modules/open (Depends-on): Likewise.
8867         * modules/openat (Depends-on): Likewise.
8868         * modules/read-file (Depends-on): Likewise.
8869         * modules/renameat (Depends-on): Likewise.
8870         * modules/utimens (Depends-on): Likewise.
8871
8872 2011-09-25  Bruno Haible  <bruno@clisp.org>
8873
8874         linkat: Fix compilation on MSVC 9.
8875         * lib/linkat.c: Don't include <stdint.h>.
8876
8877 2011-09-25  Bruno Haible  <bruno@clisp.org>
8878
8879         fclose: Support for MSVC 9.
8880         * lib/fclose.c: Include msvc-inval.h.
8881         (fclose_nothrow): New function.
8882         (rpl_fclose): Use it.
8883         * modules/fclose (Depends-on): Add msvc-inval.
8884         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8885
8886 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8887
8888         dup2: minor simplifications
8889         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8890         that it's a performance win.
8891         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8892         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8893
8894 2011-09-24  Jim Meyering  <meyering@redhat.com>
8895
8896         test-futimens: avoid a warning from gcc -Wshadow
8897         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8898         to avoid a shadowing warning.
8899
8900 2011-09-24  Bruno Haible  <bruno@clisp.org>
8901
8902         fdopen: Support for MSVC 9.
8903         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8904         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8905         * lib/fdopen.c: Include msvc-inval.h.
8906         (fdopen_nothrow): New function.
8907         (rpl_fdopen): Use it.
8908         * modules/fdopen (Depends-on): Add msvc-inval.
8909         * modules/fclose-tests (Depends-on): Add fdopen.
8910         * modules/fflush-tests (Depends-on): Likewise.
8911         * modules/fgetc-tests (Depends-on): Likewise.
8912         * modules/fputc-tests (Depends-on): Likewise.
8913         * modules/fread-tests (Depends-on): Likewise.
8914         * modules/freopen-tests (Depends-on): Likewise.
8915         * modules/fseeko-tests (Depends-on): Likewise.
8916         * modules/ftello-tests (Depends-on): Likewise.
8917         * modules/fwrite-tests  (Depends-on): Likewise.
8918         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8919
8920 2011-09-24  Bruno Haible  <bruno@clisp.org>
8921
8922         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8923         * modules/fgetc-tests (Depends-on): Add unistd.
8924         * modules/fputc-tests (Depends-on): Likewise.
8925         * modules/fread-tests (Depends-on): Likewise.
8926         * modules/fwrite-tests (Depends-on): Likewise.
8927
8928 2011-09-24  Bruno Haible  <bruno@clisp.org>
8929
8930         dup: Simplify autoconf test.
8931         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8932         on gl_MSVC_INVAL's result.
8933
8934 2011-09-24  Bruno Haible  <bruno@clisp.org>
8935
8936         Tests for function fwrite().
8937         * modules/fwrite-tests: New file.
8938         * tests/test-fwrite.c: New file.
8939         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8940
8941         Tests for function fread().
8942         * modules/fread-tests: New file.
8943         * tests/test-fread.c: New file.
8944         * modules/stdio-tests (Depends-on): Add fread-tests.
8945
8946         Activate fputc tests.
8947         * modules/stdio-tests (Depends-on): Add fputc-tests.
8948
8949         Enhance fgetc, fputc tests.
8950         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8951         * tests/test-fputc.c (main): Likewise.
8952
8953 2011-09-24  Bruno Haible  <bruno@clisp.org>
8954
8955         write: Support for MSVC 9.
8956         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8957         is not 1.
8958         * lib/write.c (write_nothrow): New function.
8959         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8960         not 1. Use write_nothrow.
8961         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8962         invalid parameter handler.
8963         (gl_PREREQ_WRITE): New macro.
8964         * modules/write (Depends-on): Add msvc-inval.
8965         (configure.ac): Invoke gl_PREREQ_WRITE.
8966         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8967
8968 2011-09-24  Bruno Haible  <bruno@clisp.org>
8969
8970         read: Fix last commit.
8971         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8972
8973 2011-09-24  Bruno Haible  <bruno@clisp.org>
8974
8975         dup2: Fix last commit.
8976         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8977         (rpl_dup2): Disable fcntl workaround on native Windows.
8978
8979         sigprocmask: Make code safer.
8980         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8981         section that changes macro definitions for this compilation unit.
8982
8983 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8984
8985         dup2: clarify by coalescing Windows-specific material
8986         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8987         "msvc-nothrow.h"' to the Windows-specific section, so that the
8988         Emacs source need not contain these include files.
8989         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8990         Windows-specific fixes into this function rather than just the
8991         nothrow fix, as this shortens and clarifies the code.  Always
8992         define as a function, as that's a bit cleaner than having it be
8993         sometimes a function and sometimes a macro.
8994         (rpl_dup2): Move the Windows-specific stuff out of here and into
8995         ms_windows_dup2.  Don't protect the Haiku-related fix with
8996         "#if !defined __linux__", as the same code also works around
8997         a Linux kernel bug, and it doesn't add any system calls on any
8998         platform.  Add comment about FreeBSD 6.1.
8999
9000         sigprocmask: move #include directive
9001         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9002         Windows-specific section, so that the Emacs source need not
9003         contain msvc-inval.h.
9004
9005 2011-09-23  Bruno Haible  <bruno@clisp.org>
9006
9007         read: Support for MSVC 9.
9008         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9009         is not 1.
9010         * lib/read.c (read_nothrow): New function.
9011         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9012         read_nothrow.
9013         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9014         invalid parameter handler.
9015         (gl_PREREQ_READ): New macro.
9016         * modules/read (Depends-on): Add msvc-inval.
9017         (configure.ac): Invoke gl_PREREQ_READ.
9018         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9019
9020 2011-09-23  Bruno Haible  <bruno@clisp.org>
9021
9022         close: Support for MSVC 9.
9023         * lib/close.c: Include <errno.h>, msvc-inval.h.
9024         (close_nothrow): New function.
9025         (rpl_close): Use it.
9026         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9027         invalid parameter handler.
9028         * modules/close (Depends-on): Add msvc-inval.
9029         * modules/dup2-tests (Depends-on): Add close.
9030         * modules/dup3-tests (Depends-on): Likewise.
9031         * modules/fcntl-tests (Depends-on): Likewise.
9032         * modules/spawn-pipe-tests (Depends-on): Likewise.
9033         * modules/unistd-safer-tests (Depends-on): Likewise.
9034         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9035
9036 2011-09-23  Bruno Haible  <bruno@clisp.org>
9037
9038         New module 'dup'.
9039         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9040         Allow replacement.
9041         * lib/dup.c: New file.
9042         * lib/fchdir.c (rpl_dup): Remove function.
9043         * m4/dup.m4: New file.
9044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9045         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9046         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9047         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9048         * modules/dup: New file.
9049         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9050         'dup' module is in use.
9051         * modules/fdopendir (Depends-on): Add dup.
9052         * modules/fdutimensat-tests (Depends-on): Likewise.
9053         * modules/fts (Depends-on): Likewise.
9054         * modules/futimens-tests (Depends-on): Likewise.
9055         * modules/posix_spawnp-tests (Depends-on): Likewise.
9056         * modules/unistd-safer-tests (Depends-on): Likewise.
9057         * modules/utimens-tests (Depends-on): Likewise.
9058         * doc/posix-functions/dup.texi: Mention the new module and the problem
9059         on MSVC.
9060
9061 2011-09-23  Bruno Haible  <bruno@clisp.org>
9062
9063         getdtablesize: Support for MSVC 9.
9064         * lib/getdtablesize.c: Include msvc-inval.h.
9065         (_setmaxstdio_nothrow): New function.
9066         (_setmaxstdio): Redefine it.
9067         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9068         * modules/getdtablesize (Depends-on): Add msvc-inval.
9069         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9070
9071 2011-09-23  Bruno Haible  <bruno@clisp.org>
9072
9073         signal-h: Rename from signal.
9074         * modules/signal-h: Renamed from modules/signal.
9075         * modules/pthread_sigmask (Depends-on): Update.
9076         * modules/raise (Depends-on): Likewise.
9077         * modules/sigaction (Depends-on): Likewise.
9078         * modules/sigpipe (Depends-on): Likewise.
9079         * modules/sigprocmask (Depends-on): Likewise.
9080         * modules/sys_select (Depends-on): Likewise.
9081         * modules/signal-h-tests: Renamed from modules/signal-tests.
9082         (Files, Depends-on, Makefile.am): Update.
9083         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9084         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9085         (Files, Makefile.am): Update.
9086         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9087         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9088         * modules/signal: New placeholder file.
9089         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9090         * doc/posix-headers/signal.texi: Update.
9091         * NEWS: Mention the change.
9092
9093 2011-09-23  Bruno Haible  <bruno@clisp.org>
9094
9095         sigprocmask: Avoid crashes through signal() on MSVC 9.
9096         * lib/sigprocmask.c: Include msvc-inval.h.
9097         (signal_nothrow): New function.
9098         (signal): Redefine it.
9099         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9100         * modules/sigprocmask (Depends-on): Add msvc-inval.
9101         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9102
9103 2011-09-23  Bruno Haible  <bruno@clisp.org>
9104
9105         Tests for module 'raise'.
9106         * modules/raise-tests: New file.
9107         * tests/test-raise.c: New file.
9108
9109         raise: Support for MSVC.
9110         * lib/signal.in.h (raise): New declaration.
9111         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9112         for native Windows platforms.
9113         * m4/raise.m4: New file.
9114         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9115         HAVE_RAISE, REPLACE_RAISE.
9116         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9117         REPLACE_RAISE.
9118         * modules/raise (Status, Notice): Remove fields.
9119         (Files): Add m4/raise.m4.
9120         (Depends-on): Add signal, msvc-inval.
9121         (configure.ac): Use the common idioms.
9122         (Maintainer): Add me.
9123         * tests/test-signal-c++.cc: Check the signature of raise.
9124         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9125
9126 2011-09-23  Bruno Haible  <bruno@clisp.org>
9127
9128         pipe2: Fix compilation on pre-C99 compilers.
9129         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9130
9131 2011-09-23  Bruno Haible  <bruno@clisp.org>
9132
9133         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9134         * lib/msvc-nothrow.h: New file.
9135         * lib/msvc-nothrow.c: New file.
9136         * m4/msvc-nothrow.m4: New file.
9137         * modules/msvc-nothrow: New file.
9138         * lib/dup2.c: Include msvc-nothrow.h.
9139         (rpl_dup2): No need to protect _get_osfhandle call here.
9140         * lib/accept4.c: Include msvc-nothrow.h.
9141         * lib/error.c: Likewise.
9142         * lib/fcntl.c: Likewise.
9143         * lib/lseek.c: Likewise.
9144         * lib/nonblocking.c: Likewise.
9145         * lib/poll.c: Likewise.
9146         * lib/read.c: Likewise.
9147         * lib/select.c: Likewise.
9148         * lib/sockets.h: Likewise.
9149         * lib/sockets.c: Likewise.
9150         * lib/stdio-read.c: Likewise.
9151         * lib/stdio-write.c: Likewise.
9152         * lib/write.c: Likewise.
9153         * lib/w32sock.h: Likewise.
9154         * lib/w32spawn.h: Likewise.
9155         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9156         * lib/fsync.c: Likewise.
9157         * lib/isapipe.c: Likewise.
9158         * modules/dup2 (Depends-on): Add msvc-nothrow.
9159         * modules/accept4 (Depends-on): Likewise.
9160         * modules/error (Depends-on): Likewise.
9161         * modules/fcntl (Depends-on): Likewise.
9162         * modules/lseek (Depends-on): Likewise.
9163         * modules/nonblocking (Depends-on): Likewise.
9164         * modules/poll (Depends-on): Likewise.
9165         * modules/read (Depends-on): Likewise.
9166         * modules/select (Depends-on): Likewise.
9167         * modules/sockets (Depends-on): Likewise.
9168         * modules/sigpipe (Depends-on): Likewise.
9169         * modules/write (Depends-on): Likewise.
9170         * modules/accept (Depends-on): Likewise.
9171         * modules/bind (Depends-on): Likewise.
9172         * modules/connect (Depends-on): Likewise.
9173         * modules/gethostname (Depends-on): Likewise.
9174         * modules/getpeername (Depends-on): Likewise.
9175         * modules/getsockname (Depends-on): Likewise.
9176         * modules/getsockopt (Depends-on): Likewise.
9177         * modules/ioctl (Depends-on): Likewise.
9178         * modules/listen (Depends-on): Likewise.
9179         * modules/recv (Depends-on): Likewise.
9180         * modules/recvfrom (Depends-on): Likewise.
9181         * modules/send (Depends-on): Likewise.
9182         * modules/sendto (Depends-on): Likewise.
9183         * modules/setsockopt (Depends-on): Likewise.
9184         * modules/shutdown (Depends-on): Likewise.
9185         * modules/socket (Depends-on): Likewise.
9186         * modules/execute (Depends-on): Likewise.
9187         * modules/spawn-pipe (Depends-on): Likewise.
9188         * modules/flock (Depends-on): Likewise.
9189         * modules/fsync (Depends-on): Likewise.
9190         * modules/isapipe (Depends-on): Likewise.
9191         * tests/test-cloexec.c: Include msvc-nothrow.h.
9192         * tests/test-dup-safer.c: Likewise.
9193         * tests/test-dup2.c: Likewise.
9194         * tests/test-dup3.c: Likewise.
9195         * tests/test-fcntl.c: Likewise.
9196         * tests/test-pipe.c: Likewise.
9197         * tests/test-pipe2.c: Likewise.
9198         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9199         * modules/unistd-safer-tests (Depends-on): Likewise.
9200         * modules/dup2-tests (Depends-on): Likewise.
9201         * modules/dup3-tests (Depends-on): Likewise.
9202         * modules/fcntl-tests (Depends-on): Likewise.
9203         * modules/pipe-posix-tests (Depends-on): Likewise.
9204         * modules/pipe2-tests (Depends-on): Likewise.
9205
9206 2011-09-23  Bruno Haible  <bruno@clisp.org>
9207
9208         dup2: Make code more maintainable.
9209         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9210         (rpl_dup2): Use it.
9211         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9212         * modules/dup2 (configure.ac): Invoke it.
9213         Reported by Paul Eggert.
9214
9215 2011-09-23  Bruno Haible  <bruno@clisp.org>
9216
9217         msvc-inval: Fix compilation error.
9218         * lib/msvc-inval.h: Include <excpt.h>.
9219
9220 2011-09-23  Bruno Haible  <bruno@clisp.org>
9221
9222         mkdir: Tweak for MSVC 9.
9223         * lib/sys_stat.in.h: Update comments.
9224         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9225
9226         Tests for module 'chdir'.
9227         * modules/chdir-tests: New file.
9228         * tests/test-chdir.c: New file.
9229
9230         New module 'chdir'.
9231         * modules/chdir: New file.
9232         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9233         (chdir): New declaration.
9234         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9235         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9236         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9237         * tests/test-unistd-c++.cc: Check signature of chdir.
9238         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9239         * modules/chdir-long (Depends-on): Add chdir.
9240         * modules/fchdir (Depends-on): Likewise.
9241         * modules/rename (Depends-on): Likewise.
9242         * modules/savewd (Depends-on): Likewise.
9243
9244         rmdir: Support for mingw, MSVC 9.
9245         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9246         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9247
9248         getcwd: Tweak for MSVC 9.
9249         * lib/unistd.in.h: Update comments.
9250         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9251
9252 2011-09-22  Bruno Haible  <bruno@clisp.org>
9253
9254         strerror_r-posix: Avoid a link error on MSVC.
9255         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9256         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9257
9258 2011-09-22  Bruno Haible  <bruno@clisp.org>
9259
9260         select: Avoid link errors on MSVC.
9261         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9262         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9263         * modules/pselect (Link): Likewise.
9264         * NEWS: Mention the change.
9265         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9266         test-select-stdin against $(LIB_SELECT).
9267         * modules/pselect-tests (Makefile.am): Link test-pselect against
9268         $(LIB_SELECT).
9269
9270 2011-09-22  Bruno Haible  <bruno@clisp.org>
9271
9272         select: Avoid compilation error on MSVC.
9273         * lib/select.c: Don't include <stdbool.h>.
9274
9275 2011-09-21  Bruno Haible  <bruno@clisp.org>
9276
9277         Consolidate all uses of PATH_MAX in *.m4 files.
9278         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9279         macros.
9280         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9281         and gl_PATHMAX_SNIPPET.
9282         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9284         * modules/chdir-long (Files): Add m4/pathmax.m4.
9285         * modules/getcwd (Files): Likewise.
9286
9287 2011-09-21  Bruno Haible  <bruno@clisp.org>
9288
9289         ftruncate: Un-deprecate, concentrate on Win32 support.
9290         * modules/ftruncate (Status, Notice): Remove sections.
9291         (Depends-on): Add largefile.
9292         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9293         non-mingw platforms.
9294         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9295         include <io.h>.
9296         * modules/perror-tests (Depends-on): Add ftruncate.
9297         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9298         'ftruncate' module.
9299
9300 2011-09-21  Bruno Haible  <bruno@clisp.org>
9301
9302         Add dependencies to new dirent related modules.
9303         * modules/opendir (Depends-on): Add closedir.
9304         * modules/getcwd (Depends-on): Add opendir, closedir.
9305         * modules/dirent-safer-tests (Depends-on): Likewise.
9306         * modules/fdopendir-tests (Depends-on): Likewise.
9307         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9308         * modules/renameat-tests (Depends-on): Likewise.
9309
9310 2011-09-21  Bruno Haible  <bruno@clisp.org>
9311
9312         opendir: Avoid compilation error on mingw.
9313         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9314         * modules/opendir (Depends-on): Add unistd.
9315
9316 2011-09-21  Bruno Haible  <bruno@clisp.org>
9317
9318         ftruncate tests: Avoid a test failure on mingw.
9319         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9320
9321 2011-09-21  Bruno Haible  <bruno@clisp.org>
9322
9323         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9324         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9325         native Windows.
9326
9327 2011-09-21  Bruno Haible  <bruno@clisp.org>
9328
9329         New module 'fdopen'.
9330         * lib/stdio.in.h (fdopen): New declaration.
9331         * lib/fdopen.c: New file.
9332         * m4/fdopen.m4: New file.
9333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9334         REPLACE_FDOPEN.
9335         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9336         REPLACE_FDOPEN.
9337         * modules/fdopen: New file.
9338         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9339         * tests/test-stdio-c++.cc: Check signature of fdopen.
9340         * doc/posix-functions/fdopen.texi: Mention the new module.
9341
9342 2011-09-21  Bruno Haible  <bruno@clisp.org>
9343
9344         unlockpt tests: Avoid test failure on NetBSD 5.1.
9345         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9346         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9347
9348 2011-09-21  Bruno Haible  <bruno@clisp.org>
9349
9350         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9351         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9352         * tests/test-getlogin_r.c (main): Likewise.
9353
9354 2011-09-20  Bruno Haible  <bruno@clisp.org>
9355
9356         time tests: Don't require pid_t.
9357         * doc/posix-headers/time.texi: Revert last change.
9358         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9359         * tests/test-time.c: Comment out the check for pid_t.
9360
9361 2011-09-20  Bruno Haible  <bruno@clisp.org>
9362
9363         fsync tests: Avoid a test failure on mingw.
9364         * tests/test-fsync.c (main): Allow a failure with EIO.
9365
9366 2011-09-20  Bruno Haible  <bruno@clisp.org>
9367
9368         euidaccess: Update comments.
9369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9370
9371 2011-09-20  Bruno Haible  <bruno@clisp.org>
9372
9373         Ensure EBADF returns for socket functions on mingw.
9374         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9375         descriptor is invalid.
9376         * lib/bind.c (rpl_bind): Likewise.
9377         * lib/connect.c (rpl_connect): Likewise.
9378         * lib/getpeername.c (rpl_getpeername): Likewise.
9379         * lib/getsockname.c (rpl_getsockname): Likewise.
9380         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9381         * lib/listen.c (rpl_listen): Likewise.
9382         * lib/recv.c (rpl_recv): Likewise.
9383         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9384         * lib/send.c (rpl_send): Likewise.
9385         * lib/sendto.c (rpl_sendto): Likewise.
9386         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9387         * lib/shutdown.c (rpl_shutdown): Likewise.
9388
9389 2011-09-20  Bruno Haible  <bruno@clisp.org>
9390
9391         select tests: EBADF tests.
9392         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9393         test_bad_fd): New functions.
9394         (test_function): Invoke also test_bad_fd.
9395
9396 2011-09-20  Bruno Haible  <bruno@clisp.org>
9397
9398         Tests for module 'posix_spawn_file_actions_addopen.
9399         * modules/posix_spawn_file_actions_addopen-tests: New file.
9400         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9401
9402         Tests for module 'posix_spawn_file_actions_adddup2'.
9403         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9404         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9405
9406         Tests for module 'posix_spawn_file_actions_addclose'.
9407         * modules/posix_spawn_file_actions_addclose-tests: New file.
9408         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9409
9410 2011-09-20  Bruno Haible  <bruno@clisp.org>
9411
9412         Tests for module 'unlockpt'.
9413         * modules/unlockpt-tests: New file.
9414         * tests/test-unlockpt.c: New file.
9415         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9416
9417         Tests for module 'grantpt'.
9418         * modules/grantpt-tests: New file.
9419         * tests/test-grantpt.c: New file.
9420         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9421
9422 2011-09-20  Bruno Haible  <bruno@clisp.org>
9423
9424         freopen tests: EBADF tests.
9425         * tests/test-freopen.c: Include errno.h, unistd.h.
9426         (main): Add tests for EBADF, commented out for the moment.
9427
9428         fclose tests: EBADF tests.
9429         * tests/test-fclose.c (main): Add tests for EBADF.
9430
9431         fflush tests: EBADF tests.
9432         * tests/test-fflush.c: Include errno.h, macros.h.
9433         (main): Add tests for EBADF.
9434
9435         ftello tests: EBADF tests.
9436         * tests/test-ftello4.sh: New file.
9437         * tests/test-ftello4.c: New file.
9438         * modules/ftello-tests (Files): Add them.
9439         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9440
9441         fseeko tests: EBADF tests.
9442         * tests/test-fseeko4.sh: New file.
9443         * tests/test-fseeko4.c: New file.
9444         * modules/fseeko-tests (Files): Add them.
9445         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9446
9447         Tests for function fputc().
9448         * modules/fputc-tests: New file.
9449         * tests/test-fputc.c: New file.
9450         * modules/stdio-tests (Depends-on): Add fputc-tests.
9451
9452         Tests for function fgetc().
9453         * modules/fgetc-tests: New file.
9454         * tests/test-fgetc.c: New file.
9455         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9456
9457         Tests for function fdopen().
9458         * modules/fdopen-tests: New file.
9459         * tests/test-fdopen.c: New file.
9460         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9461
9462         Tests for module 'vdprintf'.
9463         * modules/vdprintf-tests: New file.
9464         * tests/test-vdprintf.c: New file.
9465
9466         Tests for module 'dprintf'.
9467         * modules/dprintf-tests: New file.
9468         * tests/test-dprintf.c: New file.
9469
9470 2011-09-20  Bruno Haible  <bruno@clisp.org>
9471
9472         Tests for module 'ioctl'.
9473         * modules/ioctl-tests: New file.
9474         * tests/test-ioctl.c: New file.
9475
9476 2011-09-20  Bruno Haible  <bruno@clisp.org>
9477
9478         fcntl tests: EBADF tests.
9479         * tests/test-fcntl.c (main): Add more tests for EBADF.
9480
9481 2011-09-20  Bruno Haible  <bruno@clisp.org>
9482
9483         utimensat tests: EBADF tests.
9484         * tests/test-utimensat.c (main): Add tests for EBADF.
9485
9486         renameat tests: EBADF tests.
9487         * tests/test-renameat.c (main): Add tests for EBADF.
9488
9489         mkfifoat tests: EBADF tests.
9490         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9491
9492         readlinkat tests: EBADF tests.
9493         * tests/test-readlinkat.c (main): Add tests for EBADF.
9494
9495         symlinkat tests: EBADF tests.
9496         * tests/test-symlinkat.c (main): Add tests for EBADF.
9497
9498         linkat tests: EBADF tests.
9499         * tests/test-linkat.c (main): Add tests for EBADF.
9500
9501         Tests for module 'faccessat'.
9502         * modules/faccessat-tests: New file.
9503         * tests/test-faccessat.c: New file.
9504
9505         fdopendir tests: EBADF tests.
9506         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9507
9508         openat tests: EBADF tests.
9509         * tests/test-fchownat.c (main): Add tests for EBADF.
9510         * tests/test-fstatat.c (main): Likewise.
9511         * tests/test-mkdirat.c (main): Likewise.
9512         * tests/test-openat.c (main): Likewise.
9513         * tests/test-unlinkat.c (main): Likewise.
9514         * tests/test-fchmodat.c: New file.
9515         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9516         (Makefile.am): Also run 'test-fchmodat'.
9517
9518 2011-09-20  Bruno Haible  <bruno@clisp.org>
9519
9520         utimens, futimens, fdutimensat tests: EBADF tests.
9521         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9522
9523         Tests for function fstat().
9524         * modules/fstat-tests: New file.
9525         * tests/test-fstat.c: New file.
9526         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9527
9528 2011-09-20  Bruno Haible  <bruno@clisp.org>
9529
9530         test-ttyname_r tests: EBADF tests.
9531         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9532
9533         Tests for module 'isatty'.
9534         * modules/isatty-tests: New file.
9535         * tests/test-isatty.c: New file.
9536
9537         Tests for module 'write'.
9538         * modules/write-tests: New file.
9539         * tests/test-write.c: New file.
9540
9541         Tests for module 'read'.
9542         * modules/read-tests: New file.
9543         * tests/test-read.c: New file.
9544
9545         pwrite tests: EBADF tests.
9546         * tests/test-pwrite.c (main): Add tests for EBADF.
9547
9548         pread tests: EBADF tests.
9549         * tests/test-pread.c (main): Add tests for EBADF.
9550
9551         lseek tests: EBADF tests.
9552         * tests/test-lseek.c (main): Add more tests for EBADF.
9553
9554         Tests for module 'ftruncate'.
9555         * modules/ftruncate-tests: New file.
9556         * tests/test-ftruncate.sh: New file.
9557         * tests/test-ftruncate.c: New file.
9558
9559         fsync tests: EBADF tests.
9560         * tests/test-fsync.c (main): Add more tests for EBADF.
9561
9562         fdatasync tests: EBADF tests.
9563         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9564
9565         Tests for module 'fchown'.
9566         * modules/fchown-tests: New file.
9567         * tests/test-fchown.c: New file.
9568
9569         Tests for module 'fchmod'.
9570         * modules/fchmod-tests: New file.
9571         * tests/test-fchmod.c: New file.
9572
9573         fchdir tests: EBADF tests.
9574         * tests/test-fchdir.c (main): Add more tests for EBADF.
9575
9576         dup2 tests: EBADF tests.
9577         * tests/test-dup2.c (main): Add more tests for EBADF.
9578
9579         Tests for module 'dup'.
9580         * modules/dup-tests: New file.
9581         * tests/test-dup.c: New file.
9582
9583         Tests for module 'close'.
9584         * modules/close-tests: New file.
9585         * tests/test-close.c: New file.
9586
9587 2011-09-20  Bruno Haible  <bruno@clisp.org>
9588
9589         Tests for module 'shutdown'.
9590         * modules/shutdown-tests: New file.
9591         * tests/test-shutdown.c: New file.
9592
9593         Tests for module 'setsockopt'.
9594         * modules/setsockopt-tests: New file.
9595         * tests/test-setsockopt.c: New file.
9596
9597         Tests for module 'sendto'.
9598         * modules/sendto-tests: New file.
9599         * tests/test-sendto.c: New file.
9600
9601         Tests for module 'send'.
9602         * modules/send-tests: New file.
9603         * tests/test-send.c: New file.
9604
9605         Tests for module 'recvfrom'.
9606         * modules/recvfrom-tests: New file.
9607         * tests/test-recvfrom.c: New file.
9608
9609         Tests for module 'recv'.
9610         * modules/recv-tests: New file.
9611         * tests/test-recv.c: New file.
9612
9613         Tests for module 'listen'.
9614         * modules/listen-tests: New file.
9615         * tests/test-listen.c: New file.
9616
9617         Tests for module 'getsockopt'.
9618         * modules/getsockopt-tests: New file.
9619         * tests/test-getsockopt.c: New file.
9620
9621         Tests for module 'getsockname'.
9622         * modules/getsockname-tests: New file.
9623         * tests/test-getsockname.c: New file.
9624
9625         Tests for module 'getpeername'.
9626         * modules/getpeername-tests: New file.
9627         * tests/test-getpeername.c: New file.
9628
9629         Tests for module 'connect'.
9630         * modules/connect-tests: New file.
9631         * tests/test-connect.c: New file.
9632
9633         Tests for module 'bind'.
9634         * modules/bind-tests: New file.
9635         * tests/test-bind.c: New file.
9636
9637         accept4 tests: Fix for native Windows.
9638         * tests/test-accept4.c: Include sockets.h.
9639         (main): Invoke gl_sockets_startup.
9640         * modules/accept4-tests (Depends-on): Add sockets.
9641
9642         accept tests: Fix for native Windows.
9643         * tests/test-accept.c: Include sockets.h.
9644         (main): Invoke gl_sockets_startup.
9645         * modules/accept-tests (Depends-on): Add sockets.
9646
9647 2011-09-19  Bruno Haible  <bruno@clisp.org>
9648
9649         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9650         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9651         do...while(0).
9652         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9653         Suggested by Paul Eggert.
9654
9655 2011-09-19  Bruno Haible  <bruno@clisp.org>
9656
9657         sched: Ensure pid_t is defined.
9658         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9659         not define pid_t.
9660         * lib/sched.in.h: Include <sys/types.h>.
9661         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9662         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9663
9664 2011-09-19  Bruno Haible  <bruno@clisp.org>
9665
9666         msvc-inval: Ensure the entire expansion is a single statement.
9667         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9668         of braces.
9669
9670 2011-09-19  Jim Meyering  <meyering@redhat.com>
9671
9672         tests: use printf, not echo in init.sh's warn_ function
9673         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9674         misbehave when given strings containing a backslash or starting
9675         with e.g., -n.  James Youngman suggested setting IFS.
9676
9677 2011-09-19  Eric Blake  <eblake@redhat.com>
9678
9679         futimens: enhance test
9680         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9681         closed non-negative fd.
9682
9683         date: accept 'hence' as opposite of 'ago'
9684         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9685         * tests/test-parse-datetime.c (main): Enhance test.
9686         Suggested by Jesse Wilson.
9687
9688 2011-09-19  Jim Meyering  <meyering@redhat.com>
9689
9690         getcwd: don't fail in a deep directory on a system without openat
9691         Before this change, getcwd would fail when called from a directory
9692         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9693         the non-openat implementation used "..", "../..", "../../..", etc.
9694         to access ancestor directories.  With too many, that string would
9695         be longer than PATH_MAX.
9696         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9697         using gnulib's openat replacement.
9698         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9699         we're using the replacement function.
9700
9701 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9702
9703         maint.mk: avoid warnings from perl about missing files
9704         * top/maint.mk (def_sym_regex): Ignore files listed in
9705         $(gl_other_headers_) that do not exist, say because a project
9706         does not use a corresponding module.
9707
9708 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9709
9710         stat: use pathmax.h only if needed
9711         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9712         This is better for Emacs, which does not have a mingw port and
9713         therefore can avoid the pathmax module.
9714
9715         utimens: remove dependency on dup2
9716         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9717         to work around the Linux kernel bug.
9718         * modules/utimens (Depends-on): Remove dup2.
9719
9720 2011-09-18  Bruno Haible  <bruno@clisp.org>
9721
9722         inet_ntop, inet_pton: Look for it also in libresolv.
9723         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9724         libnsl, search for it in libresolv.
9725         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9726         Needed on Solaris 7.
9727
9728 2011-09-18  Bruno Haible  <bruno@clisp.org>
9729
9730         accept, accept4 tests: Avoid link error on Solaris.
9731         * modules/accept-tests (Makefile.am): Link test-accept against
9732         $(LIBSOCKET).
9733         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9734         $(LIBSOCKET).
9735
9736         accept4: Avoid link error on Solaris.
9737         * modules/accept4 (Link): New section.
9738
9739         socket functions: Avoid link errors on Solaris.
9740         * modules/accept (Depends-on): Add socketlib.
9741         (Link): New section.
9742         * modules/bind (Depends-on): Add socketlib.
9743         (Link): New section.
9744         * modules/connect (Depends-on): Add socketlib.
9745         (Link): New section.
9746         * modules/getpeername (Depends-on): Add socketlib.
9747         (Link): New section.
9748         * modules/getsockname (Depends-on): Add socketlib.
9749         (Link): New section.
9750         * modules/getsockopt (Depends-on): Add socketlib.
9751         (Link): New section.
9752         * modules/listen (Depends-on): Add socketlib.
9753         (Link): New section.
9754         * modules/recv (Depends-on): Add socketlib.
9755         (Link): New section.
9756         * modules/recvfrom (Depends-on): Add socketlib.
9757         (Link): New section.
9758         * modules/send (Depends-on): Add socketlib.
9759         (Link): New section.
9760         * modules/sendto (Depends-on): Add socketlib.
9761         (Link): New section.
9762         * modules/setsockopt (Depends-on): Add socketlib.
9763         (Link): New section.
9764         * modules/shutdown (Depends-on): Add socketlib.
9765         (Link): New section.
9766         * modules/socket (Depends-on): Add socketlib.
9767         (Link): New section.
9768
9769 2011-09-18  Bruno Haible  <bruno@clisp.org>
9770
9771         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9772         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9773         than 5 seconds.
9774         * modules/ptsname-tests (configure.ac): Test for alarm.
9775
9776 2011-09-18  Bruno Haible  <bruno@clisp.org>
9777
9778         posix_spawn_file_actions_add*: Fix module dependencies.
9779         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9780         posix_spawn_file_actions_init.
9781         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9782         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9783
9784 2011-09-18  Bruno Haible  <bruno@clisp.org>
9785
9786         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9787         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9788         * tests/test-renameat.c (main): Likewise.
9789
9790 2011-09-18  Bruno Haible  <bruno@clisp.org>
9791
9792         Tests for module 'accept4'.
9793         * modules/accept4-tests: New file.
9794         * tests/test-accept4.c: New file.
9795
9796 2011-09-18  Bruno Haible  <bruno@clisp.org>
9797
9798         Tests for module 'accept'.
9799         * modules/accept-tests: New file.
9800         * tests/test-accept.c: New file.
9801
9802 2011-09-18  Bruno Haible  <bruno@clisp.org>
9803
9804         dup2: Support for MSVC.
9805         * lib/dup2.c: Include msvc-inval.h.
9806         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9807         _get_osfhandle calls.
9808         * modules/dup2 (Depends-on): Add msvc-inval.
9809         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9810
9811         New module 'msvc-inval'.
9812         * lib/msvc-inval.h: New file.
9813         * lib/msvc-inval.c: New file.
9814         * m4/msvc-inval.m4: New file.
9815         * modules/msvc-inval: New file.
9816
9817 2011-09-17  Bruno Haible  <bruno@clisp.org>
9818
9819         Tests for module 'pclose'.
9820         * modules/pclose-tests: New file.
9821
9822         New module 'pclose'.
9823         * lib/stdio.in.h (pclose): New declaration.
9824         * lib/pclose.c: New file.
9825         * m4/pclose.m4: New file.
9826         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9827         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9828         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9829         * modules/pclose: New file.
9830         * modules/popen-tests (Depends-on): Add pclose.
9831         * modules/popen-safer-tests (Depends-on): Likewise.
9832         * doc/posix-functions/pclose.texi: Mention the new module.
9833
9834 2011-09-17  Bruno Haible  <bruno@clisp.org>
9835
9836         popen: Support for MSVC.
9837         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9838         * lib/popen.c (popen): Provide alternate definition for native Windows.
9839         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9841         * modules/popen (Depends-on, configure.ac): Update condition.
9842         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9843         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9844         fixed.
9845
9846 2011-09-17  Bruno Haible  <bruno@clisp.org>
9847
9848         isnanl, isnand, isnanf: Work around MSVC bug.
9849         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9850
9851 2011-09-17  Bruno Haible  <bruno@clisp.org>
9852
9853         sys_socket tests: Fix recent mistake.
9854         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9855
9856 2011-09-17  Bruno Haible  <bruno@clisp.org>
9857
9858         putenv: Support for MSVC.
9859         * modules/putenv (Depends-on): Add environ.
9860         * lib/putenv.c (environ): Disable declaration.
9861         * lib/unistd.in.h: Update comment.
9862
9863 2011-09-17  Bruno Haible  <bruno@clisp.org>
9864
9865         math: Avoid macro redefinition warnings on MSVC.
9866         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9867         Undefine before redefining.
9868
9869 2011-09-17  Bruno Haible  <bruno@clisp.org>
9870
9871         doc: Mention functions which are declared as macros.
9872         * doc/posix-functions/*[fl].texi: Mention that some functions are
9873         defined as macros with arguments only.
9874
9875 2011-09-17  Bruno Haible  <bruno@clisp.org>
9876
9877         Add dependencies to new dirent related modules.
9878         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9879         * modules/fts (Depends-on): Likewise.
9880         * modules/glob (Depends-on): Likewise.
9881         * modules/savedir (Depends-on): Likewise.
9882         * modules/scandir (Depends-on): Likewise.
9883         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9884         * modules/fdopendir (Depends-on): Add opendir.
9885
9886 2011-09-17  Bruno Haible  <bruno@clisp.org>
9887
9888         inet_pton: Support for MSVC on Windows Vista or newer.
9889         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9890         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9891         HAVE_DECL_INET_PTON is defined.
9892         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9893         On platforms with <winsock2.h>, test whether inet_pton is declared in
9894         <ws2tcpip.h>. If so, arrange to replace it.
9895         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9896         REPLACE_INET_PTON.
9897         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9898         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9899         (Depends-on, configure.ac): Update condition.
9900         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9901
9902 2011-09-17  Bruno Haible  <bruno@clisp.org>
9903
9904         inet_ntop: Support for MSVC on Windows Vista or newer.
9905         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9906         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9907         HAVE_DECL_INET_NTOP is defined.
9908         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9909         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9910         <ws2tcpip.h>. If so, arrange to replace it.
9911         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9912         REPLACE_INET_NTOP.
9913         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9914         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9915         (Depends-on, configure.ac): Update condition.
9916         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9917
9918 2011-09-16  Eric Blake  <eblake@redhat.com>
9919
9920         test-fsync: yet another enhancement
9921         * tests/test-fsync.c (main): Also test behavior on read-only text
9922         file.
9923
9924 2011-09-16  Bruno Haible  <bruno@clisp.org>
9925
9926         Enhance fsync, fdatasync tests.
9927         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9928         * tests/test-fdatasync.c (main): Likewise.
9929
9930 2011-09-16  Bruno Haible  <bruno@clisp.org>
9931
9932         Support for MSVC compiler: Ensure mode_t gets defined.
9933         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9934         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9936         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9937         * tests/test-fcntl-h.c: Check that mode_t is defined.
9938         * tests/test-sys_stat.c: Likewise.
9939         * tests/test-sys_types.c: Likewise.
9940         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9941         * doc/posix-headers/sys_stat.texi: Likewise.
9942         * doc/posix-headers/sys_types.texi: Likewise.
9943
9944 2011-09-16  Bruno Haible  <bruno@clisp.org>
9945
9946         sys_stat: Support for MSVC.
9947         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9948         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9949         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9950         MSVC.
9951
9952 2011-09-16  Bruno Haible  <bruno@clisp.org>
9953
9954         Support for MSVC compiler: Ensure off_t gets defined.
9955         * lib/unistd.in.h: Include <sys/types.h>.
9956         * tests/test-fcntl-h.c: Check that off_t is defined.
9957         * tests/test-sys_stat.c: Likewise.
9958         * tests/test-sys_types.c: Likewise.
9959
9960 2011-09-16  Eric Blake  <eblake@redhat.com>
9961
9962         fdatasync: port to Solaris
9963         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9964         * modules/fdatasync (Link): Document it.
9965         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9966
9967         fdatasync: port to MacOS X 10.7
9968         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9969         declared.
9970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9971         * modules/unistd (Makefile.am): Substitute it.
9972         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9973         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9974
9975         fdatasync: minor improvements
9976         * modules/fdatasync (Depends-on): Add condition for fsync.
9977         * lib/fdatasync.c (fdatasync): Add comment.
9978         * tests/test-unistd-c++.cc: Test fdatasync.
9979
9980         unistd: update refs to newer POSIX
9981         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9982         Suggested by Bruno Haible.
9983
9984         fdatasync: new module
9985         * modules/fsync (Description): Document difference to fdatasync.
9986         * modules/fdatasync: New module.
9987         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9988         * lib/fdatasync.c (fdatasync): Likewise.
9989         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9990         defaults.
9991         * modules/unistd (Makefile.am): Set witnesses.
9992         * lib/unistd.in.h (fdatasync): Declare.
9993         * MODULES.html.sh: Document it.
9994         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9995         * modules/fdatasync-tests: New test.
9996         * tests/test-fdatasync.c: Likewise.
9997
9998 2011-09-16  Eric Blake  <eblake@redhat.com>
9999
10000         test-fsync: enhance tests
10001         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10002         * tests/test-fsync.c (main): Enhance test.
10003
10004 2011-09-15  Bruno Haible  <bruno@clisp.org>
10005
10006         Support for MSVC compiler: Ensure ssize_t gets defined.
10007         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10008         * doc/posix-headers/stdio.texi: Likewise.
10009         * modules/stdio (Depends-on): Add ssize_t.
10010         * modules/sys_socket (Depends-on): Likewise.
10011         * modules/sys_types (Depends-on): Likewise.
10012         * modules/sys_uio (Depends-on): Likewise.
10013         * modules/unistd (Depends-on): Likewise.
10014         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10015         * tests/test-sys_types.c: Check that ssize_t is defined.
10016
10017 2011-09-14  Bruno Haible  <bruno@clisp.org>
10018
10019         Avoid using #, the m4 comment starter character, near brackets.
10020         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10021         delimiter character in sed expressions.
10022         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10023         Suggested by Eric Blake.
10024
10025         Properly quote AC_CHECK_DECLS' 4th argument.
10026         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10027         argument.
10028         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10029         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10030         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10031         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10032         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10033         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10035         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10036         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10037         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10038         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10039         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10040         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10041         * m4/isinf.m4 (gl_ISINF): Likewise.
10042         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10043         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10044         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10045         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10047         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10048         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10049         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10050         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10051         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10052         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10053         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10055         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10057         Reported by Eric Blake.
10058
10059         Properly quote AC_CHECK_DECL's 4th argument.
10060         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10061         argument.
10062         * m4/argp.m4 (gl_ARGP): Likewise.
10063         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10064         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10065         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10066         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10067         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10068         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10070         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10071         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10072         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10073         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10074         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10075         Reported by Eric Blake.
10076
10077 2011-09-14  Eric Blake  <eblake@redhat.com>
10078
10079         opendir: avoid compile warning
10080         * lib/opendir.c (includes): Always include errno.h.
10081         Reported by Tatsuro MATSUOKA.
10082
10083 2011-09-14  Jim Meyering  <meyering@redhat.com>
10084
10085         maint.mk: sc_tight_scope: propagate failure from sub-make
10086         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10087         Reported by Martin von Gagern.
10088
10089 2011-09-13  Bruno Haible  <bruno@clisp.org>
10090
10091         tempname: Support for MSVC.
10092         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10093         MSVC.
10094         * modules/tempname (Depends-on): Add fcntl-h.
10095
10096 2011-09-13  Bruno Haible  <bruno@clisp.org>
10097
10098         sys_time: Support for MSVC.
10099         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10100         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10101         include <winsock2.h>.
10102         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10103         function declarations that collide with POSIX.
10104         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10105         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10106
10107 2011-09-13  Bruno Haible  <bruno@clisp.org>
10108
10109         stat: Support for MSVC.
10110         * lib/stat.c: Include pathmax.h.
10111         * modules/stat (Depends-on): Add pathmax.
10112
10113         pathmax: Support for native Windows.
10114         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10115
10116 2011-09-12  Bruno Haible  <bruno@clisp.org>
10117
10118         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10119         * lib/dirent.in.h (struct dirent): New type.
10120         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10121         DT_WHT): New macros.
10122         (DIR): New type.
10123         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10124         (readdir, rewinddir): New declarations.
10125         * lib/dirent-private.h: New file.
10126         * lib/opendir.c: New file.
10127         * lib/readdir.c: New file.
10128         * lib/rewinddir.c: New file.
10129         * lib/closedir.c: New file.
10130         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10131         * m4/opendir.m4: New file.
10132         * m4/readdir.m4: New file.
10133         * m4/rewinddir.m4: New file.
10134         * m4/closedir.m4: New file.
10135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10136         REPLACE_CLOSEDIR here.
10137         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10138         readdir, rewinddir are declared.
10139         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10140         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10141         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10142         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10143         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10144         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10145         * modules/opendir: New file.
10146         * modules/readdir: New file.
10147         * modules/rewinddir: New file.
10148         * modules/closedir: New file.
10149         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10150         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10151         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10152         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10153         * NEWS: Mention the 'fchdir' change.
10154
10155 2011-09-11  Bruno Haible  <bruno@clisp.org>
10156
10157         asm-underscore.m4: Support for MSVC.
10158         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10159         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10160
10161 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10162
10163         Doc about crypt functions.
10164         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10165         needing for _GNU_SOURCE to get crypt.
10166         * doc/posix-functions/encrypt.texi: Likewise.
10167         * doc/posix-functions/setkey.texi: Likewise.
10168
10169 2011-09-11  Bruno Haible  <bruno@clisp.org>
10170
10171         doc: Update regarding MSVC 9.
10172         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10173         tested".
10174         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10175         * doc/posix-headers/*.texi: Likewise.
10176         * doc/pastposix-functions/*.texi: Likewise.
10177         * doc/glibc-functions/*.texi: Likewise.
10178         * doc/glibc-headers/*.texi: Likewise.
10179
10180 2011-09-11  Bruno Haible  <bruno@clisp.org>
10181
10182         unistd et al.: Don't assume <unistd.h> exists.
10183         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10184         does not exist.
10185         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10186         exist. But include <stdlib.h>.
10187         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10188         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10189         symlink() does not exist.
10190         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10191         include <io.h> instead.
10192         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10193         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10194         include <direct.h> instead.
10195         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10196         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10197         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10198         <io.h> instead.
10199         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10200         correctly if the system does not have hard links.
10201         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10202         <direct.h> instead.
10203         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10204         it when looking for function declarations.
10205         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10206         <direct.h> and <io.h> instead.
10207         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10208
10209 2011-09-11  Bruno Haible  <bruno@clisp.org>
10210
10211         strcase: Support for MSVC.
10212         * modules/strcase (Status, Notice): Remove obsoletion mark.
10213         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10214         * doc/posix-functions/strncasecmp.texi: Likewise.
10215
10216         strings: Don't assume <strings.h> exists.
10217         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10218         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10219         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10220         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10221
10222 2011-09-11  Bruno Haible  <bruno@clisp.org>
10223
10224         dirent: Don't assume <dirent.h> exists.
10225         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10226         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10227         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10228         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10229
10230 2011-09-11  Bruno Haible  <bruno@clisp.org>
10231
10232         Fix wint_t on MSVC.
10233         * lib/wchar.in.h (wint_t): On MSVC, override it.
10234         * lib/wctype.in.h (wint_t): Likewise.
10235         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10236         MSVC.
10237         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10238         * doc/posix-headers/wctype.texi: Likewise.
10239
10240 2011-09-11  Bruno Haible  <bruno@clisp.org>
10241
10242         sys_types: Fix typo.
10243         * lib/sys_types.in.h: Fix typo in comment.
10244         Reported by Paul Eggert.
10245
10246         Support for MSVC compiler: Ensure size_t gets defined.
10247         * modules/strings (Depends-on): Add 'sys_types'.
10248         * modules/sys_uio (Depends-on): Likewise.
10249         * lib/sys_uio.in.h: Update comment.
10250
10251         C++ tests for module 'sys_types'.
10252         * modules/sys_types-c++-tests: New file.
10253         * tests/test-sys_types-c++.cc: New file.
10254
10255         Tests for module 'sys_types'.
10256         * modules/sys_types-tests: New file.
10257         * tests/test-sys_types.c: New file.
10258
10259         New module 'sys_types'.
10260         * lib/sys_types.in.h: New file.
10261         * m4/sys_types_h.m4: New file.
10262         * modules/sys_types: New file.
10263         * doc/posix-headers/sys_types.texi: Mention the new module and the
10264         size_t problem on MSVC 9.
10265
10266 2011-09-11  Bruno Haible  <bruno@clisp.org>
10267
10268         Support for MSVC compiler: Avoid division by a literal 0.
10269         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10270         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10271         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10272         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10273         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10274         * tests/infinity.h: New file.
10275         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10276         on MSVC.
10277         * tests/test-ceilf1.c: Include infinity.h.
10278         (main): Use Infinityf.
10279         * tests/test-ceil1.c: Include infinity.h.
10280         (main): Use Infinityd.
10281         * tests/test-ceill.c: Include infinity.h.
10282         (main): Use Infinityl.
10283         * tests/test-dprintf-posix.c: Include infinity.h.
10284         (test_function): Use Infinityd.
10285         * tests/test-floorf1.c: Include infinity.h.
10286         (main): Use Infinityf.
10287         * tests/test-floor1.c: Include infinity.h.
10288         (main): Use Infinityd.
10289         * tests/test-floorl.c: Include infinity.h.
10290         (main): Use Infinityl.
10291         * tests/test-fprintf-posix.c: Include infinity.h.
10292         (test_function): Use Infinityd.
10293         * tests/test-frexp.c: Include infinity.h.
10294         (main): Use Infinityd.
10295         * tests/test-frexpl.c: Include infinity.h.
10296         (main): Use Infinityl.
10297         * tests/test-isfinite.c: Include infinity.h.
10298         (test_isfinitef): Use Infinityf.
10299         (test_isfinited): Use Infinityd.
10300         (test_isfinitel): Use Infinityl.
10301         * tests/test-isinf.c: Include infinity.h.
10302         (test_isinff): Use Infinityf.
10303         (test_isinfd): Use Infinityd.
10304         (test_isinfl): Use Infinityl.
10305         * tests/test-isnan.c: Include infinity.h.
10306         (test_float): Use Infinityf.
10307         (test_double): Use Infinityd.
10308         (test_long_double): Use Infinityl.
10309         * tests/test-isnanf.h: Include infinity.h.
10310         (main): Use Infinityf.
10311         * tests/test-isnand.h: Include infinity.h.
10312         (main): Use Infinityd.
10313         * tests/test-isnanl.h: Include infinity.h.
10314         (main): Use Infinityl.
10315         * tests/test-ldexpl.c: Include infinity.h.
10316         (main): Use Infinityl.
10317         * tests/test-printf-posix.h: Include infinity.h.
10318         (test_function): Use Infinityd.
10319         * tests/test-roundf1.c: Include infinity.h.
10320         (main): Use Infinityf.
10321         * tests/test-round1.c: Include infinity.h.
10322         (main): Use Infinityd.
10323         * tests/test-roundl.c: Include infinity.h.
10324         (main): Use Infinityl.
10325         * tests/test-signbit.c: Include infinity.h.
10326         (test_signbitf): Use Infinityf.
10327         (test_signbitd): Use Infinityd.
10328         (test_signbitl): Use Infinityl.
10329         * tests/test-snprintf-posix.h: Include infinity.h.
10330         (test_function): Use Infinityd, Infinityl.
10331         * tests/test-sprintf-posix.h: Include infinity.h.
10332         (test_function): Use Infinityd, Infinityl.
10333         * tests/test-truncf1.c: Include infinity.h.
10334         (main): Use Infinityf.
10335         * tests/test-trunc1.c: Include infinity.h.
10336         (main): Use Infinityd.
10337         * tests/test-truncl.c: Include infinity.h.
10338         (main): Use Infinityl.
10339         * tests/test-vasnprintf-posix.c: Include infinity.h.
10340         (test_function): Use Infinityd, Infinityl.
10341         * tests/test-vasprintf-posix.c: Include infinity.h.
10342         (test_function): Use Infinityd, Infinityl.
10343         * modules/ceilf-tests (Files): Add tests/infinity.h.
10344         * modules/ceil-tests (Files): Likewise.
10345         * modules/ceill-tests (Files): Likewise.
10346         * modules/dprintf-posix-tests (Files): Likewise.
10347         * modules/floorf-tests (Files): Likewise.
10348         * modules/floor-tests (Files): Likewise.
10349         * modules/floorl-tests (Files): Likewise.
10350         * modules/fprintf-posix-tests (Files): Likewise.
10351         * modules/frexp-tests (Files): Likewise.
10352         * modules/frexp-nolibm-tests (Files): Likewise.
10353         * modules/frexpl-tests (Files): Likewise.
10354         * modules/frexpl-nolibm-tests (Files): Likewise.
10355         * modules/isfinite-tests (Files): Likewise.
10356         * modules/isinf-tests (Files): Likewise.
10357         * modules/isnan-tests (Files): Likewise.
10358         * modules/isnanf-tests (Files): Likewise.
10359         * modules/isnanf-nolibm-tests (Files): Likewise.
10360         * modules/isnand-tests (Files): Likewise.
10361         * modules/isnand-nolibm-tests (Files): Likewise.
10362         * modules/isnanl-tests (Files): Likewise.
10363         * modules/isnanl-nolibm-tests (Files): Likewise.
10364         * modules/ldexpl-tests (Files): Likewise.
10365         * modules/printf-posix-tests (Files): Likewise.
10366         * modules/roundf-tests (Files): Likewise.
10367         * modules/round-tests (Files): Likewise.
10368         * modules/roundl-tests (Files): Likewise.
10369         * modules/signbit-tests (Files): Likewise.
10370         * modules/snprintf-posix-tests (Files): Likewise.
10371         * modules/sprintf-posix-tests (Files): Likewise.
10372         * modules/truncf-tests (Files): Likewise.
10373         * modules/trunc-tests (Files): Likewise.
10374         * modules/truncl-tests (Files): Likewise.
10375         * modules/vasnprintf-posix-tests (Files): Likewise.
10376         * modules/vasprintf-posix-tests (Files): Likewise.
10377         * modules/vdprintf-posix-tests (Files): Likewise.
10378         * modules/vfprintf-posix-tests (Files): Likewise.
10379         * modules/vprintf-posix-tests (Files): Likewise.
10380         * modules/vsnprintf-posix-tests (Files): Likewise.
10381         * modules/vsprintf-posix-tests (Files): Likewise.
10382         * modules/xprintf-posix-tests (Files): Likewise.
10383
10384 2011-09-11  Bruno Haible  <bruno@clisp.org>
10385
10386         Ensure pid_t gets defined.
10387         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10388         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10389         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10390         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10391         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10392         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10393         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10394         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10395         * tests/test-fcntl-h.c: Check that pid_t is defined.
10396         * tests/test-sched.c: Likewise.
10397         * tests/test-termios.c: Likewise.
10398         * tests/test-time.c: Likewise.
10399         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10400         * doc/posix-headers/signal.texi: Likewise.
10401         * doc/posix-headers/sys_types.texi: Likewise.
10402         * doc/posix-headers/time.texi: Likewise.
10403
10404 2011-09-11  Bruno Haible  <bruno@clisp.org>
10405
10406         acl: Fix compilation on Solaris 10 (older version).
10407         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10408         of ACE_EVERYONE.
10409         * lib/set-mode-acl.c (qset_acl): Likewise.
10410         Reported by Christian Jullien <eligis@orange.fr>.
10411
10412 2011-09-10  Bruno Haible  <bruno@clisp.org>
10413
10414         iconv, unsetenv: Add support for MSVC compiler.
10415         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10416         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10417
10418 2011-09-10  Bruno Haible  <bruno@clisp.org>
10419
10420         *printf: Add support for MSVC compiler.
10421         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10422         handles the exception caused by the %n directive. When cross-compiling,
10423         guess no on native Windows.
10424         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10425         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10426         emulate it through vsnprintf.
10427         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10428         * doc/posix-functions/dprintf.texi: Update documentation regarding
10429         MSVC 9.
10430         * doc/posix-functions/fprintf.texi: Likewise.
10431         * doc/posix-functions/printf.texi: Likewise.
10432         * doc/posix-functions/snprintf.texi: Likewise.
10433         * doc/posix-functions/sprintf.texi: Likewise.
10434         * doc/posix-functions/swprintf.texi: Likewise.
10435         * doc/posix-functions/vdprintf.texi: Likewise.
10436         * doc/posix-functions/vfprintf.texi: Likewise.
10437         * doc/posix-functions/vprintf.texi: Likewise.
10438         * doc/posix-functions/vsnprintf.texi: Likewise.
10439         * doc/posix-functions/vsprintf.texi: Likewise.
10440         * doc/glibc-functions/asprintf.texi: Likewise.
10441         * doc/glibc-functions/obstack_printf.texi: Likewise.
10442         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10443         * doc/glibc-functions/vasprintf.texi: Likewise.
10444
10445 2011-09-10  Bruno Haible  <bruno@clisp.org>
10446
10447         nocrash: Add support for native Windows.
10448         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10449
10450 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10451             Bruno Haible  <bruno@clisp.org>
10452
10453         absolute-header, include-next: Add support for MSVC compiler.
10454         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10455         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10456         directory separator in #line directives.
10457         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10458         recognize also backslash as directory separator in #line directives.
10459
10460 2011-09-08  Jim Meyering  <meyering@redhat.com>
10461
10462         maint.mk: mark the post-release commit log with "maint: " prefix
10463         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10464         one-line commit-log summary.
10465
10466 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10467             Bruno Haible  <bruno@clisp.org>
10468
10469         Doc about crypt functions.
10470         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10471         systems.
10472         * doc/posix-functions/encrypt.texi: Likewise.
10473         * doc/posix-functions/setkey.texi: Likewise.
10474
10475 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10476
10477         * lib/gc.h: Fix copyright header.
10478
10479 2011-09-07  Bruno Haible  <bruno@clisp.org>
10480
10481         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10482         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10483         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10484
10485 2011-09-07  Bruno Haible  <bruno@clisp.org>
10486
10487         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10488         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10489         * lib/freopen.c: Likewise.
10490         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10491         * lib/lstat.c: Likewise.
10492         * lib/stat.c: Likewise.
10493         * lib/open.c: Use different syntax for include of <fcntl.h>.
10494         * lib/openat.c: Include fcntl.h again, explicitly.
10495
10496 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10497
10498         parse-datetime: document the newly accepted format
10499         * doc/parse-datetime.texi (Combined date and time of day items):
10500         New section.
10501
10502 2011-09-06  Bruno Haible  <bruno@clisp.org>
10503
10504         acl: Fix a test failure on newer Solaris 10 with ZFS.
10505         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10506         ENOSYS as no ACL.
10507         Reported by Jim Meyering.
10508
10509 2011-09-06  Bruno Haible  <bruno@clisp.org>
10510
10511         acl: Update for AIX >= 5.3 with NFS.
10512         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10513         ENOSYS as no ACL.
10514
10515         acl: Fix a test failure on AIX >= 5.3 with NFS.
10516         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10517         as no ACL.
10518
10519 2011-09-06  Bruno Haible  <bruno@clisp.org>
10520
10521         acl: Fix a test failure on IRIX 6.5 with NFS.
10522         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10523         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10524         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10525         * lib/copy-acl.c (qcopy_acl): Likewise.
10526
10527 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         openat: port to AIX 7.1 with large files
10530         AIX 7.1 does a "#define openat open64at" if large files are in use,
10531         so we can't simply #undef openat.  Use the orig_openat trick (similar
10532         to orig_open in lib/open.c) to work around the problem.  Problem
10533         reported by Kevin Brott for GNU tar, in the thread containing
10534         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10535         * lib/openat.c (__need_system_fcntl_h): Define first.
10536         Include <fcntl.h> and <sys/types.h> before undefining.
10537         (orig_openat) [HAVE_OPENAT]: New inline function.
10538         (openat) [HAVE_OPENAT]: Do not undef.
10539         (rpl_openat): Use orig_openat, not openat.
10540
10541 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10542             Bruno Haible  <bruno@clisp.org>
10543
10544         acl: Avoid errors on NonStop Kernel.
10545         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10546         ENOTSUP errors.
10547
10548 2011-09-05  Bruno Haible  <bruno@clisp.org>
10549
10550         acl: Clean up Solaris code.
10551         * lib/acl-internal.h: Remove no-op #if.
10552         * lib/file-has-acl.c: Likewise.
10553         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10554         * lib/copy-acl.c (qcopy_acl): Likewise.
10555
10556 2011-09-05  Bruno Haible  <bruno@clisp.org>
10557
10558         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10559         binaries built on the original Solaris 10.
10560         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10561         trivial.
10562
10563 2011-09-05  Bruno Haible  <bruno@clisp.org>
10564
10565         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10566         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10567         10.
10568         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10569         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10570         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10571         instead of acl_get, facl_get, acl_set, facl_set.
10572
10573 2011-09-05  Bruno Haible  <bruno@clisp.org>
10574
10575         copy-file: Try unit tests on more file systems.
10576         * tests/test-copy-file-1.sh: New file.
10577         * tests/test-copy-file-2.sh: New file.
10578         * modules/copy-file-tests (Files): Add them.
10579         (Makefile.am): Add them to TESTS.
10580
10581         acl: Try unit tests on more file systems.
10582         * tests/test-file-has-acl-1.sh: New file.
10583         * tests/test-file-has-acl-2.sh: New file.
10584         * tests/test-set-mode-acl-1.sh: New file.
10585         * tests/test-set-mode-acl-2.sh: New file.
10586         * tests/test-copy-acl-1.sh: New file.
10587         * tests/test-copy-acl-2.sh: New file.
10588         * modules/acl-tests (Files): Add them.
10589         (Makefile.am): Add them to TESTS.
10590
10591 2011-09-04  Bruno Haible  <bruno@clisp.org>
10592
10593         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10594         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10595         10.
10596         (OLD_ALLOW, OLD_DENY): New macros.
10597         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10598         ACE_ACCESS_ALLOWED_ACE_TYPE.
10599         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10600         ACE_ACCESS_DENIED_ACE_TYPE.
10601         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10602         (NEW_ACE_EXECUTE): Fix value.
10603         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10604         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10605         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10606         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10607         NEW_ACE_SYNCHRONIZE): New macros.
10608         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10609         instead of acl_fromtext, acl_set, facl_set.
10610         Fixes a coreutils/tests/cp/perm failure.
10611
10612 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10613
10614         openat: test for fstatat (..., 0) bug
10615         Further testing with tar suggests that fstatat (..., 0)
10616         does not work in general, on AIX 7.1; see
10617         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10618         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10619         replacement fstatat (which is what older AIX releases were using
10620         anyway).
10621         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10622         use is now changed to orig_fstatat.  This was probably the right
10623         thing to do anyway.
10624         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10625         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10626         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10627         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10628         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10629         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10630         if the bug is found.
10631
10632         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10633         This tests for another fstatat bug on AIX 7.1:
10634         fstatat (AT_FDCWD, ..., 0) does not work.  See
10635         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10636         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10637         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10638         (rpl_fstatat): Adjust so that it works around either (or both)
10639         bugs if present.
10640         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10641
10642 2011-09-03  Karl Berry  <karl@gnu.org>
10643
10644         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10645         in index entries.
10646
10647 2011-09-02  Bruno Haible  <bruno@clisp.org>
10648
10649         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10650         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10651         values of AR, ARFLAGS, RANLIB.
10652         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10653
10654 2011-09-02  Bruno Haible  <bruno@clisp.org>
10655
10656         Find 'ar' program that fits with --host argument.
10657         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10658
10659 2011-09-02  Bruno Haible  <bruno@clisp.org>
10660
10661         tests: init.sh: Support any non-GNU diff.
10662         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10663         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10664         Solaris 8.
10665
10666 2011-09-02  Bruno Haible  <bruno@clisp.org>
10667
10668         tests: init.sh: work also with any non-GNU diff that supports -u
10669         * tests/init.sh: Relax check for diff -u support.
10670         Rather than checking for GNU diff via --version, simply check
10671         for support for -u itself.  Useful at least on OpenBSD 4.9,
10672         AIX 7.1, IRIX 6.5, and Solaris 10.
10673
10674 2011-09-01  Bruno Haible  <bruno@clisp.org>
10675
10676         strtoimax, strtoumax: Document problem on HP-UX 11.
10677         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10678         * doc/posix-functions/strtoumax.texi: Likewise.
10679
10680 2011-09-01  Bruno Haible  <bruno@clisp.org>
10681
10682         strtoumax: Avoid link error on OSF/1 with DTK cc.
10683         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10684         defined as a function.
10685         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10686         strtoumax is defined, not whether it is declared.
10687
10688 2011-09-01  Bruno Haible  <bruno@clisp.org>
10689
10690         strtoimax: Avoid link error on OSF/1 with DTK cc.
10691         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10692         defined as a function.
10693         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10694         strtoimax is defined, not whether it is declared.
10695
10696 2011-09-01  Bruno Haible  <bruno@clisp.org>
10697
10698         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10699         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10700         as a function.
10701         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10702         whether it is declared.
10703
10704 2011-09-01  Bruno Haible  <bruno@clisp.org>
10705
10706         imaxabs: Avoid link error on OSF/1 with DTK cc.
10707         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10708         as a function.
10709         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10710         whether it is declared.
10711
10712 2011-09-01  Bruno Haible  <bruno@clisp.org>
10713
10714         Tests for module 'strtoumax'.
10715         * modules/strtoumax-tests: New file.
10716         * tests/test-strtoumax.c: New file.
10717
10718         Tests for module 'strtoimax'.
10719         * modules/strtoimax-tests: New file.
10720         * tests/test-strtoimax.c: New file.
10721
10722         Tests for module 'imaxdiv'.
10723         * modules/imaxdiv-tests: New file.
10724         * tests/test-imaxdiv.c: New file.
10725
10726         Tests for module 'imaxabs'.
10727         * modules/imaxabs-tests: New file.
10728         * tests/test-imaxabs.c: New file.
10729
10730 2011-09-01  Bruno Haible  <bruno@clisp.org>
10731
10732         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10733         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10734         pthread_create.
10735
10736 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10737
10738         openat: work around AIX 7.1 fstatat issue
10739         This should fix the problem that was not properly fixed
10740         in the previous change, dated 2011-08-30.
10741         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10742         __need_system_stat_h defined.
10743         (orig_fstatat) [HAVE_FSTATAT]: New function.
10744         (rpl_fstatat): Go back to the old way of doing things,
10745         except call orig_fstatat instead of fstatat.
10746         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10747         Remove unnecessary check whether fstatat fills in st_size etc.
10748
10749 2011-09-01  Bruno Haible  <bruno@clisp.org>
10750
10751         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10752         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10753         just include the system's header.
10754
10755 2011-08-31  Jim Meyering  <meyering@redhat.com>
10756
10757         tests: avoid spurious assertion failure in test-float.c on ppc64
10758         * tests/test-float.c (test_long_double): Comment out an assertion,
10759         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10760         with gcc-4.4.4.
10761
10762         maint: indent with spaces, not TABs
10763         I need to get in the habit of running gnulib's "make check".
10764         Both of these would have been caught.
10765         * m4/largefile.m4: Indent with spaces, not TABs.
10766         * lib/parse-datetime.y (iso_8601_time): Likewise.
10767         Spotted by Pádraig Brady.
10768
10769         test-parse-datetime.c: accommodate a relatively strict gcc warning
10770         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10771         to avoid a warning from gcc's -Werror=missing-declarations.
10772         Insert a few spaces-before-funcall-parenthesis.
10773
10774 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10775
10776         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10777         The parser now accepts ISO 8601 date-time strings with "T" as the
10778         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10779         with a space between the date and time strings.  Now it also parses
10780         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10781         variants like "2004-02-29T16:21:42.333-07:00"
10782         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10783         of day representation using the 'T' separator character.
10784         * doc/parse-datetime.texi (General date syntax): replace use of
10785         deprecated --iso-8601 option with --rfc-3339 in example of date
10786         command output formats that can be parsed.
10787         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10788         lib/parse-datetime.y.
10789         (gmt_offset): New function.
10790         (main): Add additional test cases to validate ISO8601 extended
10791         date and time of day parsing.
10792
10793 2011-08-31  Bruno Haible  <bruno@clisp.org>
10794
10795         freopen: Documentation.
10796         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10797         name.
10798         Reported by Claudio Bley <claudio.bley@gmail.com>.
10799
10800 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10801
10802         freopen: Don't crash if the filename argument is NULL.
10803         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10804         NULL.
10805
10806 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10807
10808         openat: work around AIX 7.1 fstatat bug
10809         Problem reported by Kevin Brott for GNU tar, in the thread containing
10810         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10811         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10812         FSTATAT_ST_SIZE_ETC_BROKEN.
10813         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10814         rpl_fstatat.
10815         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10816         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10817         AC_CHECK_FUNCS_ONCE for fstatat.
10818         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10819         fchmodat, mkdirat, openat and unlinkat.
10820
10821 2011-08-30  Bruno Haible  <bruno@clisp.org>
10822
10823         Avoid endless recursions if config.h includes some header files.
10824         * lib/fopen.c (__need_FILE): Define already before including config.h.
10825         * lib/freopen.c (__need_FILE): Likewise.
10826         * lib/open.c (__need_system_fcntl_h): Likewise.
10827         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10828         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10829         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10830
10831 2011-08-25  Karl Berry  <karl@gnu.org>
10832
10833         * config/srclist.txt (ylwrap): new try.
10834         * build-aux/ylwrap: new file.
10835
10836 2011-08-23  Bruno Haible  <bruno@clisp.org>
10837
10838         tmpdir: Use a good default directory on native Windows.
10839         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10840         (P_tmpdir): Default to _P_tmpdir on native Windows.
10841         (path_search): On native Windows, try the value returned by GetTempPath
10842         before trying P_tmpdir.
10843         * modules/tmpdir (Depends-on): Add pathmax.
10844         Suggested by John Darrington <john@darrington.wattle.id.au>.
10845
10846 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10847
10848         doc: fix typo in README-release
10849         * top/README-release: Capitalize first word of a sentence.
10850
10851 2011-08-19  Jim Meyering  <meyering@redhat.com>
10852
10853         fts: do not exhaust memory when processing million-entry directories
10854         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10855         directory would require about 256*N bytes of memory.  Thus, it was
10856         easy to construct a directory too large to be processed by any of
10857         those tools.  With this change, fts' maximum memory utilization is
10858         now limited to around 30MB.
10859         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10860         (fts_read): When we've processed the final entry (i.e., when
10861         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10862         using the parent entry to read any remaining entries.  Dispatch
10863         depending on what fts_build returns:
10864         - NULL+stop, aka failure: stop
10865         - NULL otherwise: move up in the dir hierarchy
10866         - non-NULL: handle this new entry
10867         (fts_build): Declare and use new local, continue_readdir.
10868         Prepare to be called from fts_read, when the entries
10869         from a partially-read directory have just been exhausted.
10870         In that case, we'll skip the opendir and instead use the parent's
10871         fts_dirp and derive dir_fd from that.
10872         Finally, in the readdir loop, if we read max_entries entries,
10873         exit the loop ensuring *not* to call closedir.  This is required
10874         so that fts_dirp can be reused on a subsequent call.
10875         Prompted by Ben England's report of memory exhaustion in find
10876         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10877
10878         maint: fts: move decl of `dp' down into while loop; split a long line
10879         * lib/fts.c (fts_build): No semantic change.
10880
10881         fts: add/use new struct member, fts_dirp
10882         We are about to use this to manage any directory with
10883         too many entries to read all of them into memory at once.
10884         To do that, we'll need to save the DIR* pointer in each
10885         affected FTSENT struct.
10886         * lib/fts_.h: Include <dirent.h>.
10887         (struct FTSENT) [fts_dirp]: New member.
10888         * lib/fts.c (closedir_and_clear): Define.
10889         Use it in place of closedir so that we are sure to
10890         clear the new fts_dirp member when done with it.
10891         (fts_alloc): Initialize the new member.
10892         (fts_lfree): Free, if needed.
10893
10894         maint: fts: give __opendir2 a new parameter and rename
10895         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10896         than surreptitiously using sole caller's "dir_fd".
10897         (fts_opendir): Rename from __opendir2.
10898
10899         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10900         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10901
10902         maint: fts.c: correct off-by-one indentation
10903         * lib/fts.c (fts_build): Correct indentation, change style
10904         of a couple of block comments, and bracing style.
10905
10906         maint: fts.c: move __opendir2 #define "up" out of function body
10907         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10908
10909         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10910         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10911         out for a long time and besides was useful only on BSD systems.
10912
10913 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10914
10915         regex: port to Stratus OpenVOS
10916         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10917         define to empty, rather than attempting nonportable optimizations.
10918         Problem reported by Paul Green in:
10919         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10920         and fix suggested by Eric Blake in:
10921         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10922
10923 2011-08-17  Eric Blake  <eblake@redhat.com>
10924
10925         getcwd: fix test failures on mingw
10926         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10927         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10928         test if long directory cannot be created, and allow mingw errno.
10929
10930         getcwd-lgpl: fix m4 to match relaxed test for BSD
10931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10932         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10933         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10934         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10935         signature problem.
10936
10937         getcwd: fix compilation on mingw64
10938         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10939         getcwd.
10940         Reported by Marc-André Lureau.
10941
10942         pipe2: silence compiler warning
10943         * lib/pipe2.c (pipe2): Hide label if it is not used.
10944
10945 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10946
10947         relocatable-prog: fix link error
10948         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10949         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10950         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10951         into modules/relocatable-lib without noticing that
10952         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10953         also needs to build relocatable.c.
10954
10955 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10956
10957         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10958         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10959         shell code: it contained a 'break' that was not in a loop.
10960         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10961         via a shell-language loop; this may have been true in old Autoconf
10962         versions, but it's not true in Autoconf 2.68.  I found this bug
10963         when testing coreutils git on Solaris 8, whose shell complains
10964         about the syntax error.
10965
10966 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10967
10968         * lib/base64.c: Fix comment to reference RFC 4648.
10969         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10970         <gvtulder@gmail.com>.
10971
10972 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10973
10974         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10975
10976         po/Makefile.in.in: fix make -q problem
10977         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10978         rule, since there's no file named 'check-macro-version' and its
10979         use as a file breaks make -q.
10980         (all): Don't depend on check-macro-version.
10981         (CHECK_MACRO_VERSION): New macro.
10982         (stamp-po): Use it.
10983
10984         configmake: fix make -q problem
10985         * modules/configmake (configmake.h): Update configmake.h's time stamp
10986         even if the file does not change.  Otherwise, 'make -q' fails.
10987         Problem reported by Simon Josefsson in
10988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10989
10990 2011-08-11  Jim Meyering  <meyering@redhat.com>
10991
10992         git-version-gen: correct the advice in a comment
10993         * build-aux/git-version-gen: Correct comment.
10994         Don't recommend to list .tarball-version in .gitignore.
10995
10996 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10997
10998         base64: fix off-by-one buffer size bug
10999         Problem and (trivial) fix reported by Gijs van Tulder in
11000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11001         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11002         * tests/test-base64.c (main): Catch the bug.
11003
11004 2011-08-10  Eric Blake  <eblake@redhat.com>
11005
11006         closein: correct comments
11007         * lib/closein.c (close_stdin): Improve comments.
11008
11009 2011-08-09  Bruno Haible  <bruno@clisp.org>
11010
11011         More tests for 'fseeko'.
11012         * tests/test-fseeko3.c: New file, from Eric Blake.
11013         * tests/test-fseeko3.sh: New file.
11014         * modules/fseeko-tests (Files): Add them.
11015         (TESTS): Add test-fseeko3.sh.
11016         (check_PROGRAMS): Add test-fseeko3.
11017
11018 2011-08-09  Eric Blake  <eblake@redhat.com>
11019
11020         fseeko: remove unneeded hack
11021         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11022
11023         fseeko: fix bug on glibc
11024         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11025         Reported by John W. Eaton.
11026
11027 2011-08-08  Bruno Haible  <bruno@clisp.org>
11028
11029         unictype/base: Fix interoperability with preinstalled libunistring.
11030         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11031         Reported by Simon Josefsson.
11032
11033 2011-08-08  Bruno Haible  <bruno@clisp.org>
11034
11035         iswblank: Detect declaration correctly.
11036         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11037         AC_CHECK_DECLS invocation.
11038
11039 2011-08-08  Bruno Haible  <bruno@clisp.org>
11040
11041         tcgetsid: Detect declaration correctly.
11042         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11043         AC_CHECK_DECLS invocation.
11044         Reported by Simon Josefsson.
11045
11046 2011-08-08  Eric Blake  <eblake@redhat.com>
11047
11048         largefile: fix typo that regressed large file support
11049         * modules/largefile (configure.ac-early): Fix section name.
11050
11051 2011-08-06  Karl Berry  <karl@gnu.org>
11052
11053         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11054         a separate module.
11055
11056 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11057
11058         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11059         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11060         get prototype for free.
11061
11062 2011-08-04  Bruno Haible  <bruno@clisp.org>
11063
11064         Tests for module 'pathmax'.
11065         * modules/pathmax-tests: New file.
11066         * tests/test-pathmax.c: New file.
11067
11068         canonicalize-lgpl: Support larger filenames on the Hurd.
11069         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11070         Reported by Paul Eggert.
11071
11072         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11073         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11074         * lib/chdir-long.h: Include pathmax.h.
11075         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11076         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11077         (PATH_MAX): Remove code that is done by pathmax.h.
11078         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11079         * lib/tmpfile.c: Add a comment.
11080         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11081         * modules/chdir-long (Depends-on): Add pathmax.
11082         * modules/getcwd (Depends-on): Add pathmax.
11083         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11084         is not defined.
11085         * doc/posix-headers/limits.texi: Mention the pathmax module.
11086         * NEWS: Mention the change.
11087
11088 2011-08-02  Bruno Haible  <bruno@clisp.org>
11089
11090         pthread_sigmask: Actually use results of gl_THREADLIB.
11091         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11092         gl_THREADLIB, not gl_[]THREADLIB.
11093         Reported by Eric Blake.
11094
11095 2011-08-02  Jim Meyering  <meyering@redhat.com>
11096
11097         maint.mk: relax the default _gl_TS_function_match regexp
11098         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11099         space between function name and "(" in an "extern" declaration.
11100         That would fail to match a decl with no space there: extern void foo();
11101
11102 2011-07-31  Iain Nicol  <iain@thenicols.net>
11103
11104         git-version-gen: document that EXTRA_DIST must include .version
11105         * build-aux/git-version-gen: In the how-to-use comment, document
11106         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11107         will fail when run from an unpacked distribution tarball.
11108
11109 2011-08-01  Bruno Haible  <bruno@clisp.org>
11110
11111         wctype-h: Fix last change.
11112         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11113         REPLACE_TOWLOWER to 0.
11114         Reported by Sam Steingold <sds@gnu.org>.
11115
11116 2011-07-31  Bruno Haible  <bruno@clisp.org>
11117
11118         frexpl: Update autoconf test.
11119         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11120         according to changes of 2011-06-20.
11121
11122 2011-07-31  Bruno Haible  <bruno@clisp.org>
11123
11124         sys_utsname: Add support for Minix.
11125         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11126         <sys/utsname.h>.
11127         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11128         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11129
11130 2011-07-31  Bruno Haible  <bruno@clisp.org>
11131
11132         strings: Add support for Minix.
11133         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11134         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11135         * doc/posix-headers/strings.texi: Document the Minix problem.
11136
11137 2011-07-31  Bruno Haible  <bruno@clisp.org>
11138
11139         wctype-h: Add support for Minix.
11140         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11141         REPLACE_TOWLOWER.
11142         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11143         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11144         REPLACE_ISWCNTRL.
11145
11146 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11147
11148         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11149         This is a performance improvement for 64-bit hosts: it causes the
11150         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11151
11152 2011-07-31  Bruno Haible  <bruno@clisp.org>
11153
11154         stdioext: Add support for Minix.
11155         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11156         * lib/fpurge.c (fpurge): Likewise.
11157         * lib/freadahead.c (freadahead): Likewise.
11158         * lib/freadable.c (freadable): Likewise.
11159         * lib/freading.c (freading): Likewise.
11160         * lib/freadptr.c (freadptr): Likewise.
11161         * lib/freadseek.c (freadptrinc): Likewise.
11162         * lib/fseeko.c (rpl_fseeko): Likewise.
11163         * lib/fseterr.c (fseterr): Likewise.
11164         * lib/fwritable.c (fwritable): Likewise.
11165         * lib/fwriting.c (fwriting): Likewise.
11166         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11167         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11168
11169 2011-07-31  Bruno Haible  <bruno@clisp.org>
11170
11171         errno: Port to Minix.
11172         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11173         ECONNABORTED are defined.
11174         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11175         GNULIB_defined_ECONNABORTED): New macros.
11176         * lib/strerror-override.h (strerror_override): Test also
11177         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11178         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11179         ECONNABORTED.
11180         * doc/posix-headers/errno.texi: Mention the Minix problem.
11181
11182 2011-07-31  Bruno Haible  <bruno@clisp.org>
11183
11184         Work around declaration collisions on Minix.
11185         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11186         defined, set REPLACE_MBSINIT.
11187         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11188         defined, set REPLACE_MBRTOWC.
11189         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11190         set REPLACE_MBRLEN.
11191         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11192         defined, set REPLACE_MBSRTOWCS.
11193         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11194         defined, set REPLACE_WCRTOMB.
11195         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11196         defined, set REPLACE_WCSRTOMBS.
11197
11198 2011-07-31  Bruno Haible  <bruno@clisp.org>
11199
11200         Add support for Minix with ACK compiler.
11201         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11202         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11203         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11204
11205 2011-07-31  Bruno Haible  <bruno@clisp.org>
11206
11207         Documentation about Minix.
11208         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11209         * doc/glibc-headers/*.texi: Likewise.
11210         * doc/posix-functions/*.texi: Likewise.
11211         * doc/glibc-functions/*.texi: Likewise.
11212
11213 2011-07-31  Bruno Haible  <bruno@clisp.org>
11214
11215         snippet/warn-on-use: Fix indentation.
11216         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11217
11218 2011-07-25  Jim Meyering  <meyering@redhat.com>
11219
11220         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11221         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11222         commands.
11223
11224 2011-07-27  Jim Meyering  <meyering@redhat.com>
11225
11226         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11227         * top/maint.mk (gl_extract_significant_defines_): Now that
11228         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11229         gnulib/lib/signal.in.h, and now that we recommend to
11230         define-if-undefined those two symbols in application code,
11231         we must filter them out of the "significant" list.
11232         This avoids a "make syntax-check" failure in coreutils.
11233
11234 2011-07-26  Eric Blake  <eblake@redhat.com>
11235
11236         warnings: add comments about previous patch
11237         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11238         * m4/include_next.m4: Likewise.
11239         * m4/warn-on-use.m4: Likewise.
11240         * m4/warnings.m4: Likewise, and simplify use.
11241         Suggested by Stefano Lattarini.
11242
11243         include-next, warnings: support older autoconf
11244         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11245         AS_VAR_PUSHDEF in a way that works with older autoconf.
11246         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11247         Reported by Daniel P. Berrange.
11248
11249 2011-07-25  Bruno Haible  <bruno@clisp.org>
11250
11251         fseek, ftell: Fix doc.
11252         * doc/posix-functions/fseek.texi: Reword statement about
11253         AC_SYS_LARGEFILE.
11254         * doc/posix-functions/ftell.texi: Likewise.
11255
11256 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11257             Bruno Haible  <bruno@clisp.org>
11258
11259         Add dependencies to the 'largefile' module.
11260         * modules/fopen (Depends-on): Add 'largefile'.
11261         * modules/freopen (Depends-on): Likewise.
11262         * modules/fseeko (Depends-on): Likewise.
11263         * modules/ftello (Depends-on): Likewise.
11264         * modules/glob (Depends-on): Likewise.
11265         * modules/lseek (Depends-on): Likewise.
11266         * modules/lstat (Depends-on): Likewise.
11267         * modules/mkostemp (Depends-on): Likewise.
11268         * modules/mkostemps (Depends-on): Likewise.
11269         * modules/mkstemp (Depends-on): Likewise.
11270         * modules/mkstemps (Depends-on): Likewise.
11271         * modules/open (Depends-on): Likewise.
11272         * modules/openat (Depends-on): Likewise.
11273         * modules/pread (Depends-on): Likewise.
11274         * modules/pwrite (Depends-on): Likewise.
11275         * modules/scandir (Depends-on): Likewise.
11276         * modules/stat (Depends-on): Likewise.
11277         * modules/tmpfile (Depends-on): Likewise.
11278         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11279         since the containing module now depends on the largefile module.
11280         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11281         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11282         off_t is fixed by gnulib.
11283         * doc/posix-functions/freopen.texi: Likewise.
11284         * doc/posix-functions/fseeko.texi: Likewise.
11285         * doc/posix-functions/fstatat.texi: Likewise.
11286         * doc/posix-functions/ftello.texi: Likewise.
11287         * doc/posix-functions/glob.texi: Likewise.
11288         * doc/posix-functions/lseek.texi: Likewise.
11289         * doc/posix-functions/lstat.texi: Likewise.
11290         * doc/posix-functions/mkstemp.texi: Likewise.
11291         * doc/posix-functions/open.texi: Likewise.
11292         * doc/posix-functions/openat.texi: Likewise.
11293         * doc/posix-functions/pread.texi: Likewise.
11294         * doc/posix-functions/pwrite.texi: Likewise.
11295         * doc/posix-functions/scandir.texi: Likewise.
11296         * doc/posix-functions/stat.texi: Likewise.
11297         * doc/posix-functions/tmpfile.texi: Likewise.
11298         * doc/glibc-functions/mkostemp.texi: Likewise.
11299         * doc/glibc-functions/mkostemps.texi: Likewise.
11300         * doc/glibc-functions/mkstemps.texi: Likewise.
11301
11302 2011-07-25  Bruno Haible  <bruno@clisp.org>
11303
11304         fcntl: Move AC_LIBOBJ invocation to module description.
11305         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11306         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11307
11308         fcntl: Remove call-in from fchdir.m4.
11309         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11311
11312         dup3: Remove potential call-in from fchdir.m4.
11313         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11315
11316         dup2: Move AC_LIBOBJ invocation to module description.
11317         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11318         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11319         Don't invoke AC_LIBOBJ.
11320         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11321
11322         dup2: Remove call-in from fchdir.m4.
11323         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11325
11326         fclose: Move AC_LIBOBJ invocation to module description.
11327         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11328         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11329         to 1.
11330         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11331
11332         fclose: Remove call-in from close.m4.
11333         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11334         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11335
11336         close: Move AC_LIBOBJ invocation to module description.
11337         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11338         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11339         1.
11340         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11341
11342         close: Remove call-in from fchdir.m4.
11343         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11345
11346         open: Move AC_LIBOBJ invocation to module description.
11347         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11348         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11349         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11350
11351         open: Remove call-in from fchdir.m4.
11352         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11354
11355         fchdir: Start to remove gl_REPLACE_* idiom.
11356         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11357         (gl_FUNC_FCHDIR): Invoke it.
11358
11359 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11360
11361         * lib/ftell.c (ftell): Comment out cast.
11362
11363         close: use gl_REPLACE_FCLOSE only if defined
11364         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11365         is defined.  The close module doesn't depend on the fclose module
11366         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11368         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11369
11370 2011-07-24  Jim Meyering  <meyering@redhat.com>
11371
11372         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11373         * tests/test-select.h (test_function): Declare as "static".
11374
11375 2011-07-24  Bruno Haible  <bruno@clisp.org>
11376
11377         doc: Mention the effects of AC_SYS_LARGEFILE.
11378         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11379         on this function.
11380         * doc/posix-functions/aio_error.texi: Likewise.
11381         * doc/posix-functions/aio_fsync.texi: Likewise.
11382         * doc/posix-functions/aio_read.texi: Likewise.
11383         * doc/posix-functions/aio_return.texi: Likewise.
11384         * doc/posix-functions/aio_suspend.texi: Likewise.
11385         * doc/posix-functions/aio_write.texi: Likewise.
11386         * doc/posix-functions/fgetpos.texi: Likewise.
11387         * doc/posix-functions/fopen.texi: Likewise.
11388         * doc/posix-functions/freopen.texi: Likewise.
11389         * doc/posix-functions/fsetpos.texi: Likewise.
11390         * doc/posix-functions/fstatvfs.texi: Likewise.
11391         * doc/posix-functions/ftruncate.texi: Likewise.
11392         * doc/posix-functions/ftw.texi: Likewise.
11393         * doc/posix-functions/getrlimit.texi: Likewise.
11394         * doc/posix-functions/glob.texi: Likewise.
11395         * doc/posix-functions/lio_listio.texi: Likewise.
11396         * doc/posix-functions/lockf.texi: Likewise.
11397         * doc/posix-functions/mkstemp.texi: Likewise.
11398         * doc/posix-functions/mmap.texi: Likewise.
11399         * doc/posix-functions/nftw.texi: Likewise.
11400         * doc/posix-functions/openat.texi: Likewise.
11401         * doc/posix-functions/opendir.texi: Likewise.
11402         * doc/posix-functions/posix_fadvise.texi: Likewise.
11403         * doc/posix-functions/posix_fallocate.texi: Likewise.
11404         * doc/posix-functions/pread.texi: Likewise.
11405         * doc/posix-functions/pwrite.texi: Likewise.
11406         * doc/posix-functions/readdir.texi: Likewise.
11407         * doc/posix-functions/readdir_r.texi: Likewise.
11408         * doc/posix-functions/rewinddir.texi: Likewise.
11409         * doc/posix-functions/scandir.texi: Likewise.
11410         * doc/posix-functions/seekdir.texi: Likewise.
11411         * doc/posix-functions/setrlimit.texi: Likewise.
11412         * doc/posix-functions/statvfs.texi: Likewise.
11413         * doc/posix-functions/telldir.texi: Likewise.
11414         * doc/posix-functions/tmpfile.texi: Likewise.
11415         * doc/posix-functions/truncate.texi: Likewise.
11416         * doc/glibc-functions/fallocate.texi: Likewise.
11417         * doc/glibc-functions/fstatfs.texi: Likewise.
11418         * doc/glibc-functions/fts_children.texi: Likewise.
11419         * doc/glibc-functions/fts_read.texi: Likewise.
11420         * doc/glibc-functions/getdirentries.texi: Likewise.
11421         * doc/glibc-functions/mkostemp.texi: Likewise.
11422         * doc/glibc-functions/mkostemps.texi: Likewise.
11423         * doc/glibc-functions/mkstemps.texi: Likewise.
11424         * doc/glibc-functions/preadv.texi: Likewise.
11425         * doc/glibc-functions/pwritev.texi: Likewise.
11426         * doc/glibc-functions/sendfile.texi: Likewise.
11427         * doc/glibc-functions/statfs.texi: Likewise.
11428
11429 2011-07-24  Bruno Haible  <bruno@clisp.org>
11430
11431         doc: Fix typo.
11432         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11433
11434 2011-07-24  Bruno Haible  <bruno@clisp.org>
11435
11436         doc: Mention fsusage.
11437         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11438
11439 2011-07-24  Bruno Haible  <bruno@clisp.org>
11440
11441         doc: Mention new glibc headers and functions.
11442         * doc/glibc-headers/gshadow.texi: New file.
11443         * doc/glibc-functions/endsgent.texi: New file.
11444         * doc/glibc-functions/fgetsgent.texi: New file.
11445         * doc/glibc-functions/fgetsgent_r.texi: New file.
11446         * doc/glibc-functions/getsgent.texi: New file.
11447         * doc/glibc-functions/getsgent_r.texi: New file.
11448         * doc/glibc-functions/getsgnam.texi: New file.
11449         * doc/glibc-functions/getsgnam_r.texi: New file.
11450         * doc/glibc-functions/putsgent.texi: New file.
11451         * doc/glibc-functions/setsgent.texi: New file.
11452         * doc/glibc-functions/sgetsgent.texi: New file.
11453         * doc/glibc-functions/sgetsgent_r.texi: New file.
11454         * doc/glibc-functions/malloc_info.texi: New file.
11455         * doc/glibc-functions/preadv.texi: New file.
11456         * doc/glibc-functions/pwritev.texi: New file.
11457         * doc/glibc-functions/register_printf_modifier.texi: New file.
11458         * doc/glibc-functions/register_printf_specifier.texi: New file.
11459         * doc/glibc-functions/register_printf_type.texi: New file.
11460         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11461         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11462         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11463         * doc/glibc-functions/pthread_getname_np.texi: New file.
11464         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11465         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11466         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11467         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11468         * doc/glibc-functions/pthread_setname_np.texi: New file.
11469         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11470         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11471         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11472         * doc/glibc-functions/qsort_r.texi: New file.
11473         * doc/glibc-functions/quick_exit.texi: New file.
11474         * doc/glibc-functions/syncfs.texi: New file.
11475         * doc/gnulib.texi: Include them.
11476         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11477         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11478         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11479         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11480         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11481         * doc/glibc-functions/execvpe.texi: Likewise.
11482
11483 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11484
11485         ftell: don't include <unistd.h>
11486         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11487         guaranteed to define off_t, and the ftell module depends on the
11488         stdio module.
11489
11490         ftell: do not assume wraparound signed arithmetic
11491         * lib/ftell.c: Include <limits.h>.
11492         (ftell): Don't assume wraparound signed arithmetic.
11493
11494 2011-07-24  Bruno Haible  <bruno@clisp.org>
11495
11496         close: No longer depend on module 'fclose'.
11497         * modules/close (Depends-on): Remove fclose.
11498         * NEWS: Mention the change.
11499         Suggested by Sam Steingold <sds@gnu.org>.
11500
11501 2011-07-24  Bruno Haible  <bruno@clisp.org>
11502
11503         fsusage: Enable large volume support on AIX >= 5.2.
11504         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11505         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11506         instead of STAT_STATVFS.
11507         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11508
11509         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11510         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11511         f_blocks field only on MacOS X.
11512
11513         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11515         * modules/fsusage (Depends-on): Add largefile.
11516
11517 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         * README: Modernize discussion of signed integers.
11520         Assuming overflow wraparound is no longer safe.
11521         Mention ones' complement and signed magnitude.
11522
11523 2011-07-22  Bruno Haible  <bruno@clisp.org>
11524
11525         select tests, pselect tests: Refactor.
11526         * tests/test-select.h: New file, extracted from tests/test-select.c.
11527         (select_fn): New type.
11528         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11529         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11530         test_pipe): Add my_select argument.
11531         (test_function): Renamed from main. Add my_select argument.
11532         * tests/test-select.c: Move most code to tests/test-select.h. Include
11533         test-select.h.
11534         * modules/select-tests (Files): Add tests/test-select.h.
11535         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11536         (my_select, main): New functions.
11537         * modules/pselect-tests (Files): Add tests/test-select.h,
11538         tests/macros.h, tests/signature.h.
11539         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11540         (configure.ac): Check for <sys/wait.h>.
11541
11542 2011-07-22  Bruno Haible  <bruno@clisp.org>
11543
11544         sys_select tests: Check the signature of FD_*.
11545         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11546         signature tests from here...
11547         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11548         here.
11549         * modules/sys_select-tests (Files): Add tests/signature.h.
11550
11551 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11552
11553         largefile: new module, replacing large-inode
11554         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11555         * MODULES.html.sh: Add largefile, remove large-inode.
11556         * modules/largefile, m4/largefile.m4: New files.
11557         * modules/large-inode, m4/large-inode.m4: Remove.
11558
11559         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11561         implementations that use only 32 bits to count blocks.
11562         On typical hosts with 1024-byte blocks, this fails with file
11563         systems as small as 4 TiB.  Problem reported by Herb Wartens
11564         <http://debbugs.gnu.org/9140> and this should also fix a similar
11565         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11566
11567         large-inode: New module
11568         * MODULES.html.sh: Add it.
11569         * modules/large-inode, m4/large-inode.m4: New files.
11570
11571         extensions: Enable extensions on MacOS X 10.5 and later.
11572         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11573
11574 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11575
11576         file-has-acl: use acl_extended_file_nofollow if available
11577         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11578         (acl_extended_file): New macro.
11579         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11580         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11581
11582 2011-07-21  Bruno Haible  <bruno@clisp.org>
11583
11584         Declare system functions in a way that works with C++.
11585         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11586         declare fdopendir as extern "C".
11587         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11588         declare frexpl as extern "C".
11589         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11590         declare gai_strerror as extern "C".
11591         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11592         programs, declare gai_strerror as extern "C".
11593         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11594         declare getlogin_r as extern "C".
11595         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11596         as extern "C".
11597         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11598         declare ldexpl as extern "C".
11599         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11600         as extern "C".
11601         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11602         program, declare getmntinfo as extern "C".
11603         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11604         stpncpy as extern "C".
11605         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11606         program, declare __xpg_strerror_r as extern "C".
11607         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11608         strndup as extern "C".
11609         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11610         declare memset and bzero as extern "C".
11611         Reported by Sam Steingold <sds@gnu.org>.
11612
11613 2011-07-12  Jim Meyering  <meyering@redhat.com>
11614
11615         maint.mk: prohibit inclusion of "verify.h" without use
11616         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11617
11618 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11619
11620         timer-time: A new module to check for timer_settime()
11621         * m4/timer_time.m4: Check for the posix function.
11622         * modules/timer-time: Add the new module.
11623         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11624         Mention it.
11625
11626 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11627             Bruno Haible  <bruno@clisp.org>
11628
11629         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11630         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11631         not defined, assume POSIX threads and look for pthread_sigmask in
11632         $LIBS, without changing $CPPFLAGS.
11633
11634 2011-07-19  Bruno Haible  <bruno@clisp.org>
11635
11636         strstr: Update cross-compilation guess.
11637         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11638         CPUs, guess no, in view of glibc
11639         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11640         Suggested by Eric Blake. Reported by Reuben Thomas.
11641
11642 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11643
11644         getopt-gnu: suppress core dumps from detection code
11645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11646         to suppress core dumps that may well occur on glibc systems.
11647         * modules/getopt-gnu: Depend on nocrash.
11648
11649 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11650
11651         pthread_sigmask: ensure usleep is declared
11652         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11653         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11654
11655 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11656
11657         doc: Document NonStop portability issues.
11658         * doc/posix-functions/sigaction.texi (sigaction):
11659         * doc/posix-headers/signal.texi (signal.h):
11660         Document NonStop.  See Joachim Schmitz in
11661         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11662
11663 2011-07-15  Bruno Haible  <bruno@clisp.org>
11664
11665         ffsl, ffsll: Avoid unportable behaviour.
11666         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11667
11668 2011-07-15  Bruno Haible  <bruno@clisp.org>
11669
11670         ffs: More tests.
11671         * tests/test-ffs.c (NBITS): New macro.
11672         (main): Add more tests.
11673         * tests/test-ffsl.c (NBITS): New macro.
11674         (main): Add more tests.
11675         * tests/test-ffsll.c (NBITS): New macro.
11676         (main): Add more tests.
11677
11678 2011-07-15  Eric Blake  <eblake@redhat.com>
11679
11680         ffsl, ffsll: new modules
11681         * modules/ffsl: New file.
11682         * modules/ffsll: Likewise.
11683         * m4/ffsl.m4: Likewise.
11684         * m4/ffsll.m4: Likewise.
11685         * lib/ffsl.c: Likewise.
11686         * lib/ffsl.h: Likewise.
11687         * lib/ffsll.c: Likewise.
11688         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11689         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11690         * modules/string (Makefile.am): Substitute witnesses.
11691         * lib/strings.in.h (ffsl, ffsll): Declare.
11692         * modules/ffsl-tests: New test file.
11693         * modules/ffsll-tests: Likewise.
11694         * tests/test-ffsl.c: Likewise.
11695         * tests/test-ffsll.c: Likewise.
11696         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11697         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11698         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11699
11700         ffs: fix m4 prerequisite
11701         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11702
11703         ffs: avoid undefined behavior
11704         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11705         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11706         Reported by Bruno Haible.
11707
11708 2011-07-12  Bruno Haible  <bruno@clisp.org>
11709
11710         pthread_sigmask: Rely on module 'threadlib'.
11711         * modules/pthread_sigmask (Depends-on): Add threadlib.
11712         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11713         is defined.
11714
11715 2011-07-12  Bruno Haible  <bruno@clisp.org>
11716
11717         regex: Depend on module 'strcase'.
11718         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11719
11720 2011-07-12  Jim Meyering  <meyering@redhat.com>
11721
11722         warn-on-use: fix typo in file name
11723         * modules/snippet/warn-on-use (Files): Correct file name:
11724         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11725
11726 2011-07-12  Bruno Haible  <bruno@clisp.org>
11727
11728         strings: Document module.
11729         * doc/posix-headers/strings.texi: Mention module 'strings'.
11730
11731 2011-07-12  Bruno Haible  <bruno@clisp.org>
11732
11733         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11734         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11735         (Files, Makefile.am): Update.
11736         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11737         * modules/stdlib (Depends-on): Update.
11738
11739 2011-07-12  Bruno Haible  <bruno@clisp.org>
11740
11741         * NEWS: Mention the changes.
11742
11743         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11744         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11745         (Files, Makefile.am): Update.
11746         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11747         * modules/arpa_inet (Depends-on): Update.
11748         * modules/ctype (Depends-on): Update.
11749         * modules/dirent (Depends-on): Update.
11750         * modules/fcntl-h (Depends-on): Update.
11751         * modules/glob (Depends-on): Update.
11752         * modules/iconv-h (Depends-on): Update.
11753         * modules/inttypes-incomplete (Depends-on): Update.
11754         * modules/langinfo (Depends-on): Update.
11755         * modules/locale (Depends-on): Update.
11756         * modules/math (Depends-on): Update.
11757         * modules/netdb (Depends-on): Update.
11758         * modules/poll-h (Depends-on): Update.
11759         * modules/pty (Depends-on): Update.
11760         * modules/search (Depends-on): Update.
11761         * modules/signal (Depends-on): Update.
11762         * modules/spawn (Depends-on): Update.
11763         * modules/stdio (Depends-on): Update.
11764         * modules/stdlib (Depends-on): Update.
11765         * modules/string (Depends-on): Update.
11766         * modules/strings (Depends-on): Update.
11767         * modules/sys_file (Depends-on): Update.
11768         * modules/sys_ioctl (Depends-on): Update.
11769         * modules/sys_select (Depends-on): Update.
11770         * modules/sys_socket (Depends-on): Update.
11771         * modules/sys_stat (Depends-on): Update.
11772         * modules/sys_time (Depends-on): Update.
11773         * modules/sys_times (Depends-on): Update.
11774         * modules/sys_utsname (Depends-on): Update.
11775         * modules/sys_wait (Depends-on): Update.
11776         * modules/termios (Depends-on): Update.
11777         * modules/time (Depends-on): Update.
11778         * modules/unistd (Depends-on): Update.
11779         * modules/wchar (Depends-on): Update.
11780         * modules/wctype-h (Depends-on): Update.
11781         * MODULES.html.sh (Support for building libraries and executables):
11782         Update.
11783
11784         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11785         * modules/snippet/unused-parameter: Renamed from
11786         modules/unused-parameter.
11787         (Files, Makefile.am): Update.
11788         * build-aux/snippet/unused-parameter.h: Renamed from
11789         build-aux/unused-parameter.h.
11790         * modules/selinux-h (Depends-on): Update.
11791         * modules/unistr/base (Depends-on): Update.
11792         * MODULES.html.sh (Core language properties): Update.
11793
11794         Rename module 'link-warning' to 'snippet/link-warning'.
11795         * modules/snippet/link-warning: Renamed from modules/link-warning.
11796         (Files, Makefile.am): Update.
11797         * build-aux/snippet/link-warning.h: Renamed from
11798         build-aux/link-warning.h.
11799         * MODULES.html.sh (Support for building libraries and executables):
11800         Update.
11801
11802         Rename module 'c++defs' to 'snippet/c++defs'.
11803         * modules/snippet/c++defs: Renamed from modules/c++defs.
11804         (Files, Makefile.am): Update.
11805         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11806         * modules/arpa_inet (Depends-on): Update.
11807         * modules/ctype (Depends-on): Update.
11808         * modules/dirent (Depends-on): Update.
11809         * modules/fcntl-h (Depends-on): Update.
11810         * modules/glob (Depends-on): Update.
11811         * modules/iconv-h (Depends-on): Update.
11812         * modules/langinfo (Depends-on): Update.
11813         * modules/locale (Depends-on): Update.
11814         * modules/math (Depends-on): Update.
11815         * modules/netdb (Depends-on): Update.
11816         * modules/poll-h (Depends-on): Update.
11817         * modules/pty (Depends-on): Update.
11818         * modules/search (Depends-on): Update.
11819         * modules/signal (Depends-on): Update.
11820         * modules/spawn (Depends-on): Update.
11821         * modules/stdio (Depends-on): Update.
11822         * modules/stdlib (Depends-on): Update.
11823         * modules/string (Depends-on): Update.
11824         * modules/strings (Depends-on): Update.
11825         * modules/sys_ioctl (Depends-on): Update.
11826         * modules/sys_select (Depends-on): Update.
11827         * modules/sys_socket (Depends-on): Update.
11828         * modules/sys_stat (Depends-on): Update.
11829         * modules/sys_time (Depends-on): Update.
11830         * modules/sys_wait (Depends-on): Update.
11831         * modules/termios (Depends-on): Update.
11832         * modules/time (Depends-on): Update.
11833         * modules/unistd (Depends-on): Update.
11834         * modules/wchar (Depends-on): Update.
11835         * modules/wctype-h (Depends-on): Update.
11836
11837         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11838         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11839         (Files, Makefile.am): Update.
11840         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11841         * modules/argv-iter (Depends-on): Update.
11842         * modules/arpa_inet (Depends-on): Update.
11843         * modules/dirent (Depends-on): Update.
11844         * modules/fcntl-h (Depends-on): Update.
11845         * modules/fnmatch (Depends-on): Update.
11846         * modules/getopt-posix (Depends-on): Update.
11847         * modules/glob (Depends-on): Update.
11848         * modules/iconv-h (Depends-on): Update.
11849         * modules/inttypes-incomplete (Depends-on): Update.
11850         * modules/locale (Depends-on): Update.
11851         * modules/math (Depends-on): Update.
11852         * modules/netdb (Depends-on): Update.
11853         * modules/search (Depends-on): Update.
11854         * modules/signal (Depends-on): Update.
11855         * modules/spawn (Depends-on): Update.
11856         * modules/stdio (Depends-on): Update.
11857         * modules/stdlib (Depends-on): Update.
11858         * modules/string (Depends-on): Update.
11859         * modules/strings (Depends-on): Update.
11860         * modules/sys_socket (Depends-on): Update.
11861         * modules/sys_stat (Depends-on): Update.
11862         * modules/sys_time (Depends-on): Update.
11863         * modules/sys_times (Depends-on): Update.
11864         * modules/sys_utsname (Depends-on): Update.
11865         * modules/time (Depends-on): Update.
11866         * modules/unistd (Depends-on): Update.
11867         * modules/wchar (Depends-on): Update.
11868         * MODULES.html.sh (Support for building libraries and executables):
11869         Update.
11870
11871 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11872
11873         Improvements on _Noreturn and related modules.
11874
11875         modules/_Exit-tests: test _Noreturn too
11876         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11877         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11878         (main): Use them.
11879
11880         stdnoreturn, stdnoreturn-tests: remove modules
11881         They're not needed here and a bit premature for use elsewhere.  See
11882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11883         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11884         * tests/test-stdnoreturn.c: Remove files.
11885         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11886         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11887         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11888         and using noreturn.
11889         * modules/openat, modules/sigpipe-die, modules/xalloc:
11890         * modules/xmemdup0, modules/xstrtol:
11891         Remove dependency on stdnoreturn.
11892
11893         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11894         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11895         Reparenthesize to avoid GCC warning.
11896         Support Microsoft's syntax.
11897         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11898
11899         _Noreturn-tests: remove module
11900         * modules/_Noreturn-tests: Remove.
11901         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11902         * tests/test-_Noreturn.c: Remove.
11903         * tests/test-stdnoreturn.c: Merge from the old
11904         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11905
11906 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11907
11908         _Noreturn, stdnoreturn, and related modules.
11909
11910         * top/maint.mk: Adjust to new noreturn support.
11911         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11912         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11913
11914         xalloc: use stdnoreturn.h
11915         * lib/xalloc.h: Include <stdnoreturn.h>.
11916         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11917         * modules/xalloc (Depends-on): Add stdnoreturn.
11918
11919         xstrtol: use stdnoreturn.h
11920         * lib/xstrtol.h: Include <stdnoreturn.h>.
11921         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11922         * modules/xstrtol (Depends-on): Add stdnoreturn.
11923
11924         xmemdup0: use stdnoreturn.h
11925         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11926         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11927         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11928
11929         sigpipe-die: use stdnoreturn.h
11930         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11931         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11932         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11933
11934         openat: use stdnoreturn.h
11935         * lib/openat.h: Include <stdnoreturn.h>.
11936         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11937         * modules/openat (Depends-on): Add stdnoreturn.
11938
11939         * lib/openat-die.c (openat_save_fail): Modernize comment.
11940
11941         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11942
11943         * lib/glthread/thread.h: Modernize comment.
11944
11945         obstack: use _Noreturn
11946         * lib/obstack.c (__attribute__): Remove macro.
11947         (print_and_abort): Use _Noreturn.
11948
11949         c-stack: use _Noreturn
11950         * lib/c-stack.c (die, overflow_handler, segv_handler):
11951         Use _Noreturn rather than __attribute__((noreturn)).
11952
11953         argmatch-tests, exclude_tests: use _Noreturn
11954         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11955         Remove.
11956         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11957
11958         stdlib: use _Noreturn
11959         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11960         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11961         * modules/stdlib (Depends-on): Add _Noreturn.
11962         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11963
11964         stdnoreturn-tests: new module
11965         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11966
11967         stdnoreturn: new module
11968         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11969         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11970
11971         _Noreturn-tests: new module
11972         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11973
11974         _Noreturn: new module
11975         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11976         New section, mentioning it.
11977         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11978
11979         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11980
11981 2011-07-11  Eric Blake  <eblake@redhat.com>
11982
11983         ffs: new module
11984         * modules/ffs: New file.
11985         * m4/ffs.m4: Likewise.
11986         * lib/ffs.c: Likewise.
11987         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11988         * modules/strings (Makefile.am): Substitute witness.
11989         (Depends-on): Add c++defs.
11990         * lib/strings.in.h (ffs): Declare.
11991         * modules/ffs-tests: New test file.
11992         * tests/test-ffs.c: Test new module.
11993         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11994         * doc/posix-functions/ffs.texi (ffs): Likewise.
11995
11996         regex: avoid compiler warning
11997         * lib/regex.c (includes): Include <strings.h>, for use of
11998         strcasecmp in regcomp.c.
11999         Reported by Joachim Schmitz.
12000
12001 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12002
12003         stdint: respect system's intmax_t if INTMAX_MAX
12004         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12005         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12006         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12007         long but int64_t is long long, and where we will clash with the
12008         system intmax_t if we override it.  See
12009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12010         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12011         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12012         similarly for UINTMAX_C.
12013
12014 2011-07-08  Bruno Haible  <bruno@clisp.org>
12015
12016         pthread_sigmask tests: Avoid a compiler warning.
12017         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12018         non-zero.
12019
12020         sigprocmask tests: A better way to avoid a compiler warning.
12021         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12022         (main): Complain if system() returns non-zero.
12023         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12024
12025 2011-07-08  Bruno Haible  <bruno@clisp.org>
12026
12027         pthread_sigmask: Work around IRIX bug.
12028         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12029         bug.
12030         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12031         there may be unblocked pending signals.
12032         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12033
12034 2011-07-08  Bruno Haible  <bruno@clisp.org>
12035
12036         pthread_sigmask: Work around Cygwin bug.
12037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12038         bug.
12039         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12040         the system's pthread_sigmask function.
12041         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12042
12043 2011-07-08  Bruno Haible  <bruno@clisp.org>
12044
12045         pthread_sigmask: Work around bug in single-threaded implementation.
12046         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12047         FreeBSD, HP-UX, Solaris bug.
12048         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12049         * lib/pthread_sigmask.c: Include <stddef.h>.
12050         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12051         the system's pthread_sigmask function.
12052         * modules/pthread_sigmask (configure.ac): Invoke
12053         gl_PREREQ_PTHREAD_SIGMASK.
12054         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12055         HP-UX, Solaris.
12056
12057 2011-07-08  Eric Blake  <eblake@redhat.com>
12058
12059         test-sigprocmask: avoid compiler warning
12060         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12061         * tests/test-sigprocmask.c (main): Use it to silence warning.
12062         Reported by Jim Meyering.
12063
12064         test-snprintf: avoid compiler warning
12065         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12066         * tests/test-vsnprintf.c (main): Likewise.
12067         Reported by Jim Meyering.
12068
12069 2011-07-08  Bruno Haible  <bruno@clisp.org>
12070
12071         Tests for module 'pthread_sigmask'.
12072         * modules/pthread_sigmask-tests: New file.
12073         * tests/test-pthread_sigmask1.c: New file, based on
12074         tests/test-sigprocmask.c.
12075         * tests/test-pthread_sigmask2.c: New file.
12076
12077 2011-07-08  Jim Meyering  <meyering@redhat.com>
12078
12079         test-getopt.h: avoid warning about an unused variable
12080         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12081
12082 2011-07-07  Jim Meyering  <meyering@redhat.com>
12083
12084         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12085         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12086         now that it no longer contains leading TABs.
12087         Remove unused "url=FIXME" statement.
12088
12089 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12090
12091         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12092         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12093         When gl_THREADLIB is not in use, assume that the POSIX sematics
12094         are desired.  This is better for Emacs, which uses POSIX semantics
12095         on GNUish and/or POSIXish platforms, and does not use threads at
12096         all otherwise.
12097
12098         pthread_sigmask: fix typo when testing for libraries
12099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12100         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12101
12102 2011-07-08  Eric Blake  <eblake@redhat.com>
12103
12104         fts: introduce FTS_NOATIME
12105         * lib/fts_.h (FTS_NOATIME): New bit flag.
12106         (FTS_OPTIONMASK): Adjust.
12107         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12108         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12109
12110 2011-07-08  Bruno Haible  <bruno@clisp.org>
12111
12112         Tests for module 'thread'.
12113         * modules/thread-tests: New file.
12114         * tests/test-thread_self.c: New file.
12115         * tests/test-thread_create.cc: New file.
12116
12117 2011-07-08  Bruno Haible  <bruno@clisp.org>
12118
12119         thread: Avoid gcc warnings when using gl_thread_self().
12120         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12121         'void *'.
12122         (gl_thread_self_pointer): Update.
12123
12124 2011-07-07  Bruno Haible  <bruno@clisp.org>
12125
12126         signal-c++-tests: Check declaration of pthread_sigmask.
12127         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12128         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12129         $(LIB_PTHREAD_SIGMASK).
12130
12131 2011-07-07  Bruno Haible  <bruno@clisp.org>
12132
12133         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12134         * lib/signal.in.h (pthread_sigmask): Override if
12135         REPLACE_PTHREAD_SIGMASK is 1.
12136         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12137         REPLACE_PTHREAD_SIGMASK.
12138         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12139         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12140         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12141         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12142         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12143
12144 2011-07-07  Bruno Haible  <bruno@clisp.org>
12145
12146         pthread_sigmask: Ensure declaration in <signal.h>.
12147         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12148         include <pthread.h>.
12149         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12150         problem.
12151
12152 2011-07-07  Bruno Haible  <bruno@clisp.org>
12153
12154         pthread_sigmask: Document the module.
12155         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12156
12157 2011-07-07  Bruno Haible  <bruno@clisp.org>
12158
12159         pthread_sigmask: Follow gnulib conventions.
12160         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12161         gl_PTHREAD_SIGMASK.
12162         * modules/pthread_sigmask (configure.ac): Update.
12163
12164 2011-07-07  Bruno Haible  <bruno@clisp.org>
12165
12166         pthread_sigmask: Make declaration C++ safe.
12167         * lib/signal.in.h: In two special conditions, just do an #include_next.
12168         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12169         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12170         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12171         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12172         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12173         not REPLACE_PTHREAD_MASK.
12174         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12175         not REPLACE_PTHREAD_MASK.
12176         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12177
12178 2011-07-07  Bruno Haible  <bruno@clisp.org>
12179
12180         pthread_sigmask: Fix return value.
12181         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12182         * lib/pthread_sigmask.c: New file.
12183         * modules/pthread_sigmask (Files): Add it.
12184         (configure.ac): Invoke AC_LIBOBJ.
12185
12186 2011-07-07  Eric Blake  <eblake@redhat.com>
12187
12188         getopt: more portable argv creation
12189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12190         const, use char arrays rather than strings.
12191         Suggested by Paul Eggert.
12192
12193 2011-07-07  Bruno Haible  <bruno@clisp.org>
12194
12195         Tests for module 'sigprocmask'.
12196         * modules/sigprocmask-tests: New file.
12197         * tests/test-sigprocmask.c: New file.
12198
12199 2011-07-07  Bruno Haible  <bruno@clisp.org>
12200
12201         float tests: Tweak.
12202         * tests/test-float.c (main): Tweak skip message.
12203
12204 2011-07-07  Eric Blake  <eblake@redhat.com>
12205
12206         getopt: avoid compiler warning during configure
12207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12208         assigning string literals to non-const pointer.
12209
12210         getopt-gnu: avoid crash in glibc getopt
12211         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12212         * tests/test-getopt.h (test_getopt): Enhance test.
12213         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12214         * doc/posix-functions/getopt.texi (getopt): Document it.
12215         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12216         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12217         Likewise.
12218
12219 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12220
12221         getopt: handle W; without long options in getopt [BZ #12922]
12222         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12223         but no long options are defined, just return 'W'.
12224
12225 2011-07-07  Bruno Haible  <bruno@clisp.org>
12226
12227         Avoid literal tabs.
12228         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12229         variable containing a tab instead of a literal tab.
12230         Reported by Jim Meyering.
12231
12232 2011-07-07  Bruno Haible  <bruno@clisp.org>
12233
12234         Comments.
12235         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12236
12237 2011-07-06  Bruno Haible  <bruno@clisp.org>
12238
12239         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12240         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12241         <winsock2.h>.
12242         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12243         lib/sys_socket.in.h.
12244         (close, gethostname): Hide declarations from <winsock2.h>.
12245         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12246         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12247         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12248         (select): Don't override if gnulib's <sys/select.h> was already
12249         included.
12250         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12251         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12252         setsockopt, shutdown, select): Tweak indentation.
12253
12254 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12255
12256         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12257         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12258         in an application that does not use the sys_select module.
12259
12260 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12261
12262         poll: do not return 0 on timeout=-1
12263         * lib/poll.c: Loop with yield if no events occured
12264
12265 2011-07-06  Eric Blake  <eblake@redhat.com>
12266
12267         pthread_sigmask: always replace when not using pthread
12268         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12269         replacement when using some threading other than pthread.  Fix
12270         logic bug.
12271
12272 2011-07-06  Bruno Haible  <bruno@clisp.org>
12273
12274         Comments.
12275         * m4/printf.m4: Update comments about mingw.
12276
12277 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         sys_select: define sigset_t more portably
12280         * lib/sys_select.in.h: Always include <sys/types.h>, since
12281         we now need sigset_t and mingw defines it there.
12282         Include <signal.h> before split inclusion guard, to avoid
12283         mishaps on Solaris, whose <signal.h> eventually includes us.
12284         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12285         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12286         which come from ...
12287         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12288         gl_CHECK_TYPE_SIGSET_T.
12289         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12290         does the real work.
12291         * modules/sys_select (Depends-on): Add 'signal'.
12292
12293         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12294         Suggested by Bruno Haible.
12295
12296         pselect: Use pthread_sigmask, not sigprocmask.
12297         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12298         multithreaded apps better than sigprocmask does.
12299         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12300         sigprocmask directly.
12301
12302 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12303
12304         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12305         Don't #undef,  since we don't need any underlying pselect.
12306         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12307         (Depends-on): Add select.
12308         (Link): Add $(LIBSOCKET).
12309         These changes suggested by Bruno Haible.
12310
12311         pselect: document better
12312         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12313         * doc/posix-functions/pselect.texi (pselect): Document new module.
12314
12315         pthread_sigmask: new module
12316         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12317         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12318         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12319         This is done only as a macro; I don't know how well that'll
12320         work for C++.  Move <sys/types.h> include before the include_next,
12321         to avoid mishap on Solaris.
12322         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12323         * modules/signal (Makefile.am): Substitute the check's results.
12324         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12325
12326         test-pselect: new module
12327         * modules/pselect-tests, tests/test-pselect.c: New files.
12328         * tests/test-select.c, tests/test-sys_select-c++.cc:
12329         If TEST_PSELECT is defined, test pselect instead of testing select.
12330
12331         * tests/test-sys_select.c (sigset_t): Test for it, too.
12332         Suggested by Bruno Haible.
12333
12334 2011-07-05  Eric Blake  <eblake@redhat.com>
12335
12336         snprintf: guarantee %1$d, for libintl
12337         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12338         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12339         * doc/posix-functions/snprintf.texi (snprintf): Update.
12340         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12341         * tests/test-snprintf.c (main): Enhance test.
12342         * tests/test-vsnprintf.c (main): Likewise.
12343
12344 2011-07-05  Jim Meyering  <meyering@redhat.com>
12345
12346         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12347         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12348         per Bruno's request, to accommodate this idiom (no space after "#")
12349         even when the function is inside an #if block:
12350         char *
12351         gets (char *s)
12352         #undef gets
12353         {
12354           ...
12355         }
12356
12357 2011-07-04  Jim Meyering  <meyering@redhat.com>
12358
12359         maint: indent with spaces, not TABs, and add a rule to check this
12360         * tests/test-userspec.c: Indent with spaces, not TABs.
12361         * tests/test-argp.c: Likewise.
12362         * tests/test-c-stack2.sh: Likewise.
12363         * tests/test-parse-duration.sh: Likewise
12364         * m4/strtod.m4: Likewise.
12365         * m4/alloca.m4: Likewise.
12366         * m4/pselect.m4: Likewise.
12367         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12368
12369 2011-07-03  Jim Meyering  <meyering@redhat.com>
12370
12371         maint.mk: correct omissions in prohibit_argmatch_without_use check
12372         This rule would mistakenly report that argmatch.h is included without
12373         use even when both the argmatch and invalid_arg macro were used.
12374         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12375         of argmatch and invalid_arg.
12376
12377 2011-07-03  Bruno Haible  <bruno@clisp.org>
12378
12379         Comments about EINTR.
12380         * lib/safe-read.h: Explain the purpose of this module.
12381         * lib/safe-write.h: Likewise.
12382         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12383         module.
12384         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12385         module.
12386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12387
12388 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12389
12390         xnanosleep: Rewrite to use new dtotimespec module.
12391         It has the conversion code that used to be in xnanosleep.
12392         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12393         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12394         (TIME_T_MAX): Remove.
12395         (xnanosleep): Rewrite in terms of dtotimespec.
12396         * modules/xnanosleep (Depends-on): Add dtotimespec.
12397         Remove intprops, stdbool.
12398
12399         timespec-add, timespec-sub: new modules
12400         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12401         * lib/timespec-add.c, lib/timespec-sub.c:
12402         * modules/timespec-add, modules/timespec-sub: New files.
12403
12404         dtotimespec: new module
12405         * lib/timespec.h (dtotimespec): New decl.
12406         * lib/dtotimespec.c, modules/dtotimespec: New files.
12407
12408         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12409
12410         pselect: new module
12411         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12412         (pselect): New decls.
12413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12414         since the standard pselect decl uses 'restrict'.
12415         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12416         HAVE_PSELECT, REPLACE_PSELECT.
12417         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12418         HAVE_PSELECT, REPLACE_PSELECT.
12419         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12420
12421         sys_select: don't depend on sys_socket
12422         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12424         This fix works on GNU and GNU-like platforms, but has not been tested
12425         on native Windows.
12426         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12427         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12428         gl_HEADER_SYS_SOCKET.
12429         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12430         gl_PREREQ_SYS_H_WINSOCK2.
12431
12432 2011-06-29  Eric Blake  <eblake@redhat.com>
12433
12434         pipe2: fix C89 compile problem
12435         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12436         Reported by Bruno Haible.
12437
12438         pipe, pipe2: don't corrupt fd on error
12439         * lib/pipe.c (pipe): Leave fd unchanged on error.
12440         * lib/pipe2.c (pipe2): Likewise.
12441         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12442         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12443
12444 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12445
12446         mmap-anon: do not use regular expressions inadvertently
12447         * m4/mmap-anon.m4: Remove trailing period from strings sought
12448         in the output.
12449
12450 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12451
12452         nanosleep: fix integer overflow problem
12453         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12454         arithmetic wraps around on overflow.
12455
12456         nanosleep: simplify carrying
12457         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12458         first call to the underyling nanosleep, not for the last one.
12459         This doesn't fix any bugs, but it simplifies the computation of
12460         the remaining delay.  Found while auditing integer overflow issues.
12461
12462         dup2: remove test for existence of fcntl
12463         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12464         "#if HAVE_FCNTL", in the configure-time test program.
12465         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12466         and therefore speeds up "configure" a bit.  Found while
12467         adding the dup2 module to Emacs.
12468
12469 2011-06-24  Eric Blake  <eblake@redhat.com>
12470
12471         maint.mk: enhance useless header checks
12472         * top/maint.mk (_sc_header_without_use): Check both include
12473         styles.
12474         (sc_prohibit_assert_without_use)
12475         (sc_prohibit_close_stream_without_use)
12476         (sc_prohibit_getopt_without_use)
12477         (sc_prohibit_quotearg_without_use)
12478         (sc_prohibit_quote_without_use)
12479         (sc_prohibit_long_options_without_use)
12480         (sc_prohibit_inttostr_without_use)
12481         (sc_prohibit_ignore_value_without_use)
12482         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12483         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12484         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12485         (sc_prohibit_hash_pjw_without_use)
12486         (sc_prohibit_safe_read_without_use)
12487         (sc_prohibit_argmatch_without_use)
12488         (sc_prohibit_canonicalize_without_use)
12489         (sc_prohibit_root_dev_ino_without_use)
12490         (sc_prohibit_openat_without_use)
12491         (sc_prohibit_c_ctype_without_use)
12492         (sc_prohibit_signal_without_use)
12493         (sc_prohibit_stdio--_without_use)
12494         (sc_prohibit_stdio-safer_without_use)
12495         (sc_prohibit_strings_without_use)
12496         (sc_prohibit_intprops_without_use)
12497         (sc_prohibit_stddef_without_use)
12498         (sc_prohibit_xfreopen_without_use): Update clients.
12499
12500 2011-06-24  Jim Meyering  <meyering@redhat.com>
12501
12502         syntax-check: keep one maint.mk rule in sync with its header
12503         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12504         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12505         I prefer to avoid temporary files here, so use <(...), but that
12506         is not supported by /bin/sh, so...
12507         (SHELL): Define to /bin/bash.
12508
12509 2011-06-24  Eric Blake  <eblake@redhat.com>
12510
12511         maint.mk: update sc_prohibit_intprops_without_use
12512         * top/maint.mk (_intprops_names): Match recent changes.
12513
12514 2011-06-24  Bruno Haible  <bruno@clisp.org>
12515
12516         strerror-override: No-op tweak.
12517         * lib/strerror-override.h (strerror_override): Reorder conditions,
12518         for consistency with lib/strerror-override.c.
12519
12520 2011-06-23  Eric Blake  <eblake@redhat.com>
12521
12522         maint.mk: test further PATH_MAX issues
12523         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12524         (sc_prohibit_path_max_allocation): ...and also test alloca.
12525         Suggested by Jim Meyering.
12526
12527 2011-06-22  Eric Blake  <eblake@redhat.com>
12528
12529         maint.mk: add syntax-check to avoid char[PATH_MAX]
12530         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12531
12532         stat: be robust to PATH_MAX definition
12533         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12534         * modules/stat (Depends-on): Add verify.
12535
12536         link: work around IRIX bug
12537         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12538         * lib/link.c (rpl_link): Work around it.
12539         * tests/test-link.h (test_link): Enhance test.
12540         * doc/posix-functions/link.texi (link): Document the bug.
12541
12542         getopt: silence clang warning
12543         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12544         dereference.
12545         Reported by Gustavo Martin Domato.
12546
12547 2011-06-22  Jim Meyering  <meyering@redhat.com>
12548
12549         bootstrap: do not insert a blank line into each .gitignore file
12550         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12551
12552 2011-06-21  Eric Blake  <eblake@redhat.com>
12553
12554         perror: test for output mismatch
12555         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12556         perror on IRIX.
12557
12558         strerror_r: fix OpenBSD behavior on out-of-range
12559         * lib/strerror_r.c (strerror_r): Always use maximal string.
12560         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12561
12562         strerror_r: fix OpenBSD behavior on 0
12563         * lib/strerror-override.c (strerror_override): Also override 0
12564         when needed.
12565         * lib/strerror-override.h (strerror_override): Likewise.
12566         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12567         earlier.
12568         * lib/strerror_r.c (strerror_r): Likewise.
12569         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12570         behavior...
12571         (gl_FUNC_STRERROR_0): ...into new macro.
12572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12573         is overridden.
12574         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12575         * modules/strerror-override (Files): Add strerror.m4.
12576         (configure.ac): Also provide override for 0 when needed.
12577         * doc/posix-functions/strerror.texi (strerror): Document this.
12578         * doc/posix-functions/perror.texi (perror): Likewise.
12579
12580         perror: adjust array size
12581         * modules/perror (Depends-on): Add strerror-override.
12582         * lib/perror.c (perror): Use it to avoid magic number.
12583
12584         strerror-override: reduce size
12585         * lib/strerror-override.c (strerror_override): Use fewer lines.
12586
12587 2011-06-20  Bruno Haible  <bruno@clisp.org>
12588
12589         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12590         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12591
12592 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12593
12594         alloca: port to compilers that can optimize like GCC 4.6.0
12595         * lib/alloca.c (find_stack_direction): New signature, taken from
12596         Autoconf git.  This works with GCC 4.6.0.  This code should never
12597         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12598         be used with other compilers that optimize as well as GCC 4.6.0 does.
12599         (alloca): Adjust to new signature.
12600         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12601         New macro, which patches Autoconf in a similar way.
12602
12603         c-stack: stop worrying about stack direction
12604         * lib/c-stack.c (find_stack_direction): Remove.
12605         (segv_handler): Don't worry about stack direction growth, as it's
12606         too much of a pain to configure this correctly, given how compilers
12607         are optimizing-away our stack-growth detection code.  Instead, assume
12608         that any access to just before or just after the stack is OK.
12609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12610         Don't require AC_FUNC_ALLOCA; no longer needed.
12611
12612 2011-06-20  Eric Blake  <eblake@redhat.com>
12613
12614         test-stat: don't allocate PATH_MAX bytes
12615         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12616         PATH_MAX-sized buffer.
12617         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12618         * modules/stat-tests (Depends-on): Likewise.
12619         * tests/test-fstatat.c (includes): Drop pathmax.h.
12620         * tests/test-stat.c (includes): Likewise.
12621         Reported by Bruno Haible.
12622
12623 2011-06-20  Bruno Haible  <bruno@clisp.org>
12624
12625         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12626         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12627         * lib/float.c: New file.
12628         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12629         REPLACE_FLOAT_LDBL.
12630         * modules/float (Files): Add lib/float.c.
12631         (configure.ac): Invoke AC_LIBOBJ.
12632         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12633
12634 2011-06-20  Bruno Haible  <bruno@clisp.org>
12635
12636         Tests for module 'float'.
12637         * modules/float-tests: New file.
12638         * tests/test-float.c: New file.
12639
12640 2011-06-19  Bruno Haible  <bruno@clisp.org>
12641
12642         isinf: Coding style.
12643         * lib/isinf.c: Use GNU coding style.
12644
12645 2011-06-19  Bruno Haible  <bruno@clisp.org>
12646
12647         linkat test: Avoid test failure on AIX 7.1.
12648         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12649         * tests/test-link.h (test_link): Likewise.
12650
12651 2011-06-19  Bruno Haible  <bruno@clisp.org>
12652
12653         pread test: Avoid test failure on OpenBSD 4.9.
12654         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12655
12656 2011-06-19  Bruno Haible  <bruno@clisp.org>
12657
12658         sprintf-posix: Fix test failure on AIX 7.1.
12659         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12660         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12661         on AIX.
12662         * doc/posix-functions/fprintf.texi: Likewise.
12663         * doc/posix-functions/printf.texi: Likewise.
12664         * doc/posix-functions/snprintf.texi: Likewise.
12665         * doc/posix-functions/sprintf.texi: Likewise.
12666         * doc/posix-functions/vdprintf.texi: Likewise.
12667         * doc/posix-functions/vfprintf.texi: Likewise.
12668         * doc/posix-functions/vprintf.texi: Likewise.
12669         * doc/posix-functions/vsnprintf.texi: Likewise.
12670         * doc/posix-functions/vsprintf.texi: Likewise.
12671
12672 2011-06-19  Bruno Haible  <bruno@clisp.org>
12673
12674         roundl-ieee: Fix test failure on AIX 7.1.
12675         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12676         * doc/posix-functions/roundl.texi: Mention problem with negative
12677         arguments.
12678
12679 2011-06-19  Bruno Haible  <bruno@clisp.org>
12680
12681         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12682         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12683         * doc/posix-functions/round.texi: Mention problem with negative
12684         arguments.
12685         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12686
12687 2011-06-19  Bruno Haible  <bruno@clisp.org>
12688
12689         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12691         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12692         * doc/posix-functions/roundf.texi: Mention problem with negative
12693         arguments.
12694         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12695
12696 2011-06-19  Bruno Haible  <bruno@clisp.org>
12697
12698         ceilf-ieee: Work around bug on MacOS X 10.5.
12699         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12700
12701         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12702         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12703         IEEE compliant, avoid compiler optimizations.
12704         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12705         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12706         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12707         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12708         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12709         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12710         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12712         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12713         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12714
12715 2011-06-19  Bruno Haible  <bruno@clisp.org>
12716
12717         ceilf-ieee: Work around bug on AIX 7.1.
12718         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12719         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12720
12721 2011-06-19  Bruno Haible  <bruno@clisp.org>
12722
12723         ceil-ieee: Work around bug on AIX 7.1.
12724         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12725         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12726
12727 2011-06-18  Bruno Haible  <bruno@clisp.org>
12728
12729         fsync test: Avoid test failure on MacOS X and AIX.
12730         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12731         EINVAL.
12732
12733 2011-06-18  Bruno Haible  <bruno@clisp.org>
12734
12735         openat, fdopendir tests: Fix link errors.
12736         * modules/openat-tests (Depends-on): Add progname.
12737         * modules/fdopendir-tests (Depends-on): Likewise.
12738         * tests/test-fchownat.c: Include progname.h.
12739         (main): Call set_program_name.
12740         * tests/test-fstatat.c: Include progname.h.
12741         (main): Call set_program_name.
12742         * tests/test-mkdirat.c: Include progname.h.
12743         (main): Call set_program_name.
12744         * tests/test-openat.c: Include progname.h.
12745         (main): Call set_program_name.
12746         * tests/test-unlinkat.c: Include progname.h.
12747         (main): Call set_program_name.
12748         * tests/test-fdopendir.c: Include progname.h.
12749         (main): Call set_program_name.
12750
12751 2011-06-18  Bruno Haible  <bruno@clisp.org>
12752
12753         Doc update.
12754         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12755         HP-UX.
12756         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12757
12758 2011-06-18  Bruno Haible  <bruno@clisp.org>
12759
12760         getcwd tests: Avoid compilation error on HP-UX 11.31.
12761         * modules/getcwd-tests (Depends-on): Add pathmax.
12762         * tests/test-getcwd.c: Include pathmax.h.
12763
12764 2011-06-18  Bruno Haible  <bruno@clisp.org>
12765
12766         isfinite, isinf: Fix link error on AIX 6 and 7.
12767         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12768         needed, also test the macro with a 'float' argument.
12769         * m4/isinf.m4 (gl_ISINF): Likewise.
12770
12771 2011-06-18  Bruno Haible  <bruno@clisp.org>
12772
12773         getloadavg: Don't clobber LIBS. Regression from previous commit.
12774         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12775         AC_CHECK_LIB from here...
12776         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12777         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12778         gl_func_getloadavg_done.
12779         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12780
12781 2011-06-18  Bruno Haible  <bruno@clisp.org>
12782
12783         clean-temp: Improve documentation.
12784         * lib/clean-temp.h: Explain better how to use this module.
12785         Reported by John Darrington <john@darrington.wattle.id.au>.
12786
12787 2011-06-17  Bruno Haible  <bruno@clisp.org>
12788
12789         pread, pwrite: Avoid cc warning on AIX.
12790         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12791         (pwrite): Likewise.
12792
12793 2011-06-17  Bruno Haible  <bruno@clisp.org>
12794
12795         spawn-pipe tests: Fix link error.
12796         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12798
12799 2011-06-17  Bruno Haible  <bruno@clisp.org>
12800
12801         Tests: Remove unnecessary dependency.
12802         * modules/canonicalize-tests (Depends-on): Remove progname.
12803         * modules/chown-tests (Depends-on): Likewise.
12804         * modules/dirname-tests (Depends-on): Likewise.
12805         * modules/fdopendir-tests (Depends-on): Likewise.
12806         * modules/fdutimensat-tests (Depends-on): Likewise.
12807         * modules/hash-tests (Depends-on): Likewise.
12808         * modules/lchown-tests (Depends-on): Likewise.
12809         * modules/linkat-tests (Depends-on): Likewise.
12810         * modules/renameat-tests (Depends-on): Likewise.
12811         * modules/spawn-pipe-tests (Depends-on): Likewise.
12812         * modules/utimensat-tests (Depends-on): Likewise.
12813
12814 2011-06-17  Bruno Haible  <bruno@clisp.org>
12815
12816         spawn-pipe tests: Fix link error.
12817         * tests/test-spawn-pipe-child.c: Undefine fflush.
12818
12819 2011-06-17  Bruno Haible  <bruno@clisp.org>
12820
12821         Fix tests link errors.
12822         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12823         * modules/chown-tests (Makefile.am): Don't link test-chown with
12824         LIBINTL.
12825         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12826         LIBINTL.
12827         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12828         LIBINTL.
12829         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12830         LIBINTL.
12831
12832 2011-06-16  Bruno Haible  <bruno@clisp.org>
12833
12834         crypto/gc-sha1: Fix recent regression.
12835         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12836         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12837
12838         crypto/gc-md5: Fix recent regression.
12839         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12840
12841         crypto/gc-md4: Fix recent regression.
12842         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12843         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12844
12845         crypto/gc-arctwo: Fix recent regression.
12846         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12847         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12848
12849         crypto/gc-rijndael: Fix recent regression.
12850         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12851         (configure.ac): Invoke AC_LIBOBJ here.
12852         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12854
12855         crypto/gc-hmac-sha1: Fix recent regression.
12856         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12857         (configure.ac): Invoke AC_LIBOBJ here.
12858         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12859         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12860
12861         crypto/gc-hmac-md5: Fix recent regression.
12862         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12863         (configure.ac): Invoke AC_LIBOBJ here.
12864         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12866
12867         crypto/gc-des: Fix recent regression.
12868         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12869         (configure.ac): Invoke AC_LIBOBJ here.
12870         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12872
12873         crypto/gc-arcfour: Fix recent regression.
12874         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12875         (configure.ac): Invoke AC_LIBOBJ here.
12876         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12878
12879 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12880
12881         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12882         After the 2011-05-21 change, this macro requires
12883         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12884         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12885
12886 2011-06-16  Bruno Haible  <bruno@clisp.org>
12887
12888         fprintftime: Move AC_LIBOBJ invocations to module description.
12889         * m4/fprintftime.m4: Remove file.
12890         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12891         (configure.ac): Remove gl_FPRINTFTIME call.
12892         (Makefile.am): Augment lib_SOURCES.
12893         Reported by Jim Meyering.
12894
12895 2011-06-16  Bruno Haible  <bruno@clisp.org>
12896
12897         tmpfile-safer: Finish 2011-05-23 commit.
12898         * m4/stdio-safer.m4: Really remove file.
12899         Reported by Jim Meyering.
12900
12901 2011-06-16  Bruno Haible  <bruno@clisp.org>
12902
12903         syntax-check: Fix typo.
12904         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12905         printf-posix.m4.
12906         Reported by Jim Meyering.
12907
12908 2011-06-13  Jim Meyering  <meyering@redhat.com>
12909
12910         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12911         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12912
12913 2011-05-23  Bruno Haible  <bruno@clisp.org>
12914
12915         yesno: Move AC_LIBOBJ invocations to module description.
12916         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12917         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12918
12919 2011-05-23  Bruno Haible  <bruno@clisp.org>
12920
12921         xstrtol: Move AC_LIBOBJ invocations to module description.
12922         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12923         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12924
12925 2011-05-23  Bruno Haible  <bruno@clisp.org>
12926
12927         xstrtold: Move AC_LIBOBJ invocations to module description.
12928         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12929         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12930
12931 2011-05-23  Bruno Haible  <bruno@clisp.org>
12932
12933         xstrtod: Move AC_LIBOBJ invocations to module description.
12934         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12935         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12936
12937 2011-05-23  Bruno Haible  <bruno@clisp.org>
12938
12939         xnanosleep: Move AC_LIBOBJ invocations to module description.
12940         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12941         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12942
12943 2011-05-23  Bruno Haible  <bruno@clisp.org>
12944
12945         xgetcwd: Move AC_LIBOBJ invocations to module description.
12946         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12947         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12948
12949 2011-05-23  Bruno Haible  <bruno@clisp.org>
12950
12951         xalloc: Move AC_LIBOBJ invocations to module description.
12952         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12953         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12954
12955 2011-05-23  Bruno Haible  <bruno@clisp.org>
12956
12957         write-any-file: Move AC_LIBOBJ invocations to module description.
12958         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12959         invocation.
12960         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12961
12962 2011-05-23  Bruno Haible  <bruno@clisp.org>
12963
12964         utimens: Move AC_LIBOBJ invocations to module description.
12965         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12966         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12967
12968 2011-05-23  Bruno Haible  <bruno@clisp.org>
12969
12970         utimecmp: Move AC_LIBOBJ invocations to module description.
12971         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12972         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12973
12974 2011-05-23  Bruno Haible  <bruno@clisp.org>
12975
12976         userspec: Move AC_LIBOBJ invocations to module description.
12977         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12978         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12979
12980 2011-05-23  Bruno Haible  <bruno@clisp.org>
12981
12982         unlinkdir: Move AC_LIBOBJ invocations to module description.
12983         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12984         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12985
12986 2011-05-23  Bruno Haible  <bruno@clisp.org>
12987
12988         unistd-safer: Move AC_LIBOBJ invocations to module description.
12989         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12990         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12991
12992 2011-05-23  Bruno Haible  <bruno@clisp.org>
12993
12994         tempname: Move AC_LIBOBJ invocations to module description.
12995         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12996         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12997
12998 2011-05-23  Bruno Haible  <bruno@clisp.org>
12999
13000         strftime: Move AC_LIBOBJ invocations to module description.
13001         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13002         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13003
13004 2011-05-23  Bruno Haible  <bruno@clisp.org>
13005
13006         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13007         * m4/stdlib-safer.m4: Remove file.
13008         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13009         (configure.ac): Remove gl_STDLIB_SAFER call.
13010         (Makefile.am): Augment lib_SOURCES.
13011
13012 2011-05-23  Bruno Haible  <bruno@clisp.org>
13013
13014         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13015         * m4/stdio-safer.m4: Remove file.
13016         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13017         (configure.ac): Remove gl_TMPFILE_SAFER call.
13018         (Makefile.am): Augment lib_SOURCES.
13019
13020 2011-05-23  Bruno Haible  <bruno@clisp.org>
13021
13022         popen-safer: Move AC_LIBOBJ invocations to module description.
13023         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13024         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13025         (configure.ac): Remove gl_POPEN_SAFER call.
13026         (Makefile.am): Augment lib_SOURCES.
13027
13028 2011-05-23  Bruno Haible  <bruno@clisp.org>
13029
13030         freopen-safer: Move AC_LIBOBJ invocations to module description.
13031         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13032         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13033         (configure.ac): Remove gl_FREOPEN_SAFER call.
13034         (Makefile.am): Augment lib_SOURCES.
13035
13036 2011-05-23  Bruno Haible  <bruno@clisp.org>
13037
13038         fopen-safer: Move AC_LIBOBJ invocations to module description.
13039         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13040         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13041         (configure.ac): Remove gl_FOPEN_SAFER call.
13042         (Makefile.am): Augment lib_SOURCES.
13043
13044 2011-05-23  Bruno Haible  <bruno@clisp.org>
13045
13046         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13047         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13048         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13049
13050 2011-05-23  Bruno Haible  <bruno@clisp.org>
13051
13052         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13053         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13054         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13055
13056 2011-05-23  Bruno Haible  <bruno@clisp.org>
13057
13058         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13059         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13060         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13061
13062 2011-05-23  Bruno Haible  <bruno@clisp.org>
13063
13064         settime: Move AC_LIBOBJ invocations to module description.
13065         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13066         * modules/settime (Makefile.am): Augment lib_SOURCES.
13067
13068 2011-05-23  Bruno Haible  <bruno@clisp.org>
13069
13070         savedir: Move AC_LIBOBJ invocations to module description.
13071         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13072         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13073
13074 2011-05-23  Bruno Haible  <bruno@clisp.org>
13075
13076         save-cwd: Move AC_LIBOBJ invocations to module description.
13077         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13078         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13079
13080 2011-05-23  Bruno Haible  <bruno@clisp.org>
13081
13082         same: Move AC_LIBOBJ invocations to module description.
13083         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13084         * modules/same (Makefile.am): Augment lib_SOURCES.
13085
13086 2011-05-23  Bruno Haible  <bruno@clisp.org>
13087
13088         safe-write: Move AC_LIBOBJ invocations to module description.
13089         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13090         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13091         instead of gl_SAFE_WRITE.
13092         (Makefile.am): Augment lib_SOURCES.
13093
13094 2011-05-23  Bruno Haible  <bruno@clisp.org>
13095
13096         safe-read: Move AC_LIBOBJ invocations to module description.
13097         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13098         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13099         of gl_SAFE_READ.
13100         (Makefile.am): Augment lib_SOURCES.
13101
13102 2011-05-23  Bruno Haible  <bruno@clisp.org>
13103
13104         safe-alloc: Move AC_LIBOBJ invocations to module description.
13105         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13106         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13107
13108 2011-05-23  Bruno Haible  <bruno@clisp.org>
13109
13110         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13111         * m4/rijndael.m4: Remove file.
13112         * modules/crypto/rijndael (Files): Remove it.
13113         (configure.ac): Remove gl_RIJNDAEL call.
13114         (Makefile.am): Augment lib_SOURCES.
13115
13116 2011-05-23  Bruno Haible  <bruno@clisp.org>
13117
13118         readtokens: Move AC_LIBOBJ invocations to module description.
13119         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13120         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13121
13122 2011-05-23  Bruno Haible  <bruno@clisp.org>
13123
13124         read-file: Move AC_LIBOBJ invocations to module description.
13125         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13126         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13127         of gl_FUNC_READ_FILE.
13128         (Makefile.am): Augment lib_SOURCES.
13129
13130 2011-05-23  Bruno Haible  <bruno@clisp.org>
13131
13132         quotearg: Move AC_LIBOBJ invocations to module description.
13133         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13134         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13135
13136 2011-05-23  Bruno Haible  <bruno@clisp.org>
13137
13138         quote: Move AC_LIBOBJ invocations to module description.
13139         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13140         * modules/quote (Makefile.am): Augment lib_SOURCES.
13141
13142 2011-05-23  Bruno Haible  <bruno@clisp.org>
13143
13144         posixver: Move AC_LIBOBJ invocations to module description.
13145         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13146         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13147
13148 2011-05-23  Bruno Haible  <bruno@clisp.org>
13149
13150         posixtm: Move AC_LIBOBJ invocations to module description.
13151         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13152         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13153
13154 2011-05-23  Bruno Haible  <bruno@clisp.org>
13155
13156         physmem: Move AC_LIBOBJ invocations to module description.
13157         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13158         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13159
13160 2011-05-23  Bruno Haible  <bruno@clisp.org>
13161
13162         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13163         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13164         invocation.
13165         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13166
13167 2011-05-23  Bruno Haible  <bruno@clisp.org>
13168
13169         mpsort: Move AC_LIBOBJ invocations to module description.
13170         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13171         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13172
13173 2011-05-23  Bruno Haible  <bruno@clisp.org>
13174
13175         modechange: Move AC_LIBOBJ invocations to module description.
13176         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13177         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13178
13179 2011-05-23  Bruno Haible  <bruno@clisp.org>
13180
13181         mkdir-p: Move AC_LIBOBJ invocations to module description.
13182         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13183         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13184
13185 2011-05-23  Bruno Haible  <bruno@clisp.org>
13186
13187         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13188         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13189         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13190
13191 2011-05-23  Bruno Haible  <bruno@clisp.org>
13192
13193         mgetgroups: Move AC_LIBOBJ invocations to module description.
13194         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13195         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13196
13197 2011-05-23  Bruno Haible  <bruno@clisp.org>
13198
13199         memxor: Move AC_LIBOBJ invocations to module description.
13200         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13201         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13202
13203 2011-05-23  Bruno Haible  <bruno@clisp.org>
13204
13205         memcoll: Move AC_LIBOBJ invocations to module description.
13206         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13207         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13208
13209 2011-05-23  Bruno Haible  <bruno@clisp.org>
13210
13211         memcasecmp: Move AC_LIBOBJ invocations to module description.
13212         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13213         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13214
13215 2011-05-23  Bruno Haible  <bruno@clisp.org>
13216
13217         crypto/md5: Move AC_LIBOBJ invocations to module description.
13218         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13219         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13220
13221 2011-05-23  Bruno Haible  <bruno@clisp.org>
13222
13223         crypto/md4: Move AC_LIBOBJ invocations to module description.
13224         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13225         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13226
13227 2011-05-23  Bruno Haible  <bruno@clisp.org>
13228
13229         crypto/md2: Move AC_LIBOBJ invocations to module description.
13230         * m4/md2.m4: Remove file.
13231         * modules/crypto/md2 (Files): Remove it.
13232         (configure.ac): Remove gl_MD2 call.
13233         (Makefile.am): Augment lib_SOURCES.
13234
13235 2011-05-23  Bruno Haible  <bruno@clisp.org>
13236
13237         long-options: Move AC_LIBOBJ invocations to module description.
13238         * m4/long-options.m4: Remove file.
13239         * modules/long-options (Files): Remove it.
13240         (configure.ac): Remove gl_LONG_OPTIONS call.
13241         (Makefile.am): Augment lib_SOURCES.
13242
13243 2011-05-23  Bruno Haible  <bruno@clisp.org>
13244
13245         i-ring: Move AC_LIBOBJ invocations to module description.
13246         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13247         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13248
13249 2011-05-23  Bruno Haible  <bruno@clisp.org>
13250
13251         idcache: Move AC_LIBOBJ invocations to module description.
13252         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13253         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13254
13255 2011-05-23  Bruno Haible  <bruno@clisp.org>
13256
13257         human: Move AC_LIBOBJ invocations to module description.
13258         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13259         * modules/human (Makefile.am): Augment lib_SOURCES.
13260
13261 2011-05-23  Bruno Haible  <bruno@clisp.org>
13262
13263         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13264         * m4/hmac-sha1.m4: Remove file.
13265         * modules/crypto/hmac-sha1 (Files): Remove it.
13266         (configure.ac): Remove gl_HMAC_SHA1 call.
13267         (Makefile.am): Augment lib_SOURCES.
13268
13269 2011-05-23  Bruno Haible  <bruno@clisp.org>
13270
13271         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13272         * m4/hmac-md5.m4: Remove file.
13273         * modules/crypto/hmac-md5 (Files): Remove it.
13274         (configure.ac): Remove gl_HMAC_MD5 call.
13275         (Makefile.am): Augment lib_SOURCES.
13276
13277 2011-05-23  Bruno Haible  <bruno@clisp.org>
13278
13279         hash: Move AC_LIBOBJ invocations to module description.
13280         * m4/hash.m4: Remove file.
13281         * modules/hash (Files): Remove it.
13282         (configure.ac): Remove gl_HASH call.
13283         (Makefile.am): Augment lib_SOURCES.
13284
13285 2011-05-23  Bruno Haible  <bruno@clisp.org>
13286
13287         hard-locale: Move AC_LIBOBJ invocations to module description.
13288         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13289         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13290
13291 2011-05-23  Bruno Haible  <bruno@clisp.org>
13292
13293         getugroups: Move AC_LIBOBJ invocations to module description.
13294         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13295         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13296
13297 2011-05-23  Bruno Haible  <bruno@clisp.org>
13298
13299         gettime: Move AC_LIBOBJ invocations to module description.
13300         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13301         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13302
13303 2011-05-23  Bruno Haible  <bruno@clisp.org>
13304
13305         getndelim2: Move AC_LIBOBJ invocations to module description.
13306         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13307         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13308
13309 2011-05-23  Bruno Haible  <bruno@clisp.org>
13310
13311         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13312         * m4/gc-pbkdf2-sha1.m4: Remove file.
13313         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13314         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13315         (Makefile.am): Augment lib_SOURCES.
13316
13317 2011-05-23  Bruno Haible  <bruno@clisp.org>
13318
13319         fts: Move AC_LIBOBJ invocations to module description.
13320         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13321         * modules/fts (configure.ac): ... to here.
13322
13323 2011-05-23  Bruno Haible  <bruno@clisp.org>
13324
13325         file-type: Move AC_LIBOBJ invocations to module description.
13326         * m4/file-type.m4: Remove file.
13327         * modules/file-type (Files): Remove it.
13328         (configure.ac): Remove gl_FILE_TYPE call.
13329         (Makefile.am): Augment lib_SOURCES.
13330
13331 2011-05-23  Bruno Haible  <bruno@clisp.org>
13332
13333         filenamecat*: Respect rules for use of AC_LIBOBJ.
13334         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13335         Remove AC_LIBOBJ invocation.
13336         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13337         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13338
13339 2011-05-23  Bruno Haible  <bruno@clisp.org>
13340
13341         filemode: Move AC_LIBOBJ invocations to module description.
13342         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13343         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13344
13345 2011-05-23  Bruno Haible  <bruno@clisp.org>
13346
13347         openat-safer: Move AC_LIBOBJ invocations to module description.
13348         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13349         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13350
13351 2011-05-23  Bruno Haible  <bruno@clisp.org>
13352
13353         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13354         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13355         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13356
13357 2011-05-23  Bruno Haible  <bruno@clisp.org>
13358
13359         exclude: Move AC_LIBOBJ invocations to module description.
13360         * m4/exclude.m4: Remove file.
13361         * modules/exclude (Files): Remove it.
13362         (configure.ac): Remove gl_EXCLUDE call.
13363         (Makefile.am): Augment lib_SOURCES.
13364
13365 2011-05-23  Bruno Haible  <bruno@clisp.org>
13366
13367         dirname*: Respect rules for use of AC_LIBOBJ.
13368         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13369         invocations.
13370         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13371         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13372
13373 2011-05-23  Bruno Haible  <bruno@clisp.org>
13374
13375         dirent-safer: Move AC_LIBOBJ invocations to module description.
13376         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13377         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13378
13379 2011-05-23  Bruno Haible  <bruno@clisp.org>
13380
13381         crypto/des: Move AC_LIBOBJ invocations to module description.
13382         * m4/des.m4: Remove file.
13383         * modules/crypto/des (Files): Remove it.
13384         (configure.ac): Remove gl_DES call.
13385         (Makefile.am): Augment lib_SOURCES.
13386
13387 2011-05-23  Bruno Haible  <bruno@clisp.org>
13388
13389         cycle-check: Move AC_LIBOBJ invocations to module description.
13390         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13391         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13392
13393 2011-05-23  Bruno Haible  <bruno@clisp.org>
13394
13395         c-strtold: Move AC_LIBOBJ invocations to module description.
13396         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13397         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13398
13399 2011-05-23  Bruno Haible  <bruno@clisp.org>
13400
13401         c-strtod: Move AC_LIBOBJ invocations to module description.
13402         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13403         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13404
13405 2011-05-23  Bruno Haible  <bruno@clisp.org>
13406
13407         crc: Move AC_LIBOBJ invocations to module description.
13408         * m4/crc.m4: Remove file.
13409         * modules/crc (Files): Remove it.
13410         (configure.ac): Remove gl_CRC call.
13411         (Makefile.am): Augment lib_SOURCES.
13412
13413 2011-05-23  Bruno Haible  <bruno@clisp.org>
13414
13415         close-stream: Move AC_LIBOBJ invocations to module description.
13416         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13417         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13418
13419 2011-05-23  Bruno Haible  <bruno@clisp.org>
13420
13421         closeout: Move AC_LIBOBJ invocations to module description.
13422         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13423         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13424
13425 2011-05-23  Bruno Haible  <bruno@clisp.org>
13426
13427         closein: Move AC_LIBOBJ invocations to module description.
13428         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13429         * modules/closein (Makefile.am): Augment lib_SOURCES.
13430
13431 2011-05-23  Bruno Haible  <bruno@clisp.org>
13432
13433         cloexec: Move AC_LIBOBJ invocations to module description.
13434         * m4/cloexec.m4: Remove file.
13435         * modules/cloexec (Files): Remove it.
13436         (configure.ac): Remove gl_CLOEXEC call.
13437         (Makefile.am): Augment lib_SOURCES.
13438
13439 2011-05-23  Bruno Haible  <bruno@clisp.org>
13440
13441         check-version: Move AC_LIBOBJ invocations to module description.
13442         * m4/check-version.m4: Remove file.
13443         * modules/check-version (Files): Remove it.
13444         (configure.ac): Remove gl_CHECK_VERSION call.
13445         (Makefile.am): Augment lib_SOURCES.
13446
13447 2011-05-23  Bruno Haible  <bruno@clisp.org>
13448
13449         chdir-safer: Move AC_LIBOBJ invocations to module description.
13450         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13451         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13452
13453 2011-05-23  Bruno Haible  <bruno@clisp.org>
13454
13455         canonicalize: Move AC_LIBOBJ invocations to module description.
13456         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13457         AC_LIBOBJ invocation.
13458         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13459
13460 2011-05-23  Bruno Haible  <bruno@clisp.org>
13461
13462         canon-host: Move AC_LIBOBJ invocations to module description.
13463         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13464         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13465         instead of gl_CANON_HOST.
13466         (Makefile.am): Augment lib_SOURCES.
13467
13468 2011-05-23  Bruno Haible  <bruno@clisp.org>
13469
13470         backupfile: Move AC_LIBOBJ invocations to module description.
13471         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13472         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13473
13474 2011-05-23  Bruno Haible  <bruno@clisp.org>
13475
13476         argmatch: Move AC_LIBOBJ invocations to module description.
13477         * m4/argmatch.m4: Remove file.
13478         * modules/argmatch (Files): Remove it.
13479         (configure.ac): Remove gl_ARGMATCH call.
13480         (Makefile.am): Augment lib_SOURCES.
13481
13482 2011-05-23  Bruno Haible  <bruno@clisp.org>
13483
13484         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13485         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13486         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13487
13488 2011-05-23  Bruno Haible  <bruno@clisp.org>
13489
13490         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13491         * m4/arcfour.m4: Remove file.
13492         * modules/crypto/arcfour (Files): Remove it.
13493         (configure.ac): Remove gl_ARCFOUR call.
13494         (Makefile.am): Augment lib_SOURCES.
13495
13496 2011-05-22  Bruno Haible  <bruno@clisp.org>
13497
13498         write: Move AC_LIBOBJ invocations to module description.
13499         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13500         * modules/write (configure.ac): ... to here.
13501
13502 2011-05-22  Bruno Haible  <bruno@clisp.org>
13503
13504         wmemset: Move AC_LIBOBJ invocations to module description.
13505         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13506         here...
13507         * modules/wmemset (configure.ac): ... to here.
13508
13509 2011-05-22  Bruno Haible  <bruno@clisp.org>
13510
13511         wmemmove: Move AC_LIBOBJ invocations to module description.
13512         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13513         here...
13514         * modules/wmemmove (configure.ac): ... to here.
13515
13516 2011-05-22  Bruno Haible  <bruno@clisp.org>
13517
13518         wmemcpy: Move AC_LIBOBJ invocations to module description.
13519         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13520         here...
13521         * modules/wmemcpy (configure.ac): ... to here.
13522
13523 2011-05-22  Bruno Haible  <bruno@clisp.org>
13524
13525         wmemcmp: Move AC_LIBOBJ invocations to module description.
13526         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13527         here...
13528         * modules/wmemcmp (configure.ac): ... to here.
13529
13530 2011-05-22  Bruno Haible  <bruno@clisp.org>
13531
13532         wmemchr: Move AC_LIBOBJ invocations to module description.
13533         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13534         here...
13535         * modules/wmemchr (configure.ac): ... to here.
13536
13537 2011-05-22  Bruno Haible  <bruno@clisp.org>
13538
13539         wcswidth: Move AC_LIBOBJ invocations to module description.
13540         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13541         here...
13542         * modules/wcswidth (configure.ac): ... to here.
13543
13544 2011-05-22  Bruno Haible  <bruno@clisp.org>
13545
13546         wcwidth: Respect rules for use of AC_LIBOBJ.
13547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13548         invocation from here...
13549         * modules/wcwidth (configure.ac): ... to here.
13550         (Depends-on): Update conditions.
13551
13552 2011-05-22  Bruno Haible  <bruno@clisp.org>
13553
13554         wctype: Move AC_LIBOBJ invocations to module description.
13555         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13556         invocation from here...
13557         * modules/wctype (configure.ac): ... to here.
13558         (Depends-on): Update conditions.
13559
13560 2011-05-22  Bruno Haible  <bruno@clisp.org>
13561
13562         wctrans: Move AC_LIBOBJ invocations to module description.
13563         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13564         invocation from here...
13565         * modules/wctrans (configure.ac): ... to here.
13566
13567 2011-05-22  Bruno Haible  <bruno@clisp.org>
13568
13569         wctomb: Move AC_LIBOBJ invocations to module description.
13570         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13571         invocations from here...
13572         * modules/wctomb (configure.ac): ... to here.
13573
13574 2011-05-22  Bruno Haible  <bruno@clisp.org>
13575
13576         wctob: Move AC_LIBOBJ invocations to module description.
13577         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13578         gl_PREREQ_WCTOB invocations from here...
13579         * modules/wctob (configure.ac): ... to here.
13580         (Depends-on): Update conditions.
13581
13582 2011-05-22  Bruno Haible  <bruno@clisp.org>
13583
13584         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13585         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13586         here...
13587         * modules/wcsxfrm (configure.ac): ... to here.
13588
13589 2011-05-22  Bruno Haible  <bruno@clisp.org>
13590
13591         wcstok: Move AC_LIBOBJ invocations to module description.
13592         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13593         * modules/wcstok (configure.ac): ... to here.
13594
13595 2011-05-22  Bruno Haible  <bruno@clisp.org>
13596
13597         wcsstr: Move AC_LIBOBJ invocations to module description.
13598         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13599         * modules/wcsstr (configure.ac): ... to here.
13600
13601 2011-05-22  Bruno Haible  <bruno@clisp.org>
13602
13603         wcsspn: Move AC_LIBOBJ invocations to module description.
13604         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13605         * modules/wcsspn (configure.ac): ... to here.
13606
13607 2011-05-22  Bruno Haible  <bruno@clisp.org>
13608
13609         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13610         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13611         gl_PREREQ_WCSRTOMBS invocations from here...
13612         * modules/wcsrtombs (configure.ac): ... to here.
13613
13614 2011-05-22  Bruno Haible  <bruno@clisp.org>
13615
13616         wcsrchr: Move AC_LIBOBJ invocations to module description.
13617         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13618         here...
13619         * modules/wcsrchr (configure.ac): ... to here.
13620
13621 2011-05-22  Bruno Haible  <bruno@clisp.org>
13622
13623         wcspbrk: Move AC_LIBOBJ invocations to module description.
13624         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13625         here...
13626         * modules/wcspbrk (configure.ac): ... to here.
13627
13628 2011-05-22  Bruno Haible  <bruno@clisp.org>
13629
13630         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13631         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13632         gl_PREREQ_WCSNRTOMBS invocations from here...
13633         * modules/wcsnrtombs (configure.ac): ... to here.
13634
13635 2011-05-22  Bruno Haible  <bruno@clisp.org>
13636
13637         wcsnlen: Move AC_LIBOBJ invocations to module description.
13638         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13639         here...
13640         * modules/wcsnlen (configure.ac): ... to here.
13641
13642 2011-05-22  Bruno Haible  <bruno@clisp.org>
13643
13644         wcsncpy: Move AC_LIBOBJ invocations to module description.
13645         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13646         here...
13647         * modules/wcsncpy (configure.ac): ... to here.
13648
13649 2011-05-22  Bruno Haible  <bruno@clisp.org>
13650
13651         wcsncmp: Move AC_LIBOBJ invocations to module description.
13652         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13653         here...
13654         * modules/wcsncmp (configure.ac): ... to here.
13655
13656 2011-05-22  Bruno Haible  <bruno@clisp.org>
13657
13658         wcsncat: Move AC_LIBOBJ invocations to module description.
13659         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13660         here...
13661         * modules/wcsncat (configure.ac): ... to here.
13662
13663 2011-05-22  Bruno Haible  <bruno@clisp.org>
13664
13665         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13666         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13667         from here...
13668         * modules/wcsncasecmp (configure.ac): ... to here.
13669
13670 2011-05-22  Bruno Haible  <bruno@clisp.org>
13671
13672         wcslen: Move AC_LIBOBJ invocations to module description.
13673         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13674         * modules/wcslen (configure.ac): ... to here.
13675
13676 2011-05-22  Bruno Haible  <bruno@clisp.org>
13677
13678         wcsdup: Move AC_LIBOBJ invocations to module description.
13679         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13680         * modules/wcsdup (configure.ac): ... to here.
13681
13682 2011-05-22  Bruno Haible  <bruno@clisp.org>
13683
13684         wcscspn: Move AC_LIBOBJ invocations to module description.
13685         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13686         here...
13687         * modules/wcscspn (configure.ac): ... to here.
13688
13689 2011-05-22  Bruno Haible  <bruno@clisp.org>
13690
13691         wcscpy: Move AC_LIBOBJ invocations to module description.
13692         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13693         * modules/wcscpy (configure.ac): ... to here.
13694
13695 2011-05-22  Bruno Haible  <bruno@clisp.org>
13696
13697         wcscoll: Move AC_LIBOBJ invocations to module description.
13698         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13699         here...
13700         * modules/wcscoll (configure.ac): ... to here.
13701
13702 2011-05-22  Bruno Haible  <bruno@clisp.org>
13703
13704         wcscmp: Move AC_LIBOBJ invocations to module description.
13705         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13706         * modules/wcscmp (configure.ac): ... to here.
13707
13708 2011-05-22  Bruno Haible  <bruno@clisp.org>
13709
13710         wcschr: Move AC_LIBOBJ invocations to module description.
13711         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13712         * modules/wcschr (configure.ac): ... to here.
13713
13714 2011-05-22  Bruno Haible  <bruno@clisp.org>
13715
13716         wcscat: Move AC_LIBOBJ invocations to module description.
13717         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13718         * modules/wcscat (configure.ac): ... to here.
13719
13720 2011-05-22  Bruno Haible  <bruno@clisp.org>
13721
13722         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13723         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13724         here...
13725         * modules/wcscasecmp (configure.ac): ... to here.
13726
13727 2011-05-22  Bruno Haible  <bruno@clisp.org>
13728
13729         wcrtomb: Move AC_LIBOBJ invocations to module description.
13730         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13731         invocations from here...
13732         * modules/wcrtomb (configure.ac): ... to here.
13733
13734 2011-05-22  Bruno Haible  <bruno@clisp.org>
13735
13736         wcpncpy: Move AC_LIBOBJ invocations to module description.
13737         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13738         here...
13739         * modules/wcpncpy (configure.ac): ... to here.
13740
13741 2011-05-22  Bruno Haible  <bruno@clisp.org>
13742
13743         wcpcpy: Move AC_LIBOBJ invocations to module description.
13744         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13745         * modules/wcpcpy (configure.ac): ... to here.
13746
13747 2011-05-22  Bruno Haible  <bruno@clisp.org>
13748
13749         waitpid: Move AC_LIBOBJ invocations to module description.
13750         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13751         invocation from here...
13752         * modules/waitpid (configure.ac): ... to here.
13753
13754 2011-05-22  Bruno Haible  <bruno@clisp.org>
13755
13756         utimensat: Move AC_LIBOBJ invocations to module description.
13757         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13758         here...
13759         * modules/utimensat (configure.ac): ... to here.
13760
13761 2011-05-22  Bruno Haible  <bruno@clisp.org>
13762
13763         usleep: Move AC_LIBOBJ invocations to module description.
13764         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13765         here...
13766         * modules/usleep (configure.ac): ... to here.
13767
13768 2011-05-22  Bruno Haible  <bruno@clisp.org>
13769
13770         unlockpt: Move AC_LIBOBJ invocations to module description.
13771         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13772         gl_PREREQ_UNLOCKPT invocations from here...
13773         * modules/unlockpt (configure.ac): ... to here.
13774
13775 2011-05-22  Bruno Haible  <bruno@clisp.org>
13776
13777         unlink: Respect rules for use of AC_LIBOBJ.
13778         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13779         * modules/unlink (configure.ac): ... to here.
13780
13781 2011-05-22  Bruno Haible  <bruno@clisp.org>
13782
13783         uname: Move AC_LIBOBJ invocations to module description.
13784         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13785         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13786         here...
13787         * modules/uname (configure.ac): ... to here.
13788
13789 2011-05-22  Bruno Haible  <bruno@clisp.org>
13790
13791         ttyname_r: Move AC_LIBOBJ invocations to module description.
13792         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13793         gl_PREREQ_TTYNAME_R invocations from here...
13794         * modules/ttyname_r (configure.ac): ... to here.
13795
13796 2011-05-22  Bruno Haible  <bruno@clisp.org>
13797
13798         tsearch: Move AC_LIBOBJ invocations to module description.
13799         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13800         invocations from here...
13801         * modules/tsearch (configure.ac): ... to here.
13802
13803 2011-05-22  Bruno Haible  <bruno@clisp.org>
13804
13805         towctrans: Move AC_LIBOBJ invocations to module description.
13806         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13807         AC_LIBOBJ invocation from here...
13808         * modules/towctrans (configure.ac): ... to here.
13809
13810 2011-05-22  Bruno Haible  <bruno@clisp.org>
13811
13812         tmpfile: Move AC_LIBOBJ invocations to module description.
13813         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13814         invocations from here...
13815         * modules/tmpfile (configure.ac): ... to here.
13816
13817 2011-05-22  Bruno Haible  <bruno@clisp.org>
13818
13819         times: Move AC_LIBOBJ invocations to module description.
13820         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13821         * modules/times (configure.ac): ... to here.
13822
13823 2011-05-22  Bruno Haible  <bruno@clisp.org>
13824
13825         time_r: Move AC_LIBOBJ invocations to module description.
13826         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13827         invocations from here...
13828         * modules/time_r (configure.ac): ... to here.
13829
13830 2011-05-22  Bruno Haible  <bruno@clisp.org>
13831
13832         timegm: Move AC_LIBOBJ invocations to module description.
13833         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13834         invocations from here...
13835         * modules/timegm (configure.ac): ... to here.
13836
13837 2011-05-22  Bruno Haible  <bruno@clisp.org>
13838
13839         tcgetsid: Move AC_LIBOBJ invocations to module description.
13840         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13841         and gl_PREREQ_TCGETSID invocations from here...
13842         * modules/tcgetsid (configure.ac): ... to here.
13843         (Depends-on): Update conditions.
13844
13845 2011-05-22  Bruno Haible  <bruno@clisp.org>
13846
13847         symlinkat: Move AC_LIBOBJ invocations to module description.
13848         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13849         here...
13850         * modules/symlinkat (configure.ac): ... to here.
13851
13852 2011-05-22  Bruno Haible  <bruno@clisp.org>
13853
13854         symlink: Move AC_LIBOBJ invocations to module description.
13855         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13856         here...
13857         * modules/symlink (configure.ac): ... to here.
13858
13859 2011-05-22  Bruno Haible  <bruno@clisp.org>
13860
13861         strverscmp: Move AC_LIBOBJ invocations to module description.
13862         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13863         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13864         from here...
13865         * modules/strverscmp (configure.ac): ... to here.
13866
13867 2011-05-22  Bruno Haible  <bruno@clisp.org>
13868
13869         strtok_r: Move AC_LIBOBJ invocations to module description.
13870         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13871         and gl_PREREQ_STRTOK_R invocations from here...
13872         * modules/strtok_r (configure.ac): ... to here.
13873         (Depends-on): Update conditions.
13874
13875 2011-05-22  Bruno Haible  <bruno@clisp.org>
13876
13877         strtoumax: Move AC_LIBOBJ invocations to module description.
13878         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13880         from here...
13881         * modules/strtoumax (configure.ac): ... to here.
13882
13883 2011-05-22  Bruno Haible  <bruno@clisp.org>
13884
13885         strtoimax: Move AC_LIBOBJ invocations to module description.
13886         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13888         from here...
13889         * modules/strtoimax (configure.ac): ... to here.
13890
13891 2011-05-22  Bruno Haible  <bruno@clisp.org>
13892
13893         strtoull: Move AC_LIBOBJ invocations to module description.
13894         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13896         from here...
13897         * modules/strtoull (configure.ac): ... to here.
13898
13899 2011-05-22  Bruno Haible  <bruno@clisp.org>
13900
13901         strtoll: Move AC_LIBOBJ invocations to module description.
13902         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13904         here...
13905         * modules/strtoll (configure.ac): ... to here.
13906
13907 2011-05-22  Bruno Haible  <bruno@clisp.org>
13908
13909         strtoul: Move AC_LIBOBJ invocations to module description.
13910         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13911         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13912         * modules/strtoul (configure.ac): ... to here.
13913
13914 2011-05-22  Bruno Haible  <bruno@clisp.org>
13915
13916         strtol: Move AC_LIBOBJ invocations to module description.
13917         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13918         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13919         * modules/strtol (configure.ac): ... to here.
13920
13921 2011-05-22  Bruno Haible  <bruno@clisp.org>
13922
13923         strtod: Move AC_LIBOBJ invocations to module description.
13924         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13925         invocations from here...
13926         * modules/strtod (configure.ac): ... to here.
13927
13928 2011-05-22  Bruno Haible  <bruno@clisp.org>
13929
13930         strstr*: Move AC_LIBOBJ invocations to module description.
13931         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13932         invocations from here...
13933         * modules/strstr-simple (configure.ac): ... to here.
13934         * modules/strstr (configure.ac): ... and here.
13935
13936 2011-05-22  Bruno Haible  <bruno@clisp.org>
13937
13938         strsignal: Move AC_LIBOBJ invocations to module description.
13939         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13940         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13941         * modules/strsignal (configure.ac): ... to here.
13942         (Depends-on): Update conditions.
13943
13944 2011-05-22  Bruno Haible  <bruno@clisp.org>
13945
13946         strsep: Move AC_LIBOBJ invocations to module description.
13947         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13949         here...
13950         * modules/strsep (configure.ac): ... to here.
13951
13952 2011-05-22  Bruno Haible  <bruno@clisp.org>
13953
13954         strptime: Move AC_LIBOBJ invocations to module description.
13955         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13956         gl_PREREQ_STRPTIME invocations from here...
13957         * modules/strptime (configure.ac): ... to here.
13958
13959 2011-05-22  Bruno Haible  <bruno@clisp.org>
13960
13961         strpbrk: Move AC_LIBOBJ invocations to module description.
13962         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13963         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13964         here...
13965         * modules/strpbrk (configure.ac): ... to here.
13966
13967 2011-05-22  Bruno Haible  <bruno@clisp.org>
13968
13969         strnlen: Move AC_LIBOBJ invocations to module description.
13970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13971         invocations from here...
13972         * modules/strnlen (configure.ac): ... to here.
13973
13974 2011-05-22  Bruno Haible  <bruno@clisp.org>
13975
13976         strndup: Move AC_LIBOBJ invocations to module description.
13977         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13978         invocations from here...
13979         * modules/strndup (configure.ac): ... to here.
13980         (Depends-on): Update conditions.
13981
13982 2011-05-22  Bruno Haible  <bruno@clisp.org>
13983
13984         strncat: Move AC_LIBOBJ invocations to module description.
13985         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13986         invocations from here...
13987         * modules/strncat (configure.ac): ... to here.
13988
13989 2011-05-22  Bruno Haible  <bruno@clisp.org>
13990
13991         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13992         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13993         invocations from here...
13994         * modules/strdup (configure.ac): ... to here.
13995         * modules/strdup-posix (configure.ac): ... and here.
13996
13997 2011-05-22  Bruno Haible  <bruno@clisp.org>
13998
13999         strcspn: Move AC_LIBOBJ invocations to module description.
14000         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14001         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14002         here...
14003         * modules/strcspn (configure.ac): ... to here.
14004
14005 2011-05-22  Bruno Haible  <bruno@clisp.org>
14006
14007         strchrnul: Move AC_LIBOBJ invocations to module description.
14008         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14009         gl_PREREQ_STRCHRNUL invocations from here...
14010         * modules/strchrnul (configure.ac): ... to here.
14011
14012 2011-05-22  Bruno Haible  <bruno@clisp.org>
14013
14014         strcasestr*: Move AC_LIBOBJ invocations to module description.
14015         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14016         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14017         * modules/strcasestr-simple (configure.ac): ... to here.
14018         * modules/strcasestr (configure.ac): ... and here.
14019
14020 2011-05-22  Bruno Haible  <bruno@clisp.org>
14021
14022         strcase: Move AC_LIBOBJ invocations to module description.
14023         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14024         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14025         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14026         gl_PREREQ_STRNCASECMP invocations from here...
14027         * modules/strcase (configure.ac): ... to here.
14028
14029 2011-05-22  Bruno Haible  <bruno@clisp.org>
14030
14031         stpncpy: Move AC_LIBOBJ invocations to module description.
14032         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14033         here...
14034         * modules/stpncpy (configure.ac): ... to here.
14035
14036 2011-05-22  Bruno Haible  <bruno@clisp.org>
14037
14038         stpcpy: Move AC_LIBOBJ invocations to module description.
14039         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14040         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14041         here...
14042         * modules/stpcpy (configure.ac): ... to here.
14043
14044 2011-05-21  Bruno Haible  <bruno@clisp.org>
14045
14046         stat: Move AC_LIBOBJ invocations to module description.
14047         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14048         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14049         here...
14050         * modules/stat (configure.ac): ... to here.
14051
14052 2011-05-21  Bruno Haible  <bruno@clisp.org>
14053
14054         sleep: Move AC_LIBOBJ invocations to module description.
14055         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14056         * modules/sleep (configure.ac): ... to here.
14057
14058 2011-05-21  Bruno Haible  <bruno@clisp.org>
14059
14060         signbit: Move AC_LIBOBJ invocations to module description.
14061         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14062         * modules/signbit (configure.ac): ... to here.
14063
14064 2011-05-21  Bruno Haible  <bruno@clisp.org>
14065
14066         sigprocmask: Move AC_LIBOBJ invocations to module description.
14067         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14068         gl_PREREQ_SIGPROMASK invocations from here...
14069         * modules/sigprocmask (configure.ac): ... to here.
14070
14071 2011-05-21  Bruno Haible  <bruno@clisp.org>
14072
14073         sigaction: Move AC_LIBOBJ invocations to module description.
14074         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14075         gl_PREREQ_SIGACTION invocations from here...
14076         * modules/sigaction (configure.ac): ... to here.
14077
14078 2011-05-21  Bruno Haible  <bruno@clisp.org>
14079
14080         sig2str: Move AC_LIBOBJ invocations to module description.
14081         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14083         here...
14084         * modules/sig2str (configure.ac): ... to here.
14085
14086 2011-05-21  Bruno Haible  <bruno@clisp.org>
14087
14088         setlocale: Move AC_LIBOBJ invocations to module description.
14089         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14090         gl_PREREQ_SETLOCALE invocations from here...
14091         * modules/setlocale (configure.ac): ... to here.
14092
14093 2011-05-21  Bruno Haible  <bruno@clisp.org>
14094
14095         unsetenv: Move AC_LIBOBJ invocations to module description.
14096         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14097         and gl_PREREQ_UNSETENV invocations from here...
14098         * modules/unsetenv (configure.ac): ... to here.
14099         (Depends-on): Update.
14100
14101 2011-05-21  Bruno Haible  <bruno@clisp.org>
14102
14103         setenv: Move AC_LIBOBJ invocations to module description.
14104         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14105         here...
14106         * modules/setenv (configure.ac): ... to here.
14107
14108 2011-05-21  Bruno Haible  <bruno@clisp.org>
14109
14110         selinux-h: Move AC_LIBOBJ invocations to module description.
14111         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14112         AC_LIBOBJ invocation from here...
14113         * modules/selinux-h (configure.ac): ... to here.
14114
14115 2011-05-21  Bruno Haible  <bruno@clisp.org>
14116
14117         select: Respect rules for use of AC_LIBOBJ.
14118         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14119         here...
14120         * modules/select (configure.ac): ... to here.
14121
14122 2011-05-21  Bruno Haible  <bruno@clisp.org>
14123
14124         scandir: Move AC_LIBOBJ invocations to module description.
14125         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14126         invocations from here...
14127         * modules/scandir (configure.ac): ... to here.
14128
14129 2011-05-21  Bruno Haible  <bruno@clisp.org>
14130
14131         rpmatch: Move AC_LIBOBJ invocations to module description.
14132         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14134         here...
14135         * modules/rpmatch (configure.ac): ... to here.
14136
14137 2011-05-21  Bruno Haible  <bruno@clisp.org>
14138
14139         rmdir: Respect rules for use of AC_LIBOBJ.
14140         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14141         * modules/rmdir (configure.ac): ... to here.
14142
14143 2011-05-21  Bruno Haible  <bruno@clisp.org>
14144
14145         renameat: Move AC_LIBOBJ invocations to module description.
14146         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14147         here...
14148         * modules/renameat (configure.ac): ... to here.
14149
14150 2011-05-21  Bruno Haible  <bruno@clisp.org>
14151
14152         rename: Respect rules for use of AC_LIBOBJ.
14153         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14154         here...
14155         * modules/rename (configure.ac): ... to here.
14156
14157 2011-05-21  Bruno Haible  <bruno@clisp.org>
14158
14159         remove: Move AC_LIBOBJ invocations to module description.
14160         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14161         here...
14162         * modules/remove (configure.ac): ... to here.
14163
14164 2011-05-21  Bruno Haible  <bruno@clisp.org>
14165
14166         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14167         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14168         macro.
14169         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14170         * modules/relocatable-lib (configure.ac): ... to here.
14171         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14172         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14173
14174 2011-05-21  Bruno Haible  <bruno@clisp.org>
14175
14176         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14177         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14178         here...
14179         * modules/relocatable-prog (configure.ac): ... to here.
14180
14181 2011-05-21  Bruno Haible  <bruno@clisp.org>
14182
14183         regex: Move AC_LIBOBJ invocations to module description.
14184         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14185         invocations from here...
14186         * modules/regex (configure.ac): ... to here.
14187
14188 2011-05-21  Bruno Haible  <bruno@clisp.org>
14189
14190         realloc-*: Move AC_LIBOBJ invocations to module description.
14191         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14192         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14193         AC_LIBOBJ invocations from here...
14194         * modules/realloc-gnu (configure.ac): ... to here.
14195         * modules/realloc-posix (configure.ac): ... and here.
14196
14197 2011-05-21  Bruno Haible  <bruno@clisp.org>
14198
14199         readutmp: Move AC_LIBOBJ invocations to module description.
14200         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14201         * modules/readutmp (configure.ac): ... to here.
14202
14203 2011-05-21  Bruno Haible  <bruno@clisp.org>
14204
14205         readlinkat: Move AC_LIBOBJ invocations to module description.
14206         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14207         here...
14208         * modules/readlinkat (configure.ac): ... to here.
14209
14210 2011-05-21  Bruno Haible  <bruno@clisp.org>
14211
14212         readlink: Move AC_LIBOBJ invocations to module description.
14213         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14214         gl_PREREQ_READLINK invocations from here...
14215         * modules/readlink (configure.ac): ... to here.
14216
14217 2011-05-21  Bruno Haible  <bruno@clisp.org>
14218
14219         readline: Move AC_LIBOBJ invocations to module description.
14220         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14221         gl_PREREQ_READLINE invocations from here...
14222         * modules/readline (configure.ac): ... to here.
14223
14224 2011-05-21  Bruno Haible  <bruno@clisp.org>
14225
14226         read: Move AC_LIBOBJ invocations to module description.
14227         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14228         * modules/read (configure.ac): ... to here.
14229
14230 2011-05-21  Bruno Haible  <bruno@clisp.org>
14231
14232         rawmemchr: Move AC_LIBOBJ invocations to module description.
14233         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14235         from here...
14236         * modules/rawmemchr (configure.ac): ... to here.
14237
14238 2011-05-21  Bruno Haible  <bruno@clisp.org>
14239
14240         random_r: Move AC_LIBOBJ invocations to module description.
14241         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14242         gl_PREREQ_RANDOM_R invocations from here...
14243         * modules/random_r (configure.ac): ... to here.
14244
14245 2011-05-21  Bruno Haible  <bruno@clisp.org>
14246
14247         pwrite: Move AC_LIBOBJ invocations to module description.
14248         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14249         * modules/pwrite (configure.ac): ... to here.
14250
14251 2011-05-21  Bruno Haible  <bruno@clisp.org>
14252
14253         putenv: Move AC_LIBOBJ invocations to module description.
14254         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14255         * modules/putenv (configure.ac): ... to here.
14256
14257 2011-05-21  Bruno Haible  <bruno@clisp.org>
14258
14259         login_tty: Move AC_LIBOBJ invocations to module description.
14260         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14261         * modules/login_tty (configure.ac): ... to here.
14262
14263 2011-05-21  Bruno Haible  <bruno@clisp.org>
14264
14265         openpty: Move AC_LIBOBJ invocations to module description.
14266         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14267         * modules/openpty (configure.ac): ... to here.
14268
14269 2011-05-21  Bruno Haible  <bruno@clisp.org>
14270
14271         forkpty: Move AC_LIBOBJ invocations to module description.
14272         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14273         * modules/forkpty (configure.ac): ... to here.
14274
14275 2011-05-21  Bruno Haible  <bruno@clisp.org>
14276
14277         ptsname: Move AC_LIBOBJ invocations to module description.
14278         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14279         invocations from here...
14280         * modules/ptsname (configure.ac): ... to here.
14281
14282 2011-05-21  Bruno Haible  <bruno@clisp.org>
14283
14284         pread: Move AC_LIBOBJ invocations to module description.
14285         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14286         * modules/pread (configure.ac): ... to here.
14287
14288 2011-05-21  Bruno Haible  <bruno@clisp.org>
14289
14290         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14291         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14292         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14293         * modules/posix_spawn (configure.ac): ... to here.
14294         * modules/posix_spawnp (configure.ac): ... and here.
14295
14296 2011-05-21  Bruno Haible  <bruno@clisp.org>
14297
14298         popen: Move AC_LIBOBJ invocations to module description.
14299         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14300         invocations from here...
14301         * modules/popen (configure.ac): ... to here.
14302
14303 2011-05-21  Bruno Haible  <bruno@clisp.org>
14304
14305         poll: Move AC_LIBOBJ invocations to module description.
14306         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14307         invocations from here...
14308         * modules/poll (configure.ac): ... to here.
14309
14310 2011-05-21  Bruno Haible  <bruno@clisp.org>
14311
14312         pipe-posix: Move AC_LIBOBJ invocations to module description.
14313         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14314         * modules/pipe-posix (configure.ac): ... to here.
14315
14316 2011-05-21  Bruno Haible  <bruno@clisp.org>
14317
14318         openat: Respect rules for use of AC_LIBOBJ.
14319         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14320         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14321         * modules/openat (configure.ac): ... to here.
14322
14323 2011-05-21  Bruno Haible  <bruno@clisp.org>
14324
14325         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14326         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14327         invocation from here...
14328         * modules/obstack-printf (configure.ac): ... to here.
14329         * modules/obstack-printf-posix (configure.ac): ... and here.
14330
14331 2011-05-21  Bruno Haible  <bruno@clisp.org>
14332
14333         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14334         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14335         from here...
14336         * modules/nl_langinfo (configure.ac): ... to here.
14337
14338 2011-05-21  Bruno Haible  <bruno@clisp.org>
14339
14340         nanosleep: Move AC_LIBOBJ invocations to module description.
14341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14342         gl_PREREQ_NANOSLEEP invocations from here...
14343         * modules/nanosleep (configure.ac): ... to here.
14344
14345 2011-05-21  Bruno Haible  <bruno@clisp.org>
14346
14347         mountlist: Move AC_LIBOBJ invocations to module description.
14348         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14349         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14350         * modules/mountlist (configure.ac): ... to here.
14351
14352 2011-05-21  Bruno Haible  <bruno@clisp.org>
14353
14354         mktime: Respect rules for use of AC_LIBOBJ.
14355         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14356         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14357         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14358         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14359         * modules/mktime (configure.ac): ... to here.
14360         * modules/mktime-internal (configure.ac): ... and here.
14361         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14362
14363 2011-05-21  Bruno Haible  <bruno@clisp.org>
14364
14365         mkstemps: Move AC_LIBOBJ invocations to module description.
14366         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14367         here...
14368         * modules/mkstemps (configure.ac): ... to here.
14369
14370 2011-05-21  Bruno Haible  <bruno@clisp.org>
14371
14372         mkstemp: Move AC_LIBOBJ invocations to module description.
14373         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14374         gl_PREREQ_MKSTEMP invocations from here...
14375         * modules/mkstemp (configure.ac): ... to here.
14376
14377 2011-05-21  Bruno Haible  <bruno@clisp.org>
14378
14379         mkostemps: Move AC_LIBOBJ invocations to module description.
14380         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14381         here...
14382         * modules/mkostemps (configure.ac): ... to here.
14383
14384 2011-05-21  Bruno Haible  <bruno@clisp.org>
14385
14386         mkostemp: Move AC_LIBOBJ invocations to module description.
14387         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14388         gl_PREREQ_MKOSTEMP invocations from here...
14389         * modules/mkostemp (configure.ac): ... to here.
14390
14391 2011-05-21  Bruno Haible  <bruno@clisp.org>
14392
14393         mknod: Move AC_LIBOBJ invocations to module description.
14394         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14395         * modules/mknod (configure.ac): ... to here.
14396
14397 2011-05-21  Bruno Haible  <bruno@clisp.org>
14398
14399         mkfifoat: Move AC_LIBOBJ invocations to module description.
14400         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14401         here...
14402         * modules/mkfifoat (configure.ac): ... to here.
14403
14404 2011-05-21  Bruno Haible  <bruno@clisp.org>
14405
14406         mkfifo: Respect rules for use of AC_LIBOBJ.
14407         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14408         here...
14409         * modules/mkfifo (configure.ac): ... to here.
14410
14411 2011-05-21  Bruno Haible  <bruno@clisp.org>
14412
14413         mkdtemp: Move AC_LIBOBJ invocations to module description.
14414         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14415         invocations from here...
14416         * modules/mkdtemp (configure.ac): ... to here.
14417
14418 2011-05-21  Bruno Haible  <bruno@clisp.org>
14419
14420         mkdir: Move AC_LIBOBJ invocations to module description.
14421         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14422         * modules/mkdir (configure.ac): ... to here.
14423
14424 2011-05-21  Bruno Haible  <bruno@clisp.org>
14425
14426         memset: Move AC_LIBOBJ invocations to module description.
14427         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14428         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14429         here...
14430         * modules/memset (configure.ac): ... to here.
14431
14432 2011-05-21  Bruno Haible  <bruno@clisp.org>
14433
14434         memrchr: Move AC_LIBOBJ invocations to module description.
14435         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14437         here...
14438         * modules/memrchr (configure.ac): ... to here.
14439
14440 2011-05-21  Bruno Haible  <bruno@clisp.org>
14441
14442         mempcpy: Move AC_LIBOBJ invocations to module description.
14443         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14444         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14445         here...
14446         * modules/mempcpy (configure.ac): ... to here.
14447
14448 2011-05-21  Bruno Haible  <bruno@clisp.org>
14449
14450         memmove: Move AC_LIBOBJ invocations to module description.
14451         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14453         here...
14454         * modules/memmove (configure.ac): ... to here.
14455
14456 2011-05-21  Bruno Haible  <bruno@clisp.org>
14457
14458         memmem*: Move AC_LIBOBJ invocations to module description.
14459         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14460         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14461         here...
14462         (gl_FUNC_MEMMEM): ... and here...
14463         * modules/memmem-simple (configure.ac): ... to here.
14464         * modules/memmem (configure.ac): ... and here.
14465
14466 2011-05-21  Bruno Haible  <bruno@clisp.org>
14467
14468         memcpy: Move AC_LIBOBJ invocations to module description.
14469         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14471         here...
14472         * modules/memcpy (configure.ac): ... to here.
14473
14474 2011-05-21  Bruno Haible  <bruno@clisp.org>
14475
14476         memcmp: Simplify autoconf macro.
14477         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14478         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14479         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14480
14481 2011-05-21  Bruno Haible  <bruno@clisp.org>
14482
14483         memcmp: Move AC_LIBOBJ invocations to module description.
14484         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14485         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14486         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14487         * modules/memcmp (configure.ac): ... to here.
14488         (Depends-on): Update conditions.
14489
14490 2011-05-21  Bruno Haible  <bruno@clisp.org>
14491
14492         memchr: Respect rules for use of AC_LIBOBJ.
14493         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14494         invocations from here...
14495         * modules/memchr (configure.ac): ... to here.
14496
14497 2011-05-21  Bruno Haible  <bruno@clisp.org>
14498
14499         mbtowc: Move AC_LIBOBJ invocations to module description.
14500         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14501         invocations from here...
14502         * modules/mbtowc (configure.ac): ... to here.
14503
14504 2011-05-21  Bruno Haible  <bruno@clisp.org>
14505
14506         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14507         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14508         gl_PREREQ_MBSRTOWCS invocations from here...
14509         * modules/mbsrtowcs (configure.ac): ... to here.
14510
14511 2011-05-21  Bruno Haible  <bruno@clisp.org>
14512
14513         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14514         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14515         gl_PREREQ_MBSNRTOWCS invocations from here...
14516         * modules/mbsnrtowcs (configure.ac): ... to here.
14517
14518 2011-05-21  Bruno Haible  <bruno@clisp.org>
14519
14520         mbsinit: Move AC_LIBOBJ invocations to module description.
14521         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14522         invocations from here...
14523         * modules/mbsinit (configure.ac): ... to here.
14524
14525 2011-05-21  Bruno Haible  <bruno@clisp.org>
14526
14527         mbrlen: Move AC_LIBOBJ invocations to module description.
14528         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14529         invocations from here...
14530         * modules/mbrlen (configure.ac): ... to here.
14531
14532 2011-05-21  Bruno Haible  <bruno@clisp.org>
14533
14534         mbrtowc: Respect rules for use of AC_LIBOBJ.
14535         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14536         invocations from here...
14537         * modules/mbrtowc (configure.ac): ... to here.
14538
14539 2011-05-21  Bruno Haible  <bruno@clisp.org>
14540
14541         malloc-*: Move AC_LIBOBJ invocations to module description.
14542         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14543         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14544         AC_LIBOBJ invocations from here...
14545         * modules/malloc-gnu (configure.ac): ... to here.
14546         * modules/malloc-posix (configure.ac): ... and here.
14547
14548 2011-05-21  Bruno Haible  <bruno@clisp.org>
14549
14550         lstat, openat: Respect rules for use of AC_LIBOBJ.
14551         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14552         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14553         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14554         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14555         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14556         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14557         here.
14558         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14559
14560 2011-05-21  Bruno Haible  <bruno@clisp.org>
14561
14562         lseek: Move AC_LIBOBJ invocations to module description.
14563         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14564         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14565         * modules/lseek (configure.ac): ... to here.
14566
14567 2011-05-21  Bruno Haible  <bruno@clisp.org>
14568
14569         linkat: Move AC_LIBOBJ invocations to module description.
14570         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14571         here...
14572         * modules/linkat (configure.ac): ... to here.
14573
14574 2011-05-21  Bruno Haible  <bruno@clisp.org>
14575
14576         link: Respect rules for use of AC_LIBOBJ.
14577         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14578         * modules/link (configure.ac): ... to here.
14579
14580 2011-05-21  Bruno Haible  <bruno@clisp.org>
14581
14582         lchown: Move AC_LIBOBJ invocations to module description.
14583         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14584         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14585         * modules/lchown (configure.ac): ... to here.
14586
14587 2011-05-21  Bruno Haible  <bruno@clisp.org>
14588
14589         iswctype: Move AC_LIBOBJ invocations to module description.
14590         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14591         here...
14592         * modules/iswctype (configure.ac): ... to here.
14593
14594 2011-05-21  Bruno Haible  <bruno@clisp.org>
14595
14596         iswblank: Move AC_LIBOBJ invocations to module description.
14597         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14598         here...
14599         * modules/iswblank (configure.ac): ... to here.
14600
14601 2011-05-21  Bruno Haible  <bruno@clisp.org>
14602
14603         atanl: Move AC_LIBOBJ invocations to module description.
14604         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14605         * modules/atanl (configure.ac): ... to here.
14606
14607 2011-05-21  Bruno Haible  <bruno@clisp.org>
14608
14609         acosl: Move AC_LIBOBJ invocations to module description.
14610         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14611         * modules/acosl (configure.ac): ... to here.
14612
14613 2011-05-21  Bruno Haible  <bruno@clisp.org>
14614
14615         asinl: Respect rules for use of AC_LIBOBJ.
14616         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14617         * modules/asinl (configure.ac): ... to here.
14618
14619 2011-05-21  Bruno Haible  <bruno@clisp.org>
14620
14621         tanl: Move AC_LIBOBJ invocations to module description.
14622         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14623         * modules/tanl (configure.ac): ... to here.
14624
14625 2011-05-21  Bruno Haible  <bruno@clisp.org>
14626
14627         cosl: Move AC_LIBOBJ invocations to module description.
14628         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14629         * modules/cosl (configure.ac): ... to here.
14630
14631 2011-05-21  Bruno Haible  <bruno@clisp.org>
14632
14633         sinl: Move AC_LIBOBJ invocations to module description.
14634         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14635         * modules/sinl (configure.ac): ... to here.
14636
14637 2011-05-21  Bruno Haible  <bruno@clisp.org>
14638
14639         logl: Move AC_LIBOBJ invocations to module description.
14640         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14641         * modules/logl (configure.ac): ... to here.
14642
14643 2011-05-21  Bruno Haible  <bruno@clisp.org>
14644
14645         expl: Move AC_LIBOBJ invocations to module description.
14646         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14647         * modules/expl (configure.ac): ... to here.
14648
14649 2011-05-21  Bruno Haible  <bruno@clisp.org>
14650
14651         roundl: Move AC_LIBOBJ invocations to module description.
14652         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14653         * modules/roundl (configure.ac): ... to here.
14654
14655 2011-05-21  Bruno Haible  <bruno@clisp.org>
14656
14657         round: Move AC_LIBOBJ invocations to module description.
14658         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14659         * modules/round (configure.ac): ... to here.
14660
14661 2011-05-21  Bruno Haible  <bruno@clisp.org>
14662
14663         roundf: Move AC_LIBOBJ invocations to module description.
14664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14665         * modules/roundf (configure.ac): ... to here.
14666
14667 2011-05-21  Bruno Haible  <bruno@clisp.org>
14668
14669         truncl: Move AC_LIBOBJ invocations to module description.
14670         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14671         * modules/truncl (configure.ac): ... to here.
14672
14673 2011-05-21  Bruno Haible  <bruno@clisp.org>
14674
14675         trunc: Move AC_LIBOBJ invocations to module description.
14676         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14677         * modules/trunc (configure.ac): ... to here.
14678
14679 2011-05-21  Bruno Haible  <bruno@clisp.org>
14680
14681         truncf: Move AC_LIBOBJ invocations to module description.
14682         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14683         * modules/truncf (configure.ac): ... to here.
14684
14685 2011-05-21  Bruno Haible  <bruno@clisp.org>
14686
14687         ceill: Move AC_LIBOBJ invocations to module description.
14688         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14689         * modules/ceill (configure.ac): ... to here.
14690
14691 2011-05-21  Bruno Haible  <bruno@clisp.org>
14692
14693         ceil: Move AC_LIBOBJ invocations to module description.
14694         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14695         * modules/ceil (configure.ac): ... to here.
14696
14697 2011-05-21  Bruno Haible  <bruno@clisp.org>
14698
14699         ceilf: Move AC_LIBOBJ invocations to module description.
14700         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14701         * modules/ceilf (configure.ac): ... to here.
14702
14703 2011-05-21  Bruno Haible  <bruno@clisp.org>
14704
14705         floorl: Respect rules for use of AC_LIBOBJ.
14706         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14707         * modules/floorl (configure.ac): ... to here.
14708
14709 2011-05-21  Bruno Haible  <bruno@clisp.org>
14710
14711         floor: Respect rules for use of AC_LIBOBJ.
14712         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14713         * modules/floor (configure.ac): ... to here.
14714
14715 2011-05-21  Bruno Haible  <bruno@clisp.org>
14716
14717         floorf: Move AC_LIBOBJ invocations to module description.
14718         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14719         * modules/floorf (configure.ac): ... to here.
14720
14721 2011-05-20  Bruno Haible  <bruno@clisp.org>
14722
14723         sqrtl: Respect rules for use of AC_LIBOBJ.
14724         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14725         * modules/sqrtl (configure.ac): ... to here.
14726
14727 2011-05-20  Bruno Haible  <bruno@clisp.org>
14728
14729         ldexpl: Respect rules for use of AC_LIBOBJ.
14730         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14731         * modules/ldexpl (configure.ac): ... to here.
14732
14733 2011-05-20  Bruno Haible  <bruno@clisp.org>
14734
14735         frexpl*: Respect rules for use of AC_LIBOBJ.
14736         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14737         invocation from here...
14738         * modules/frexpl (configure.ac): ... to here.
14739         * modules/frexpl-nolibm (configure.ac): ... and here.
14740
14741 2011-05-20  Bruno Haible  <bruno@clisp.org>
14742
14743         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14744         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14745         invocation from here...
14746         * modules/frexp (configure.ac): ... to here.
14747         * modules/frexp-nolibm (configure.ac): ... and here.
14748
14749 2011-05-20  Bruno Haible  <bruno@clisp.org>
14750
14751         isnan: Respect rules for use of AC_LIBOBJ.
14752         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14753         invocations here.
14754         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14755         REPLACE_ISNAN.
14756         * modules/isnand (configure.ac): Likewise.
14757         * modules/isnanl (configure.ac): Likewise.
14758
14759 2011-05-20  Bruno Haible  <bruno@clisp.org>
14760
14761         isnanl*: Respect rules for use of AC_LIBOBJ.
14762         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14763         invocation from here...
14764         * modules/isnanl (configure.ac): ... to here.
14765         * modules/isnanl-nolibm (configure.ac): ... and here.
14766
14767 2011-05-20  Bruno Haible  <bruno@clisp.org>
14768
14769         isnand*: Move AC_LIBOBJ invocations to module description.
14770         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14771         invocation from here...
14772         * modules/isnand (configure.ac): ... to here.
14773         * modules/isnand-nolibm (configure.ac): ... and here.
14774
14775 2011-05-20  Bruno Haible  <bruno@clisp.org>
14776
14777         isnanf*: Move AC_LIBOBJ invocations to module description.
14778         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14779         invocation from here...
14780         * modules/isnanf (configure.ac): ... to here.
14781         * modules/isnanf-nolibm (configure.ac): ... and here.
14782
14783 2011-05-20  Bruno Haible  <bruno@clisp.org>
14784
14785         isnan*: Separate the AC_LIBOBJ invocations.
14786         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14787         AC_LIBOBJ invocation.
14788         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14789         here.
14790         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14791         AC_LIBOBJ invocation.
14792         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14793         here.
14794         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14795         AC_LIBOBJ invocation.
14796         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14797         here.
14798         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14799
14800 2011-05-08  Bruno Haible  <bruno@clisp.org>
14801
14802         isinf: Move AC_LIBOBJ invocations to module description.
14803         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14804         * modules/isinf (configure.ac): ... to here.
14805
14806 2011-05-08  Bruno Haible  <bruno@clisp.org>
14807
14808         isfinite: Move AC_LIBOBJ invocations to module description.
14809         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14810         * modules/isfinite (configure.ac): ... to here.
14811
14812 2011-05-08  Bruno Haible  <bruno@clisp.org>
14813
14814         isblank: Move AC_LIBOBJ invocations to module description.
14815         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14816         here...
14817         * modules/isblank (configure.ac): ... to here.
14818
14819 2011-05-08  Bruno Haible  <bruno@clisp.org>
14820
14821         isapipe: Move AC_LIBOBJ invocations to module description.
14822         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14823         gl_PREREQ_ISAPIPE invocations from here...
14824         * modules/isapipe (configure.ac): ... to here.
14825         (Depends-on): Update condition.
14826
14827 2011-05-08  Bruno Haible  <bruno@clisp.org>
14828
14829         ioctl: Move AC_LIBOBJ invocations to module description.
14830         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14831         invocations from here...
14832         * modules/ioctl (configure.ac): ... to here.
14833         (Depends-on): Update condition.
14834
14835 2011-05-08  Bruno Haible  <bruno@clisp.org>
14836
14837         imaxdiv: Move AC_LIBOBJ invocations to module description.
14838         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14839         invocations from here...
14840         * modules/imaxdiv (configure.ac): ... to here.
14841
14842 2011-05-08  Bruno Haible  <bruno@clisp.org>
14843
14844         imaxabs: Move AC_LIBOBJ invocations to module description.
14845         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14846         invocations from here...
14847         * modules/imaxabs (configure.ac): ... to here.
14848
14849 2011-05-08  Bruno Haible  <bruno@clisp.org>
14850
14851         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14852         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14853         AC_LIBOBJ invocations from here...
14854         * modules/getaddrinfo (configure.ac): ... to here.
14855         (Depends-on): Add conditions.
14856
14857 2011-05-08  Bruno Haible  <bruno@clisp.org>
14858
14859         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14860         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14861         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14862         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14863         (gl_PREREQ_INET_PTON): ... from here.
14864         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14865         gl_PREREQ_INET_PTON here.
14866         (Depends-on): Update condition.
14867
14868 2011-05-08  Bruno Haible  <bruno@clisp.org>
14869
14870         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14871         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14872         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14873         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14874         (gl_PREREQ_INET_NTOP): ... from here.
14875         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14876         gl_PREREQ_INET_NTOP here.
14877         (Depends-on): Update condition.
14878
14879 2011-05-08  Bruno Haible  <bruno@clisp.org>
14880
14881         iconv_open: Move AC_LIBOBJ invocations to module description.
14882         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14883         AC_LIBOBJ invocations from here...
14884         * modules/iconv_open (configure.ac): ... to here.
14885
14886 2011-05-08  Bruno Haible  <bruno@clisp.org>
14887
14888         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14889         If module 'iconv_open' is among the main modules and module
14890         'iconv_open-utf' is among the tests dependencies, then
14891         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14892         return the special iconv_t values. Therefore iconv() and iconv_close()
14893         must support these special iconv_t values, already in lib, not only in
14894         tests.
14895         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14896         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14897         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14898         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14899         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14900         (Depends-on): Add the dependencies of iconv_open-utf.
14901         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14902         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14903         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14904
14905 2011-05-08  Bruno Haible  <bruno@clisp.org>
14906
14907         group-member: Move AC_LIBOBJ invocations to module description.
14908         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14909         gl_PREREQ_GROUP_MEMBER invocations from here...
14910         * modules/group-member (configure.ac): ... to here.
14911
14912 2011-05-08  Bruno Haible  <bruno@clisp.org>
14913
14914         grantpt: Move AC_LIBOBJ invocations to module description.
14915         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14916         invocations from here...
14917         * modules/grantpt (configure.ac): ... to here.
14918
14919 2011-05-08  Bruno Haible  <bruno@clisp.org>
14920
14921         glob: Move AC_LIBOBJ invocations to module description.
14922         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14923         from here...
14924         * modules/glob (configure.ac): ... to here.
14925
14926 2011-05-08  Bruno Haible  <bruno@clisp.org>
14927
14928         getusershell: Move AC_LIBOBJ invocations to module description.
14929         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14930         Move AC_LIBOBJ invocation from here...
14931         * modules/getusershell (configure.ac): ... to here.
14932         (Depends-on): Update condition.
14933
14934 2011-05-08  Bruno Haible  <bruno@clisp.org>
14935
14936         gettimeofday: Move AC_LIBOBJ invocations to module description.
14937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14938         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14939         gl_PREREQ_GETTIMEOFDAY invocations from here...
14940         * modules/gettimeofday (configure.ac): ... to here.
14941
14942 2011-05-08  Bruno Haible  <bruno@clisp.org>
14943
14944         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14945         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14946         just gl_FUNC_TZSET.
14947         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14948         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14949         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14950         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14951
14952 2011-05-08  Bruno Haible  <bruno@clisp.org>
14953
14954         getsubopt: Move AC_LIBOBJ invocations to module description.
14955         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14956         gl_PREREQ_GETSUBOPT invocations from here...
14957         * modules/getsubopt (configure.ac): ... to here.
14958
14959 2011-05-08  Bruno Haible  <bruno@clisp.org>
14960
14961         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14962         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14963         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14964         * modules/getpass-gnu (configure.ac): ... to here.
14965
14966 2011-05-08  Bruno Haible  <bruno@clisp.org>
14967
14968         getpass: Move AC_LIBOBJ invocations to module description.
14969         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14970         gl_PREREQ_GETPASS invocations from here...
14971         * modules/getpass (configure.ac): ... to here.
14972
14973 2011-05-08  Bruno Haible  <bruno@clisp.org>
14974
14975         getpagesize: Move AC_LIBOBJ invocations to module description.
14976         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14977         from here...
14978         * modules/getpagesize (configure.ac): ... to here.
14979
14980 2011-05-08  Bruno Haible  <bruno@clisp.org>
14981
14982         getopt: Move AC_LIBOBJ invocations to module description.
14983         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14984         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14985         invocations from here...
14986         * modules/getopt-gnu (configure.ac): ... to here.
14987         * modules/getopt-posix (configure.ac): ... and here.
14988         (Depends-on): Update condition.
14989
14990 2011-05-08  Bruno Haible  <bruno@clisp.org>
14991
14992         getopt, argp: Respect rules for use of AC_LIBOBJ.
14993         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14994         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14995         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14996         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14997
14998 2011-05-08  Bruno Haible  <bruno@clisp.org>
14999
15000         getlogin_r: Move AC_LIBOBJ invocations to module description.
15001         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15002         gl_PREREQ_GETLOGIN_R invocations from here...
15003         * modules/getlogin_r (configure.ac): ... to here.
15004
15005 2011-05-08  Bruno Haible  <bruno@clisp.org>
15006
15007         getlogin: Move AC_LIBOBJ invocations to module description.
15008         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15009         here...
15010         * modules/getlogin (configure.ac): ... to here.
15011
15012 2011-05-08  Bruno Haible  <bruno@clisp.org>
15013
15014         getloadavg: Move AC_LIBOBJ invocations to module description.
15015         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15016         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15017         * modules/getloadavg (configure.ac): ... to here.
15018
15019 2011-05-08  Bruno Haible  <bruno@clisp.org>
15020
15021         gethrxtime: Move AC_LIBOBJ invocations to module description.
15022         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15023         LIB_GETHRXTIME from here...
15024         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15025         invocations from here...
15026         * modules/gethrxtime (configure.ac): ... to here.
15027
15028 2011-05-08  Bruno Haible  <bruno@clisp.org>
15029
15030         gethostname: Move AC_LIBOBJ invocations to module description.
15031         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15032         gl_PREREQ_GETHOSTNAME invocations from here...
15033         * modules/gethostname (configure.ac): ... to here.
15034
15035 2011-05-08  Bruno Haible  <bruno@clisp.org>
15036
15037         getgroups: Move AC_LIBOBJ invocations to module description.
15038         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15039         here...
15040         * modules/getgroups (configure.ac): ... to here.
15041
15042 2011-05-08  Bruno Haible  <bruno@clisp.org>
15043
15044         getdtablesize: Move AC_LIBOBJ invocations to module description.
15045         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15046         invocation from here...
15047         * modules/getdtablesize (configure.ac): ... to here.
15048
15049 2011-05-08  Bruno Haible  <bruno@clisp.org>
15050
15051         getdomainname: Move AC_LIBOBJ invocations to module description.
15052         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15053         gl_PREREQ_GETDOMAINNAME invocations from here...
15054         * modules/getdomainname (configure.ac): ... to here.
15055
15056 2011-05-08  Bruno Haible  <bruno@clisp.org>
15057
15058         getline: Move AC_LIBOBJ invocations to module description.
15059         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15060         invocations from here...
15061         * modules/getline (configure.ac): ... to here.
15062
15063 2011-05-08  Bruno Haible  <bruno@clisp.org>
15064
15065         getline: Simplify.
15066         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15067         It's already handled through the module dependency.
15068
15069 2011-05-08  Bruno Haible  <bruno@clisp.org>
15070
15071         getdelim: Move AC_LIBOBJ invocations to module description.
15072         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15073         and gl_PREREQ_GETDELIM invocations from here...
15074         * modules/getdelim (configure.ac): ... to here.
15075         (Depends-on): Fix condition.
15076
15077 2011-05-08  Bruno Haible  <bruno@clisp.org>
15078
15079         getcwd: Move AC_LIBOBJ invocations to module description.
15080         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15081         invocations from here...
15082         * modules/getcwd (configure.ac): ... to here.
15083
15084 2011-05-08  Bruno Haible  <bruno@clisp.org>
15085
15086         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15087         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15088         here...
15089         * modules/getcwd-lgpl (configure.ac): ... to here.
15090
15091 2011-05-07  Bruno Haible  <bruno@clisp.org>
15092
15093         crypto/gc: Move AC_LIBOBJ invocations to module description.
15094         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15095         * modules/crypto/gc (configure.ac): ... to here.
15096
15097 2011-05-07  Bruno Haible  <bruno@clisp.org>
15098
15099         fwriting: Move AC_LIBOBJ invocations to module description.
15100         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15101         here...
15102         * modules/fwriting (configure.ac): ... to here.
15103
15104 2011-05-07  Bruno Haible  <bruno@clisp.org>
15105
15106         fwritable: Move AC_LIBOBJ invocations to module description.
15107         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15108         here...
15109         * modules/fwritable (configure.ac): ... to here.
15110
15111 2011-05-07  Bruno Haible  <bruno@clisp.org>
15112
15113         futimens: Move AC_LIBOBJ invocations to module description.
15114         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15115         here...
15116         * modules/futimens (configure.ac): ... to here.
15117
15118 2011-05-07  Bruno Haible  <bruno@clisp.org>
15119
15120         ftruncate: Move AC_LIBOBJ invocations to module description.
15121         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15122         gl_PREREQ_FTRUNCATE invocations from here...
15123         * modules/ftruncate (configure.ac): ... to here.
15124
15125 2011-05-07  Bruno Haible  <bruno@clisp.org>
15126
15127         fsync: Move AC_LIBOBJ invocations to module description.
15128         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15129         invocations from here...
15130         * modules/fsync (configure.ac): ... to here.
15131
15132 2011-05-07  Bruno Haible  <bruno@clisp.org>
15133
15134         fsusage: Move AC_LIBOBJ invocations to module description.
15135         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15136         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15137         * modules/fsusage (configure.ac): ... to here.
15138
15139 2011-05-07  Bruno Haible  <bruno@clisp.org>
15140
15141         freopen: Move AC_LIBOBJ invocations to module description.
15142         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15143         invocations from here...
15144         * modules/freopen (configure.ac): ... to here.
15145
15146 2011-05-07  Bruno Haible  <bruno@clisp.org>
15147
15148         free: Move AC_LIBOBJ invocations to module description.
15149         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15150         invocations from here...
15151         * modules/free (configure.ac): ... to here.
15152
15153 2011-05-07  Bruno Haible  <bruno@clisp.org>
15154
15155         freadable: Move AC_LIBOBJ invocations to module description.
15156         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15157         here...
15158         * modules/freadable (configure.ac): ... to here.
15159
15160 2011-05-07  Bruno Haible  <bruno@clisp.org>
15161
15162         fpurge: Move AC_LIBOBJ invocations to module description.
15163         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15164         invocations from here...
15165         * modules/fpurge (configure.ac): ... to here.
15166
15167 2011-05-07  Bruno Haible  <bruno@clisp.org>
15168
15169         fpending: Move AC_LIBOBJ invocations to module description.
15170         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15171         gl_FUNC_FPENDING.
15172         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15173         invocations from here...
15174         * modules/fpending (configure.ac): ... to here.
15175
15176 2011-05-07  Bruno Haible  <bruno@clisp.org>
15177
15178         fopen: Move AC_LIBOBJ invocations to module description.
15179         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15180         invocations from here...
15181         * modules/fopen (configure.ac): ... to here.
15182
15183 2011-05-07  Bruno Haible  <bruno@clisp.org>
15184
15185         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15186         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15187         gl_FUNC_FNMATCH_POSIX.
15188         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15189         invocations from here...
15190         * modules/fnmatch (configure.ac): ... to here.
15191         * modules/fnmatch-gnu (configure.ac): ... and here.
15192
15193 2011-05-07  Bruno Haible  <bruno@clisp.org>
15194
15195         flock: Move AC_LIBOBJ invocations to module description.
15196         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15197         invocations from here...
15198         * modules/flock (configure.ac): ... to here.
15199
15200 2011-05-07  Bruno Haible  <bruno@clisp.org>
15201
15202         fileblocks: Move AC_LIBOBJ invocations to module description.
15203         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15204         gl_PREREQ_FILEBLOCKS invocations from here...
15205         * modules/fileblocks (configure.ac): ... to here.
15206
15207 2011-05-06  Bruno Haible  <bruno@clisp.org>
15208
15209         fflush: Move AC_LIBOBJ invocations to module description.
15210         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15211         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15212         invocations from here...
15213         * modules/fflush (configure.ac): ... to here.
15214
15215 2011-05-06  Bruno Haible  <bruno@clisp.org>
15216
15217         fdopendir: Move AC_LIBOBJ invocations to module description.
15218         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15219         here...
15220         * modules/fdopendir (configure.ac): ... to here.
15221         (Depends-on): Improve conditions.
15222
15223 2011-05-06  Bruno Haible  <bruno@clisp.org>
15224
15225         _Exit: Move AC_LIBOBJ invocations to module description.
15226         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15227         invocations from here...
15228         * modules/_Exit (configure.ac): ... to here.
15229
15230 2011-05-21  Bruno Haible  <bruno@clisp.org>
15231
15232         euidaccess: Respect rules for use of AC_LIBOBJ.
15233         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15235         from here...
15236         * modules/euidaccess (configure.ac): ... to here.
15237
15238 2011-05-06  Bruno Haible  <bruno@clisp.org>
15239
15240         error: Move AC_LIBOBJ invocations to module description.
15241         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15242         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15243         invocations from here...
15244         * modules/error (configure.ac): ... to here.
15245
15246 2011-05-06  Bruno Haible  <bruno@clisp.org>
15247
15248         duplocale: Move AC_LIBOBJ invocations to module description.
15249         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15250         gl_PREREQ_DUPLOCALE invocations from here...
15251         * modules/duplocale (configure.ac): ... to here.
15252
15253 2011-05-05  Bruno Haible  <bruno@clisp.org>
15254
15255         dirfd: Move AC_LIBOBJ invocations to module description.
15256         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15257         gl_FUNC_DIRFD.
15258         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15259         here...
15260         * modules/dirfd (configure.ac): ... to here.
15261         (Depends-on): Fix condition.
15262
15263 2011-05-05  Bruno Haible  <bruno@clisp.org>
15264
15265         chown: Respect rules for use of AC_LIBOBJ.
15266         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15267         * modules/chown (configure.ac): ... to here.
15268
15269 2011-05-05  Bruno Haible  <bruno@clisp.org>
15270
15271         chdir-long: Move AC_LIBOBJ invocations to module description.
15272         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15273         gl_PREREQ_CHDIR_LONG invocations from here...
15274         * modules/chdir-long (configure.ac): ... to here.
15275
15276 2011-05-05  Bruno Haible  <bruno@clisp.org>
15277
15278         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15279         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15280         from here...
15281         * modules/canonicalize-lgpl (configure.ac): ... to here.
15282
15283 2011-05-05  Bruno Haible  <bruno@clisp.org>
15284
15285         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15286         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15287         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15288         REPLACE_CALLOC.
15289         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15290         * modules/calloc-gnu (configure.ac): Likewise.
15291
15292 2011-05-05  Bruno Haible  <bruno@clisp.org>
15293
15294         btowc: Move AC_LIBOBJ invocations to module description.
15295         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15296         invocations from here...
15297         * modules/btowc (configure.ac): ... to here.
15298
15299 2011-05-21  Bruno Haible  <bruno@clisp.org>
15300
15301         atexit: Move AC_LIBOBJ invocations to module description.
15302         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15304         here...
15305         * modules/atexit (configure.ac): ... to here.
15306
15307 2011-05-05  Bruno Haible  <bruno@clisp.org>
15308
15309         atoll: Move AC_LIBOBJ invocations to module description.
15310         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15311         invocations from here...
15312         * modules/atoll (configure.ac): ... to here.
15313
15314 2011-05-05  Bruno Haible  <bruno@clisp.org>
15315
15316         argz: Move AC_LIBOBJ invocations to module description.
15317         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15318         * modules/argz (configure.ac): ... to here.
15319
15320 2011-05-05  Bruno Haible  <bruno@clisp.org>
15321
15322         alphasort: Move AC_LIBOBJ invocations to module description.
15323         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15324         gl_PREREQ_ALPHASORT invocations from here...
15325         * modules/alphasort (configure.ac): ... to here.
15326
15327 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15328
15329         verify: new macro verify_expr; verify_true deprecated
15330         * NEWS: Mention this.
15331         * doc/verify.texi (Compile-time Assertions): Document this.
15332         * lib/verify.h (verify_true): Deprecate.
15333         (verify_expr): New macro.
15334         * tests/test-verify.c (function): Test verify_expr.
15335
15336 2011-06-14  Jim Meyering  <meyering@redhat.com>
15337
15338         init.sh: give more portable redirection-related advice in a comment
15339         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15340         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15341         for lots of discussion.  Stefano Lattarini suggested the solution
15342         of putting "9>&2" after the command.  Reported by Bruno Haible.
15343
15344 2011-06-13  Bruno Haible  <bruno@clisp.org>
15345
15346         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15347         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15348         'none'.
15349
15350 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         ftoastr: use strtof only if HAVE_STRTOF
15353         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15355         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15356         * modules/ftoastr (configure.ac): Check for strtof.
15357
15358 2011-06-13  Bruno Haible  <bruno@clisp.org>
15359
15360         gnulib-tool: Addendum to 2011-06-08 commit.
15361         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15362         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15363
15364 2011-06-13  Bruno Haible  <bruno@clisp.org>
15365
15366         fseeko: Provide a non-inline replacement of fseek().
15367         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15368         * modules/fseeko (Depends-on): Add fseek.
15369         * modules/fseek (License): Change to LGPLv2+.
15370
15371 2011-06-13  Bruno Haible  <bruno@clisp.org>
15372
15373         ftello: Provide a non-inline replacement of ftell().
15374         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15375         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15376         not have ftello() (such as on mingw).
15377         * modules/ftello (Depends-on): Add ftell.
15378         * modules/ftell (License): Change to LGPLv2+.
15379
15380 2011-05-07  Bruno Haible  <bruno@clisp.org>
15381
15382         ftell: Move AC_LIBOBJ invocations to module description.
15383         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15384         * modules/ftell (configure.ac): ... to here.
15385
15386 2011-05-07  Bruno Haible  <bruno@clisp.org>
15387
15388         ftello: Respect rules for use of AC_LIBOBJ.
15389         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15390         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15391         here...
15392         * modules/ftello (configure.ac): ... to here.
15393
15394 2011-05-07  Bruno Haible  <bruno@clisp.org>
15395
15396         fseeko: Simplify.
15397         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15398         (gl_FUNC_FSEEKO): Inline it here.
15399
15400 2011-05-07  Bruno Haible  <bruno@clisp.org>
15401
15402         fseek: Move AC_LIBOBJ invocations to module description.
15403         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15404         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15405         * modules/fseek (configure.ac): ... to here.
15406
15407 2011-05-07  Bruno Haible  <bruno@clisp.org>
15408
15409         fseek: Respect rules for use of AC_LIBOBJ.
15410         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15411         here...
15412         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15413
15414 2011-05-07  Bruno Haible  <bruno@clisp.org>
15415
15416         fseeko: Respect rules for use of AC_LIBOBJ.
15417         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15418         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15419         here...
15420         * modules/fseeko (configure.ac): ... to here.
15421
15422 2011-06-13  Bruno Haible  <bruno@clisp.org>
15423
15424         gnulib-tool: Allow comments in the 'Depends-on' section.
15425         * doc/gnulib.texi (Module description): Mention comment syntax in the
15426         Depends-on section.
15427         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15428
15429 2011-06-13  Bruno Haible  <bruno@clisp.org>
15430
15431         file-set.h: guard __attibute__ use, now that it's not always defined
15432         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15433         versions that support it.  This fixes a coreutils build failure with
15434         the vendor cc on HP-UX 11.31.
15435
15436 2011-06-12  Bruno Haible  <bruno@clisp.org>
15437
15438         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15439         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15440         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15441         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15442         (acl, aclsort): New declarations.
15443         (aclv_nontrivial): New declaration.
15444         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15445         (file_has_acl): Read also the second kind of HP-UX ACLs.
15446         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15447         kind of HP-UX ACLs if the first kind fails.
15448         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15449         second kind of HP-UX ACLs.
15450         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15451         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15452         agree.
15453         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15454         hpuxjfs.
15455         Handle hpuxjfs.
15456         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15457         hpuxjfs.
15458         Handle hpuxjfs.
15459         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15460         (func_test_same_acls): Use both lsacl and getacl.
15461         Handle hpuxjfs.
15462         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15463         (func_test_same_acls): Use both lsacl and getacl.
15464         Handle hpuxjfs.
15465
15466 2011-06-12  Bruno Haible  <bruno@clisp.org>
15467
15468         acl: Complete the 2010-08-10 fix.
15469         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15470         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15471         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15472         explicitly.
15473         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15474         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15475
15476 2011-06-12  Bruno Haible  <bruno@clisp.org>
15477
15478         spawn-pipe tests: Comments.
15479         * tests/test-spawn-pipe-child.c (main): Update comment.
15480         Reported by James Youngman <jay@gnu.org>.
15481
15482 2011-06-11  James Youngman  <jay@gnu.org>
15483
15484         New module 'stat-size'.
15485         * modules/stat-size: New module.  Provides macros for accessing
15486         file size information in instances of struct stat.  Depends on the
15487         fileblocks module because it calls st_blocks.
15488         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15489         * doc/gnulib.texi: Include stat-size.texi.
15490         * doc/stat-size.texi: Documentation for this module.
15491         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15492         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15493         AC_STRUCT_ST_BLOCKS.
15494
15495 2011-06-09  Bruno Haible  <bruno@clisp.org>
15496
15497         thread: Support pthreads-win32.
15498         * lib/glthread/thread.h (gl_thread_self): Define differently on
15499         pthreads-win32.
15500         (gl_null_thread): New declaration.
15501         (gl_thread_self_pointer): New macro.
15502         * lib/glthread/thread.c (gl_null_thread): New constant.
15503         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15504         gl_thread_self.
15505         * tests/test-tls.c: Likewise.
15506         Suggested by Paul Eggert. Reported by Eric Blake.
15507
15508 2011-06-09  Bruno Haible  <bruno@clisp.org>
15509
15510         thread: Fix confusion between NULL and 0.
15511         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15512         Reported by Paul Eggert.
15513
15514 2011-06-09  Bruno Haible  <bruno@clisp.org>
15515
15516         spawn-pipe tests: Avoid test failure on HP-UX 11.
15517         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15518         is closed.
15519
15520 2011-06-09  Bruno Haible  <bruno@clisp.org>
15521
15522         acl tests: Fix compilation error on HP-UX 11.
15523         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15524
15525 2011-06-09  Bruno Haible  <bruno@clisp.org>
15526
15527         rmdir: Avoid test failure on HP-UX 10.20.
15528         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15529         EEXIST.
15530
15531 2011-06-08  Eric Blake  <eblake@redhat.com>
15532
15533         perror: fix test on mingw
15534         * modules/perror-tests (Depends-on): Add dup2.
15535
15536         strerror_r-posix: fix on MacOS
15537         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15538         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15539         logic bug.
15540         * lib/strerror_r.c (strerror_r): Fix the bug.
15541         * lib/strerror.c (strerror): Likewise.
15542         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15543         problem.
15544         * doc/posix-functions/strerror.texi (strerror): Likewise.
15545         * doc/posix-functions/perror.texi (perror): Likewise.
15546         * tests/test-strerror.c (main): Enhance test.
15547         * tests/test-strerror_r.c (main): Likewise.
15548
15549 2011-06-08  Bruno Haible  <bruno@clisp.org>
15550
15551         gnulib-tool: Better isolation between different gnulib-tool invocations.
15552         * gnulib-tool: New option --witness-c-macro.
15553         (witness_c_macro): New variable.
15554         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15555         AM_CPPFLAGS define it as a C macro.
15556         (func_emit_tests_Makefile_am): Likewise.
15557         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15558         read it from there.
15559         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15560         m4_define, not AC_DEFUN.
15561         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15562         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15563         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15564         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15565         s|...|...|, to substitute the values of the GNULIB_* module indicator
15566         variables.
15567         * modules/dirent (Makefile.am): Likewise.
15568         * modules/fcntl-h (Makefile.am): Likewise.
15569         * modules/iconv-h (Makefile.am): Likewise.
15570         * modules/langinfo (Makefile.am): Likewise.
15571         * modules/locale (Makefile.am): Likewise.
15572         * modules/math (Makefile.am): Likewise.
15573         * modules/netdb (Makefile.am): Likewise.
15574         * modules/poll-h (Makefile.am): Likewise.
15575         * modules/pty (Makefile.am): Likewise.
15576         * modules/search (Makefile.am): Likewise.
15577         * modules/signal (Makefile.am): Likewise.
15578         * modules/spawn (Makefile.am): Likewise.
15579         * modules/stdio (Makefile.am): Likewise.
15580         * modules/stdlib (Makefile.am): Likewise.
15581         * modules/string (Makefile.am): Likewise.
15582         * modules/sys_ioctl (Makefile.am): Likewise.
15583         * modules/sys_select (Makefile.am): Likewise.
15584         * modules/sys_socket (Makefile.am): Likewise.
15585         * modules/sys_stat (Makefile.am): Likewise.
15586         * modules/sys_times (Makefile.am): Likewise.
15587         * modules/sys_utsname (Makefile.am): Likewise.
15588         * modules/sys_wait (Makefile.am): Likewise.
15589         * modules/termios (Makefile.am): Likewise.
15590         * modules/time (Makefile.am): Likewise.
15591         * modules/unistd (Makefile.am): Likewise.
15592         * modules/wchar (Makefile.am): Likewise.
15593
15594 2011-06-08  Eric Blake  <eblake@redhat.com>
15595
15596         strerror: simplify replacement
15597         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15598         * modules/strerror (configure.ac): No prereqs needed here...
15599         * modules/strerror-override (configure.ac): ...but this needs it.
15600         (Files): Add file for needed prereq macro.
15601
15602 2011-06-08  Bruno Haible  <bruno@clisp.org>
15603
15604         strerror_r-posix: Tweaks.
15605         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15606         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15607         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15608         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15609         (gl_FUNC_STRERROR_R): ... to here.
15610         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15611
15612 2011-06-07  Eric Blake  <eblake@redhat.com>
15613
15614         perror: document fixed bugs
15615         * doc/posix-functions/perror.texi (perror): Document recent
15616         patches.
15617
15618 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15619
15620         stat-time: get_stat_birthtime failure is better-defined
15621         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15622         return a timestamp whose tv_sec and tv_nsec values are both -1.
15623         Previously, the spec said only that the tv_nsec value was negative.
15624         This upward-compatible change simplifies GNU tar a bit.
15625
15626 2011-06-07  Eric Blake  <eblake@redhat.com>
15627
15628         strerror_r-posix: work around cygwin 1.7.9
15629         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15630         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15631         bug without replacing strerror_r.
15632         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15633         strerror_r is buggy, but without requiring strerror_r compilation.
15634         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15635
15636         test-perror: relax test to ignore cygwin bug
15637         * tests/test-perror2.c (main): Relax test on requiring detection
15638         of stream errors, and use unbuffered stream.
15639         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15640         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15641         * doc/posix-functions/fputc.texi (fputc): Likewise.
15642         * doc/posix-functions/fputs.texi (fputs): Likewise.
15643         * doc/posix-functions/fputws.texi (fputws): Likewise.
15644         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15645         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15646         * doc/posix-functions/getopt.texi (getopt): Likewise.
15647         * doc/posix-functions/perror.texi (perror): Likewise.
15648         * doc/posix-functions/printf.texi (printf): Likewise.
15649         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15650         * doc/posix-functions/psignal.texi (psignal): Likewise.
15651         * doc/posix-functions/putc.texi (putc): Likewise.
15652         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15653         Likewise.
15654         * doc/posix-functions/putchar.texi (putchar): Likewise.
15655         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15656         Likewise.
15657         * doc/posix-functions/puts.texi (puts): Likewise.
15658         * doc/posix-functions/putwc.texi (putwc): Likewise.
15659         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15660         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15661         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15662         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15663         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15664         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15665         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15666         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15667
15668 2011-05-22  Bruno Haible  <bruno@clisp.org>
15669
15670         strerror: Move AC_LIBOBJ invocations to module description.
15671         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15672         gl_PREREQ_STRERROR invocations from here...
15673         * modules/strerror (configure.ac): ... to here.
15674
15675 2011-05-21  Bruno Haible  <bruno@clisp.org>
15676
15677         perror: Use common idiom.
15678         * modules/perror (configure.ac): Reorder statements.
15679
15680 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15681
15682         tests: fix usage message in 'mktempd_'
15683         * tests/init.sh (mktempd_): In the usage message, use literal
15684         'mktempd_', not '$ME' (which is even undefined), as the name of
15685         the subroutine.
15686
15687 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15688
15689         tests init: new function 'fatal_', for hard errors
15690         Before this patch, the only way offered by tests/init.sh to
15691         properly signal a hard error was the `framework_failure_'
15692         function.  But the error message issued by that function,
15693         as its name would suggest, refers to a set-up failure in the
15694         testsuite, while hard errors can obviously also be due to
15695         other reasons.  The best way to fix this inconsistency is to
15696         introduce a new function with a more general error message.
15697         * tests/init.sh (fatal_): New function.
15698
15699 2011-06-06  Eric Blake  <eblake@redhat.com>
15700
15701         canonicalize-lgpl: use common idiom
15702         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15703         over newer POSIX -Rf.
15704         Reported by Bruno Haible.
15705
15706         canonicalize-lgpl: work around AIX realpath bug
15707         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15708         * doc/posix-functions/realpath.texi (realpath): Document it.
15709         Reported by Bruno Haible.
15710
15711         strerror: work around FreeBSD bug
15712         * lib/strerror.c (strerror): Special case 0.
15713         Reported by Bruno Haible.
15714
15715         strerror-override: avoid bloating errno module
15716         * modules/errno (Files, configure.ac): Move replacement strings...
15717         * modules/strerror-override: ...to new module.
15718         * modules/strerror (Depends-on): Add strerror-override.
15719         * modules/strerror_r-posix (Depends-on): Likewise.
15720         * MODULES.html.sh: Document new module.
15721         Reported by Bruno Haible.
15722
15723 2011-06-06  Bruno Haible  <bruno@clisp.org>
15724
15725         spawn-pipe tests: Rename program.
15726         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15727         * tests/test-spawn-pipe-child.c: Update comment.
15728         * tests/test-spawn-pipe.sh: Update.
15729         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15730
15731         spawn-pipe tests: Link the child program only against libc.
15732         * tests/test-spawn-pipe-child.c: New file, extracted from
15733         tests/test-spawn-pipe.c.
15734         (main): Expect only one argument.
15735         (is_open): New function, copied from tests/test-pipe.c.
15736         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15737         (child_main): Remove function.
15738         (test_pipe): Pass only one argument to the child program.
15739         (main): Remove child process code. Expect the child program's name as
15740         first argument.
15741         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15742         argument.
15743         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15744         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15745         test-spawn-pipe-child against no libraries.
15746
15747 2011-06-06  Bruno Haible  <bruno@clisp.org>
15748
15749         careadlinkat: Avoid mismatch between ssize_t and int.
15750         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15751         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15752
15753 2011-06-06  Jim Meyering  <meyering@redhat.com>
15754
15755         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15756         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15757         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15758
15759 2011-06-05  Bruno Haible  <bruno@clisp.org>
15760
15761         ansi-c++-opt: Interoperability with libtool.
15762         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15763         set the variable to "no", not to ":".
15764         * NEWS: Mention the change.
15765
15766 2011-06-05  Bruno Haible  <bruno@clisp.org>
15767
15768         acl: Fix test failure on AIX 7.
15769         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15770         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15771
15772 2011-06-05  Bruno Haible  <bruno@clisp.org>
15773
15774         pipe-filter-ii: Fix test failure on AIX and IRIX.
15775         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15776         with EAGAIN, retry with a smaller buffer size.
15777
15778 2011-06-05  Bruno Haible  <bruno@clisp.org>
15779
15780         localename: Fix link dependencies.
15781         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15782         * modules/localename-tests (Makefile.am): Link test-localename with
15783         $(LIBTHREAD).
15784
15785 2011-06-05  Bruno Haible  <bruno@clisp.org>
15786
15787         error: Avoid gcc warning.
15788         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15789
15790 2011-06-05  Bruno Haible  <bruno@clisp.org>
15791
15792         unsetenv: Avoid gcc warning.
15793         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15794
15795 2011-06-05  Bruno Haible  <bruno@clisp.org>
15796
15797         setenv: Avoid gcc warning.
15798         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15799
15800 2011-06-05  Bruno Haible  <bruno@clisp.org>
15801
15802         sys_select: Ensure memset is declared also on AIX 7.
15803         * lib/sys_select.in.h: Include <string.h> also on AIX.
15804         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15805         self-contained also on AIX 7.1.
15806
15807 2011-06-04  Jim Meyering  <meyering@redhat.com>
15808
15809         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15810         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15811         function name, "error".
15812         (_gl_translatable_diag_func_re): New configurable variable.
15813
15814 2011-06-04  Bruno Haible  <bruno@clisp.org>
15815
15816         getopt: Avoid gcc warning.
15817         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15818
15819 2011-06-04  Bruno Haible  <bruno@clisp.org>
15820
15821         strerror_r: Fix comments.
15822         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15823         commit.
15824
15825 2011-06-04  Bruno Haible  <bruno@clisp.org>
15826
15827         perror: Fix compilation error.
15828         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15829         Undefine fprintf, not sprintf.
15830         * modules/perror (Depends-on): Remove intprops, verify.
15831
15832 2011-06-04  Bruno Haible  <bruno@clisp.org>
15833
15834         setlocale: Enable replacement on Cygwin 1.5.
15835         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15836         Cygwin 1.5.x.
15837         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15838         LC_CTYPE category also exists on Cygwin 1.5.x.
15839
15840 2011-06-04  Bruno Haible  <bruno@clisp.org>
15841
15842         strerror-override: Don't disable symbol renamings.
15843         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15844         * lib/strerror-override.c: Include config.h.
15845         (strerror_override): Don't undefine.
15846
15847 2011-06-03  Bruno Haible  <bruno@clisp.org>
15848
15849         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15850         * lib/localename.h: Update copyright header.
15851         * lib/localename.c: Likewise.
15852         * lib/relocatable.h: Likewise.
15853         * lib/relocatable.c: Likewise.
15854
15855 2011-06-02  Bruno Haible  <bruno@clisp.org>
15856
15857         doc: Fix a module name.
15858         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15859
15860 2011-06-02  Bruno Haible  <bruno@clisp.org>
15861
15862         pipe2: Remove dependency on 'nonblocking' module.
15863         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15864         O_NONBLOCK is defined by gnulib.
15865         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15866         is zero.
15867         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15868         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15869         defined by gnulib.
15870         (get_nonblocking_flag): New function.
15871         (main): Test O_NONBLOCK flag only if it is nonzero.
15872         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15873
15874 2011-06-03  Jim Meyering  <meyering@redhat.com>
15875
15876         maint: three new prohibit-header-without-use rules
15877         Prohibit use of cloexec.h, posixver.h, same.h without use.
15878         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15879         (sc_prohibit_posixver_without_use): Likewise.
15880         (sc_prohibit_same_without_use): Likewise.
15881
15882 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15883
15884         allocator: 'die' routine is now given requested size
15885         * lib/allocator.h (struct allocator.die): New size arg.
15886         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15887         If the actual problem is an ssize_t limitation, not a size_t or
15888         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15889
15890 2011-06-01  Eric Blake  <eblake@redhat.com>
15891
15892         strerror: drop strerror_r dependency
15893         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15894         * lib/strerror-override.c (strerror_override): ...to new file.
15895         * lib/strerror-override.h: Add prototype.
15896         * lib/strerror-impl.h: Delete.
15897         * lib/strerror.c (strerror): New implementation.
15898         * modules/errno (Files): Add new files.
15899         (configure.ac): Compile new file as appropriate.
15900         * modules/strerror (Files): Drop unused file.
15901         (Depends-on): Drop strerror_r-posix.
15902         * MODULES.html.sh: Document strerror_r-posix.
15903         Requested by Sam Steingold.
15904
15905         perror: call strerror_r directly
15906         * modules/perror (Files): Drop strerror-impl.h.
15907         * lib/perror.c (perror): Use our own stack buffer, rather than
15908         calling a wrapper that uses static storage.
15909         * doc/posix-functions/perror.texi (perror): Document a limitation
15910         of our replacement.
15911
15912         strerror_r: fix includes for FreeBSD
15913         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15914         since we use abort on some platforms.
15915         Reported by Matthias Bolte.
15916
15917 2011-05-31  Bruno Haible  <bruno@clisp.org>
15918
15919         Fix link errors in tests: openat-die uses gettext-h.
15920         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15921         against $(LIBINTL).
15922         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15923         against $(LIBINTL).
15924         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15925         $(LIBINTL).
15926         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15927         against $(LIBINTL).
15928         * modules/linkat-tests (Makefile.am): Link test-linkat against
15929         $(LIBINTL).
15930         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15931         $(LIBINTL).
15932         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15933         against $(LIBINTL).
15934         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15935         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15936         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15937         $(LIBINTL).
15938         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15939         $(LIBINTL).
15940         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15941         $(LIBINTL).
15942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15943
15944 2011-05-31  Bruno Haible  <bruno@clisp.org>
15945
15946         Fix link errors in tests: wait-process uses gettext-h.
15947         * modules/nonblocking-pipe-tests (Makefile.am): Set
15948         test_nonblocking_pipe_main_LDADD.
15949         * modules/nonblocking-socket-tests (Makefile.am): Link
15950         test-nonblocking-socket-main against $(LIBINTL).
15951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15952
15953 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15954
15955         assert-h: work around 'verify' incompatibility
15956         * lib/verify.h: Use @...@ directives, not ifdef.
15957         * modules/assert-h (assert.h): Implement the directives.
15958         (assert.h): Substitute the symbol-prefix more consistently.
15959
15960 2011-05-29  Jim Meyering  <meyering@redhat.com>
15961
15962         trim: remove three superfluous assignments
15963         * lib/trim.c (trim2): Remove three superfluous assignments
15964         and correct brace positioning.
15965
15966 2011-05-29  Bruno Haible  <bruno@clisp.org>
15967
15968         wctype-h: Avoid namespace pollution on Solaris 2.6.
15969         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15970         identifiers.
15971         * doc/posix-headers/wctype.texi: Mention the problem.
15972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15973
15974 2011-05-28  Jim Meyering  <meyering@redhat.com>
15975
15976         parse-datetime.y: accommodate -Wstrict-overflow
15977         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15978         placate -Wstrict-overflow.
15979
15980         trim: avoid a warning from -O2 -Wstrict-overflow
15981         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15982
15983 2011-05-29  Bruno Haible  <bruno@clisp.org>
15984
15985         gnulib-tool: Fix bug in yesterday's commit.
15986         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15987         twice.
15988
15989 2011-05-29  Bruno Haible  <bruno@clisp.org>
15990
15991         Allow multiple gnulib generated include files to be combined.
15992         * gnulib-tool (func_compute_include_guard_prefix): New function.
15993         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15994         ${gl_include_guard_prefix} references.
15995         (func_import, func_create_testdir): Invoke
15996         func_compute_include_guard_prefix.
15997         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15998         * lib/ctype.in.h: Likewise.
15999         * lib/dirent.in.h: Likewise.
16000         * lib/errno.in.h: Likewise.
16001         * lib/fcntl.in.h: Likewise.
16002         * lib/float.in.h: Likewise.
16003         * lib/getopt.in.h: Likewise.
16004         * lib/iconv.in.h: Likewise.
16005         * lib/langinfo.in.h: Likewise.
16006         * lib/locale.in.h: Likewise.
16007         * lib/math.in.h: Likewise.
16008         * lib/netdb.in.h: Likewise.
16009         * lib/netinet_in.in.h: Likewise.
16010         * lib/poll.in.h: Likewise.
16011         * lib/pthread.in.h: Likewise.
16012         * lib/pty.in.h: Likewise.
16013         * lib/sched.in.h: Likewise.
16014         * lib/se-selinux.in.h: Likewise.
16015         * lib/search.in.h: Likewise.
16016         * lib/signal.in.h: Likewise.
16017         * lib/spawn.in.h: Likewise.
16018         * lib/stdarg.in.h: Likewise.
16019         * lib/stddef.in.h: Likewise.
16020         * lib/stdint.in.h: Likewise.
16021         * lib/stdio.in.h: Likewise.
16022         * lib/stdlib.in.h: Likewise.
16023         * lib/string.in.h: Likewise.
16024         * lib/strings.in.h: Likewise.
16025         * lib/sys_file.in.h: Likewise.
16026         * lib/sys_ioctl.in.h: Likewise.
16027         * lib/sys_select.in.h: Likewise.
16028         * lib/sys_socket.in.h: Likewise.
16029         * lib/sys_stat.in.h: Likewise.
16030         * lib/sys_time.in.h: Likewise.
16031         * lib/sys_times.in.h: Likewise.
16032         * lib/sys_uio.in.h: Likewise.
16033         * lib/sys_utsname.in.h: Likewise.
16034         * lib/sys_wait.in.h: Likewise.
16035         * lib/sysexits.in.h: Likewise.
16036         * lib/termios.in.h: Likewise.
16037         * lib/time.in.h: Likewise.
16038         * lib/unistd.in.h: Likewise.
16039         * lib/wchar.in.h: Likewise.
16040         * lib/wctype.in.h: Likewise.
16041         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16042         * modules/ctype (Makefile.am): Likewise.
16043         * modules/dirent (Makefile.am): Likewise.
16044         * modules/errno (Makefile.am): Likewise.
16045         * modules/fcntl-h (Makefile.am): Likewise.
16046         * modules/float (Makefile.am): Likewise.
16047         * modules/getopt-posix (Makefile.am): Likewise.
16048         * modules/iconv-h (Makefile.am): Likewise.
16049         * modules/langinfo (Makefile.am): Likewise.
16050         * modules/locale (Makefile.am): Likewise.
16051         * modules/math (Makefile.am): Likewise.
16052         * modules/netdb (Makefile.am): Likewise.
16053         * modules/netinet_in (Makefile.am): Likewise.
16054         * modules/poll-h (Makefile.am): Likewise.
16055         * modules/pthread (Makefile.am): Likewise.
16056         * modules/pty (Makefile.am): Likewise.
16057         * modules/sched (Makefile.am): Likewise.
16058         * modules/search (Makefile.am): Likewise.
16059         * modules/selinux-h (Makefile.am): Likewise.
16060         * modules/signal (Makefile.am): Likewise.
16061         * modules/spawn (Makefile.am): Likewise.
16062         * modules/stdarg (Makefile.am): Likewise.
16063         * modules/stddef (Makefile.am): Likewise.
16064         * modules/stdint (Makefile.am): Likewise.
16065         * modules/stdio (Makefile.am): Likewise.
16066         * modules/stdlib (Makefile.am): Likewise.
16067         * modules/string (Makefile.am): Likewise.
16068         * modules/strings (Makefile.am): Likewise.
16069         * modules/sys_file (Makefile.am): Likewise.
16070         * modules/sys_ioctl (Makefile.am): Likewise.
16071         * modules/sys_select (Makefile.am): Likewise.
16072         * modules/sys_socket (Makefile.am): Likewise.
16073         * modules/sys_stat (Makefile.am): Likewise.
16074         * modules/sys_time (Makefile.am): Likewise.
16075         * modules/sys_times (Makefile.am): Likewise.
16076         * modules/sys_uio (Makefile.am): Likewise.
16077         * modules/sys_utsname (Makefile.am): Likewise.
16078         * modules/sys_wait (Makefile.am): Likewise.
16079         * modules/sysexits (Makefile.am): Likewise.
16080         * modules/termios (Makefile.am): Likewise.
16081         * modules/time (Makefile.am): Likewise.
16082         * modules/unistd (Makefile.am): Likewise.
16083         * modules/wchar (Makefile.am): Likewise.
16084         * modules/wctype-h (Makefile.am): Likewise.
16085         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16086
16087 2011-05-29  Bruno Haible  <bruno@clisp.org>
16088
16089         assert-h: Allow multiple gnulib generated replacements to coexist.
16090         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16091
16092 2011-05-29  Bruno Haible  <bruno@clisp.org>
16093
16094         argp: Allow coexistence with strerror_r-posix module.
16095         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16096         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16097         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16098         not the glibc signature.
16099
16100 2011-05-28  Bruno Haible  <bruno@clisp.org>
16101
16102         gnulib-tool: Alternative structure of testdirs, similar to --import.
16103         * gnulib-tool: New option --single-configure.
16104         (func_usage): Document it.
16105         (single_configure): New variable.
16106         (func_modules_transitive_closure_separately,
16107         func_modules_transitive_closure_separately,
16108         func_determine_use_libtests, func_modules_add_dummy_separately,
16109         func_modules_to_filelist_separately): New functions, extracted from
16110         func_import.
16111         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16112         (func_import): Use the new functions.
16113         (func_create_testdir): Set final_modules. Handle $single_configure =
16114         true case.
16115
16116 2011-05-28  Bruno Haible  <bruno@clisp.org>
16117
16118         getloadavg: Remove an unreliable safety check.
16119         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16120         getloadavg.c is in place.
16121         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16122         Reported by Sam Steingold <sds@gnu.org>.
16123
16124 2011-05-28  Bruno Haible  <bruno@clisp.org>
16125
16126         doc: Cleanup yet another file produced by texinfo.tex.
16127         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16128
16129 2011-05-28  Bruno Haible  <bruno@clisp.org>
16130
16131         Finish the conditional dependencies mechanism.
16132         * gnulib-tool: New option --no-conditional-dependencies.
16133         (func_usage): Document it. Don't mark --conditional-dependencies as
16134         experimental.
16135         (cond_dependencies): The possible values can now be true, false, empty.
16136         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16137         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16138         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16139
16140 2011-05-28  Bruno Haible  <bruno@clisp.org>
16141
16142         doc: Use a recent texinfo.tex.
16143         * doc/Makefile (tex_opts): New variable.
16144         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16145
16146 2011-05-28  Jim Meyering  <meyering@redhat.com>
16147
16148         intprops.h: adjust comment to match code change
16149         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16150         only once, it *may* have side effects.  Also fix an unrelated typo.
16151         (_GL_INT_SIGNED): Likewise.
16152
16153 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16154
16155         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16156
16157 2011-05-26  Bruno Haible  <bruno@clisp.org>
16158
16159         mbsrchr: Avoid collision with system function on Interix.
16160         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16161         Reported by Markus Duft <mduft@gentoo.org>.
16162
16163 2011-05-15  James Youngman  <jay@gnu.org>
16164
16165         getopt: for ambiguous options, enumerate the possibilities.
16166         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16167         the ambiguous options when an ambiguous prefix is given. This was
16168         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16169         glibc change was
16170         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16171
16172 2011-05-25  Eric Blake  <eblake@redhat.com>
16173
16174         getcwd: work around mingw bug
16175         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16176         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16177         Reported by Matthias Bolte.
16178
16179 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16180
16181         test-intprops: disable -Wtype-limits diagnostics
16182         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16183         diagnostics.  Otherwise, the integer overflow macros generate many
16184         diagnostics.  Reported by Jim Meyering in
16185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16186
16187         intprops: shorten, to pacify gcc -Woverlength-strings
16188         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16189         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16190         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16191         likely to run afoul of C compiler limits for string constant lengths.
16192         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16193
16194 2011-05-24  Eric Blake  <eblake@redhat.com>
16195
16196         docs: document recently fixed glibc printf bug
16197         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16198         * doc/posix-functions/printf.texi (printf): Likewise.
16199         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16200         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16201
16202         closein-tests: convert to init.sh
16203         * modules/closein-tests (Files): Add init.sh
16204         * tests/test-closein.sh Use it.
16205
16206         yesno-tests: convert to init.sh
16207         * modules/yesno-tests (Files): Add init.sh.
16208         * tests/test-yesno.sh: Use it.
16209
16210         atexit-tests: ensure reliable exit status
16211         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16212         Reported by Bruno Haible.
16213
16214 2011-05-24  Bruno Haible  <bruno@clisp.org>
16215
16216         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16217         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16218         gl_PREREQ_STRERROR_R invocations from here...
16219         * modules/strerror_r-posix (configure.ac): ... to here.
16220
16221 2011-05-24  Eric Blake  <eblake@redhat.com>
16222
16223         strerror_r: fix missing header
16224         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16225
16226         strerror_r: fix AIX test failures
16227         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16228         ERANGE failure.
16229
16230         strerror_r: fix Solaris test failures
16231         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16232         failures.
16233         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16234
16235         strerror_r: enforce POSIX recommendations
16236         * lib/strerror_r.c (safe_copy): New helper method.
16237         (strerror_r): Guarantee a non-empty string.
16238         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16239         recent POSIX rulings and to match our strerror guarantees.
16240         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16241
16242 2011-05-24  Jim Meyering  <meyering@redhat.com>
16243
16244         test-perror2.c: avoid warning about unused variable
16245         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16246
16247 2011-05-24  Eric Blake  <eblake@redhat.com>
16248
16249         perror: avoid spurious test failure on HP-UX
16250         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16251
16252         tests: fix logic bug in init.sh
16253         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16254         shell.
16255
16256 2011-05-24  Jim Meyering  <meyering@redhat.com>
16257
16258         utimensat: do not reference an out-of-scope buffer
16259         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16260         declared in an inner scope, yet "times" would be dereferenced outside
16261         the scope in which "ts" was valid.
16262         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16263         of ts[2] "out/up", so that the use of aliased "times" (via
16264         "times = ts;") does not end up referencing an out-of-scope "ts"
16265
16266         opendir-safer.c: don't clobber errno; don't close negative FD
16267         * lib/opendir-safer.c (opendir_safer):
16268         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16269         file descriptor, and more importantly, don't clobber the
16270         offending errno value with EINVAL.  Before, upon failure
16271         of dup_safer, we would pass the negative file descriptor to
16272         fdopendir, which would clobber errno.
16273
16274 2011-05-23  Bruno Haible  <bruno@clisp.org>
16275
16276         idcache: Fix module description.
16277         * modules/idcache (Include): Set to "idcache.h".
16278
16279 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16280
16281         gnulib-tool: fix portability problem with MacOS sed
16282         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16283         before the "}".  Problem reported by Leo in
16284         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16285         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16286         sed_extract_condition1, sed_extract_condition2.
16287
16288 2011-05-23  Bruno Haible  <bruno@clisp.org>
16289
16290         hash: Simplify autoconf macro.
16291         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16292
16293 2011-05-23  Bruno Haible  <bruno@clisp.org>
16294
16295         getugroups: Fix module description.
16296         * modules/getugroups (Include): Set to "getugroups.h".
16297
16298 2011-05-23  Bruno Haible  <bruno@clisp.org>
16299
16300         linkat: Simplify autoconf macro.
16301         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16302
16303 2011-05-23  Bruno Haible  <bruno@clisp.org>
16304             Eric Blake  <eblake@redhat.com>
16305
16306         linkat, renameat: Update dependencies.
16307         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16308         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16309         symlinkat.
16310
16311 2011-05-23  Jim Meyering  <meyering@redhat.com>
16312
16313         maint.mk: more tight_scope improvements
16314         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16315         (_gl_TS_headers): Define only in if-0'd block.
16316         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16317         sometimes we must *not* use it.  Adjust uses accordingly.
16318         (sc_tight_scope): Use much simpler grep-based test to determine
16319         whether we skip this rule.
16320
16321         maint.mk: generalize/improve the tight-scope rule
16322         * top/maint.mk: Emit a warning when the test is skipped.
16323         (_gl_TS_dir): Add $(srcdir)/ prefix.
16324         (_gl_TS_function_match): Simplify, rather than trying
16325         to enumerate common types.  Otherwise, it would fail to match an
16326         "extern unsigned char const *" declaration in idutils.
16327         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16328         a way to support use of that type of macro.
16329         (_gl_TS_var_match): Simplify regexp.
16330         (_gl_TS_obj_files): New configurable variable.
16331         (_gl_TS_headers): Likewise.
16332
16333 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16334
16335         verify: fix bug when gnulib <assert.h> is also included
16336         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16337         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16338         Perhaps there's a better way, but this fixes the immediate problem.
16339         Problem reported by Bruno Haible in
16340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16341
16342 2011-05-22  Bruno Haible  <bruno@clisp.org>
16343
16344         xgetcwd: Simplify autoconf macro.
16345         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16346
16347 2011-05-22  Bruno Haible  <bruno@clisp.org>
16348
16349         New module 'mktime-internal'.
16350         * modules/mktime-internal: New file.
16351         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16352         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16353         mktime_internal as a C macro if libc has __mktime_internal.
16354         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16355         conditions.
16356         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16357
16358 2011-05-22  Bruno Haible  <bruno@clisp.org>
16359
16360         timegm: Correct mktime replacement statements.
16361         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16362         defining mktime as a C macro. This completes a 2009-07-28 commit.
16363
16364 2011-05-22  Bruno Haible  <bruno@clisp.org>
16365
16366         timegm: Simplify autoconf macro.
16367         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16368
16369 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16370
16371         clock-time: change to LGPLv2+.
16372         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16373         BSD-like but we have no mark for that; this is good enough for now.
16374
16375 2011-05-21  Bruno Haible  <bruno@clisp.org>
16376
16377         strerror_r: Fix comments.
16378         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16379
16380 2011-05-21  Bruno Haible  <bruno@clisp.org>
16381
16382         relocatable-prog-wrapper: Fix possible link error.
16383         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16384         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16385         (gl_FUNC_SETENV): ... to here.
16386         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16387         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16388
16389 2011-05-21  Bruno Haible  <bruno@clisp.org>
16390
16391         relocatable-prog-wrapper: Assume strerror() exists.
16392         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16393         m4/strerror.m4.
16394         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16395         * lib/relocwrapper.c: Remove mention of strerror module.
16396         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16397         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16398         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16399         C macro.
16400
16401 2011-05-21  Bruno Haible  <bruno@clisp.org>
16402
16403         select: Simplify replacement idiom.
16404         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16405         Win32 platforms.
16406         * lib/sys_select.in.h (select): Simplify accordingly.
16407         * modules/select (Depends-on): Likewise.
16408
16409 2011-05-21  Bruno Haible  <bruno@clisp.org>
16410
16411         mkdir-p: Simplify autoconf macro.
16412         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16413         gl_FUNC_LCHOWN.
16414
16415 2011-05-21  Eric Blake  <eblake@redhat.com>
16416
16417         strerror_r: avoid clobbering strerror on cygwin
16418         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16419         fall back instead to sys_errlist.
16420         * modules/strerror (configure.ac): Add witness.
16421         * tests/test-strerror_r.c (main): Enhance test.
16422         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16423         * tests/test-perror2.c (main): Free memory before exit.
16424
16425 2011-05-21  Bruno Haible  <bruno@clisp.org>
16426
16427         mkdtemp: Use gnulib naming conventions.
16428         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16429         * modules/mkdtemp (configure.ac): Update.
16430
16431 2011-05-20  Eric Blake  <eblake@redhat.com>
16432
16433         strerror_r: avoid corrupting errno on Solaris
16434         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16435         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16436
16437         strerror_r: avoid compiler warning
16438         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16439
16440         strerror_r: simplify AIX code
16441         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16442
16443         test-perror: avoid spurious failure on FreeBSD
16444         * modules/perror-tests (Depends-on): Add strerror, now that
16445         strerror_r no longer pulls it in.
16446
16447 2011-05-20  Bruno Haible  <bruno@clisp.org>
16448
16449         strerror_r-posix: Remove unused dependencies.
16450         * modules/strerror_r-posix (Depends-on): Remove strerror.
16451         Reported by Eric Blake.
16452
16453 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16454
16455         intprops: remove assumption about A|B representation
16456         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16457         is a valid integer if both A and B are.  Although this is true for
16458         all known practical hosts, the C standard doesn't guarantee it,
16459         and the code need not assume it.  Also, this change may work around
16460         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16462
16463 2011-05-20  Eric Blake  <eblake@redhat.com>
16464
16465         perror: work around FreeBSD bug
16466         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16467         is broken.  Move AC_LIBOBJ...
16468         * modules/perror (configure.ac): Here.
16469         * doc/posix-functions/perror.texi (perror): Document this.
16470         * tests/test-perror2.c (main): Enhance test.
16471
16472         test-perror: check for strerror interactions
16473         * tests/macros.h (STREQ): Add macro.
16474         * modules/perror-tests (Files): Add second test.
16475         * tests/test-perror2.c (main): New file.
16476         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16477
16478         test-perror: rewrite to use init script
16479         * modules/perror-tests (Files): Add init.sh.
16480         * tests/test-perror.sh: Use temporary directory.
16481
16482 2011-05-20  Jim Meyering  <meyering@redhat.com>
16483
16484         maint: replace misused "a" with "an"
16485         * doc/intprops.texi: "a integer"
16486         * doc/regex.texi: "a explanation"
16487         * lib/alignof.h: "a object"
16488         * lib/argmatch.h: "a explanation"
16489         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16490         * lib/stdint.in.h: "a integer"
16491         * lib/userspec.c: "a owner"
16492         * doc/gnulib.texi: Fix "a idea", and reword.
16493
16494 2011-05-19  Jim Meyering  <meyering@redhat.com>
16495
16496         maint: correct misuse of "a" and "an"
16497         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16498         * lib/argp-help.c: "an docum...": s/an/a/
16499         * lib/argp-parse.c: "An vector": s/An/A/
16500         * lib/execute.c: "an native": s/an/a/
16501         * lib/spawn-pipe.c: Likewise.
16502         * lib/gc.h: "an Gc_rc": s/an/a/
16503         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16504         * lib/fts.c: "an stat.st_dev": s/an/a/
16505
16506 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16507
16508         intprops-tests: work around HP-UX 11.23 cc bug with constants
16509         * tests/test-intprops.c (VERIFY): New macro.
16510         (main): Use it, instead of verify, to work around the compiler bug; see
16511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16512
16513         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16514         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16515         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16516         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16517         (_GL_REMAINDER_OVERFLOW): Use it.
16518
16519         intprops-tests: revert unsigned part of previous change
16520         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16521         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16522         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16524
16525 2011-05-19  Bruno Haible  <bruno@clisp.org>
16526
16527         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16528         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16529         strerror_r() returned without filling the buffer.
16530         Reported by Eric Blake.
16531
16532 2011-05-19  Eric Blake  <eblake@redhat.com>
16533
16534         strerror_r: guarantee unchanged errno
16535         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16536         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16537         failure.
16538         * tests/test-strerror_r.c (main): Enhance test.
16539
16540 2011-05-19  Bruno Haible  <bruno@clisp.org>
16541
16542         strerror_r: Reorder #if blocks.
16543         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16544         for consistency with the previous commit.
16545
16546 2011-05-19  Bruno Haible  <bruno@clisp.org>
16547
16548         perror: Avoid clobbering the strerror buffer when possible.
16549         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16550         * lib/strerror.c: Include it.
16551         * modules/strerror (Files): Add lib/strerror-impl.h.
16552         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16553         (my_strerror): New function, defined through lib/strerror-impl.h.
16554         (perror): Use it instead of strerror.
16555         * modules/perror (Files): Add lib/strerror-impl.h.
16556         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16557
16558 2011-05-19  Eric Blake  <eblake@redhat.com>
16559
16560         strerror_r: fix on newer cygwin
16561         * lib/strerror_r.c (strerror_r): Cygwin now has
16562         __xpg_strerror_r, use it.
16563
16564 2011-05-19  Bruno Haible  <bruno@clisp.org>
16565
16566         strerror_r: Avoid clobbering the strerror buffer when possible.
16567         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16568         (sys_nerr, sys_errlist): New declarations.
16569         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16570         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16571         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16572
16573 2011-05-19  Bruno Haible  <bruno@clisp.org>
16574
16575         strerror_r: Fix test failure on mingw.
16576         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16577         EXTEND_STRERROR_R.
16578         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16579         macros from errno.in.h instead.
16580
16581 2011-05-19  Eric Blake  <eblake@redhat.com>
16582
16583         strerror: relax test for Solaris
16584         * tests/test-strerror.c (main): Permit Solaris behavior.
16585         * tests/test-strerror_r.c (main): Likewise.
16586
16587         strerror: enforce POSIX ruling on strerror(0)
16588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16589         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16590         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16591         * doc/posix-functions/strerror.texi (strerror): Document it.
16592         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16593         * tests/test-strerror.c (main): Strengthen test.
16594         * tests/test-strerror_r.c (main): Likewise.
16595
16596 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16597
16598         intprop-tests: port to older and more-pedantic compilers
16599         * modules/intprops-tests (Files): Add tests/macros.h.
16600         * tests/test-intprops.c: Include macros.h.
16601         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16602         it's no longer documented to expand to an integer constant expression.
16603         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16604         argument is floating point, as it's no longer documented to expand
16605         to an integer constant expression in that case.
16606         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16607         compiler bugs reported by Bruno Haible.  See
16608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16609         (U0, U1): New constants, to work around the same bugs.  Also,
16610         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16611
16612         intprops: work around C compiler bugs
16613         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16614         bug in Sun C 5.11 2010/08/13 and other compilers; see
16615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16616
16617         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16618         * doc/intprops.texi (Integer Type Determination): Fix
16619         documentation for TYPE_IS_INTEGER: it returns an constant
16620         expression, not an integer constant expression.  Fix doc for
16621         TYPE_SIGNED: it returns an integer constant expression only if its
16622         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16623         hardly worth documented that way....)
16624
16625 2011-05-18  Bruno Haible  <bruno@clisp.org>
16626
16627         strerror_r: Avoid clobbering the strerror buffer when possible.
16628         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16629         Handle gnulib defined errno values here. When strerror() returns NULL
16630         or an empty string, return EINVAL.
16631         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16632         gnulib defined errno values here.
16633         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16634
16635 2011-05-18  Eric Blake  <eblake@redhat.com>
16636
16637         fnmatch: avoid compiler warning
16638         * lib/fnmatch_loop.c (FCT): Use correct type.
16639         Reported by Matthias Bolte.
16640
16641 2011-05-13  Jim Meyering  <meyering@redhat.com>
16642
16643         maint.mk: three new prohibit_<HDR>_without_use rules
16644         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16645         (sc_prohibit_stdio-safer_without_use): Likewise.
16646         (sc_prohibit_xfreopen_without_use): Likewise.
16647
16648 2011-05-17  Jim Meyering  <meyering@redhat.com>
16649
16650         announce-gen: fail if the NEWS delta is empty
16651         If there's nothing noteworthy in NEWS, then either you forgot
16652         or you shouldn't be releasing.
16653         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16654
16655 2011-05-17  Pádraig Brady <P@draigBrady.com>
16656
16657         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16658         reserved symbols starting with double underscore from the check.
16659
16660 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16661
16662         intprops: add doc
16663         * doc/intprops.texi: New file, documenting intprops.
16664         * doc/gnulib.texi (Particular Modules): Include it.
16665
16666         verify: add doc to gnulib manual and fix example
16667         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16668         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16669         (Compile-time Assertions): Fix example so it can't overflow.
16670
16671 2011-05-17  Jim Meyering  <meyering@redhat.com>
16672
16673         warnings.m4: don't usurp save_CPPFLAGS variable name
16674         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16675
16676         doc: fix typo
16677         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16678
16679 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16680             Bruno Haible  <bruno@clisp.org>
16681
16682         doc: Tweak recent change.
16683         * README (Portability guidelines): Tweak new text.
16684         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16685         Interix 6.1.
16686
16687 2011-05-16  Eric Blake  <eblake@redhat.com>
16688
16689         inttypes: avoid autoconf warning
16690         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16691         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16692
16693 2011-05-16  Sam Steingold <sds@gnu.org>
16694         and Eric Blake  <eblake@redhat.com>
16695
16696         vc-list-files: accept multiple directory operands
16697         * build-aux/vc-list-files: Iterate over all remaining operands.
16698
16699 2011-05-16  Bruno Haible  <bruno@clisp.org>
16700
16701         Fix confusion regarding deprecated modules.
16702         * modules/calloc (Status, Notice): Mark module as deprecated, not
16703         obsolete.
16704         * modules/fnmatch-posix (Status, Notice): Likewise.
16705         * modules/getdate (Status, Notice): Likewise.
16706         * modules/getopt (Status, Notice): Likewise.
16707         * modules/malloc (Status, Notice): Likewise.
16708         * modules/pipe (Status, Notice): Likewise.
16709         * modules/realloc (Status, Notice): Likewise.
16710         * modules/rename-dest-slash (Status, Notice): Likewise.
16711         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16712         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16713         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16714         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16715         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16716
16717 2011-05-16  Bruno Haible  <bruno@clisp.org>
16718
16719         doc: List the target platforms.
16720         * doc/gnulib-intro.texi (Target Platforms): New section.
16721         * doc/gnulib.texi (Introduction): Update menu.
16722         * README (Portability guidelines): Refer to the new section. Update
16723         statement about oldest supported environment. Remove rationale why
16724         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16725         unportable C89 function.
16726         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16727         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16728
16729 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16730
16731         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16732
16733 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16734
16735         intprops-tests: new module
16736         * modules/intprops-tests, tests/test-intprops.c: New files.
16737
16738         intprops: add safe, portable integer overflow checking
16739         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16740         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16741         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16742         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16743         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16744         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16745         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16746         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16747         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16748         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16749         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16750
16751 2011-05-12  James Youngman  <jay@gnu.org>
16752
16753         Add a test for glibc's Bugzilla bug #12378.
16754         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16755         doesn't allow the literal matching of a lone "[" (which is
16756         required by POSIX).
16757         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16758
16759 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16760
16761         Sync glibc change fixing Bugzilla bug #12378.
16762         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16763         beginning and fall back to matching as normal character if the
16764         string ends before the matching ']' is found.  This is what POSIX
16765         requires.
16766
16767 2011-05-13  Eric Blake  <eblake@redhat.com>
16768
16769         getcwd-lgpl: relax test for FreeBSD
16770         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16771         issue.
16772         * tests/test-getcwd-lgpl.c (main): Relax test.
16773         Reported by Matthias Bolte.
16774
16775 2011-05-11  Eric Blake  <eblake@redhat.com>
16776
16777         test-fflush: silence compiler warning
16778         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16779
16780 2011-05-11  Bruno Haible  <bruno@clisp.org>
16781
16782         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16783         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16784         * modules/canonicalize (Depends-on): Add 'nocrash'.
16785         * modules/canonicalize-lgpl (Depends-on): Likewise.
16786         * doc/posix-functions/realpath.texi: Update platforms list.
16787         Reported by Ryan Schmidt <ryandesign@macports.org>.
16788
16789 2011-05-11  Bruno Haible  <bruno@clisp.org>
16790
16791         group-member: Declare function in <unistd.h>.
16792         * lib/unistd.in.h (group_member): New declaration.
16793         * lib/group-member.h: Remove file.
16794         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16795         * tests/test-unistd-c++.cc: Check signature of group_member.
16796         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16797         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16798         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16799         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16800         HAVE_GROUP_MEMBER.
16801         * modules/group-member (Files): Remove lib/group-member.h.
16802         (Depends-on): Add unistd. Specify conditions.
16803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16804         (Include): Change to <unistd.h>.
16805         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16806         HAVE_GROUP_MEMBER.
16807         * NEWS: Mention the change.
16808         * lib/euidaccess.c: Don't include group-member.h.
16809
16810 2011-05-11  Bruno Haible  <bruno@clisp.org>
16811
16812         group-member: Document module.
16813         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16814         module.
16815
16816 2011-05-11  Bruno Haible  <bruno@clisp.org>
16817
16818         fclose: Fix mistake earlier today.
16819         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16820
16821 2011-05-11  Eric Blake  <eblake@redhat.com>
16822
16823         fclose: preserve fflush errors
16824         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16825         Reported by Jim Meyering.
16826
16827         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16828         * build-aux/bootstrap (check_versions): When no specific version
16829         is required, merely check that the app produces an exit status
16830         that indicates its existence.
16831
16832         maint.mk: drop redundant check
16833         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16834         the same but better.
16835
16836 2011-05-11  Bruno Haible  <bruno@clisp.org>
16837
16838         fclose: Fix possible link error.
16839         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16840         unregister_shadow_fd. Improve comments.
16841         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16842         Eric Blake.
16843
16844 2011-05-11  Jim Meyering  <meyering@redhat.com>
16845
16846         maint.mk: improve "can not" detection and generalize rule name
16847         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16848         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16849         Use the same technique as in sc_prohibit_doubled_word, so that
16850         we recognize "can not" also when the words are separated by a newline.
16851         Suggested by Eric Blake.
16852         (perl_filename_lineno_text_): Define.  Factored out of...
16853         (prohibit_doubled_word_): ...here.  Use the new definition.
16854         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16855         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16856         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16857
16858 2011-05-10  Eric Blake  <eblake@redhat.com>
16859
16860         fclose: avoid double close race when possible
16861         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16862         all but WINDOWS_SOCKETS.
16863
16864 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16865
16866         openat: correct new comment
16867         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16868
16869 2011-05-10  Jim Meyering  <meyering@redhat.com>
16870
16871         openat: add comments
16872         * lib/openat-proc.c (openat_proc_name): Add comments,
16873         mostly from Eric Blake.
16874
16875 2011-05-09  Eric Blake  <eblake@redhat.com>
16876
16877         openat: reduce syscalls in first probe of /proc
16878         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16879         be a directory.  Simplify the probe for .. bugs.
16880         * modules/openat (Depends-on): Drop same-inode.
16881         Reported by Bastien ROUCARIES.
16882
16883 2011-05-09  Jim Meyering  <meyering@redhat.com>
16884
16885         maint.mk: change semantics/name of tight_scope variables
16886         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16887         Rename variables to align with semantics that make them more useful.
16888
16889         maint.mk: tweak new rule's name not to impinge
16890         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16891         (sc_tight_scope): Use new rule name rather than $@-0.
16892
16893         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16894         * top/maint.mk (sc_tight_scope): New rule.
16895         (sc_tight_scope-0): New rule, ifdef'd out.
16896         (_gl_TS_dir): Default.
16897         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16898         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16899
16900 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16901
16902         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16903         Haible <bruno@clisp.org>.
16904
16905 2011-05-08  Bruno Haible  <bruno@clisp.org>
16906
16907         Comments.
16908         * m4/isnanf.m4: Add comment.
16909         * m4/isnanl.m4: Likewise.
16910
16911 2011-05-08  Bruno Haible  <bruno@clisp.org>
16912
16913         glob: Remove obsolete macro.
16914         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16915
16916 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16917
16918         intprops: Sun C 5.11 supports __typeof__
16919         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16920         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16921         which is new.
16922         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16923
16924         intprops: switch to usual gnulib indenting and naming
16925         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16926         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16927
16928         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16929
16930 2011-05-08  Jim Meyering  <meyering@redhat.com>
16931
16932         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16933         * top/maint.mk (release-prep): Use make's --no-print-directory
16934         option when generating the announcement.  This eliminates the
16935         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16936         generated announcement template.
16937
16938 2011-05-08  Bruno Haible  <bruno@clisp.org>
16939
16940         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16941         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16942         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16943
16944 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16945
16946         ignore-value, verify: Omit include files from lib_SOURCES.
16947         * modules/ignore-value, modules/verify (Makefile.am):
16948         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16949         that leads Automake to duplicate use of am__objects_... variables
16950         in Makefile.in.  See
16951         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16952
16953 2011-05-07  Bruno Haible  <bruno@clisp.org>
16954
16955         fclose: Simplify autoconf macro.
16956         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16957         defined.
16958
16959 2011-05-07  Bruno Haible  <bruno@clisp.org>
16960
16961         canonicalize-lgpl: Fix autoconf macro ordering bug.
16962         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16963         gl_STDLIB_H_DEFAULTS.
16964
16965 2011-05-06  Eric Blake  <eblake@redhat.com>
16966
16967         maintainer-makefile: make sc_po_check easier to tune
16968         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16969         to probe for strings, such as an alternate location for gnulib.
16970
16971         fclose: guarantee behavior on seekable stdin
16972         * modules/fclose (Depends-on): Add fflush.
16973         * doc/posix-functions/fclose.texi (fclose): Document this.
16974         * tests/test-fclose.c (main): Make test for this unconditional.
16975
16976 2011-05-06  Bruno Haible  <bruno@clisp.org>
16977
16978         fflush, fpurge: Relicense under LGPLv2+.
16979         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16980         * modules/fpurge (License): Likewise.
16981         With permission from Eric Blake and Jim Meyering.
16982         Suggested by Eric Blake.
16983
16984 2011-05-06  Karl Berry  <karl@gnu.org>
16985
16986         * MODULES.html.sh (func_all_modules): remove exit.
16987
16988 2011-05-06  Jim Meyering  <meyering@redhat.com>
16989
16990         maint.mk: use info-gnu@ as the default only for a stable release
16991         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16992         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16993         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16994         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16995
16996 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16997
16998         assert-h: new module, which supports C1X-style static_assert
16999         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17000         * lib/verify.h: Revamp so that this can be copied into assert.h,
17001         while retaining the ability to use it standalone as before.
17002         Rename private identifiers so as not to encroach on the
17003         standard C namespace, since this is now used by assert.h.
17004         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17005         the old verify_true.
17006         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17007         the old verify_true.  Use _GL_VERIFY_TYPE.
17008         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17009         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17010         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17011         defined when this file is copied into the replacement assert.h.
17012         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17013         and _Static_assert is not built in.
17014         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17015         defined, and use the new macros mentioned above.
17016         * doc/posix-headers/assert.texi: Document this.
17017
17018 2011-05-05  Bruno Haible  <bruno@clisp.org>
17019
17020         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17021         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17022         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17023         gl_REPLACE_FCLOSE here.
17024         * modules/fflush (Depends-on): Remove fclose.
17025         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17026         combination with module 'fclose'.
17027
17028 2011-05-05  Bruno Haible  <bruno@clisp.org>
17029
17030         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17031         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17032         gl_FUNC_FFLUSH.
17033         (gl_FUNC_FFLUSH): Use it.
17034         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17035         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17036         gl_REPLACE_FSEEKO here.
17037
17038 2011-05-05  Bruno Haible  <bruno@clisp.org>
17039
17040         tzset: Relicense under LGPL.
17041         * modules/tzset (License): Change to LGPL.
17042         No agreement needed; it's a no-op.
17043
17044         strtoimax, strtoumax: Relicense under LGPL.
17045         * modules/strtoimax (License): Change to LGPL.
17046         * modules/strtoumax (License): Likewise.
17047         With permission from Jim Meyering, Paul Eggert:
17048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17050
17051         getgroups: Relicense under LGPL.
17052         * modules/getgroups (License): Change to LGPL.
17053         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17057
17058         nanosleep: Relicense under LGPL.
17059         * modules/nanosleep (License): Change to LGPL.
17060         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17061         Haible:
17062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17066
17067         futimens: Relicense under LGPL.
17068         * modules/futimens (License): Change to LGPL.
17069         With permission from Eric Blake:
17070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17071
17072         fflush: Relicense under LGPL.
17073         * modules/fflush (License): Change to LGPL.
17074         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17078
17079         tmpfile: Relicense under LGPL.
17080         * modules/tmpfile (License): Change to LGPL.
17081         With permission from Ben Pfaff:
17082         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17083
17084         isfinite: Relicense under LGPL.
17085         * modules/isfinite (License): Change to LGPL.
17086         With permission from Ben Pfaff, Bruno Haible:
17087         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17089
17090         acosl..tanl: Relicense under LGPL.
17091         * modules/acosl (License): Change to LGPL.
17092         * modules/asinl (License): Likewise.
17093         * modules/atanl (License): Likewise.
17094         * modules/cosl (License): Likewise.
17095         * modules/expl (License): Likewise.
17096         * modules/logl (License): Likewise.
17097         * modules/sinl (License): Likewise.
17098         * modules/sqrtl (License): Likewise.
17099         * modules/tanl (License): Likewise.
17100         Source code originally from glibc and Paolo Bonzini. Agreements:
17101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17103
17104 2011-05-05  Bruno Haible  <bruno@clisp.org>
17105
17106         signal: Define sighandler_t.
17107         * lib/signal.in.h (sighandler_t): New type.
17108         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17109         whether sighandler_t is defined.
17110         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17111         * modules/signal (Depends-on): Add extensions.
17112         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17113         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17114         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17115
17116 2011-05-05  Eric Blake  <eblake@redhat.com>
17117
17118         maint: remove useless REPLACE_*_H macros
17119         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17120         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17121         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17122         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17123         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17124         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17125         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17126         * m4/btowc.m4: Update callers.
17127         * m4/dirfd.m4: Likewise.
17128         * m4/duplocale.m4: Likewise.
17129         * m4/fchdir.m4: Likewise.
17130         * m4/fdopendir.m4: Likewise.
17131         * m4/inet_ntop.m4: Likewise.
17132         * m4/inet_pton.m4: Likewise.
17133         * m4/ioctl.m4: Likewise.
17134         * m4/mbrlen.m4: Likewise.
17135         * m4/mbrtowc.m4: Likewise.
17136         * m4/mbsinit.m4: Likewise.
17137         * m4/mbsnrtowcs.m4: Likewise.
17138         * m4/mbsrtowcs.m4: Likewise.
17139         * m4/poll.m4: Likewise.
17140         * m4/setlocale.m4: Likewise.
17141         * m4/wcrtomb.m4: Likewise.
17142         * m4/wcsnrtombs.m4: Likewise.
17143         * m4/wcsrtombs.m4: Likewise.
17144         * m4/wctob.m4: Likewise.
17145         * m4/wcwidth.m4: Likewise.
17146         * modules/posix_spawn: Likewise.
17147         * modules/posix_spawn_file_actions_addclose: Likewise.
17148         * modules/posix_spawn_file_actions_adddup2: Likewise.
17149         * modules/posix_spawn_file_actions_addopen: Likewise.
17150         * modules/posix_spawn_file_actions_destroy: Likewise.
17151         * modules/posix_spawn_file_actions_init: Likewise.
17152         * modules/posix_spawnattr_destroy: Likewise.
17153         * modules/posix_spawnattr_getflags: Likewise.
17154         * modules/posix_spawnattr_getpgroup: Likewise.
17155         * modules/posix_spawnattr_getschedparam: Likewise.
17156         * modules/posix_spawnattr_getschedpolicy: Likewise.
17157         * modules/posix_spawnattr_getsigdefault: Likewise.
17158         * modules/posix_spawnattr_getsigmask: Likewise.
17159         * modules/posix_spawnattr_init: Likewise.
17160         * modules/posix_spawnattr_setflags: Likewise.
17161         * modules/posix_spawnattr_setpgroup: Likewise.
17162         * modules/posix_spawnattr_setschedparam: Likewise.
17163         * modules/posix_spawnattr_setschedpolicy: Likewise.
17164         * modules/posix_spawnattr_setsigdefault: Likewise.
17165         * modules/posix_spawnattr_setsigmask: Likewise.
17166         * modules/posix_spawnp: Likewise.
17167
17168 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17169
17170         Add option to do-release-commit-and-tag to specify branch.
17171         * build-aux/do-release-commit-and-tag: Add --branch.
17172
17173 2011-05-03  Bruno Haible  <bruno@clisp.org>
17174
17175         Avoid unnecessary compilation units, through conditional dependencies.
17176         * modules/accept (Depends-on): Add conditions to the dependencies.
17177         * modules/acosl (Depends-on): Likewise.
17178         * modules/argz (Depends-on): Likewise.
17179         * modules/asinl (Depends-on): Likewise.
17180         * modules/atanl (Depends-on): Likewise.
17181         * modules/atoll (Depends-on): Likewise.
17182         * modules/bind (Depends-on): Likewise.
17183         * modules/btowc (Depends-on): Likewise.
17184         * modules/canonicalize-lgpl (Depends-on): Likewise.
17185         * modules/ceil (Depends-on): Likewise.
17186         * modules/ceilf (Depends-on): Likewise.
17187         * modules/ceill (Depends-on): Likewise.
17188         * modules/chdir-long (Depends-on): Likewise.
17189         * modules/chown (Depends-on): Likewise.
17190         * modules/close (Depends-on): Likewise.
17191         * modules/connect (Depends-on): Likewise.
17192         * modules/cosl (Depends-on): Likewise.
17193         * modules/dirfd (Depends-on): Likewise.
17194         * modules/dprintf (Depends-on): Likewise.
17195         * modules/dprintf-posix (Depends-on): Likewise.
17196         * modules/error (Depends-on): Likewise.
17197         * modules/euidaccess (Depends-on): Likewise.
17198         * modules/expl (Depends-on): Likewise.
17199         * modules/faccessat (Depends-on): Likewise.
17200         * modules/fchdir (Depends-on): Likewise.
17201         * modules/fclose (Depends-on): Likewise.
17202         * modules/fcntl (Depends-on): Likewise.
17203         * modules/fdopendir (Depends-on): Likewise.
17204         * modules/fflush (Depends-on): Likewise.
17205         * modules/floor (Depends-on): Likewise.
17206         * modules/floorf (Depends-on): Likewise.
17207         * modules/floorl (Depends-on): Likewise.
17208         * modules/fnmatch (Depends-on): Likewise.
17209         * modules/fopen (Depends-on): Likewise.
17210         * modules/fprintf-posix (Depends-on): Likewise.
17211         * modules/frexp (Depends-on): Likewise.
17212         * modules/frexp-nolibm (Depends-on): Likewise.
17213         * modules/frexpl (Depends-on): Likewise.
17214         * modules/frexpl-nolibm (Depends-on): Likewise.
17215         * modules/fseek (Depends-on): Likewise.
17216         * modules/fsusage (Depends-on): Likewise.
17217         * modules/ftell (Depends-on): Likewise.
17218         * modules/ftello (Depends-on): Likewise.
17219         * modules/futimens (Depends-on): Likewise.
17220         * modules/getcwd (Depends-on): Likewise.
17221         * modules/getcwd-lgpl (Depends-on): Likewise.
17222         * modules/getdelim (Depends-on): Likewise.
17223         * modules/getdomainname (Depends-on): Likewise.
17224         * modules/getgroups (Depends-on): Likewise.
17225         * modules/gethostname (Depends-on): Likewise.
17226         * modules/getline (Depends-on): Likewise.
17227         * modules/getlogin_r (Depends-on): Likewise.
17228         * modules/getopt-posix (Depends-on): Likewise.
17229         * modules/getpeername (Depends-on): Likewise.
17230         * modules/getsockname (Depends-on): Likewise.
17231         * modules/getsockopt (Depends-on): Likewise.
17232         * modules/getsubopt (Depends-on): Likewise.
17233         * modules/getusershell (Depends-on): Likewise.
17234         * modules/glob (Depends-on): Likewise.
17235         * modules/grantpt (Depends-on): Likewise.
17236         * modules/iconv_open (Depends-on): Likewise.
17237         * modules/iconv_open-utf (Depends-on): Likewise.
17238         * modules/inet_ntop (Depends-on): Likewise.
17239         * modules/inet_pton (Depends-on): Likewise.
17240         * modules/ioctl (Depends-on): Likewise.
17241         * modules/isapipe (Depends-on): Likewise.
17242         * modules/isfinite (Depends-on): Likewise.
17243         * modules/isinf (Depends-on): Likewise.
17244         * modules/lchown (Depends-on): Likewise.
17245         * modules/ldexpl (Depends-on): Likewise.
17246         * modules/link (Depends-on): Likewise.
17247         * modules/linkat (Depends-on): Likewise.
17248         * modules/listen (Depends-on): Likewise.
17249         * modules/logl (Depends-on): Likewise.
17250         * modules/lstat (Depends-on): Likewise.
17251         * modules/mbrlen (Depends-on): Likewise.
17252         * modules/mbrtowc (Depends-on): Likewise.
17253         * modules/mbsinit (Depends-on): Likewise.
17254         * modules/mbsnrtowcs (Depends-on): Likewise.
17255         * modules/mbsrtowcs (Depends-on): Likewise.
17256         * modules/mbtowc (Depends-on): Likewise.
17257         * modules/memcmp (Depends-on): Likewise.
17258         * modules/mkdir (Depends-on): Likewise.
17259         * modules/mkdtemp (Depends-on): Likewise.
17260         * modules/mkfifo (Depends-on): Likewise.
17261         * modules/mkfifoat (Depends-on): Likewise.
17262         * modules/mknod (Depends-on): Likewise.
17263         * modules/mkostemp (Depends-on): Likewise.
17264         * modules/mkostemps (Depends-on): Likewise.
17265         * modules/mkstemp (Depends-on): Likewise.
17266         * modules/mkstemps (Depends-on): Likewise.
17267         * modules/mktime (Depends-on): Likewise.
17268         * modules/nanosleep (Depends-on): Likewise.
17269         * modules/open (Depends-on): Likewise.
17270         * modules/openat (Depends-on): Likewise.
17271         * modules/perror (Depends-on): Likewise.
17272         * modules/poll (Depends-on): Likewise.
17273         * modules/popen (Depends-on): Likewise.
17274         * modules/posix_spawn (Depends-on): Likewise.
17275         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17276         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17277         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17278         * modules/posix_spawnp (Depends-on): Likewise.
17279         * modules/pread (Depends-on): Likewise.
17280         * modules/printf-posix (Depends-on): Likewise.
17281         * modules/ptsname (Depends-on): Likewise.
17282         * modules/putenv (Depends-on): Likewise.
17283         * modules/pwrite (Depends-on): Likewise.
17284         * modules/readline (Depends-on): Likewise.
17285         * modules/readlink (Depends-on): Likewise.
17286         * modules/readlinkat (Depends-on): Likewise.
17287         * modules/recv (Depends-on): Likewise.
17288         * modules/recvfrom (Depends-on): Likewise.
17289         * modules/regex (Depends-on): Likewise.
17290         * modules/remove (Depends-on): Likewise.
17291         * modules/rename (Depends-on): Likewise.
17292         * modules/renameat (Depends-on): Likewise.
17293         * modules/rmdir (Depends-on): Likewise.
17294         * modules/round (Depends-on): Likewise.
17295         * modules/roundf (Depends-on): Likewise.
17296         * modules/roundl (Depends-on): Likewise.
17297         * modules/rpmatch (Depends-on): Likewise.
17298         * modules/select (Depends-on): Likewise.
17299         * modules/send (Depends-on): Likewise.
17300         * modules/sendto (Depends-on): Likewise.
17301         * modules/setenv (Depends-on): Likewise.
17302         * modules/setlocale (Depends-on): Likewise.
17303         * modules/setsockopt (Depends-on): Likewise.
17304         * modules/shutdown (Depends-on): Likewise.
17305         * modules/sigaction (Depends-on): Likewise.
17306         * modules/signbit (Depends-on): Likewise.
17307         * modules/sigprocmask (Depends-on): Likewise.
17308         * modules/sinl (Depends-on): Likewise.
17309         * modules/sleep (Depends-on): Likewise.
17310         * modules/snprintf (Depends-on): Likewise.
17311         * modules/snprintf-posix (Depends-on): Likewise.
17312         * modules/socket (Depends-on): Likewise.
17313         * modules/sprintf-posix (Depends-on): Likewise.
17314         * modules/sqrtl (Depends-on): Likewise.
17315         * modules/stat (Depends-on): Likewise.
17316         * modules/strchrnul (Depends-on): Likewise.
17317         * modules/strdup-posix (Depends-on): Likewise.
17318         * modules/strerror (Depends-on): Likewise.
17319         * modules/strerror_r-posix (Depends-on): Likewise.
17320         * modules/strndup (Depends-on): Likewise.
17321         * modules/strnlen (Depends-on): Likewise.
17322         * modules/strptime (Depends-on): Likewise.
17323         * modules/strsep (Depends-on): Likewise.
17324         * modules/strsignal (Depends-on): Likewise.
17325         * modules/strstr-simple (Depends-on): Likewise.
17326         * modules/strtod (Depends-on): Likewise.
17327         * modules/strtoimax (Depends-on): Likewise.
17328         * modules/strtok_r (Depends-on): Likewise.
17329         * modules/strtoumax (Depends-on): Likewise.
17330         * modules/symlink (Depends-on): Likewise.
17331         * modules/symlinkat (Depends-on): Likewise.
17332         * modules/tanl (Depends-on): Likewise.
17333         * modules/tcgetsid (Depends-on): Likewise.
17334         * modules/tmpfile (Depends-on): Likewise.
17335         * modules/trunc (Depends-on): Likewise.
17336         * modules/truncf (Depends-on): Likewise.
17337         * modules/truncl (Depends-on): Likewise.
17338         * modules/uname (Depends-on): Likewise.
17339         * modules/unlink (Depends-on): Likewise.
17340         * modules/unlockpt (Depends-on): Likewise.
17341         * modules/unsetenv (Depends-on): Likewise.
17342         * modules/usleep (Depends-on): Likewise.
17343         * modules/utimensat (Depends-on): Likewise.
17344         * modules/vasprintf (Depends-on): Likewise.
17345         * modules/vdprintf (Depends-on): Likewise.
17346         * modules/vdprintf-posix (Depends-on): Likewise.
17347         * modules/vfprintf-posix (Depends-on): Likewise.
17348         * modules/vprintf-posix (Depends-on): Likewise.
17349         * modules/vsnprintf (Depends-on): Likewise.
17350         * modules/vsnprintf-posix (Depends-on): Likewise.
17351         * modules/vsprintf-posix (Depends-on): Likewise.
17352         * modules/wcrtomb (Depends-on): Likewise.
17353         * modules/wcscasecmp (Depends-on): Likewise.
17354         * modules/wcscspn (Depends-on): Likewise.
17355         * modules/wcsdup (Depends-on): Likewise.
17356         * modules/wcsncasecmp (Depends-on): Likewise.
17357         * modules/wcsnrtombs (Depends-on): Likewise.
17358         * modules/wcspbrk (Depends-on): Likewise.
17359         * modules/wcsrtombs (Depends-on): Likewise.
17360         * modules/wcsspn (Depends-on): Likewise.
17361         * modules/wcsstr (Depends-on): Likewise.
17362         * modules/wcstok (Depends-on): Likewise.
17363         * modules/wcswidth (Depends-on): Likewise.
17364         * modules/wctob (Depends-on): Likewise.
17365         * modules/wctomb (Depends-on): Likewise.
17366         * modules/wctype (Depends-on): Likewise.
17367         * modules/wcwidth (Depends-on): Likewise.
17368         * modules/write (Depends-on): Likewise.
17369
17370 2011-05-03  Bruno Haible  <bruno@clisp.org>
17371
17372         Support for conditional dependencies.
17373         * doc/gnulib.texi (Module description): Document the syntax of
17374         conditional dependencies.
17375         * gnulib-tool: New option --conditional-dependencies.
17376         (func_usage): Document it.
17377         (cond_dependencies): New variable.
17378         (func_get_automake_snippet_conditional,
17379         func_get_automake_snippet_unconditional): New functions, extracted from
17380         func_get_automake_snippet.
17381         (func_get_automake_snippet): Use them.
17382         (sed_first_32_chars): New variable.
17383         (func_module_shellfunc_name): New function.
17384         (func_module_shellvar_name): New function.
17385         (func_module_conditional_name): New function.
17386         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17387         func_cond_module_condition): New functions.
17388         (func_modules_transitive_closure): Add support for conditional
17389         dependencies.
17390         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17391         conditional automake snippet in an automake conditional.
17392         (func_emit_autoconf_snippets): Emit shell functions that contain the
17393         code for conditional modules.
17394         (func_import, func_create_testdir): Update specification.
17395
17396 2011-05-03  Eric Blake  <eblake@redhat.com>
17397
17398         test-getaddrinfo: report error information
17399         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17400
17401 2011-05-03  Jim Meyering  <meyering@redhat.com>
17402
17403         bootstrap: avoid build failure when $GZIP is set
17404         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17405         program name.  If defined at all, it is supposed to list gzip options.
17406         Reported by Alan Curry in http://debbugs.gnu.org/8609
17407
17408 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17409
17410         readme-release: new module with release instructions
17411         * modules/readme-release: New module.
17412         * top/README-release: New file, from coreutils, grep, diffutils.
17413         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17414
17415 2011-05-02  Eric Blake  <eblake@redhat.com>
17416
17417         fflush: also replace fclose when fixing fflush
17418         * modules/fflush (Depends-on): Add fclose.
17419         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17420         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17421         memstreams with no backing fd.
17422         * doc/posix-functions/fclose.texi (fclose): Document the use of
17423         fflush module to fix the bug.
17424         * tests/test-fclose.c (main): Relax test when fclose is used in
17425         isolation.
17426
17427         fclose: add some tests
17428         * modules/fclose-tests: New test module.
17429         * tests/test-fclose.c: New file.
17430         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17431
17432         fclose: reduced dependencies
17433         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17434         simpler lseek.
17435         * lib/fclose.c (rpl_fclose): Likewise.
17436         Reported by Simon Josefsson.
17437
17438         exit: drop remaining clients
17439         * modules/argmatch (Depends-on): Replace exit with stdlib.
17440         * modules/copy-file (Depends-on): Likewise.
17441         * modules/execute (Depends-on): Likewise.
17442         * modules/exitfail (Depends-on): Likewise.
17443         * modules/obstack (Depends-on): Likewise.
17444         * modules/pagealign_alloc (Depends-on): Likewise.
17445         * modules/pipe-filter-gi (Depends-on): Likewise.
17446         * modules/pipe-filter-ii (Depends-on): Likewise.
17447         * modules/savewd (Depends-on): Likewise.
17448         * modules/spawn-pipe (Depends-on): Likewise.
17449         * modules/wait-process (Depends-on): Likewise.
17450         * modules/xsetenv (Depends-on): Likewise.
17451         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17452         * modules/git-merge-changelog (Depends-on): Likewise.
17453         * modules/long-options (Depends-on): Likewise.
17454         * modules/pt_chown (Depends-on): Likewise.
17455         * modules/sysexits (Depends-on): Likewise.
17456
17457         freading: relax license from LGPLv3+ to LGPLv2+
17458         * modules/freading (License): Relax LGPL version.
17459
17460 2011-05-02  Bruno Haible  <bruno@clisp.org>
17461
17462         fchdir: Remove unused dependencies.
17463         * modules/fchdir (Depends-on): Remove include_next.
17464
17465 2011-05-02  Bruno Haible  <bruno@clisp.org>
17466
17467         gnulib-tool: Refactor.
17468         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17469         from func_emit_autoconf_snippets.
17470         (func_emit_autoconf_snippets): Use it.
17471
17472 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17473
17474         * NEWS: Document removal of 'exit'.
17475         * modules/exit: Remove file.
17476
17477 2011-05-01  Bruno Haible  <bruno@clisp.org>
17478
17479         Update DEPENDENCIES.
17480         * DEPENDENCIES (gettext): Recommend the newest release.
17481         Reported by Simon Josefsson.
17482
17483 2011-05-01  Bruno Haible  <bruno@clisp.org>
17484
17485         gnulib-tool: Reduce code duplication.
17486         * gnulib-tool (func_emit_autoconf_snippets): New function.
17487         (func_import, func_create_testdir): Use it.
17488
17489 2011-04-30  Eric Blake  <eblake@redhat.com>
17490
17491         fclose: don't fail on non-seekable input stream
17492         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17493         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17494         since fflush is allowed to fail in that case.
17495
17496 2011-04-30  Bruno Haible  <bruno@clisp.org>
17497
17498         dup3: cleanup
17499         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17500
17501 2011-04-30  Bruno Haible  <bruno@clisp.org>
17502
17503         netdb: Make it work in C++ mode.
17504         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17505         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17506         module.
17507         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17508         gl_MODULE_INDICATOR_FOR_TESTS.
17509         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17510         * modules/netdb-c++-tests: New file.
17511         * tests/test-netdb-c++.cc: New file.
17512
17513 2011-04-30  Bruno Haible  <bruno@clisp.org>
17514
17515         New modules 'vfscanf', 'vscanf'.
17516         * modules/vfscanf: New file.
17517         * modules/vscanf: New file.
17518         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17519         here.
17520         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17521         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17522
17523 2011-04-30  Bruno Haible  <bruno@clisp.org>
17524
17525         passfd: Add comments.
17526         * lib/passfd.c: Add comments about platforms.
17527
17528 2011-04-30  Bruno Haible  <bruno@clisp.org>
17529
17530         sys_uio: Make <sys/uio.h> self-contained.
17531         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17532         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17533
17534 2011-04-30  Bruno Haible  <bruno@clisp.org>
17535
17536         sys_socket: Ensure 'struct iovec' definition.
17537         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17538         <sys/socket.h>.
17539         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17540
17541 2011-04-30  Bruno Haible  <bruno@clisp.org>
17542
17543         sys_uio: Protect definition of 'struct iovec'.
17544         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17545         it as a C struct.
17546
17547 2011-04-30  Bruno Haible  <bruno@clisp.org>
17548
17549         manywarnings: fix indentation
17550         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17551
17552 2011-04-30  Pádraig Brady <P@draigBrady.com>
17553
17554         manywarnings: add -Wno-missing-field-initializers if needed.
17555         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17556         option if it's needed to allow initialization with { 0, }
17557
17558 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17559
17560         announce-gen: cosmetic improvement
17561         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17562
17563 2011-04-29  Jim Meyering  <meyering@redhat.com>
17564
17565         vc-list-files: indent with spaces, not TABs
17566         * build-aux/vc-list-files: Convert leading TABs to spaces,
17567         to match the style of most other files in gnulib.
17568
17569         announce-gen: indent with spaces, not TABs
17570         * build-aux/announce-gen: Convert all TABs to spaces, to match
17571         the style of most other files in gnulib.
17572
17573 2011-04-29  Eric Blake  <eblake@redhat.com>
17574
17575         quotearg: avoid uninitialized variable use
17576         * lib/quotearg.c (quoting_options_from_style): Initialize
17577         remaining fields, and ensure that custom styles are only used via
17578         quoting_options rather than quoting_style.
17579
17580 2011-04-29  Jim Meyering  <meyering@redhat.com>
17581
17582         maint.mk: remove unused VC-tag variable
17583         * top/maint.mk (VC-tag): Remove unused variable.
17584
17585 2011-04-29  Bruno Haible  <bruno@clisp.org>
17586
17587         netdb: fix gai_strerror replacements
17588         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17589         * modules/netdb: Substitute it.
17590
17591 2011-04-29  Jim Meyering  <meyering@redhat.com>
17592
17593         test-getcwd.c: avoid new set-but-not-used warning
17594         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17595         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17596         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17597         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17598
17599         test-hash.c: avoid a new shadowing warning
17600         * tests/test-hash.c (main): Don't shadow "dup".
17601
17602 2011-04-28  Eric Blake  <eblake@redhat.com>
17603
17604         getaddrinfo: fix gai_strerror signature
17605         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17606         and work around mingw with UNICODE defined.
17607         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17608         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17609         * modules/netdb (Makefile.am): Substitute it.
17610         * lib/netdb.in.h (gai_strerror): Declare replacement.
17611         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17612         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17613         the fix.
17614
17615         getsockopt: avoid compiler warning
17616         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17617         Reported by Matthias Bolte.
17618
17619         tests: drop unused link dependency
17620         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17621         * modules/dirent-safer-tests (Makefile.am): Likewise.
17622         * modules/fdopendir-tests (Makefile.am): Likewise.
17623         * modules/mkfifoat-tests (Makefile.am): Likewise.
17624         * modules/openat-safer-tests (Makefile.am): Likewise.
17625         * modules/openat-tests (Makefile.am): Likewise.
17626         * modules/readlinkat-tests (Makefile.am): Likewise.
17627         * modules/symlinkat-tests (Makefile.am): Likewise.
17628         * modules/linkat-tests (Makefile.am): Likewise.
17629         (Depends-on): Switch to filenamecat-lgpl.
17630         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17631         LIBINTL.
17632         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17633         * tests/test-linkat.c (main): Don't require xalloc.
17634
17635         hash, mgetgroups: drop xalloc dependency
17636         * lib/hash.c (includes): Adjust includes.
17637         * lib/mgetgroups.c (includes): Likewise.
17638         (xgetgroups): Move...
17639         * lib/xgetgroups.c: ...to new file.
17640         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17641         * modules/xgetgroups: New file, split from...
17642         * modules/mgetgroups: ...here.
17643         (Depends-on): Add xalloc-oversized.
17644         * modules/hash (Depends-on): Likewise.
17645         * modules/hash-tests (Depends-on): Drop xalloc.
17646         (test_hash_LDADD): Drop unused library.
17647         * tests/test-hash.c (main): Break xalloc dependency.
17648         (includes): Drop unused include.
17649
17650         xalloc-oversized: new module
17651         * modules/xalloc-oversized: New module.
17652         * modules/xalloc (Depends-on): Add it.
17653         * lib/xalloc.h (xalloc_oversized): Move...
17654         * lib/xalloc-oversized.h: ...into new file.
17655
17656         utimecmp: drop dependency on xmalloc
17657         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17658         due to memory pressure.
17659         * modules/utimecmp (Depends-on): Drop xalloc.
17660
17661 2011-04-27  Eric Blake  <eblake@redhat.com>
17662
17663         getcwd: fix mingw bugs
17664         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17665         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17666         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17667
17668 2011-04-27  Bruno Haible  <bruno@clisp.org>
17669
17670         mkstemps: Ensure declaration on MacOS X 10.5.
17671         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17672         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17673         MacOS X.
17674
17675 2011-04-27  Bruno Haible  <bruno@clisp.org>
17676
17677         mkstemp: More documentation.
17678         * doc/posix-functions/mkstemp.texi: Document header file problem on
17679         MacOS X.
17680
17681 2011-04-27  Bruno Haible  <bruno@clisp.org>
17682
17683         mkstemp: Tweak configure message when cross-compiling.
17684         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17685         result as a guess.
17686
17687 2011-04-27  Bruno Haible  <bruno@clisp.org>
17688
17689         clean-temp: Clarify what it does.
17690         * lib/clean-temp.h: Add more comments.
17691         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17692         module.
17693         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17694         * doc/glibc-functions/mkstemps.texi: Likewise.
17695         * doc/glibc-functions/mkostemps.texi: Likewise.
17696
17697 2011-04-27  Eric Blake  <eblake@redhat.com>
17698
17699         fchdir: avoid extra chdir and fix test
17700         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17701         getcwd-lgpl.
17702         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17703         have to be canonical.
17704         (canonicalize_file_name): Drop unused macro.
17705         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17706
17707         filenamecat-lgpl: fix licence
17708         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17709         when it was first created.
17710
17711         linkat, renameat: add missing dependency
17712         * modules/linkat (Depends-on): Require getcwd-lgpl.
17713         * modules/renameat (Depends-on): Likewise.
17714
17715         tests: reduce dependencies
17716         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17717         * tests/test-renameat.c (main): Likewise.
17718         * modules/linkat-tests (Depends-on): Relax dependency.
17719         * modules/renameat-tests (Depends-on): Likewise.
17720         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17721         dependency explicit.
17722
17723         save-cwd: reduce default dependency
17724         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17725         * lib/save-cwd.c: Update comments.
17726         * NEWS: Document the semantic change.
17727
17728         getcwd: enhance tests
17729         * tests/test-getcwd-lgpl.c: New file, taken from...
17730         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17731         repeat long path stress tests from m4 probe.
17732         * modules/getcwd-lgpl-tests: New module.
17733         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17734         * m4/getcwd-abort-bug.m4: Update comment.
17735         * m4/getcwd-path-max.m4: Likewise.
17736
17737         getcwd-lgpl: new module
17738         * modules/getcwd-lgpl: New module.
17739         * lib/getcwd-lgpl.c: New file.
17740         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17741         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17742         * modules/getcwd (configure.ac): Set C witness.
17743         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17744
17745         getcwd: tweak comments
17746         * m4/getcwd-abort-bug.m4: Fix comments.
17747         * m4/getcwd-path-max.m4: Likewise.
17748         * m4/getcwd.m4: Likewise.
17749
17750 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17751         and Eric Blake  <eblake@redhat.com>
17752
17753         mkstemp: replace if system version uses wrong permissions
17754         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17755         read/write mode bits set in file created by mkstemp.
17756         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17757
17758 2011-04-27  Eric Blake  <eblake@redhat.com>
17759
17760         passfd: avoid compiler warning
17761         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17762         Reported by Laine Stump.
17763
17764 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17765
17766         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17767         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17768
17769 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17770         and Eric Blake  <eblake@redhat.com>
17771
17772         mkstemp: mention clean-temp module
17773         * lib/mkstemp.c: Add comment.
17774         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17775
17776 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17777
17778         inttypes: also provide default values for 32-bit tests
17779         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17780         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17781
17782 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17783
17784         strtoumax: remove dependency on strtoimax
17785         This is like the strtoull change of yesterday.
17786         * modules/strtoumax (Files): Add lib/strtoimax.c.
17787         (Depends-on): Remove strtoimax and add verify.
17788
17789         inttypes-incomplete: new module
17790         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17791         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17792         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17793         of gl_INTTYPES_H.
17794         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17795         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17796         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17797         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17798         * modules/strtoumax, modules/xstrtol (Depends-on):
17799         Depend on inttypes-incomplete, not inttypes.
17800         * modules/inttypes-incomplete: New module, containing the contents
17801         of the old modules/inttypes module, except that the Files: section
17802         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17803         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17804         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17805         (Depends-on): Depend only on inttypes-incomplete.
17806         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17807
17808         inttypes: omit now-redundant strtoimax and strtoumax work
17809         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17810         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17811
17812         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17813         This supports apps that need pointers to strtoimax and strtoumax,
17814         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17815         nonexistent functions.  See
17816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17817         et seq.
17818         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17819         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17820         a macro.
17821         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17822
17823 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17824
17825         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17826
17827 2011-04-25  Bruno Haible  <bruno@clisp.org>
17828
17829         strtol, strtoul: Mark modules as obsolete.
17830         * modules/strtol (Status, Notice): New sections.
17831         * modules/strtoul (Status, Notice): New sections.
17832
17833 2011-04-25  Bruno Haible  <bruno@clisp.org>
17834
17835         strtod: Remove check for strtod, unless supporting old platforms.
17836         * modules/strtod-obsolete: New file.
17837         * m4/strtod-obsolete.m4: New file.
17838         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17839         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17840         * modules/strtod (Depends-on): Add strtod-obsolete.
17841         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17842
17843 2011-04-25  Bruno Haible  <bruno@clisp.org>
17844
17845         strcase: Make module obsolete.
17846         * modules/strcase (Status, Notice): New sections.
17847
17848 2011-04-25  Bruno Haible  <bruno@clisp.org>
17849
17850         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17851         * modules/dup2-obsolete: New file.
17852         * m4/dup2-obsolete.m4: New file.
17853         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17854         gl_FUNC_DUP2_OBSOLETE is not also defined.
17855         * modules/dup2 (Depends-on): Add dup2-obsolete.
17856         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17857
17858 2011-04-25  Bruno Haible  <bruno@clisp.org>
17859
17860         strnlen: Avoid memchr related link error on old obsolete platforms.
17861         * modules/memchr-obsolete: New file.
17862         * m4/memchr-obsolete.m4: New file.
17863         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17864         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17865         * modules/memchr (Depends-on): Add memchr-obsolete.
17866         * modules/strnlen (Depends-on): Likewise.
17867         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17868
17869 2011-04-25  Jim Meyering  <meyering@redhat.com>
17870
17871         maint.mk: makefile_at_at_check extend and clean up
17872         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17873         in addition to */Makefile.am.
17874         Exempt legitimate uses of @VAR@ notation, e.g.,
17875         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17876         Remove obsolete coreutils-specific comment.
17877         Prompted by discussion here:
17878         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17879
17880 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17881
17882         strtoul: remove dependency on strtol
17883         This is so that 'configure' need not check for strtol merely because
17884         the application needs strtoul.
17885         * modules/strtoul (Files): Add lib/strtol.c.
17886         (Depends-on): Remove strtol.
17887
17888         strtoull: remove dependency on strtoul
17889         This is like the strtoll change.
17890         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17891         (Depends-on): Remove strtoul.
17892
17893         strtoll: remove dependency on strtol
17894         This is so that 'configure' need not check for strtol merely because
17895         the application needs strtoll.
17896         * modules/strtoll (Files): Add lib/strtol.c.
17897         (Depends-on): Remove strtol.
17898
17899 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17900
17901         inttypes: Move some configure check to module 'imaxdiv'.
17902         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17903         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17904         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17905
17906 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17907
17908         inttypes: Move some configure check to module 'imaxabs'.
17909         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17910         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17911         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17912
17913 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17914
17915         inttypes: Remove configure tests that are not needed since 2009-12-31.
17916         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17917         gl_cv_header_working_inttypes_h.
17918
17919 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17920
17921         * modules/strnlen (Depends-on): Remove memchr.
17922         The strnlen implementation doesn't need the memchr module's fixes; see
17923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17924
17925         strtol: remove dependency on wchar
17926         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17927         * modules/strtol (Depends-on): Remove wchar.
17928
17929 2011-04-21  Eric Blake  <eblake@redhat.com>
17930
17931         passfd: fix test regression on Linux
17932         * modules/passfd-tests (configure.ac): Correct socketpair check.
17933
17934         passfd: speed up configure and drop unused code
17935         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17936         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17937         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17938         Instead of probing at configure for unix_scm_rights_bsd44_way,
17939         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17940         check to a struct member probe.
17941         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17942         (sendfd, recvfd): Update preprocessor checks.
17943         * modules/passfd (Files): Reflect rename, and drop unused file.
17944         (Depends-on): Drop unused dependency.
17945
17946         passfd: allow compilation on mingw
17947         * modules/sys_socket (Depends-on): Add sys_uio.
17948         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17949         iovec and a minimal struct msghdr.
17950         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17951         * tests/test-sys_socket.c (main): Enhance test.
17952         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17953         guaranteed to provide what we need.
17954         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17955         * modules/passfd-tests (Depends-on): Add sys_wait.
17956         * tests/test-passfd.c (main): Skip test on mingw, for now.
17957         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17958         partial 'struct msghdr' implementation.
17959
17960         sys_uio: new module
17961         * modules/sys_uio: New module.
17962         * modules/sys_uio-tests: Likewise.
17963         * lib/sys_uio.in.h: New file.
17964         * m4/sys_uio_h.m4: Likewise.
17965         * tests/test-sys_uio.c: Likewise.
17966         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17967         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17968
17969 2011-04-20  Jim Meyering  <meyering@redhat.com>
17970
17971         useless-if-before-free: avoid false-positive
17972         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17973         disjunct so that it too requires a terminating ";".  Without that,
17974         this script would identify as useless one statement from gcc that
17975         was not:
17976           if (aligned_ptr)
17977             free (((void **) aligned_ptr) [-1]);
17978
17979 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17980
17981         doc: update users.txt.
17982         * users.txt: Add barcode.
17983
17984 2011-04-19  Bruno Haible  <bruno@clisp.org>
17985
17986         ioctl: Remove link dependency on native Windows.
17987         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17988         (gl_close_fn, gl_ioctl_fn): New types.
17989         (struct fd_hook): Renamed from struct close_hook. Change type of
17990         private_close_fn field. Add private_ioctl_fn field.
17991         (close_hook_fn): Add parameter for primary close method.
17992         (execute_close_hooks, execute_all_close_hooks): Likewise.
17993         (ioctl_hook_fn): New type.
17994         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17995         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17996         argument.
17997         (unregister_fd_hook): Renamed from unregister_close_hook.
17998         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17999         Don't include <unistd.h>.
18000         (close): Remove undef.
18001         (anchor): Update.
18002         (execute_close_hooks): Add argument for primary close method.
18003         (execute_all_close_hooks): Likewise.
18004         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18005         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18006         argument. Allow each argument to be NULL.
18007         (unregister_fd_hook): Renamed from unregister_close_hook.
18008         * lib/close.c (rpl_close): Pass 'close' function pointer to
18009         execute_all_close_hooks.
18010         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18011         (primary_ioctl): New function.
18012         (ioctl): Don't call ioctlsocket here. Instead, call
18013         execute_all_ioctl_hooks.
18014         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18015         close method.
18016         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18017         (fd_sockets_hook): Renamed from close_sockets_hook.
18018         (gl_sockets_startup, gl_sockets_cleanup): Update.
18019         * modules/fd-hook: Renamed from modules/close-hook. Update.
18020         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18021         * modules/sockets (Depends-on): Likewise.
18022         * modules/ioctl (Depends-on): Add fd-hook.
18023         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18024         GNULIB_SOCKET.
18025
18026 2011-04-19  Bruno Haible  <bruno@clisp.org>
18027
18028         Move the support of O_NONBLOCK in open() to the 'open' module.
18029         * modules/nonblocking (Depends-on): Remove 'open'.
18030         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18031         gl_cv_have_open_O_NONBLOCK.
18032         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18033         O_NONBLOCK support.
18034         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18035
18036 2011-04-17  Bruno Haible  <bruno@clisp.org>
18037
18038         pipe2: Simplify code.
18039         * lib/pipe2.c (pipe2): Reduce code duplication.
18040
18041 2011-04-17  Bruno Haible  <bruno@clisp.org>
18042
18043         nonblocking: Add comment.
18044         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18045
18046 2011-04-17  Bruno Haible  <bruno@clisp.org>
18047
18048         nonblocking: Add tests for sockets.
18049         * tests/test-nonblocking-socket.sh: New file.
18050         * tests/test-nonblocking-socket-main.c: New file.
18051         * tests/test-nonblocking-socket-child.c: New file.
18052         * tests/test-nonblocking-socket.h: New file.
18053         * tests/socket-server.h: New file.
18054         * tests/socket-client.h: New file.
18055         * modules/nonblocking-socket-tests: New file.
18056         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18057
18058 2011-04-17  Bruno Haible  <bruno@clisp.org>
18059
18060         nonblocking: Add tests for pipes.
18061         * tests/test-nonblocking-pipe.sh: New file.
18062         * tests/test-nonblocking-pipe-main.c: New file.
18063         * tests/test-nonblocking-pipe-child.c: New file.
18064         * tests/test-nonblocking-pipe.h: New file.
18065         * tests/test-nonblocking-writer.h: New file.
18066         * tests/test-nonblocking-reader.h: New file.
18067         * tests/test-nonblocking-misc.h: New file.
18068         * modules/nonblocking-pipe-tests: New file.
18069         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18070
18071 2011-04-16  Bruno Haible  <bruno@clisp.org>
18072
18073         gettext: Clarify the needed programmer actions.
18074         * modules/gettext (Notice): New field.
18075         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18076
18077 2011-04-16  Bruno Haible  <bruno@clisp.org>
18078
18079         strchrnul: Tweak last commit.
18080         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18081         bug.
18082         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18083         as in _GL_FUNCDECL_SYS.
18084         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18085         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18086
18087 2011-04-15  Eric Blake  <eblake@redhat.com>
18088
18089         strchrnul: work around cygwin bug
18090         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18091         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18093         * modules/string (Makefile.am): Substitute it.
18094         * lib/string.in.h (strchrnul): Use it.
18095
18096 2011-04-15  Bruno Haible  <bruno@clisp.org>
18097
18098         Don't require lib/stdio-write.c when only module 'stdio' is used.
18099         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18100         invocation.
18101         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18102
18103 2011-04-14  Bruno Haible  <bruno@clisp.org>
18104
18105         Support non-blocking pipe I/O in read() on native Windows.
18106         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18107         (read): New declaration.
18108         * lib/read.c: New file.
18109         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18110         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18111         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18112         vscanf): New declarations.
18113         * lib/stdio-read.c: New file.
18114         * m4/read.m4: New file.
18115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18116         REPLACE_READ.
18117         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18118         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18119         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18120         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18121         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18122         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18123         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18124         * modules/read: New file.
18125         * modules/nonblocking (Files): Add lib/stdio-read.c.
18126         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18127         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18128         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18129         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18130         * modules/pread (Depends-on): Add read.
18131         * modules/safe-read (Depends-on): Likewise.
18132         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18133         gets, scanf, vfscanf, vscanf): Verify signatures.
18134         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18135         problem with non-blocking pipes.
18136         * doc/posix-functions/fgetc.texi: Likewise.
18137         * doc/posix-functions/fgets.texi: Likewise.
18138         * doc/posix-functions/fread.texi: Likewise.
18139         * doc/posix-functions/fscanf.texi: Likewise.
18140         * doc/posix-functions/getc.texi: Likewise.
18141         * doc/posix-functions/getchar.texi: Likewise.
18142         * doc/posix-functions/gets.texi: Likewise.
18143         * doc/posix-functions/scanf.texi: Likewise.
18144         * doc/posix-functions/vfscanf.texi: Likewise.
18145         * doc/posix-functions/vscanf.texi: Likewise.
18146
18147 2011-04-14  Bruno Haible  <bruno@clisp.org>
18148
18149         Support non-blocking pipe I/O in write() on native Windows.
18150         * lib/write.c (rpl_write): Split a write request that failed merely
18151         because the byte count was larger than the pipe buffer's size.
18152         * doc/posix-functions/write.texi: Mention the problem with large byte
18153         counts.
18154
18155 2011-04-14  Bruno Haible  <bruno@clisp.org>
18156
18157         wchar: Ensure that wchar_t gets defined on uClibc.
18158         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18159         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18160
18161 2011-04-13  Bruno Haible  <bruno@clisp.org>
18162
18163         safe-write, full-read: Avoid unnecessary compilation units.
18164         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18165         (Depends-on): Remove safe-read. Add ssize_t.
18166         * modules/full-read (Files): Add lib/full-write.c.
18167         (Depends-on): Add full-write.
18168
18169 2011-04-13  Bruno Haible  <bruno@clisp.org>
18170
18171         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18172         * modules/pwrite (Depends-on): Add 'write'.
18173
18174 2011-04-13  Bruno Haible  <bruno@clisp.org>
18175
18176         Support non-blocking pipe I/O in write() on native Windows.
18177         * lib/unistd.in.h (write): Enable replacement also if
18178         GNULIB_UNISTD_H_NONBLOCKING is 1.
18179         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18180         (rpl_write): When failing to write on a non-blocking pipe, change
18181         errno from ENOSPC to EAGAIN.
18182         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18183         putchar, puts, vfprintf, vprintf): Enable replacement also if
18184         GNULIB_STDIO_H_NONBLOCKING is 1.
18185         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18186         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18187         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18188         CALL_WITH_SIGPIPE_EMULATION.
18189         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18190         * m4/nonblocking.m4: New file.
18191         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18192         for non-blocking I/O support.
18193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18194         GNULIB_UNISTD_H_NONBLOCKING.
18195         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18196         required for non-blocking I/O support.
18197         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18198         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18199         lib/stdio-write.c, m4/asm-underscore.m4.
18200         (Depends-on): Add stdio, unistd.
18201         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18202         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18203         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18204         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18205         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18206         problem with non-blocking pipes.
18207         * doc/posix-functions/fputc.texi: Likewise.
18208         * doc/posix-functions/fputs.texi: Likewise.
18209         * doc/posix-functions/fwrite.texi: Likewise.
18210         * doc/posix-functions/printf.texi: Likewise.
18211         * doc/posix-functions/putc.texi: Likewise.
18212         * doc/posix-functions/putchar.texi: Likewise.
18213         * doc/posix-functions/puts.texi: Likewise.
18214         * doc/posix-functions/vfprintf.texi: Likewise.
18215         * doc/posix-functions/vprintf.texi: Likewise.
18216         * doc/posix-functions/write.texi: Likewise.
18217
18218 2011-04-10  Jim Meyering  <meyering@redhat.com>
18219
18220         maint.mk: prohibit doubled words
18221         Detect them also when they're separated by a newline.
18222         There are 3 ways to customize it:
18223           - disable the test on a per file basis, as usual with rules using
18224             $(VC_LIST_EXCEPT)
18225           - replace the default doubled-word-selecting regexp (affects all files)
18226           - ignore a particular file-vs-doubled-word match
18227         I nearly used that last one to ignore the "is is" match in
18228         coreutils' NEWS file, since the text was "ls -is is ..."
18229         To do that, I would have added this line to cfg.mk:
18230           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18231         but it would have ignored any "is is" match in NEWS.
18232         Low probability, but still...
18233         Instead, I changed the text, slightly:
18234           -  ls -is is now consistent with ls -lis in ignoring values returned
18235           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18236         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18237         (prohibit_doubled_word_): Define.
18238         (sc_prohibit_doubled_word): New rule.
18239         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18240
18241 2011-04-10  Jim Meyering  <meyering@redhat.com>
18242
18243         maint: fix doubled-word typo in comment
18244         * m4/gethostname.m4: s/is is/it is/
18245         * m4/getdomainname.m4: Likewise.
18246
18247 2011-04-10  Jim Meyering  <meyering@redhat.com>
18248
18249         maint: remove doubled word: s/it it/it/
18250         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18251
18252 2011-04-10  Jim Meyering  <meyering@redhat.com>
18253
18254         maint.mk: remove useless semicolon and backslash
18255         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18256         semicolon and backslash.
18257
18258 2011-04-10  Bruno Haible  <bruno@clisp.org>
18259
18260         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18261         * modules/stdint-tests (Depends-on): Add wchar.
18262
18263 2011-04-10  Jim Meyering  <meyering@redhat.com>
18264
18265         maint: remove doubled words in comments, e.g., s/a a/a/
18266         * lib/strptime.c (day_of_the_week): s/the the/the/
18267         * tests/test-chown.h (test_chown): s/a a/a/
18268
18269         test-chown.h: correct a cast
18270         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18271         when the destination is a stat.st_gid.
18272
18273 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18274
18275         getaddrinfo: Fix test for sa_len member.
18276         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18277         include <sys/types.h> before <sys/socket.h>.
18278
18279 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18280
18281         maint: change "can not" to "cannot"
18282         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18283         boundaries.
18284
18285 2011-04-09  Jim Meyering  <meyering@redhat.com>
18286
18287         maint: change "a a" to "a"
18288         * tests/test-lchown.h (test_lchown): s/a a/a/
18289
18290         maint.mk: prohibit \<the the\>
18291         * top/maint.mk (sc_prohibit_the_the): New rule.
18292
18293         maint: fix "the the" in comment
18294         * lib/count-one-bits.h: s/the the/the/
18295
18296         maint: change "can not" to "cannot"
18297         But do not change the occurrences in maintain.texi or in
18298         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18299         * doc/gnulib-tool.texi: s/can not/cannot/
18300         * doc/posix-functions/accept.texi (accept): Likewise.
18301         * doc/posix-functions/socket.texi (socket): Likewise.
18302         * lib/mbrtowc.c: Likewise.
18303
18304         maint.mk: prohibit use of "can not"
18305         * top/maint.mk (sc_prohibit_can_not): New rule.
18306         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18307
18308 2011-04-09  Bruno Haible  <bruno@clisp.org>
18309
18310         careadlinkat: Guard against misuse of careadlinkatcwd.
18311         * lib/careadlinkat.c: Include <stdlib.h>.
18312         (careadlinkatcwd): Check that the fd argument is as expected.
18313
18314 2011-04-09  Bruno Haible  <bruno@clisp.org>
18315
18316         careadlinkat: Use common coding style.
18317         * lib/careadlinkat.c: Move gnulib includes after system includes.
18318
18319 2011-04-09  Bruno Haible  <bruno@clisp.org>
18320
18321         careadlinkat: Clarify specification.
18322         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18323         (careadlinkatcwd): Add comment.
18324         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18325
18326 2011-04-09  Bruno Haible  <bruno@clisp.org>
18327
18328         areadlinkat: Avoid link error on many platforms.
18329         * modules/areadlinkat (Depends-on): Add areadlink.
18330
18331 2011-04-09  Bruno Haible  <bruno@clisp.org>
18332
18333         allocator, careadlinkat: Fix double-inclusion guard.
18334         * lib/allocator.h: Fix double-inclusion guard.
18335         * lib/careadlinkat.h: Likewise.
18336
18337 2011-04-09  Bruno Haible  <bruno@clisp.org>
18338
18339         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18340         * lib/relocwrapper.c: Update dependencies hierarchy.
18341         * build-aux/install-reloc: Update list of files to be compiled.
18342         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18343         lib/allocator.[hc].
18344
18345 2011-04-08  Eric Blake  <eblake@redhat.com>
18346
18347         strftime: silence gnulib-tool warning
18348         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18349
18350 2011-04-08  Bruno Haible  <bruno@clisp.org>
18351
18352         verify: Fix syntax error with GCC 4.6 in C++ mode.
18353         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18354         (HAVE_STATIC_ASSERT): New macro.
18355         (verify_true, verify): Use 'static_assert' if it is supported and
18356         '_Static_assert' is not supported.
18357
18358 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18359
18360         allocator: New module.
18361         * modules/allocator, lib/allocator.c: New files.
18362         * lib/allocator.h (stdlib_allocator): New decl.
18363         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18364         Remove.  Do not include <stdlib.h>.
18365         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18366         * modules/careadlinkat (Files): Remove lib/allocator.h.
18367         (Depends-on): Add allocator.
18368
18369         stdlib: let modules use system malloc, realloc
18370         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18371         if !_GL_USE_STDLIB_ALLOC.
18372         (malloc, realloc): Limit this change to a smaller scope.
18373
18374         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18375         (malloc, realloc): Don't #undef; no longer needed.
18376         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18377         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18378         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18379         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18380         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18381         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18382         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18383         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18384
18385         careadlinkat: rename members to avoid problem
18386         * lib/allocator.h (struct allocator): Rename members from
18387         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18388         and realloc are #define'd.  Reported by Eric Blake in
18389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18390         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18391
18392 2011-04-08  Eric Blake  <eblake@redhat.com>
18393
18394         nonblocking: reduce dependency
18395         * tests/test-nonblocking.c: Only test sockets when in use.
18396         * modules/nonblocking-tests (Depends-on): Drop socket.
18397         (Makefile.am): Link even if sockets are not present.
18398         * modules/pipe2-tests (Makefile.am): Likewise.
18399         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18400
18401         pipe2: fix O_NONBLOCK support on mingw
18402         * modules/pipe2 (Depends-on): Add nonblocking.
18403         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18404         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18405         * tests/test-nonblocking.c (main): Likewise.
18406         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18407
18408         fcntl-h: fix O_ACCMODE on cygwin
18409         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18410         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18411
18412         pipe-filter: drop O_NONBLOCK workarounds
18413         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18414         * modules/pipe-filter-ii (Depends-on): Likewise.
18415         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18416
18417         nonblocking: provide O_NONBLOCK for mingw
18418         * modules/nonblocking (Depends-on): Add open.
18419         (configure.ac): Set new witness macro.
18420         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18421         * modules/fcntl-h (Makefile.am): Substitute it.
18422         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18423         nonblocking module is in use.
18424         * lib/nonblocking.c: Adjust portability test.
18425         * lib/open.c (open): Don't let native open see gnulib flag.
18426         * tests/test-fcntl-h.c (main): Enhance test.
18427         * tests/test-open.h (test_open): Likewise.
18428         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18429
18430         careadlinkat: fix compilation error on mingw
18431         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18432         within struct allocator.
18433
18434 2011-04-06  Eric Blake  <eblake@redhat.com>
18435
18436         binary-io: relicense under LGPLv2+
18437         * modules/binary-io (License): Relax to LGPLv2+.
18438         Requested for libvirt, and required by pipe2.
18439
18440 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18441
18442         verify: use _Static_assert if available
18443         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18444         (verify_true, verify): Use it if available.  This generates better
18445         diagnostics with GCC 4.6.0 and later.
18446
18447 2011-04-05  Bruno Haible  <bruno@clisp.org>
18448
18449         Remove leftover generated .h files after config.status changed.
18450
18451         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18452         GL_GENERATE_ALLOCA_H.
18453         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18454         GL_GENERATE_ALLOCA_H evaluates to false.
18455
18456         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18457         GL_GENERATE_ARGZ_H.
18458         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18459         evaluates to false.
18460
18461         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18462         GL_GENERATE_BYTESWAP_H.
18463         * modules/byteswap (Makefile.am): Remove byteswap.h if
18464         GL_GENERATE_BYTESWAP_H evaluates to false.
18465
18466         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18467         GL_GENERATE_ERRNO_H.
18468         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18469         evaluates to false.
18470
18471         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18472         GL_GENERATE_FLOAT_H.
18473         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18474         evaluates to false.
18475
18476         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18477         GL_GENERATE_FNMATCH_H.
18478         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18479         GL_GENERATE_FNMATCH_H evaluates to false.
18480
18481         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18482         GL_GENERATE_GLOB_H.
18483         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18484         evaluates to false.
18485
18486         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18487         automake conditional GL_GENERATE_ICONV_H.
18488         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18489         evaluates to false.
18490
18491         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18492         GL_GENERATE_NETINET_IN_H.
18493         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18494         GL_GENERATE_NETINET_IN_H evaluates to false.
18495
18496         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18497         conditional GL_GENERATE_PTHREAD_H.
18498         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18499         * modules/pthread (Makefile.am): Remove pthread.h if
18500         GL_GENERATE_PTHREAD_H evaluates to false.
18501
18502         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18503         GL_GENERATE_SCHED_H.
18504         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18505         evaluates to false.
18506
18507         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18508         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18509         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18510         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18511
18512         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18513         GL_GENERATE_STDARG_H.
18514         * modules/stdarg (Makefile.am): Remove stdarg.h if
18515         GL_GENERATE_STDARG_H evaluates to false.
18516
18517         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18518         GL_GENERATE_STDBOOL_H.
18519         * modules/stdbool (Makefile.am): Remove stdbool.h if
18520         GL_GENERATE_STDBOOL_H evaluates to false.
18521
18522         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18523         conditional GL_GENERATE_STDDEF_H.
18524         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18525         * modules/stddef (Makefile.am): Remove stddef.h if
18526         GL_GENERATE_STDDEF_H evaluates to false.
18527
18528         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18529         GL_GENERATE_STDINT_H.
18530         * modules/stdint (Makefile.am): Remove stdint.h if
18531         GL_GENERATE_STDINT_H evaluates to false.
18532
18533         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18534         GL_GENERATE_SYSEXITS_H.
18535         * modules/sysexits (Makefile.am): Remove sysexits.h if
18536         GL_GENERATE_SYSEXITS_H evaluates to false.
18537
18538         Reported by Karl Berry and Ralf Wildenhues.
18539
18540 2011-04-05  Bruno Haible  <bruno@clisp.org>
18541
18542         Ensure to rebuild generated .h files when config.status has changed.
18543         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18544         config.status.
18545         * modules/ctype (Makefile.am): Likewise.
18546         * modules/dirent (Makefile.am): Likewise.
18547         * modules/errno (Makefile.am): Likewise.
18548         * modules/fcntl-h (Makefile.am): Likewise.
18549         * modules/float (Makefile.am): Likewise.
18550         * modules/getopt-posix (Makefile.am): Likewise.
18551         * modules/glob (Makefile.am): Likewise.
18552         * modules/iconv-h (Makefile.am): Likewise.
18553         * modules/inttypes (Makefile.am): Likewise.
18554         * modules/langinfo (Makefile.am): Likewise.
18555         * modules/locale (Makefile.am): Likewise.
18556         * modules/math (Makefile.am): Likewise.
18557         * modules/netdb (Makefile.am): Likewise.
18558         * modules/netinet_in (Makefile.am): Likewise.
18559         * modules/poll-h (Makefile.am): Likewise.
18560         * modules/pthread (Makefile.am): Likewise.
18561         * modules/pty (Makefile.am): Likewise.
18562         * modules/sched (Makefile.am): Likewise.
18563         * modules/search (Makefile.am): Likewise.
18564         * modules/selinux-h (Makefile.am): Likewise.
18565         * modules/signal (Makefile.am): Likewise.
18566         * modules/spawn (Makefile.am): Likewise.
18567         * modules/stdarg (Makefile.am): Likewise.
18568         * modules/stdbool (Makefile.am): Likewise.
18569         * modules/stddef (Makefile.am): Likewise.
18570         * modules/stdint (Makefile.am): Likewise.
18571         * modules/stdio (Makefile.am): Likewise.
18572         * modules/stdlib (Makefile.am): Likewise.
18573         * modules/string (Makefile.am): Likewise.
18574         * modules/strings (Makefile.am): Likewise.
18575         * modules/sys_file (Makefile.am): Likewise.
18576         * modules/sys_ioctl (Makefile.am): Likewise.
18577         * modules/sys_select (Makefile.am): Likewise.
18578         * modules/sys_socket (Makefile.am): Likewise.
18579         * modules/sys_stat (Makefile.am): Likewise.
18580         * modules/sys_time (Makefile.am): Likewise.
18581         * modules/sys_times (Makefile.am): Likewise.
18582         * modules/sys_utsname (Makefile.am): Likewise.
18583         * modules/sys_wait (Makefile.am): Likewise.
18584         * modules/sysexits (Makefile.am): Likewise.
18585         * modules/termios (Makefile.am): Likewise.
18586         * modules/time (Makefile.am): Likewise.
18587         * modules/unistd (Makefile.am): Likewise.
18588         * modules/wchar (Makefile.am): Likewise.
18589         * modules/wctype-h (Makefile.am): Likewise.
18590         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18591
18592 2011-04-05  Bruno Haible  <bruno@clisp.org>
18593
18594         pipe2: Relicense under LGPLv2+.
18595         * modules/pipe2 (License): Change to LGPLv2+.
18596         Requested by Eric Blake, for libvirt.
18597
18598 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18599
18600         bootstrap: compute gnulib_extra_files after updating build_aux
18601         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18602         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18603
18604 2011-04-05  Eric Blake  <eblake@redhat.com>
18605
18606         bootstrap: preserve git whitelist item sorting
18607         * build-aux/bootstrap (sort_patterns): New function.
18608         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18609
18610 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18611
18612         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18613         sc_space_tab check.
18614
18615 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18616
18617         areadlink, areadlinkat: rewrite in terms of careadlinkat
18618         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18619         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18620         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18621         (malloc, realloc): Remove #undefs.
18622         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18623         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18624         readlink, ssize_t, stdint, unistd.
18625         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18626         areadlink, stdint.
18627
18628         careadlinkat: new module
18629         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18630         * modules/careadlinkat: New files, written by me with
18631         a review and feedback from Ben Pfaff in
18632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18633
18634 2011-04-01  Bruno Haible  <bruno@clisp.org>
18635
18636         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18637         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18638         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18639         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18640         Reported by Bruce Korb <bruce.korb@gmail.com>.
18641
18642 2011-04-01  Bruno Haible  <bruno@clisp.org>
18643
18644         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18645         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18646         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18647         * modules/wcpcpy (Depends-on): Add extensions.
18648         * modules/wcpncpy (Depends-on): Likewise.
18649         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18650         systems.
18651         * doc/posix-functions/wcpncpy.texi: Likewise.
18652         * doc/posix-functions/wcwidth.texi: Likewise.
18653
18654 2011-03-31  Eric Blake  <eblake@redhat.com>
18655
18656         nonblocking: fix mingw test failures
18657         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18658         non-blocking flag on regular file.
18659         (get_nonblocking_flag): Set errno on invalid fd.
18660         * tests/test-nonblocking.c (main): Avoid test failure on
18661         directories if fchdir is not active.
18662         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18663
18664 2011-03-31  Bruno Haible  <bruno@clisp.org>
18665
18666         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18667         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18668         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18669         Reported by Simon Josefsson <simon@josefsson.org>.
18670
18671 2011-03-31  Bruno Haible  <bruno@clisp.org>
18672         and Eric Blake  <eblake@redhat.com>
18673
18674         nonblocking: new module
18675         * modules/nonblocking: New module.
18676         * modules/nonblocking-tests: Likewise.
18677         * lib/nonblocking.h: New file.
18678         * lib/nonblocking.c: Likewise.
18679         * tests/test-nonblocking.c: New test.
18680         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18681
18682 2011-03-30  Bruno Haible  <bruno@clisp.org>
18683
18684         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18685         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18686         instead of 'printf' format for GCC >= 4.4.
18687         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18688         (fprintf, printf, vfprintf, vprintf): Declare with
18689         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18690         the system's vfprintf() function.
18691         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18692
18693 2011-03-30  Eric Blake  <eblake@redhat.com>
18694
18695         passfd: fix scoping bug
18696         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18697         before sendmsg/recvmsg.
18698
18699         passfd: standardize coding conventions
18700         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18701         can be learned at compile time.
18702         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18703         ifdefs.
18704         (sendfd, recvfd): Follow gnulib code conventions.
18705
18706         passfd: fix incorrect sendmsg arguments
18707         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18708         incorrect msg_controllen value.
18709         * modules/passfd-tests (Depends-on): Check for alarm.
18710         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18711         Reported by Bastien ROUCARIES.
18712
18713 2011-03-30  Bruno Haible  <bruno@clisp.org>
18714
18715         c-strcasestr: Relicense under LGPLv2+.
18716         * modules/c-strcasestr (License): Change to LGPLv2+.
18717         Requested by Eric Blake, for libvirt.
18718
18719 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18720
18721         * users.txt: Add libidn2.  Fix libtasn1 link.
18722
18723 2011-03-30  Jim Meyering  <meyering@redhat.com>
18724
18725         tests: readlink* ("",... fails with EINVAL on newer kernels
18726         readlink and readlinkat have typically failed with ENOENT for
18727         the invalid, empty file name,  "".  However, with the advent
18728         of linux-2.6.39, they fail with EINVAL.
18729         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18730         when operating on the empty file name.
18731         * tests/test-readlink.h (test_readlink): Likewise.
18732
18733 2011-03-29  Bruno Haible  <bruno@clisp.org>
18734
18735         Relicense some modules under LGPLv2+, for libidn2.
18736         * modules/array-mergesort (License): Change to LGPLv2+.
18737         * modules/c-strcaseeq (License): Likewise.
18738         * modules/striconveh (License): Likewise.
18739         * modules/striconveha (License): Likewise.
18740         * modules/uniconv/base (License): Likewise.
18741         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18742         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18743         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18744         * modules/unictype/base (License): Likewise.
18745         * modules/unictype/bidiclass-of (License): Likewise.
18746         * modules/unictype/category-M (License): Likewise.
18747         * modules/unictype/category-none (License): Likewise.
18748         * modules/unictype/category-of (License): Likewise.
18749         * modules/unictype/category-test (License): Likewise.
18750         * modules/unictype/category-test-withtable (License): Likewise.
18751         * modules/unictype/combining-class (License): Likewise.
18752         * modules/unictype/joiningtype-of (License): Likewise.
18753         * modules/unictype/scripts (License): Likewise.
18754         * modules/uninorm/base (License): Likewise.
18755         * modules/uninorm/canonical-decomposition (License): Likewise.
18756         * modules/uninorm/composition (License): Likewise.
18757         * modules/uninorm/decompose-internal (License): Likewise.
18758         * modules/uninorm/decomposition-table (License): Likewise.
18759         * modules/uninorm/nfc (License): Likewise.
18760         * modules/uninorm/nfd (License): Likewise.
18761         * modules/uninorm/u32-normalize (License): Likewise.
18762         * modules/unistr/base (License): Likewise.
18763         * modules/unistr/u32-cpy (License): Likewise.
18764         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18765         * modules/unistr/u32-to-u8 (License): Likewise.
18766         * modules/unistr/u32-uctomb (License): Likewise.
18767         * modules/unistr/u8-check (License): Likewise.
18768         * modules/unistr/u8-mblen (License): Likewise.
18769         * modules/unistr/u8-mbtouc (License): Likewise.
18770         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18771         * modules/unistr/u8-mbtoucr (License): Likewise.
18772         * modules/unistr/u8-prev (License): Likewise.
18773         * modules/unistr/u8-strlen (License): Likewise.
18774         * modules/unistr/u8-to-u32 (License): Likewise.
18775         * modules/unistr/u8-uctomb (License): Likewise.
18776         * modules/unitypes (License): Likewise.
18777         Requested by Simon Josefsson.
18778
18779 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18780
18781         lib-symbol-visibility: Add a notice.
18782         * modules/lib-symbol-visibility (Notice): New field.
18783
18784 2011-03-29  Bruno Haible  <bruno@clisp.org>
18785
18786         getaddrinfo: Doc fix.
18787         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18788         section "fixed in Gnulib".
18789
18790 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18791
18792         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18793         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18794
18795 2011-03-26  Bruno Haible  <bruno@clisp.org>
18796
18797         unictype/property-byname: Reduce the number of load-time relocations.
18798         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18799         (UC_PROPERTY_INDEX_*): New enumeration values.
18800         (uc_property_byname): Convert an index from the lookup table to an
18801         uc_property_t.
18802         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18803         values.
18804
18805 2011-03-26  Bruno Haible  <bruno@clisp.org>
18806
18807         unictype/property-byname: Allow omitted word separators and aliases.
18808         * lib/unictype/pr_byname.gperf: Add property names without word
18809         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18810         for 'space'.
18811
18812 2011-03-26  Bruno Haible  <bruno@clisp.org>
18813
18814         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18815         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18816         also hyphens to space.
18817         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18818         without spaces.
18819         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18820
18821 2011-03-26  Bruno Haible  <bruno@clisp.org>
18822
18823         unictype/joiningtype-byname: Recognize long names as well.
18824         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18825         a long name.
18826         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18827         unictype/joiningtype_byname.h.
18828         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18829         * lib/unictype/joiningtype_byname.gperf: New file.
18830         * modules/unictype/joiningtype-byname (Files): Add
18831         lib/unictype/joiningtype_byname.gperf.
18832         (Depends-on): Add gperf.
18833         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18834         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18835         long names.
18836
18837         Tests for module 'unictype/joiningtype-longname'.
18838         * modules/unictype/joiningtype-longname-tests: New file.
18839         * tests/unictype/test-joiningtype_longname.c: New file.
18840
18841         New module 'unictype/joiningtype-longname'.
18842         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18843         * lib/unictype/joiningtype_longname.c: New file.
18844         * modules/unictype/joiningtype-longname: New file.
18845         * modules/unictype/joiningtype-all (Depends-on): Add
18846         unictype/joiningtype-longname.
18847
18848 2011-03-26  Bruno Haible  <bruno@clisp.org>
18849
18850         unictype/bidiclass-byname: Recognize long names as well.
18851         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18852         name.
18853         * lib/unictype/bidi_byname.c: Include <string.h>,
18854         unictype/bidi_byname.h.
18855         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18856         * lib/unictype/bidi_byname.gperf: New file.
18857         * modules/unictype/bidiclass-byname (Files): Add
18858         lib/unictype/bidi_byname.gperf.
18859         (Depends-on): Add gperf.
18860         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18861         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18862         long names.
18863
18864         Tests for module 'unictype/bidiclass-longname'.
18865         * modules/unictype/bidiclass-longname-tests: New file.
18866         * tests/unictype/test-bidi_longname.c: New file.
18867
18868         New module 'unictype/bidiclass-longname'.
18869         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18870         * lib/unictype/bidi_longname.c: New file.
18871         * modules/unictype/bidiclass-longname: New file.
18872         * modules/unictype/bidiclass-all (Depends-on): Add
18873         unictype/bidiclass-longname.
18874
18875 2011-03-26  Bruno Haible  <bruno@clisp.org>
18876
18877         unictype/bidi*: Rename modules.
18878         * modules/unictype/bidiclass-all: Renamed from
18879         modules/unictype/bidicategory-all.
18880         * modules/unictype/bidiclass-name: Renamed from
18881         modules/unictype/bidiclass-name.
18882         (Description): Update.
18883         * modules/unictype/bidiclass-name-tests: Renamed from
18884         modules/unictype/bidicategory-name-tests.
18885         * modules/unictype/bidiclass-byname: Renamed from
18886         modules/unictype/bidicategory-byname.
18887         (Description): Update.
18888         * modules/unictype/bidiclass-byname-tests: Renamed from
18889         modules/unictype/bidicategory-byname-tests.
18890         * modules/unictype/bidiclass-of: Renamed from
18891         modules/unictype/bidicategory-of.
18892         (Description): Update.
18893         * modules/unictype/bidiclass-of-tests: Renamed from
18894         modules/unictype/bidicategory-of-tests.
18895         * modules/unictype/bidiclass-test: Renamed from
18896         modules/unictype/bidicategory-test.
18897         (Description): Update.
18898         * modules/unictype/bidiclass-test-tests: Renamed from
18899         modules/unictype/bidicategory-test-tests.
18900         * modules/unictype/bidicategory-all: New file, a simple redirection.
18901         * modules/unictype/bidicategory-name: Likewise.
18902         * modules/unictype/bidicategory-byname: Likewise.
18903         * modules/unictype/bidicategory-of: Likewise.
18904         * modules/unictype/bidicategory-test: Likewise.
18905         * modules/unictype/property-bidi-* (Dependencies): Update.
18906         * lib/unictype/bidi_*.c: Update comment.
18907
18908 2011-03-26  Bruno Haible  <bruno@clisp.org>
18909
18910         unictype/bidi*: Rename functions, part 2.
18911         * modules/unictype/bidicategory-name (configure.ac): Update required
18912         libunistring version.
18913         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18914
18915 2011-03-25  Bruno Haible  <bruno@clisp.org>
18916
18917         New module 'unictype/combining-class-all'.
18918         * modules/unictype/combining-class-all: New file.
18919
18920         Tests for module 'unictype/combining-class-byname'.
18921         * modules/unictype/combining-class-byname-tests: New file.
18922         * tests/unictype/test-combiningclass_byname.c: New file.
18923
18924         New module 'unictype/combining-class-byname'.
18925         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18926         * lib/unictype/combiningclass_byname.c: New file.
18927         * lib/unictype/combiningclass_byname.gperf: New file.
18928         * modules/unictype/combining-class-byname: New file.
18929
18930         Tests for module 'unictype/combining-class-longname'.
18931         * modules/unictype/combining-class-longname-tests: New file.
18932         * tests/unictype/test-combiningclass_longname.c: New file.
18933
18934         New module 'unictype/combining-class-longname'.
18935         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18936         * lib/unictype/combiningclass_longname.c: New file.
18937         * modules/unictype/combining-class-longname: New file.
18938
18939         Tests for module 'unictype/combining-class-name'.
18940         * modules/unictype/combining-class-name-tests: New file.
18941         * tests/unictype/test-combiningclass_name.c: New file.
18942
18943         New module 'unictype/combining-class-name'.
18944         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18945         * lib/unictype/combiningclass_name.c: New file.
18946         * modules/unictype/combining-class-name: New file.
18947
18948 2011-03-25  Bruno Haible  <bruno@clisp.org>
18949
18950         unictype/combining-class: Rename source files.
18951         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18952         of unictype/combining.h.
18953         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18954         Update.
18955         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18956         * modules/unictype/combining-class (Description): Fix.
18957         (Files, Makefile.am): Update.
18958         * tests/unictype/test-combiningclass.c: Renamed from
18959         tests/unictype/test-combining.c.
18960         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18961
18962 2011-03-25  Bruno Haible  <bruno@clisp.org>
18963
18964         unictype: Update list of canonical combining classes.
18965         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18966
18967 2011-03-25  Bruno Haible  <bruno@clisp.org>
18968
18969         unictype/category-byname: Recognize long names as well.
18970         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18971         a long name.
18972         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18973         unictype/categ_byname.h.
18974         (UC_CATEGORY_INDEX_*): New enumeration values.
18975         (uc_general_category_byname): Use uc_general_category_lookup and
18976         convert from index to value.
18977         * lib/unictype/categ_byname.gperf: New file.
18978         * modules/unictype/category-byname (Files): Add
18979         lib/unictype/categ_byname.gperf.
18980         (Depends-on): Add gperf.
18981         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18982         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18983         long names.
18984
18985         Tests for module 'unictype/category-longname'.
18986         * modules/unictype/category-longname-tests: New file.
18987         * tests/unictype/test-categ_longname.c: New file.
18988
18989         New module 'unictype/category-longname'.
18990         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18991         * lib/unictype/categ_longname.c: New file.
18992         * modules/unictype/category-longname: New file.
18993         * modules/unictype/category-all (Depends-on): Add it.
18994
18995 2011-03-25  Bruno Haible  <bruno@clisp.org>
18996
18997         Tests for module 'unictype/category-LC'.
18998         * modules/unictype/category-LC-tests: New file.
18999         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19000
19001         New module 'unictype/category-LC'.
19002         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19003         (UC_CATEGORY_LC): New declaration.
19004         (UC_CASED_LETTER): New macro.
19005         * lib/gen-uni-tables.c (is_category_LC): New function.
19006         (output_categories): Also handle category LC.
19007         (UC_CATEGORY_MASK_LC): New enumeration value.
19008         (general_category_byname): Also handle category LC.
19009         * lib/unictype/categ_LC.c: New file.
19010         * lib/unictype/categ_LC.h: New file, automatically generated.
19011         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19012         category LC.
19013         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19014         * modules/unictype/category-LC: New file.
19015         * modules/unictype/category-byname (Depends-on): Add
19016         unictype/category-LC.
19017         * modules/unictype/category-all (Depends-on): Likewise.
19018
19019 2011-03-25  Eric Blake  <eblake@redhat.com>
19020
19021         xmalloc: revert yesterday's regression
19022         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19023         realloc's underlying behavior (allowing allocation of zero-size
19024         objects, especially if malloc-gnu is also in use).
19025
19026 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19027
19028         maint.mk: add missing version to VC-tag
19029         * top/maint.mk: git tag was missing actual tag name; add it.
19030
19031         valgrind: do leak checking, and exit with code 1 on error (not 0)
19032         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19033         to VALGRIND.
19034
19035 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19036
19037         posix-modules: say what it does.
19038         * posix-modules: Add a line to the --help output saying what it does.
19039
19040 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19041
19042         xmalloc: Do not leak if underlying realloc is C99 compatible.
19043         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19044         This avoids a leak on C99-based systems.  See
19045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19046
19047 2011-03-24  Eric Blake  <eblake@redhat.com>
19048
19049         realloc: document portability problem
19050         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19051         passing 0 size to realloc.
19052
19053 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19054
19055         doc: update users.txt
19056         * users.txt: Add cvsps, tmpwatch
19057
19058 2011-03-23  Matt Rice  <ratmice@gmail.com>
19059
19060         doc: update users.txt
19061         * users.txt: Add gdb.
19062
19063 2011-03-23  Jim Meyering  <meyering@redhat.com>
19064
19065         doc: update users.txt
19066         Looking through matches up to the following URL (there are still
19067         several more pages), I found several projects that use gnulib:
19068         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19069         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19070         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19071
19072 2011-03-22  Bruno Haible  <bruno@clisp.org>
19073
19074         unictype/bidi*: Rename functions.
19075         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19076         uc_bidi_class, uc_is_bidi_class): New declarations.
19077         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19078         uc_bidi_category_byname.
19079         (uc_bidi_category_byname): New function.
19080         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19081         u_bidi_category_name.
19082         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19083         (uc_bidi_category_name): New function.
19084         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19085         uc_bidi_category.
19086         (uc_bidi_category): New function.
19087         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19088         uc_is_bidi_category. Invoke uc_bidi_class.
19089         (uc_is_bidi_category): New function.
19090         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19091         instead of uc_bidi_category_byname.
19092         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19093         instead of uc_bidi_category_name.
19094         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19095         uc_bidi_category.
19096         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19097         instead of uc_is_bidi_category.
19098
19099 2011-03-21  Bruno Haible  <bruno@clisp.org>
19100
19101         New module 'unictype/joininggroup-all'.
19102         * modules/unictype/joininggroup-all: New file.
19103
19104         Tests for module 'unictype/joininggroup-of'.
19105         * modules/unictype/joininggroup-of-tests: New file.
19106         * tests/unictype/test-joininggroup_of.c: New file.
19107         * tests/unictype/test-joininggroup_of.h: New file, automatically
19108         generated by gen-uni-tables.
19109
19110         New module 'unictype/joininggroup-of'.
19111         * modules/unictype/joininggroup-of: New file.
19112         * lib/unictype/joininggroup_of.c: New file.
19113         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19114         gen-uni-tables.
19115
19116         Tests for module 'unictype/joininggroup-byname'.
19117         * modules/unictype/joininggroup-byname-tests: New file.
19118         * tests/unictype/test-joininggroup_byname.c: New file.
19119
19120         New module 'unictype/joininggroup-byname'.
19121         * modules/unictype/joininggroup-byname: New file.
19122         * lib/unictype/joininggroup_byname.c: New file.
19123         * lib/unictype/joininggroup_byname.gperf: New file.
19124
19125         Tests for module 'unictype/joininggroup-name'.
19126         * modules/unictype/joininggroup-name-tests: New file.
19127         * tests/unictype/test-joininggroup_name.c: New file.
19128
19129         New module 'unictype/joininggroup-name'.
19130         * modules/unictype/joininggroup-name: New file.
19131         * lib/unictype/joininggroup_name.c: New file.
19132         * lib/unictype/joininggroup_name.h: New file.
19133
19134         New module 'unictype/joiningtype-all'.
19135         * modules/unictype/joiningtype-all: New file.
19136
19137         Tests for module 'unictype/joiningtype-of'.
19138         * modules/unictype/joiningtype-of-tests: New file.
19139         * tests/unictype/test-joiningtype_of.c: New file.
19140         * tests/unictype/test-joiningtype_of.h: New file, automatically
19141         generated by gen-uni-tables.
19142
19143         New module 'unictype/joiningtype-of'.
19144         * modules/unictype/joiningtype-of: New file.
19145         * lib/unictype/joiningtype_of.c: New file.
19146         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19147         gen-uni-tables.
19148
19149         Tests for module 'unictype/joiningtype-byname'.
19150         * modules/unictype/joiningtype-byname-tests: New file.
19151         * tests/unictype/test-joiningtype_byname.c: New file.
19152
19153         New module 'unictype/joiningtype-byname'.
19154         * modules/unictype/joiningtype-byname: New file.
19155         * lib/unictype/joiningtype_byname.c: New file.
19156
19157         Tests for module 'unictype/joiningtype-name'.
19158         * modules/unictype/joiningtype-name-tests: New file.
19159         * tests/unictype/test-joiningtype_name.c: New file.
19160
19161         New module 'unictype/joiningtype-name'.
19162         * modules/unictype/joiningtype-name: New file.
19163         * lib/unictype/joiningtype_name.c: New file.
19164
19165         unictype: Add support for Arabic shaping properties.
19166         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19167         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19168         declarations.
19169         (UC_JOINING_GROUP_*): New enumeration values.
19170         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19171         declarations.
19172         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19173         (unicode_joining_type): New variable.
19174         (UC_JOINING_GROUP_*): New enumeration values.
19175         (unicode_joining_group): New variable.
19176         (fill_arabicshaping, joining_type_as_c_identifier,
19177         output_joining_type_test, output_joining_type,
19178         joining_group_as_c_identifier, output_joining_group_test,
19179         output_joining_group): New functions.
19180         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19181         fill_arabicshaping and output_joining_type_test, output_joining_type,
19182         output_joining_group_test, output_joining_group.
19183         Reported by Simon Josefsson.
19184
19185 2011-03-21  Jim Meyering  <meyering@redhat.com>
19186
19187         strftime: fix a bug in yesterday's change
19188         * lib/strftime.c (add): Accommodate width's initial value of -1.
19189         Otherwise, nstrftime would copy uninitialized data into
19190         the result buffer.
19191
19192 2011-03-21  Jim Meyering  <meyering@redhat.com>
19193
19194         tests: add strftime-tests module
19195         * tests/test-strftime.c: New file.
19196         * modules/strftime-tests: New module.
19197
19198 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19199
19200         strftime: don't assume a byte count fits in 'int'
19201         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19202         found this problem by static analysis, using gcc -Wstrict-overflow
19203         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19204         on an integer overflow having undefined behavior, but it turns out
19205         that the argument is a size, which might not fit in 'int' anyway,
19206
19207 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19208
19209         stdio: don't require ignore_value around fwrite
19210
19211         This patch works around libc bug 11959
19212         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19213         Without this patch, applications must often write
19214         ignore_value (fwrite (...)) even though the ignore_value is
19215         not helpful here.  It's common to write many objects, using
19216         fwrite/printf/etc., and then use ferror to detect output error.
19217
19218         I considered making this patch optional, but decided against it,
19219         because libc is obviously being inconsistent here: there is no
19220         reason libc should insist that user code must inspect fwrite
19221         return's value without also insisting that it inspect printf's,
19222         putchar's, etc.  If user code wants to have a strict style where
19223         all these functions' values are checked (so that ferror need not
19224         be checked), we could add support for that style in a new gnulib
19225         module, but in the meantime it's better to be consistent and to
19226         support common usage.
19227
19228         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19229         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19230         that we are compiling in checking mode, and if not C++, and
19231         if not already wrapping fwrite for some other reason.
19232         (fwrite): #define to rpl_fwrite if the latter is defined.
19233
19234 2011-03-20  Bruno Haible  <bruno@clisp.org>
19235
19236         verror: Fix compilation error introduced on 2011-02-13.
19237         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19238         instead of __attribute__.
19239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19240
19241 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19242             Bruno Haible  <bruno@clisp.org>
19243
19244         socklen: do not depend on sys_socket
19245         While trying to modify Emacs to use gnulib's socklen module,
19246         I discovered a circular dependency: socklen depends on sys_socket
19247         and vice versa.  Emacs can use socklen, but it does not need
19248         sys_socket because it has its own substitute for sys/socket.h.
19249         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19250         gl_TYPE_SOCKLEN_T.
19251         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19252         gl_PREREQ_SYS_H_SOCKET.
19253         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19254         gl_PREREQ_SYS_H_SOCKET.
19255         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19256         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19257         * modules/socklen (Depends-on): Do not depend on sys_socket.
19258         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19259
19260 2011-03-20  Jim Meyering  <meyering@redhat.com>
19261
19262         maint.mk: sort file names *after* new transformation
19263         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19264         prefix would have led to an unwarranted failure in GNU parted.
19265         Sort after that transformation.
19266
19267 2011-03-19  Jim Meyering  <meyering@redhat.com>
19268
19269         maint.mk: fix po-file syntax-check rule
19270         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19271         Patch by Bruno Haible.
19272
19273 2011-03-19  Bruno Haible  <bruno@clisp.org>
19274
19275         socklen: Update comment.
19276         * m4/socklen.m4: Update comment about platforms.
19277
19278 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19279             Bruno Haible  <bruno@clisp.org>
19280
19281         inet_ntop, inet_pton: Simplify.
19282         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19283         documented to provide socklen_t and we already depend on sys_socket.
19284         * modules/inet_pton (Depends-on): Likewise.
19285         * lib/arpa_inet.in.h: Adjust comment.
19286
19287 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19288             Bruno Haible  <bruno@clisp.org>
19289
19290         netdb: Simplify.
19291         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19292         documented to provide socklen_t and we already depend on sys_socket.
19293         * lib/netdb.in.h: Adjust comment.
19294
19295 2011-03-19  Bruno Haible  <bruno@clisp.org>
19296
19297         sys_socket, netdb: Document problem with socklen_t.
19298         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19299         platforms.
19300         * doc/posix-headers/netdb.texi: Likewise.
19301
19302 2011-03-18  Eric Blake  <eblake@redhat.com>
19303
19304         maint.mk: let po check work in VPATH build
19305         * top/maint.mk (po_file): Allow cfg.mk override.
19306         (sc_po_check): Allow VPATH use.
19307         Reported by Jiri Denemark.
19308
19309 2011-03-16  Jim Meyering  <meyering@redhat.com>
19310
19311         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19312         Before, you would have had to create one .x-sc_ file per rule in order
19313         to exempt offending files.  Now, you may instead use a Make variable --
19314         usually defined in cfg.mk -- whose name identifies the affected rule.
19315         * top/maint.mk (_sc_excl): Define.
19316         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19317         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19318
19319 2011-03-13  Bruno Haible  <bruno@clisp.org>
19320
19321         ignore-value tests: Avoid warnings.
19322         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19323         empty for gcc < 3.4.
19324
19325 2011-03-13  Bruno Haible  <bruno@clisp.org>
19326
19327         passfd: Fix link error on Solaris.
19328         * modules/passfd (Description): Correct.
19329         (Depends-on): Add socketlib.
19330         (Link): New section.
19331         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19332
19333 2011-03-13  Bruno Haible  <bruno@clisp.org>
19334
19335         passfd: Fix link error on AIX 5.2.
19336         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19337
19338 2011-03-13  Bruno Haible  <bruno@clisp.org>
19339
19340         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19341         * lib/sys_socket.in.h: Include <stddef.h>.
19342         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19343         CMSG_FIRSTHDR. Remove unused variable.
19344
19345 2011-03-13  Bruno Haible  <bruno@clisp.org>
19346
19347         passfd: Fix compilation error on OpenBSD.
19348         * lib/passfd.c: Include <sys/uio.h>.
19349
19350 2011-03-13  Bruno Haible  <bruno@clisp.org>
19351
19352         passfd test: Fix warnings.
19353         * tests/test-passfd.c: Include <sys/wait.h>.
19354         (main): Fix typo.
19355
19356 2011-03-13  Bruno Haible  <bruno@clisp.org>
19357
19358         passfd module, part 4, tweaks.
19359         * tests/test-passfd.c: Reorder includes.
19360         (main): Fix perror and printf calls.
19361
19362 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19363
19364         passfd module, part 4.
19365         * modules/passfd-tests: New file.
19366         * tests/test-passfd.c: New file.
19367
19368 2011-03-13  Jim Meyering  <meyering@redhat.com>
19369
19370         Makefile: rely on GNU make; derive syntax-check rule names
19371         Rather than requiring that each sc_ rule be listed as a dependent
19372         of "check", use features of GNU make to derive the list.
19373         * Makefile (syntax-check-rules): Define.
19374         (check): Depend on the new variable, not the hard-coded list.
19375
19376 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19377             Bruno Haible  <bruno@clisp.org>
19378
19379         passfd module, part 3.
19380         * lib/passfd.h (recvfd): Add a flags argument.
19381         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19382         (recvfd): Add a flags argument.
19383         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19384         exists.
19385         * modules/passfd (Depends-on): Add cloexec.
19386         Suggested by Eric Blake.
19387
19388 2011-03-13  Bruno Haible  <bruno@clisp.org>
19389
19390         passfd module, part 2, tweaks.
19391         * modules/passfd (Files): Reorder.
19392         (Depends-on): Remove errno.
19393         (Include): Remove <sys/socket.h>, <sys/un.h>.
19394         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19395         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19396         specification header. Include <sys/socket.h> always. Don't include
19397         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19398         (sendfd): Clarify that it sets errno when it fails.
19399         (recvfd): Fix specification.
19400
19401 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19402
19403         passfd module, part 2.
19404         * modules/passfd: New file.
19405         * lib/passfd.h: New file.
19406         * lib/passfd.c: New file.
19407
19408 2011-03-12  Bruno Haible  <bruno@clisp.org>
19409
19410         wcswidth, mbswidth: Avoid integer overflow.
19411         * lib/wcswidth.c: Include <limits.h>.
19412         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19413         * lib/mbswidth.c: Include <limits.h>.
19414         (mbsnwidth): Avoid 'int' overflow.
19415         Reported by Jim Meyering.
19416
19417 2011-03-12  Bruno Haible  <bruno@clisp.org>
19418
19419         futimens, utimensat: Avoid endless recursion on Solaris 10.
19420         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19421         Solaris.
19422         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19423         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19424
19425 2011-03-11  Jim Meyering  <meyering@redhat.com>
19426
19427         maint.mk: relax a regexp to accommodate other formatting styles
19428         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19429         between "ngettext" and the following "(".
19430
19431 2011-03-11  Pádraig Brady <P@draigBrady.com>
19432
19433         maint.mk: suppress a false positive warning
19434         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19435         diagnostics are marked with ngettext.
19436
19437 2011-03-10  Eric Blake  <eblake@redhat.com>
19438
19439         wchar: add explicit dependencies, for Tru64
19440         * modules/mbmemcasecoll (Depends-on): Add wchar.
19441         * modules/mbtowc (Depends-on): Likewise.
19442         * modules/vasnprintf (Depends-on): Likewise.
19443         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19444         * modules/wctomb (Depends-on): Likewise.
19445         Reported by Peter O'Gorman.
19446
19447 2011-03-08  Bruno Haible  <bruno@clisp.org>
19448
19449         passfd module, part 1, tweaks.
19450         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19451         Improve indentation. Improve AC_MSG_CHECKING messages.
19452         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19453         gl_SOCKET_FAMILIES.
19454
19455 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19456
19457         passfd module, part 1.
19458         * m4/afunix.m4: New file.
19459         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19460         sockets.
19461
19462 2011-03-08  Bruno Haible  <bruno@clisp.org>
19463
19464         regex-quote: New API.
19465         * lib/regex-quote.h: Include <stdbool.h>.
19466         (struct regex_quote_spec): New type.
19467         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19468         New declarations.
19469         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19470         'const struct regex_quote_spec *' argument.
19471         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19472         (pcre_special): New constant.
19473         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19474         New functions.
19475         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19476         'const struct regex_quote_spec *' argument.
19477         * modules/regex-quote (Depends-on): Add stdbool.
19478         * tests/test-regex-quote.c (check): Update for new API. Add test for
19479         anchored results.
19480         * NEWS: Mention the API change.
19481         Reported by Reuben Thomas and Eric Blake.
19482
19483 2011-03-06  Bruno Haible  <bruno@clisp.org>
19484
19485         regex-quote: Fix creation of POSIX extended regular expressions.
19486         * lib/regex-quote.c (ere_special): Add grouping and alternation
19487         operators.
19488
19489 2011-03-05  Bruno Haible  <bruno@clisp.org>
19490
19491         doc: Improve doc regarding autopoint vs. gnulib.
19492         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19493         disable autopoint while running autoreconf.
19494         Suggested by Ralf Wildenhues.
19495
19496 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19497
19498         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19499         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19500
19501 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19502
19503         parse-duration: remove xalloc.h dependency
19504         * lib/parse-duration.c (parse_period): handle NULL return from
19505         strdup instead of calling xstrdup().
19506         * modules/parse-duration: remove "xalloc" dependency
19507
19508 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19509
19510         bootstrap: honor m4_base when running aclocal
19511         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19512
19513 2011-03-02  Jim Meyering  <meyering@redhat.com>
19514
19515         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19516         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19517         on request from Matt Booth.
19518
19519 2011-03-01  Eric Blake  <eblake@redhat.com>
19520
19521         test-link: work on Hurd
19522         * tests/test-link.h (test_link): Hurd rejects linking directories
19523         with EISDIR instead of the POSIX-mandated EPERM.
19524
19525 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19526
19527         stdio: simplify by moving files to printf-posix, sigpipe
19528         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19529         since this symbol is needed only if printf is replaced.
19530         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19531         Require gl_ASM_SYMBOL_PREFIX.
19532         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19533         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19534         (Depends-on): Add 'raise'.
19535         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19536         * modules/stdio (Files): Remove lib/stdio-write.c,
19537         m4/asm-underscore.m4.
19538         (Depends-on): Remove 'raise'.
19539
19540         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19541         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19542         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19543         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19544
19545 2011-02-28  Bruno Haible  <bruno@clisp.org>
19546
19547         localcharset: Assume ANSI C behaviour of free().
19548         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19549         calling free().
19550         Suggested by Simon Josefsson <simon@josefsson.org>.
19551
19552 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19553             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19554             Bruno Haible  <bruno@clisp.org>  (tiny change)
19555
19556         On Cygwin, use /proc file system instead of win32 API.
19557         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19558         Win32 file names.
19559         (DllMain): Simplify by removing Cygwin specific code.
19560         (find_shared_library_fullname): Use Linux specific implementation also
19561         for Cygwin.
19562         (get_shared_library_fullname): Update accordingly.
19563         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19564         Win32 file names.
19565         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19566         Cygwin specific code.
19567
19568 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19569             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19570
19571         Fix OpenMP flag detection for various Fortran compilers.
19572         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19573         OpenMP-conditional compilation construct, to force compile
19574         failure with missing OpenMP flag.
19575         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19576
19577 2011-02-25  Eric Blake  <eblake@redhat.com>
19578
19579         strstr: expand test coverage
19580         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19581         compilation.
19582         * tests/test-memmem.c (main): Duplicate tests.
19583         * tests/test-strcasestr.c (main): Likewise.
19584         * tests/test-c-strcasestr.c (main): Likewise.
19585
19586 2011-02-25  Jim Meyering  <meyering@redhat.com>
19587
19588         maint.mk: detect missing-NL-at-EOF, too
19589         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19590         it also detects when a file lacks a newline at EOF.
19591         (require_exactly_one_NL_at_EOF_): Renamed from
19592         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19593         since people may well have .x-sc_... file names tied to the
19594         existing name.  Suggested by Eric Blake.
19595
19596 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19597
19598         dirname: move m4/dos.m4 functionality into lib/dosname.h
19599
19600         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19601         extracts symbols from it, puts them into config.h; but it's much
19602         easier to use the symbols directly.  filename.h already does this,
19603         but it disagrees with dos.m4 in some respects.  This patch
19604         introduces a different include file dosname.h that packages up
19605         dos.m4, and then later we can work on merging filename.h and
19606         dosname.h.  Applications that need only the easy-to-configure
19607         symbols should consider including dosname.h rather than dirname.h.
19608         * NEWS: Mention incompatible changes.
19609         * m4/dos.m4: Remove.
19610         * lib/dosname.h, modules/dosname: New files.
19611         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19612         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19613         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19614         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19615         Include dosname.h, not dirname.h.
19616         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19617         Include dosname.h, for definitions of symbols like ISSLASH
19618         that used to be in config.h.
19619         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19620         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19621         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19622         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19623         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19624         * modules/rmdir (Files): Likewise.
19625         * modules/stat (Files): Likewise.
19626         * modules/unlink (Files): Likewise.
19627         * modules/dirname-lgpl (Depends-on): Add dosname.
19628         * modules/lstat (Depends-on): Likewise.
19629         * modules/openat (Depends-on): Likewise.
19630         * modules/rmdir (Depends-on): Likewise.
19631         * modules/savewd (Depends-on): Likewise.
19632         * modules/stat (Depends-on): Likewise.
19633         * modules/unlink (Depends-on): Likewise.
19634         * modules/openat (Depends-on): Remove dirname-lgpl.
19635         * modules/savewd (Depends-on): Likewise.
19636         * tests/test-dirname.c: Do not use removed symbols like
19637         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19638         the remaining symbols, e.g., ISSLASH ('\\').
19639
19640 2011-02-25  Eric Blake  <eblake@redhat.com>
19641
19642         strstr: revert patches that introduced bug and pessimization
19643         * lib/str-two-way.h: Add another reference.
19644         (two_way_short_needle, two_way_long_needle): Revert changes from
19645         2011-02-24; they pessimize search speed.
19646         (critical_factorization): Partially revert changes from
19647         2010-06-22; they violate the requirement that the left half of the
19648         needle be smaller than the period of the needle.
19649
19650 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19651
19652         filenamecat: remove unnecessary dependency on dirname-lgpl
19653         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19654         is no direct dependency, just an indirect one via filenamecat-lgpl.
19655
19656         remove: remove unnecessary use of m4/dos.m4
19657         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19658         * modules/remove (FILES): Remove m4/dos.m4.
19659
19660         * lib/openat-proc.c: Don't include dirname.h; not needed.
19661
19662         backupfile: remove unnecessary use of m4/dos.m4
19663         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19664         of its symbols are used by the backupfile code.  backupfile.c does
19665         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19666         for the rare case of programs that want all their backup file
19667         names to live within 8+3 limits, and dos.m4 doesn't address that.
19668         * modules/backupfile (Files): Remove m4/dos.m4.
19669
19670 2011-02-24  Jim Meyering  <meyering@redhat.com>
19671
19672         strstr: fix a bug whereby strstr would mistakenly return NULL
19673         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19674         in period calculation.
19675         (two_way_long_needle): Likewise.
19676         The original problem was reported by Mike Stump in
19677         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19678         Ralf Wildenhues provided the short needle and haystack.
19679         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19680         Add a more involved test to trigger the bug in two_way_long_needle.
19681
19682 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19683
19684         gnulib-tool: remove use of bold display in help screen
19685         * gnulib-tool (func_usage): Do not use bold display anymore in the
19686         help screen.  That was just meant to be a temporary emphasis for a
19687         backward-incompatible change.
19688
19689 2011-02-23  Bruno Haible  <bruno@clisp.org>
19690
19691         Fix misindentation of preprocessor directives.
19692         * lib/argp-namefrob.h: Reindent preprocessor directives.
19693         * lib/getopt_int.h (struct _getopt_data): Likewise.
19694         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19695         * lib/vasnprintf.c (decode_long_double): Likewise.
19696         * tests/test-argmatch.c: Insert blank lines, for clarity.
19697         * tests/test-exclude.c: Likewise.
19698
19699 2011-02-22  Bruno Haible  <bruno@clisp.org>
19700
19701         ioctl: Fix for MacOS X in 64-bit mode.
19702         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19703         value.
19704         Suggested by Eric Blake.
19705         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19706
19707 2011-02-22  Jim Meyering  <meyering@redhat.com>
19708
19709         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19710         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19711         in lib/.
19712
19713 2011-02-22  Eric Blake  <eblake@redhat.com>
19714
19715         maint: avoid any CDPATH issue
19716         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19717
19718         maint: adjust cpp indentation for my modules, as well
19719         * Makefile (sc_cpp_indent_check): Add my name.
19720         * lib/fbufmode.c: Filter through cppi.
19721         * lib/fpurge.c: Likewise.
19722         * lib/freadable.c: Likewise.
19723         * lib/freading.c: Likewise.
19724         * lib/fwritable.c: Likewise.
19725         * lib/fwriting.c: Likewise.
19726         * lib/sigaction.c: Likewise.
19727
19728 2011-02-22  Jim Meyering  <meyering@redhat.com>
19729
19730         maint: adjust cpp indentation to reflect nesting depth
19731         I.e., in a block of code that begins with an unnested "#if",
19732         put one space between the "#" in column 1 and following token.
19733         For example,
19734         -#include <sys/vfs.h>
19735         +# include <sys/vfs.h>
19736         Do this only in .c files that are part of a module I maintain.
19737         * lib/linkat.c: Filter through cppi.
19738         * lib/nanosleep.c: Likewise.
19739         * lib/openat.c: Likewise.
19740         * lib/openat-die.c: Likewise.
19741         * lib/dup3.c: Likewise.
19742         * lib/fchownat.c: Likewise.
19743         * lib/flock.c: Likewise.
19744         * lib/fsync.c: Likewise.
19745         * lib/fts.c: Likewise.
19746         * lib/getpass.c: Likewise.
19747         * lib/gettimeofday.c: Likewise.
19748         * lib/userspec.c: Likewise.
19749         * Makefile (sc_cpp_indent_check): New rule, to check this.
19750
19751 2011-02-22  Bruno Haible  <bruno@clisp.org>
19752
19753         New module 'wctomb'.
19754         * lib/stdlib.in.h (wctomb): New declaration.
19755         * lib/wctomb.c: New file.
19756         * lib/wctomb-impl.h: New file.
19757         * m4/wctomb.m4: New file.
19758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19759         REPLACE_WCTOMB.
19760         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19761         REPLACE_WCTOMB.
19762         * modules/wctomb: New file.
19763         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19764         * doc/posix-functions/wctomb.texi: Mention the new module.
19765         * modules/wctob (Depends-on): Add wctomb.
19766
19767 2011-02-22  Bruno Haible  <bruno@clisp.org>
19768
19769         New module 'mbtowc'.
19770         * lib/stdlib.in.h (mbtowc): New declaration.
19771         * lib/mbtowc.c: New file.
19772         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19773         * m4/mbtowc.m4: New file.
19774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19775         REPLACE_MBTOWC.
19776         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19777         REPLACE_MBTOWC.
19778         * modules/mbtowc: New file.
19779         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19780         * doc/posix-functions/mbtowc.texi: Mention the new module.
19781         * modules/btowc (Depends-on): Add mbtowc.
19782
19783 2011-02-22  Bruno Haible  <bruno@clisp.org>
19784
19785         wcrtomb: Add more tests for native Windows platforms.
19786         * tests/test-wcrtomb-w32-1.sh: New file.
19787         * tests/test-wcrtomb-w32-2.sh: New file.
19788         * tests/test-wcrtomb-w32-3.sh: New file.
19789         * tests/test-wcrtomb-w32-4.sh: New file.
19790         * tests/test-wcrtomb-w32-5.sh: New file.
19791         * tests/test-wcrtomb-w32.c: New file.
19792         * modules/wcrtomb-tests (Files): Add them.
19793         (Makefile.am): Arrange to run these tests.
19794         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19795         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19796
19797 2011-02-20  Bruno Haible  <bruno@clisp.org>
19798
19799         wcrtomb: Enhance test.
19800         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19801
19802 2011-02-20  Bruno Haible  <bruno@clisp.org>
19803
19804         mbrtowc: Tiny optimization.
19805         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19806
19807 2011-02-20  Jim Meyering  <meyering@redhat.com>
19808
19809         test-exclude.c: remove unmatched #endif
19810         * tests/test-exclude.c: Remove stray #endif, left over from
19811         the change of a week ago.
19812
19813 2011-02-19  Jim Meyering  <meyering@redhat.com>
19814
19815         git-version-gen: skip "-dirty" check when appropriate
19816         * build-aux/git-version-gen: Don't run any git commands when the
19817         version string comes from .tarball-version.  Prior to this, we
19818         would run git update-index --refresh even from a just-unpacked
19819         tarball directory, and that could affect a .git/ directory in a
19820         parent of the build directory.  Reported by Mike Frysinger.
19821
19822 2011-02-19  Bruno Haible  <bruno@clisp.org>
19823
19824         unictype/property-byname: Reduce the size of the 'data' segment.
19825         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19826
19827 2011-02-19  Bruno Haible  <bruno@clisp.org>
19828
19829         unictype/scripts: Reduce the size of the 'data' segment.
19830         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19831         '%pic'.
19832         * lib/unictype/scripts_byname.gperf: Regenerated.
19833
19834 2011-02-19  Bruno Haible  <bruno@clisp.org>
19835
19836         stdint: Update documentation.
19837         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19838
19839 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19840
19841         stdint: omit redundant check for wchar.h
19842         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19843         always tests whether wchar.h exists, so remove the now-redundant test.
19844
19845 2011-02-18  Bruno Haible  <bruno@clisp.org>
19846
19847         stdint: Cut dependency to module 'wchar'.
19848         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19849         include the necessary prerequisites.
19850         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19851         * modules/stdint (Depends-on): Remove wchar.
19852         (Makefile.am): Substitute HAVE_WCHAR_H.
19853         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19854
19855 2011-02-18  Eric Blake  <eblake@redhat.com>
19856
19857         longlong: skip, rather than fail, on cross-compilation
19858         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19859         when cross-compiling; regression from 2011-02-16.
19860
19861 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19862
19863         * NEWS: Mention 2011-02-08 change to stdlib.
19864
19865 2011-02-17  Bruno Haible  <bruno@clisp.org>
19866
19867         getloadavg: Add comments about platforms.
19868         * m4/getloadavg.m4: Add comment.
19869         * lib/getloadavg.c: Likewise.
19870
19871 2011-02-17  Bruno Haible  <bruno@clisp.org>
19872
19873         getloadavg: Fix link error on Solaris 2.6.
19874         * modules/getloadavg (Link): New section.
19875         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19876         linking test-getloadavg.
19877         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19878         getloadavg.
19879
19880 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19881
19882         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19883         It was 'int', but this doesn't match the IRIX 6.5 manual.
19884         Suggested by Bruno Haible in
19885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19886
19887 2011-02-17  Bruno Haible  <bruno@clisp.org>
19888
19889         havelib: Fix comments.
19890         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19891         change.
19892
19893 2011-02-17  Bruno Haible  <bruno@clisp.org>
19894
19895         havelib: Update config.rpath.
19896         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19897
19898 2011-02-17  Bruno Haible  <bruno@clisp.org>
19899
19900         getloadavg test: Add some plausibility checks.
19901         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19902         is improbable.
19903
19904 2011-02-16  Eric Blake  <eblake@redhat.com>
19905
19906         maintainer-makefile: make syntax-check a no-op from tarballs
19907         * top/maint.mk (no-vc-detected): New rule.
19908         (local-checks-available): Use it to avoid hanging if someone tries
19909         'make syntax-check' from a tarball.  Also append to any non-syntax
19910         checks already defined in cfg.mk.
19911
19912 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19913
19914         longlong: tune, particularly for common case of c99
19915
19916         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19917         or running anything if c99, or if unsigned long long int does not
19918         work.  In either case, we know the answer without further tests.
19919         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19920         it at most once, and use its results for both long long int and
19921         unsigned long long int.  This is more likely to be efficient in
19922         the common case where the program wants to check for both long
19923         long int and unsigned long long int.
19924         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19925         since the answer is already known.
19926
19927 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         getloadavg: set errno
19930         * lib/getloadavg.c: Set errno when returning -1.  If no other
19931         error number looks appropriate, set it to ENOSYS if the getloadavg
19932         looks like it can't possibly ever work, ENOTSUP otherwise.
19933         Suggested by Bruno Haible in
19934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19935
19936         getloadavg: trim unused parts and speed up 'configure'
19937         * NEWS: Document this.
19938         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19939         always compiled if getloadavg is absent.
19940         Move test code to ...
19941         * tests/test-getloadavg.c: New file, containing previous
19942         contents of test from lib/getloadavg.c.  It also contains
19943         suggestions by Bruno Haible in
19944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19945         * modules/getloadavg-tests: New file.
19946         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19947         Do tests in the same order as they're needed for getloadavg.c.
19948         Omit setgid-related tests that generate symbols KMEM_GROUP,
19949         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19950         Do only the tests that are needed to see whether the system has
19951         getloadavg, moving the other tests into ...
19952         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19953         NLIST_NAME_UNION; nobody should be using it.  Do not define
19954         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19955         relevant, as the user of this module shouldn't care how getloadavg
19956         is implemented.
19957
19958         getloadavg: omit unused var
19959         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19960
19961 2011-02-15  Jim Meyering  <meyering@redhat.com>
19962
19963         doc: update users.txt
19964         * users.txt: Update iwhd's URL.
19965
19966 2011-02-13  Bruno Haible  <bruno@clisp.org>
19967
19968         Consistent macro naming for macros that use GCC __attribute__.
19969         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19970         _ATTRIBUTE_NONNULL_.
19971         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19972         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19973         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19974         ATTRIBUTE_DEPRECATED.
19975         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19976         ATTRIBUTE_NORETURN.
19977         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19978         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19979         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19980         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19981         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19982         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19983         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19984         ATTRIBUTE_SENTINEL.
19985         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19986         ATTRIBUTE_RETURN_CHECK.
19987         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19988         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19989         ATTRIBUTE_NORETURN.
19990         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19991         Reported by Paul Eggert.
19992
19993 2011-02-13  Bruno Haible  <bruno@clisp.org>
19994
19995         Don't interfere with a program's definition of __attribute__.
19996         * lib/argp.h (__attribute__): Remove definition.
19997         (_GL_ATTRIBUTE_FORMAT): New macro.
19998         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19999         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20000         (_GL_ATTRIBUTE_FORMAT): New macro.
20001         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20002         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20003         GCC 3 or newer.
20004         * lib/error.h (__attribute__): Remove definition.
20005         (_GL_ATTRIBUTE_FORMAT): New macro.
20006         (error, error_at_line): Use it.
20007         * lib/hash.h (__attribute__): Remove definition.
20008         (ATTRIBUTE_WUR): Update definition. Define always.
20009         * lib/openat.h (__attribute__): Remove definition.
20010         (ATTRIBUTE_NORETURN): Update definition. Define always.
20011         * lib/sigpipe-die.h (__attribute__): Remove definition.
20012         (ATTRIBUTE_NORETURN): Update definition. Define always.
20013         * lib/vasnprintf.h (__attribute__): Remove definition.
20014         (_GL_ATTRIBUTE_FORMAT): New macro.
20015         (asnprintf, vasnprintf): Use it.
20016         * lib/xalloc.h (__attribute__): Remove definition.
20017         (ATTRIBUTE_NORETURN): Update definition. Define always.
20018         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20019         * lib/xmemdup0.h (__attribute__): Remove definition.
20020         (ATTRIBUTE_NORETURN): Update definition. Define always.
20021         * lib/xprintf.h (__attribute__): Remove definition.
20022         (_GL_ATTRIBUTE_FORMAT): New macro.
20023         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20024         * lib/xstrtol.h (__attribute__): Remove definition.
20025         (ATTRIBUTE_NORETURN): Update definition. Define always.
20026         * lib/xvasprintf.h (__attribute__): Remove definition.
20027         (_GL_ATTRIBUTE_FORMAT): New macro.
20028         (xasprintf, xvasprintf): Use it.
20029         * tests/test-argmatch.c (__attribute__): Remove definition.
20030         (ATTRIBUTE_NORETURN): Update definition. Define always.
20031         * tests/test-exclude.c (__attribute__): Remove definition.
20032         (ATTRIBUTE_NORETURN): Update definition. Define always.
20033         Reported by Paul Eggert.
20034
20035 2011-02-13  Bruno Haible  <bruno@clisp.org>
20036
20037         mbrtowc: Add more tests for native Windows platforms.
20038         * tests/test-mbrtowc-w32-1.sh: New file.
20039         * tests/test-mbrtowc-w32-2.sh: New file.
20040         * tests/test-mbrtowc-w32-3.sh: New file.
20041         * tests/test-mbrtowc-w32-4.sh: New file.
20042         * tests/test-mbrtowc-w32-5.sh: New file.
20043         * tests/test-mbrtowc-w32.c: New file.
20044         * modules/mbrtowc-tests (Files): Add them.
20045         (Makefile.am): Arrange to run these tests.
20046         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20047         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20048
20049 2011-02-13  Bruno Haible  <bruno@clisp.org>
20050
20051         mbrtowc: Work around native Windows bug.
20052         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20053         guess when no suitable locale for testing was found.
20054         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20055
20056 2011-02-13  Bruno Haible  <bruno@clisp.org>
20057
20058         mbsinit: Work around mingw bug.
20059         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20060         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20061         Windows.
20062         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20063
20064 2011-02-13  Bruno Haible  <bruno@clisp.org>
20065
20066         mbsinit: Don't crash for a NULL argument.
20067         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20068         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20069
20070 2011-02-13  Bruno Haible  <bruno@clisp.org>
20071
20072         Don't interfere with a program's definition of __attribute__.
20073         * lib/stdio.in.h (__attribute__): Remove definition.
20074         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20075         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20076         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20077         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20078         * lib/string.in.h (__attribute__): Remove definition.
20079         Reported by Paul Eggert.
20080
20081 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20082
20083         stdlib: don't get in the way of non-GCC __attribute__
20084         See thread starting at
20085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20086         Revert previous stdlib change, installing the following instead:
20087         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20088         to get in the way of a non-GCC compiler that supports __attribute__.
20089         (_GL_ATTRIBUTE_RETURN): New macro.
20090         (_Exit): Use it instead of __attribute__.
20091
20092 2011-02-12  Bruno Haible  <bruno@clisp.org>
20093
20094         quotearg test: Avoid test failure on mingw.
20095         * tests/test-quotearg.sh: Convert the locale identifier from native
20096         Windows syntax to Unix syntax.
20097
20098 2011-02-12  Bruno Haible  <bruno@clisp.org>
20099
20100         setlocale: Prefer gnulib's override over libintl's override.
20101         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20102         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20103         GNULIB_defined_setlocale is set.
20104
20105 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20106
20107         stdlib: support non-GCC __attribute__
20108
20109         Fix a serious and tricky problem encountered when attempting to
20110         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20111         5.5, but it crashed due to memory corruption on Solaris 10 with
20112         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20113         bits that are otherwise zero.  This tagging is optional inside
20114         Emacs but is preferred and is used when __attribute__ ((__aligned
20115         (8))) works, as it does with both recent-enough GCC and with Sun C
20116         5.11.  However, Sun C 5.11 is not GCC and does not #define
20117         __GNUC__ and __GNUC_MINOR__.
20118
20119         When I added the getloadavg module to Emacs, it brought in
20120         stdlib.in.h, which contained this fragment:
20121
20122            #ifndef __attribute__
20123            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20124            #  define __attribute__(Spec)   /* empty */
20125            # endif
20126            #endif
20127
20128         When files that include <stdlib.h> were compiled with Sun C 5.11,
20129         the above code disabled __attribute__ ((__aligned (8))), which
20130         caused variables to not be properly aligned, which eventually led
20131         to the pointer corruption mentioned above.  (This was a bit hard
20132         to diagnose, unfortunately.)
20133
20134         Several "#define __attribute__(X) /* empty */" code snippets need
20135         to be eradicated from Gnulib to work with non-GCC compilers that
20136         support __attribute__.  The Autoconf way to do this is to test for
20137         each kind of attribute that we want support for, and selectively
20138         enable that in source code.
20139
20140         Fix this problem just for stdlib.h, by adding a test for the
20141         __noreturn__ attribute, and change stdlib.in.h to use that test
20142         when needed.  This technique can be easily generalized to the
20143         other *.in.h files and attributes, and a similar technique can be
20144         used for *.h and *.c files.  This patch is enough to solve the
20145         problem for Emacs + getloadavg, and I thought I'd publish it for
20146         feedback before undertaking further, similar fixes in other
20147         modules.
20148
20149         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20150         because it's not needed for stdlib.h.  It merely substitutes the
20151         value directly into stdlib.h.  We may well need to #define it, or
20152         similar symbols, for other modules, but it's nice to also have an
20153         option to not #define it for applications like Emacs that do not
20154         need it.
20155
20156         * lib/stdlib.in.h (__attribute__): Do not #define.
20157         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20158         be defined only if the _Exit module is also used.
20159         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20161         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20162         platforms.
20163         * modules/_Exit (Files): Add m4/attribute.m4.
20164         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20165         * m4/attribute.m4: New file.
20166
20167 2011-02-12  Bruno Haible  <bruno@clisp.org>
20168
20169         wcsrtombs: Work around bug on native Windows.
20170         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20171         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20172         instead of len.
20173         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20174
20175 2011-02-12  Bruno Haible  <bruno@clisp.org>
20176
20177         mbsrtowcs: Work around bug on native Windows.
20178         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20179         against mingw bug.
20180         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20181
20182 2011-02-12  Bruno Haible  <bruno@clisp.org>
20183
20184         Avoid setlocale bugs in tests.
20185         * modules/btowc (Dependencies): Add setlocale.
20186         * modules/c-strcase (Dependencies): Likewise.
20187         * modules/mbmemcasecmp (Dependencies): Likewise.
20188         * modules/mbmemcasecoll (Dependencies): Likewise.
20189         * modules/mbrtowc (Dependencies): Likewise.
20190         * modules/mbscasecmp (Dependencies): Likewise.
20191         * modules/mbscasestr (Dependencies): Likewise.
20192         * modules/mbschr (Dependencies): Likewise.
20193         * modules/mbscspn (Dependencies): Likewise.
20194         * modules/mbsinit (Dependencies): Likewise.
20195         * modules/mbsncasecmp (Dependencies): Likewise.
20196         * modules/mbsnrtowcs (Dependencies): Likewise.
20197         * modules/mbspbrk (Dependencies): Likewise.
20198         * modules/mbspcasecmp (Dependencies): Likewise.
20199         * modules/mbsrchr (Dependencies): Likewise.
20200         * modules/mbsrtowcs (Dependencies): Likewise.
20201         * modules/mbsspn (Dependencies): Likewise.
20202         * modules/mbsstr (Dependencies): Likewise.
20203         * modules/nl_langinfo (Dependencies): Likewise.
20204         * modules/quotearg (Dependencies): Likewise.
20205         * modules/unicase/locale-language (Dependencies): Likewise.
20206         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20207         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20208         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20209         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20210         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20211         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20212         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20213         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20214         * modules/vasnprintf-posix (Dependencies): Likewise.
20215         * modules/wcrtomb (Dependencies): Likewise.
20216         * modules/wcsnrtombs (Dependencies): Likewise.
20217         * modules/wcsrtombs (Dependencies): Likewise.
20218
20219 2011-02-12  Bruno Haible  <bruno@clisp.org>
20220
20221         setlocale: Workaround native Windows bug.
20222         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20223         succeeds but sets LC_CTYPE to "C", report a failure.
20224         * tests/test-setlocale2.sh: New file.
20225         * tests/test-setlocale2.c: New file.
20226         * modules/setlocale-tests (Files): Add the new files.
20227         (Makefile.am): Enable test-setlocale2.sh test.
20228         * doc/posix-functions/setlocale.texi: Mention workaround.
20229
20230 2011-02-11  Bruno Haible  <bruno@clisp.org>
20231
20232         Tests for module 'setlocale'.
20233         * modules/setlocale-tests: New file.
20234         * tests/test-setlocale1.sh: New file.
20235         * tests/test-setlocale1.c: New file.
20236
20237         New module 'setlocale'.
20238         * lib/locale.in.h (setlocale): New declaration.
20239         * lib/setlocale.c: New file, based on
20240         gettext/gettext-runtime/intl/setlocale.c.
20241         * m4/setlocale.m4: New file.
20242         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20243         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20244         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20245         REPLACE_SETLOCALE.
20246         * modules/setlocale: New file.
20247         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20248         * doc/posix-functions/setlocale.texi: Mention the new module.
20249
20250 2011-02-11  Bruno Haible  <bruno@clisp.org>
20251
20252         Prepare for locale dependent tests on mingw.
20253         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20254         because it has the wrong locale encoding.
20255         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20256         French_France.1252 instead of "fr".
20257         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20258         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20259         because it has the wrong locale encoding.
20260         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20261         native Windows, try Turkish_Turkey.65001.
20262         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20263         Chinese_China.54936.
20264
20265         Prepare for locale dependent tests on mingw.
20266         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20267         differently.
20268         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20269         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20270         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20272
20273 2011-02-11  Eric Blake  <eblake@redhat.com>
20274
20275         strptime: avoid compiler warnings
20276         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20277         compiler warnings about dead code.
20278         Reported by Daniel P. Berrange.
20279
20280 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20281
20282         doc: update users.txt
20283         * users.txt: Add rcs.
20284
20285 2011-02-10  John W. Eaton  <jwe@gnu.org>
20286
20287         doc: update users.txt
20288         * users.txt: Add octave.
20289
20290 2011-02-10  Jim Meyering  <meyering@redhat.com>
20291
20292         doc: update users.txt
20293         * users.txt: Add iwhd.
20294
20295 2011-02-09  Bruno Haible  <bruno@clisp.org>
20296
20297         gnulib-tool: Make copyright notice adjustment more robust.
20298         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20299         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20300         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20301         License".
20302         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20303
20304 2011-02-06  Bruno Haible  <bruno@clisp.org>
20305
20306         New module 'towctrans'.
20307         * modules/towctrans: New file.
20308         * lib/wctype.in.h (towctrans): New declaration.
20309         * lib/towctrans.c: New file.
20310         * lib/towctrans-impl.h: New file.
20311         * m4/towctrans.m4: New file.
20312         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20313         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20314         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20315         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20316         * doc/posix-functions/towctrans.texi: Mention the new module.
20317
20318 2011-02-06  Bruno Haible  <bruno@clisp.org>
20319
20320         New module 'wctrans'.
20321         * modules/wctrans: New file.
20322         * lib/wctype.in.h (wctrans): New declaration.
20323         * lib/wctrans.c: New file.
20324         * lib/wctrans-impl.h: New file.
20325         * m4/wctrans.m4: New file.
20326         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20327         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20328         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20329         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20330         * doc/posix-functions/wctrans.texi: Mention the new module.
20331
20332 2011-02-06  Bruno Haible  <bruno@clisp.org>
20333
20334         New module 'iswctype'.
20335         * modules/iswctype: New file.
20336         * lib/wctype.in.h (iswctype): New declaration.
20337         * lib/iswctype.c: New file.
20338         * lib/iswctype-impl.h: New file.
20339         * m4/iswctype.m4: New file.
20340         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20341         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20342         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20343         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20344         * doc/posix-functions/iswctype.texi: Mention the new module and the
20345         HP-UX 11.00 problem.
20346
20347 2011-02-06  Bruno Haible  <bruno@clisp.org>
20348
20349         New module 'wctype'.
20350         * modules/wctype: Change to represent the wctype() substitute.
20351         * lib/wctype.in.h (wctype): New declaration.
20352         * lib/wctype.c: New file.
20353         * lib/wctype-impl.h: New file.
20354         * m4/wctype.m4: New file.
20355         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20356         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20357         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20358         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20359         * doc/posix-functions/wctype.texi: Mention the new module and the
20360         HP-UX 11.00 problem.
20361
20362 2011-02-06  Bruno Haible  <bruno@clisp.org>
20363
20364         wctype-h: Ensure wctype_t and wctrans_t are defined.
20365         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20366         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20367         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20368         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20369         HAVE_WCTRANS_T.
20370         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20371
20372 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20373
20374         flock: fix license typo
20375
20376         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20377         omitted.
20378
20379 2011-02-08  Bruno Haible  <bruno@clisp.org>
20380
20381         Split large sed scripts, for HP-UX sed.
20382         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20383         to avoid HP-UX limit of 99 commands, in the near future.
20384         * modules/stdlib (Makefile.am): Likewise.
20385         * modules/unistd (Makefile.am): Likewise.
20386         * modules/wchar (Makefile.am): Likewise.
20387         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20388         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20390
20391 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20392             Bruno Haible  <bruno@clisp.org>
20393
20394         stdlib: improve random_r modularization
20395         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20396         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20397         you also need the random_r module to get this material right.
20398         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20399         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20400         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20401
20402 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20403
20404         stdlib: don't depend on stdint
20405         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20406         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20407         be independent of whether stdint.h is needed.
20408         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20409         here, instead of ...
20410         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20411         struct random_data should be using the random_r module, not just
20412         the stdlib module (which wouldn't make sense: what package needs
20413         just struct random_data without also needing random_r?).
20414         * modules/stdlib (Depends-on): Remove stdint.
20415
20416         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20417         See the thread rooted at
20418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20419         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20420         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20421         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20422         __VMS)); previously it was always included (via fcntl--.h).
20423         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20424         hand; this is good enough for load averages.  Also, do not use
20425         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20426         flags directly if available and don't bother otherwise.  (Packages
20427         that need the extra reliability should use the modules that define
20428         these flags on older platforms that lack them.)
20429         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20430         fcntl-safer.
20431
20432 2011-02-08  Jim Meyering  <meyering@redhat.com>
20433
20434         di-set.h, ino-map.h: add multiple-inclusion guard
20435         Technically, the guard is required only for ino-map.h, due to its
20436         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20437         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20438         * lib/ino-map.h: Likewise.
20439
20440 2011-02-06  Bruno Haible  <bruno@clisp.org>
20441
20442         iswblank: Ensure declaration on glibc systems.
20443         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20444         * modules/iswblank (Dependencies): Add 'extensions'.
20445         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20446
20447 2011-02-06  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'iswblank'.
20450         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20451         * modules/iswblank: New file.
20452         * modules/wctype-h (Files): Remove lib/iswblank.c.
20453         (Makefile.am): Substitute GNULIB_ISWBLANK.
20454         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20455         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20456         (gl_WCTYPE_H_DEFAULTS): New macro.
20457         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20458         * modules/iswblank-tests: New file.
20459         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20460         * tests/test-wctype-h.c (main): Remove iswblank tests.
20461         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20462         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20463         of 'wctype-h'.
20464         * NEWS: Mention the change.
20465         * modules/mbchar (Depends-on): Add iswblank.
20466
20467 2011-02-08  Bruno Haible  <bruno@clisp.org>
20468
20469         di-set tests: Refactor.
20470         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20471         unnecessary includes.
20472         (ASSERT): Remove macro.
20473         (main): Make C90 compliant by avoiding variable declaration after
20474         statement.
20475         * modules/di-set-tests (Files): Add tests/macros.h.
20476
20477 2011-02-08  Bruno Haible  <bruno@clisp.org>
20478
20479         ino-map tests: Refactor.
20480         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20481         unnecessary includes.
20482         (ASSERT): Remove macro.
20483         (main): Make C90 compliant by avoiding variable declaration after
20484         statement.
20485         * modules/ino-map-tests (Files): Add tests/macros.h.
20486
20487 2011-02-08  Jim Meyering  <meyering@redhat.com>
20488
20489         di-set: add "const" to a cast
20490         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20491         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20492
20493 2011-02-06  Bruno Haible  <bruno@clisp.org>
20494
20495         Rename module 'wctype' to 'wctype-h'.
20496         * modules/wctype-h: Renamed from modules/wctype.
20497         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20498         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20499         (Files, Depends-on, Makefile.am): Update.
20500         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20501         (Files, Makefile.am): Update.
20502         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20503         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20504         * doc/posix-headers/wctype.texi: Update.
20505         * doc/posix-functions/iswalnum.texi: Update.
20506         * doc/posix-functions/iswalpha.texi: Update.
20507         * doc/posix-functions/iswblank.texi: Update.
20508         * doc/posix-functions/iswcntrl.texi: Update.
20509         * doc/posix-functions/iswdigit.texi: Update.
20510         * doc/posix-functions/iswgraph.texi: Update.
20511         * doc/posix-functions/iswlower.texi: Update.
20512         * doc/posix-functions/iswprint.texi: Update.
20513         * doc/posix-functions/iswpunct.texi: Update.
20514         * doc/posix-functions/iswspace.texi: Update.
20515         * doc/posix-functions/iswupper.texi: Update.
20516         * doc/posix-functions/iswxdigit.texi: Update.
20517         * doc/posix-functions/towlower.texi: Update.
20518         * doc/posix-functions/towupper.texi: Update.
20519         * NEWS: Mention the change.
20520         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20521         * modules/mbchar (Dependencies): Likewise.
20522         * modules/mbswidth (Dependencies): Likewise.
20523         * modules/quotearg (Dependencies): Likewise.
20524         * modules/regex (Dependencies): Likewise.
20525         * modules/wcscasecmp (Dependencies): Likewise.
20526         * modules/wcsncasecmp (Dependencies): Likewise.
20527         * modules/wcwidth (Dependencies): Likewise.
20528
20529 2011-02-06  Bruno Haible  <bruno@clisp.org>
20530
20531         New module 'wcswidth'.
20532         * modules/wcswidth: New file.
20533         * lib/wchar.in.h (wcswidth): New declaration.
20534         * lib/wcswidth.c: New file.
20535         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20536         * m4/wcswidth.m4: New file.
20537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20539         REPLACE_WCSWIDTH.
20540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20541         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20542         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20543         * doc/posix-functions/wcswidth.texi: Mention the new module.
20544
20545 2011-02-06  Bruno Haible  <bruno@clisp.org>
20546
20547         New module 'wcstok'.
20548         * modules/wcstok: New file.
20549         * lib/wchar.in.h (wcstok): New declaration.
20550         * lib/wcstok.c: New file.
20551         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20552         * m4/wcstok.m4: New file.
20553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20556         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20557         * doc/posix-functions/wcstok.texi: Mention the new module.
20558
20559 2011-02-06  Bruno Haible  <bruno@clisp.org>
20560
20561         New module 'wcsstr'.
20562         * modules/wcsstr: New file.
20563         * lib/wchar.in.h (wcsstr): New declaration.
20564         * lib/wcsstr.c: New file.
20565         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20566         * m4/wcsstr.m4: New file.
20567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20570         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20571         * doc/posix-functions/wcsstr.texi: Mention the new module.
20572
20573 2011-02-06  Bruno Haible  <bruno@clisp.org>
20574
20575         New module 'wcspbrk'.
20576         * modules/wcspbrk: New file.
20577         * lib/wchar.in.h (wcspbrk): New declaration.
20578         * lib/wcspbrk.c: New file.
20579         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20580         * m4/wcspbrk.m4: New file.
20581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20584         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20585         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20586
20587 2011-02-06  Bruno Haible  <bruno@clisp.org>
20588
20589         New module 'wcsspn'.
20590         * modules/wcsspn: New file.
20591         * lib/wchar.in.h (wcsspn): New declaration.
20592         * lib/wcsspn.c: New file.
20593         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20594         * m4/wcsspn.m4: New file.
20595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20597         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20598         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20599         * doc/posix-functions/wcsspn.texi: Mention the new module.
20600
20601 2011-02-06  Bruno Haible  <bruno@clisp.org>
20602
20603         New module 'wcscspn'.
20604         * modules/wcscspn: New file.
20605         * lib/wchar.in.h (wcscspn): New declaration.
20606         * lib/wcscspn.c: New file.
20607         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20608         * m4/wcscspn.m4: New file.
20609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20612         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20613         * doc/posix-functions/wcscspn.texi: Mention the new module.
20614
20615 2011-02-06  Bruno Haible  <bruno@clisp.org>
20616
20617         New module 'wcsrchr'.
20618         * modules/wcsrchr: New file.
20619         * lib/wchar.in.h (wcsrchr): New declaration.
20620         * lib/wcsrchr.c: New file.
20621         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20622         * m4/wcsrchr.m4: New file.
20623         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20624         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20625         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20626         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20627         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20628
20629 2011-02-06  Bruno Haible  <bruno@clisp.org>
20630
20631         New module 'wcschr'.
20632         * modules/wcschr: New file.
20633         * lib/wchar.in.h (wcschr): New declaration.
20634         * lib/wcschr.c: New file.
20635         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20636         * m4/wcschr.m4: New file.
20637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20639         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20640         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20641         * doc/posix-functions/wcschr.texi: Mention the new module.
20642
20643 2011-02-06  Bruno Haible  <bruno@clisp.org>
20644
20645         New module 'wcsdup'.
20646         * modules/wcsdup: New file.
20647         * lib/wchar.in.h (wcsdup): New declaration.
20648         * lib/wcsdup.c: New file.
20649         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20650         * m4/wcsdup.m4: New file.
20651         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20652         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20654         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20655         * doc/posix-functions/wcsdup.texi: Mention the new module.
20656
20657 2011-02-06  Bruno Haible  <bruno@clisp.org>
20658
20659         New module 'wcsxfrm'.
20660         * modules/wcsxfrm: New file.
20661         * lib/wchar.in.h (wcsxfrm): New declaration.
20662         * lib/wcsxfrm.c: New file.
20663         * lib/wcsxfrm-impl.h: New file.
20664         * m4/wcsxfrm.m4: New file.
20665         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20666         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20667         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20668         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20669         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20670
20671 2011-02-06  Bruno Haible  <bruno@clisp.org>
20672
20673         New module 'wcscoll'.
20674         * modules/wcscoll: New file.
20675         * lib/wchar.in.h (wcscoll): New declaration.
20676         * lib/wcscoll.c: New file.
20677         * lib/wcscoll-impl.h: New file.
20678         * m4/wcscoll.m4: New file.
20679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20681         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20682         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20683         * doc/posix-functions/wcscoll.texi: Mention the new module.
20684
20685 2011-02-06  Bruno Haible  <bruno@clisp.org>
20686
20687         New module 'wcsncasecmp'.
20688         * modules/wcsncasecmp: New file.
20689         * lib/wchar.in.h (wcsncasecmp): New declaration.
20690         * lib/wcsncasecmp.c: New file.
20691         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20692         * m4/wcsncasecmp.m4: New file.
20693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20695         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20696         HAVE_WCSNCASECMP.
20697         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20698         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20699
20700 2011-02-06  Bruno Haible  <bruno@clisp.org>
20701
20702         New module 'wcscasecmp'.
20703         * modules/wcscasecmp: New file.
20704         * lib/wchar.in.h (wcscasecmp): New declaration.
20705         * lib/wcscasecmp.c: New file.
20706         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20707         * m4/wcscasecmp.m4: New file.
20708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20711         HAVE_WCSCASECMP.
20712         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20713         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20714
20715 2011-02-05  Bruno Haible  <bruno@clisp.org>
20716
20717         New module 'wcsncmp'.
20718         * modules/wcsncmp: New file.
20719         * lib/wchar.in.h (wcsncmp): New declaration.
20720         * lib/wcsncmp.c: New file.
20721         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20722         * m4/wcsncmp.m4: New file.
20723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20726         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20727         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20728
20729 2011-02-05  Bruno Haible  <bruno@clisp.org>
20730
20731         New module 'wcscmp'.
20732         * modules/wcscmp: New file.
20733         * lib/wchar.in.h (wcscmp): New declaration.
20734         * lib/wcscmp.c: New file.
20735         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20736         * m4/wcscmp.m4: New file.
20737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20740         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20741         * doc/posix-functions/wcscmp.texi: Mention the new module.
20742
20743 2011-02-05  Bruno Haible  <bruno@clisp.org>
20744
20745         New module 'wcsncat'.
20746         * modules/wcsncat: New file.
20747         * lib/wchar.in.h (wcsncat): New declaration.
20748         * lib/wcsncat.c: New file.
20749         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20750         * m4/wcsncat.m4: New file.
20751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20754         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20755         * doc/posix-functions/wcsncat.texi: Mention the new module.
20756
20757 2011-02-05  Bruno Haible  <bruno@clisp.org>
20758
20759         New module 'wcscat'.
20760         * modules/wcscat: New file.
20761         * lib/wchar.in.h (wcscat): New declaration.
20762         * lib/wcscat.c: New file.
20763         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20764         * m4/wcscat.m4: New file.
20765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20768         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20769         * doc/posix-functions/wcscat.texi: Mention the new module.
20770
20771 2011-02-05  Bruno Haible  <bruno@clisp.org>
20772
20773         New module 'wcpncpy'.
20774         * modules/wcpncpy: New file.
20775         * lib/wchar.in.h (wcpncpy): New declaration.
20776         * lib/wcpncpy.c: New file.
20777         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20778         * m4/wcpncpy.m4: New file.
20779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20781         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20782         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20783         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20784
20785 2011-02-05  Bruno Haible  <bruno@clisp.org>
20786
20787         New module 'wcsncpy'.
20788         * modules/wcsncpy: New file.
20789         * lib/wchar.in.h (wcsncpy): New declaration.
20790         * lib/wcsncpy.c: New file.
20791         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20792         * m4/wcsncpy.m4: New file.
20793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20796         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20797         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20798
20799 2011-02-05  Bruno Haible  <bruno@clisp.org>
20800
20801         New module 'wcpcpy'.
20802         * modules/wcpcpy: New file.
20803         * lib/wchar.in.h (wcpcpy): New declaration.
20804         * lib/wcpcpy.c: New file.
20805         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20806         * m4/wcpcpy.m4: New file.
20807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20809         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20810         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20811         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20812
20813 2011-02-05  Bruno Haible  <bruno@clisp.org>
20814
20815         New module 'wcscpy'.
20816         * modules/wcscpy: New file.
20817         * lib/wchar.in.h (wcscpy): New declaration.
20818         * lib/wcscpy.c: New file.
20819         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20820         * m4/wcscpy.m4: New file.
20821         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20822         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20824         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20825         * doc/posix-functions/wcscpy.texi: Mention the new module.
20826
20827 2011-02-05  Bruno Haible  <bruno@clisp.org>
20828
20829         New module 'wcsnlen'.
20830         * modules/wcsnlen: New file.
20831         * lib/wchar.in.h (wcsnlen): New declaration.
20832         * lib/wcsnlen.c: New file.
20833         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20834         * m4/wcsnlen.m4: New file.
20835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20838         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20839         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20840
20841 2011-02-05  Bruno Haible  <bruno@clisp.org>
20842
20843         New module 'wcslen'.
20844         * modules/wcslen: New file.
20845         * lib/wchar.in.h (wcslen): New declaration.
20846         * lib/wcslen.c: New file.
20847         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20848         * m4/wcslen.m4: New file.
20849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20852         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20853         * doc/posix-functions/wcslen.texi: Mention the new module.
20854
20855 2011-02-05  Bruno Haible  <bruno@clisp.org>
20856
20857         New module 'wmemset'.
20858         * modules/wmemset: New file.
20859         * lib/wchar.in.h (wmemset): New declaration.
20860         * lib/wmemset.c: New file.
20861         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20862         * m4/wmemset.m4: New file.
20863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20865         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20866         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20867         * doc/posix-functions/wmemset.texi: Mention the new module.
20868
20869 2011-02-05  Bruno Haible  <bruno@clisp.org>
20870
20871         New module 'wmemmove'.
20872         * modules/wmemmove: New file.
20873         * lib/wchar.in.h (wmemmove): New declaration.
20874         * lib/wmemmove.c: New file.
20875         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20876         * m4/wmemmove.m4: New file.
20877         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20878         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20879         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20880         HAVE_WMEMMOVE.
20881         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20882         * doc/posix-functions/wmemmove.texi: Mention the new module.
20883
20884 2011-02-05  Bruno Haible  <bruno@clisp.org>
20885
20886         New module 'wmemcpy'.
20887         * modules/wmemcpy: New file.
20888         * lib/wchar.in.h (wmemcpy): New declaration.
20889         * lib/wmemcpy.c: New file.
20890         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20891         * m4/wmemcpy.m4: New file.
20892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20894         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20895         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20896         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20897
20898 2011-02-05  Bruno Haible  <bruno@clisp.org>
20899
20900         New module 'wmemcmp'.
20901         * modules/wmemcmp: New file.
20902         * lib/wchar.in.h (wmemcmp): New declaration.
20903         * lib/wmemcmp.c: New file.
20904         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20905         * m4/wmemcmp.m4: New file.
20906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20908         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20909         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20910         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20911
20912 2011-02-07  Jim Meyering  <meyering@redhat.com>
20913
20914         di-set, ino-map: new modules, from coreutils
20915         * lib/di-set.c: New file.
20916         * lib/di-set.h: Likewise.
20917         * lib/ino-map.c: Likewise.
20918         * lib/ino-map.h: Likewise.
20919         * modules/di-set: Likewise.
20920         * modules/di-set-tests: Likewise.
20921         * modules/ino-map: Likewise.
20922         * modules/ino-map-tests: Likewise.
20923         * tests/test-di-set.c: Likewise.
20924         * tests/test-ino-map.c: Likewise.
20925
20926 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20927
20928         getloadavg: merge minor changes from Emacs
20929
20930         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20931         (getloadavg): Use memset, not bzero.
20932
20933         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20934         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20935         clash (bug#86).
20936
20937 2010-11-14  Bruno Haible  <bruno@clisp.org>
20938
20939         Allow multiple gnulib generated replacements to coexist.
20940         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20941         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20942         * lib/langinfo.in.h (nl_item): Likewise.
20943         * lib/math.in.h (_NaN, NAN): Likewise.
20944         * lib/netdb.in.h (struct addrinfo): Likewise.
20945         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20946         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20947         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20948         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20949         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20950         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20951         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20952         pthread_mutexattr_init, pthread_mutexattr_settype,
20953         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20954         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20955         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20956         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20957         * lib/sched.in.h (struct sched_param): Likewise.
20958         * lib/se-selinux.in.h (security_class_t, security_context_t,
20959         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20960         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20961         lsetfilecon, fsetfilecon, security_check_context,
20962         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20963         Likewise.
20964         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20965         Likewise.
20966         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20967         _gl_function_taking_int_returning_void_t, union sigval,
20968         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20969         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20970         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20971         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20972         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20973         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20974         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20975         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20976         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20977         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20978         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20979         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20980         socklen_t, rpl_fd_isset): Likewise.
20981         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20982         * lib/sys_time.in.h (struct timeval): Likewise.
20983         * lib/sys_times.in.h (struct tms): Likewise.
20984         * lib/sys_utsname.in.h (struct utsname):
20985         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20986         * lib/unistd.in.h (getpagesize): Likewise.
20987         * lib/wchar.in.h (mbstate_t): Likewise.
20988         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20989         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20990         towlower, towupper): Likewise.
20991         Reported by Sam Steingold <sds@gnu.org>.
20992
20993 2011-02-05  Eric Blake  <eblake@redhat.com>
20994
20995         unsetenv: work around Haiku issues
20996         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20997         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20998
20999 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21000
21001         libposix: avoid calling error() within libposix
21002         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21003         is defined.
21004
21005 2011-02-05  Eric Blake  <eblake@redhat.com>
21006
21007         strerror_r-posix: port to cygwin
21008         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21009         implementation.
21010         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21011         * tests/test-strerror_r.c (main): Fix test.
21012         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21013         issue.
21014
21015 2011-02-05  Bruno Haible  <bruno@clisp.org>
21016
21017         New module 'wmemchr'.
21018         * modules/wmemchr: New file.
21019         * lib/wchar.in.h (wmemchr): New declaration.
21020         * lib/wmemchr.c: New file.
21021         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21022         * m4/wmemchr.m4: New file.
21023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21025         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21026         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21027         * doc/posix-functions/wmemchr.texi: Mention the new module.
21028
21029 2011-02-04  Eric Blake  <eblake@redhat.com>
21030
21031         fdopendir: detect FreeBSD bug
21032         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21033         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21034
21035 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21036
21037         stdbool: do not define HAVE_STDBOOL_H
21038         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21039         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21040         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21041         imported from the latest Autoconf git.  It was motivated by Emacs,
21042         which uses gnulib but does not need HAVE_STDBOOL_H.
21043
21044 2011-02-04  Bruno Haible  <bruno@clisp.org>
21045
21046         wcsnrtombs: Prepare for new module wwcsnrtombs.
21047         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21048         * lib/wcsnrtombs.c: Include it.
21049         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21050
21051         wcsrtombs: Prepare for new module wwcsrtombs.
21052         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21053         * lib/wcsrtombs.c: Include it.
21054         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21055
21056         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21057         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21058         * lib/mbsnrtowcs.c: Include it.
21059         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21060
21061         mbsrtowcs: Prepare for new module mbsrtowwcs.
21062         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21063         * lib/mbsrtowcs.c: Include it.
21064         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21065
21066 2011-02-04  Bruno Haible  <bruno@clisp.org>
21067
21068         vasnprintf: Reduce use of malloc for small format strings.
21069         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21070         (arguments): Add room for the first 7 arguments.
21071         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21072         (char_directives, u8_directives, u16_directives, u32_directives): Add
21073         room for the first 7 directives.
21074         * lib/printf-parse.c: Include <string.h>.
21075         (PRINTF_PARSE): Change memory handling code so that it uses the first
21076         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21077         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21078         Reported by Pádraig Brady <P@draigbrady.com>.
21079
21080 2011-01-31  Eric Blake  <eblake@redhat.com>
21081
21082         dup2: work around Haiku bug
21083         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21084         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21085         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21086         * tests/test-dup2.c (main): Enhance test.
21087
21088 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21089
21090         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21091         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21092         declared by eglibc 2.11.2.
21093         * lib/stdio.in.h: Likewise.
21094
21095 2011-01-31  Eric Blake  <eblake@redhat.com>
21096
21097         ignore-value: add missing test dependency
21098         * tests/test-ignore-value.c: Revert previous change; stdio.h
21099         provides off_t.
21100         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21101
21102 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21103
21104         mktime: clarify long_int width checking
21105         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21106         the top level, to make it clearer that the assumption about
21107         long_int width is being checked.  See
21108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21109
21110 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21111
21112         ignore-value: Fix self-test.
21113         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21114
21115 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21116
21117         TYPE_MAXIMUM: avoid theoretically undefined behavior
21118         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21119         negative number, which the C Standard says has undefined behavior.
21120         In practice this is not a problem, but might as well do it by the book.
21121         Reported by Rich Felker and Eric Blake; see
21122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21123         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21124         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21126         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21127         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21128         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21129
21130         mktime: #undef mktime before #defining it
21131         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21132
21133         mktime: systematically normalize tm_isdst comparisons
21134         * lib/mktime.c (isdst_differ): New function.
21135         (__mktime_internal): Use it systematically for all isdst comparisons.
21136         This completes the fix for libc BZ #6723, and removes the need for
21137         normalizing tm_isdst.  See
21138         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21139         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21140
21141         mktime: fix some integer overflow issues and sidestep the rest
21142
21143         This was prompted by a bug report by Benjamin Lindner for MinGW
21144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21145         His bug is due to signed integer overflow (0 - INT_MIN), and I
21146         I scanned through mktime.c looking for other integer overflow
21147         problems, fixing all the bugs I found.
21148
21149         Although the C Standard says the resulting code is still not safe
21150         in the presence of integer overflow, in practice it should be good
21151         enough for all real-world two's-complement implementations, except
21152         for debugging environments that deliberately trap on integer
21153         overflow (e.g., gcc -ftrapv).
21154
21155         * lib/mktime.c (WRAPV): New macro.
21156         (SHR): Also check that long_int and time_t shift right in the
21157         usual way, before using the fast-but-unportable method.
21158         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21159         used.  The code already assumed two's complement, so there's
21160         no need to test for alternatives.  All uses removed.
21161         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21162         the C standard.  Problem reported by Rich Felker in
21163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21164         (twos_complement_arithmetic): Also check long_int and time_t.
21165         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21166         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21167         (__mktime_internal): Avoid integer overflow with unary subtraction
21168         in two instances where -1 - X is an adequate replacement for -X,
21169         since the calculations are approximate.
21170
21171 2011-01-29  Eric Blake  <eblake@redhat.com>
21172
21173         mktime: avoid infinite loop
21174         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21175         type; behavior is still undefined but portable to all known targets.
21176         Reported by Rich Felker.
21177
21178 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21179
21180         rename, unlink, same-inode: Relicense.
21181         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21182         * modules/unlink (License): Likewise.
21183         * modules/same-inode (License): Likewise.
21184
21185 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21186
21187         mktime: avoid problems on NetBSD 5 / i386
21188         * lib/mktime.c (long_int): New type.  This works around a problem
21189         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21190         but time_t is 64 bits, and where I expect the existing code is
21191         wrong in some cases.
21192         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21193         (ydhms_diff): Bring back the compile-time check for wide-enough
21194         year and yday.
21195
21196         mktime: fix misspelling in comment
21197         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21198         This merges all recent glibc changes of importance.
21199
21200 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21201
21202         move-if-change: cope with concurrent mv of identical file.
21203         * build-aux/move-if-change (CMPPROG): Accept environment
21204         variable as an override for `cmp'.
21205         (usage): Document CMPPROG.
21206         Adjust comparison to drop stdout.  Cope with failure of mv if
21207         the target file exists and is identical to the source, for
21208         parallel builds.
21209         Report from H.J. Lu against binutils in PR binutils/12283.
21210
21211 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21212
21213         * users.txt: Mention sharutils.
21214
21215 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21216
21217         * users.txt: Mention OATH Toolkit.
21218
21219 2011-01-27  Bruno Haible  <bruno@clisp.org>
21220
21221         Prepare for supporting FreeBSD 10.
21222         * build-aux/config.libpath: Remove handling of freebsd1*.
21223
21224 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21225
21226         Prepare for supporting FreeBSD 10.
21227         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21228         match FreeBSD 10.0.
21229
21230 2011-01-27  Bruno Haible  <bruno@clisp.org>
21231
21232         vma-iter, get-rusage-as: Add OpenBSD support.
21233         * modules/vma-iter (configure.ac): Test for mquery.
21234         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21235         * lib/vma-iter.c: Include <sys/mman.h>.
21236         (vma_iterate): Add an implementation based on mquery().
21237         * lib/resource-ext.h (get_rusage_as): Update comments.
21238         * lib/get-rusage-as.c: Likewise.
21239         * lib/get-rusage-data.c: Likewise.
21240
21241 2011-01-26  Karl Berry  <karl@gnu.org>
21242
21243         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21244         variables to make it easier to override the makeinfo program used.
21245
21246 2011-01-26  Eric Blake  <eblake@redhat.com>
21247
21248         fcntl: work around Haiku F_DUPFD bugs
21249         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21250         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21251         cloexec bit on duplication.
21252         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21253
21254 2011-01-26  Bruno Haible  <bruno@clisp.org>
21255
21256         Enable memory leak tests on AIX.
21257         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21258         * tests/test-fprintf-posix3.c (main): Likewise.
21259
21260 2011-01-26  Bruno Haible  <bruno@clisp.org>
21261
21262         Tests for module 'get-rusage-data'.
21263         * modules/get-rusage-data-tests: New file.
21264         * tests/test-get-rusage-data.c: New file.
21265
21266         New module 'get-rusage-data'.
21267         * lib/resource-ext.h (get_rusage_data): New declaration.
21268         * lib/get-rusage-data.c: New file.
21269         * modules/get-rusage-data: New file.
21270
21271 2011-01-25  Bruno Haible  <bruno@clisp.org>
21272
21273         get-rusage-as: Allow for easier testing.
21274         * lib/resource-ext.h (get_rusage_as): Add comment.
21275         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21276         (main): New function for interactive testing.
21277
21278 2011-01-25  Bruno Haible  <bruno@clisp.org>
21279
21280         vma-iter: Treat Haiku like BeOS.
21281         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21282         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21283
21284 2011-01-25  Eric Blake  <eblake@redhat.com>
21285
21286         c-stack: fix regression on cygwin when libsigsegv is present
21287         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21288
21289 2011-01-24  Bruno Haible  <bruno@clisp.org>
21290
21291         vma-iter: Avoid empty intervals.
21292         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21293         on an empty interval.
21294
21295 2011-01-24  Jim Meyering  <meyering@redhat.com>
21296
21297         u64: remove unnecessary #include
21298         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21299
21300 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21301
21302         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21303         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21304
21305 2011-01-23  Bruno Haible  <bruno@clisp.org>
21306
21307         New module 'vma-iter'.
21308         * lib/vma-iter.h: New file.
21309         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21310         * modules/vma-iter: New file.
21311         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21312         for get_rusage_as_via_iterator.
21313         (vma_iterate_callback): New function.
21314         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21315         * modules/get-rusage-as (Depends-on): Add vma-iter.
21316
21317 2011-01-23  Bruno Haible  <bruno@clisp.org>
21318
21319         uninorm: Tweak includes.
21320         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21321         Reported by Jim Meyering.
21322
21323 2011-01-23  Bruno Haible  <bruno@clisp.org>
21324
21325         get-rusage-as: Improve on NetBSD.
21326         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21327         /proc, like on FreeBSD.
21328
21329 2011-01-23  Jim Meyering  <meyering@redhat.com>
21330
21331         xreadlink.h: remove unnecessary #include
21332         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21333
21334         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21335         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21336
21337 2011-01-23  Bruno Haible  <bruno@clisp.org>
21338
21339         get-rusage-as: Fix bug.
21340         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21341         original limit when aborting the first loop.
21342
21343 2011-01-23  Bruno Haible  <bruno@clisp.org>
21344
21345         wctype: Ensure valid C syntax.
21346         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21347         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21348
21349 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21350
21351         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21353         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21354         as they are needed only for configure's test case.
21355         This removes two unnecessary symbols from config.h.
21356
21357         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21358         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21360         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21361         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21362         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21363         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21364         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21365         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21366         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21367         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21368         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21369         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21370         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21371         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21372         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21373         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21374         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21375
21376 2011-01-21  Eric Blake  <eblake@redhat.com>
21377
21378         maintainer-makefile: work with older git for submodule check
21379         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21380         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21381         Reported by Matthias Bolte.
21382
21383         bootstrap: minor portability fixes
21384         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21385         (usage): Omit leading capital and trailing . on help phrases, per
21386         GNU Coding Standards.
21387         (check_versions, top level): Prefix messages with script name.
21388
21389 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21390
21391         bootstrap: support --no-git option
21392         * build-aux/bootstrap: Add --no-git option, to be used when
21393         --gnulib-srcdir points to the exact desired checkout.
21394
21395 2011-01-21  Eric Blake  <eblake@redhat.com>
21396
21397         strerror_r-posix: work with glibc 2.13
21398         * lib/strerror_r.c (strerror_r): Fix return type.
21399
21400 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21401             Bruno Haible  <bruno@clisp.org>
21402
21403         uN_strstr: New unit tests.
21404         * modules/unistr/u8-strstr-tests: New file.
21405         * modules/unistr/u16-strstr-tests: New file.
21406         * modules/unistr/u32-strstr-tests: New file.
21407         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21408         * tests/unistr/test-u8-strstr.c: New file.
21409         * tests/unistr/test-u16-strstr.c: New file.
21410         * tests/unistr/test-u32-strstr.c: New file.
21411
21412 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21413             Bruno Haible  <bruno@clisp.org>
21414
21415         Make uN_strstr functions O(n) worst-case.
21416         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21417         16-bit and 32-bit unit cases, use the unibyte algorithm from
21418         lib/mbsstr.c.
21419         * lib/unistr/u8-strstr.c: Include <string.h>.
21420         (UNIT_IS_UINT8_T): New macro.
21421         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21422         (U_STRLEN, U_STRNLEN): New macros.
21423         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21424         (U_STRLEN, U_STRNLEN): New macros.
21425         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21426         (configure.ac): Update required libunistring version.
21427         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21428         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21429         malloca.
21430         (configure.ac): Update required libunistring version.
21431         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21432         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21433         malloca.
21434         (configure.ac): Update required libunistring version.
21435
21436 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21437             Bruno Haible  <bruno@clisp.org>
21438
21439         Prepare for faster uN_strstr functions.
21440         * lib/str-kmp.h: Support definable UNITs.
21441         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21442         needle_len argument.
21443         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21444         * lib/mbscasestr.c (mbscasestr): Likewise.
21445
21446 2011-01-21  Pádraig Brady <P@draigBrady.com>
21447
21448         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21449         * tests/test-malloca.c (main): Unset the environment variable
21450         to greatly speed up the test.
21451         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21452         * modules/malloca-tests: Depend on unsetenv.
21453
21454 2011-01-21  Pádraig Brady <P@draigBrady.com>
21455
21456         ignore-value: remove stdint dependency
21457         * lib/ignore-value.h: Remove <stdint.h>
21458         * modules/ignore-value: Remove stdint dependency.
21459
21460 2011-01-21  Jim Meyering  <meyering@redhat.com>
21461
21462         maint.mk: adjust variable name to be consistent with other gl_ vars
21463         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21464         to be lower case.
21465
21466 2011-01-20  Jim Meyering  <meyering@redhat.com>
21467
21468         maint.mk: make "check" depend on public-submodule-commit by default
21469         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21470
21471 2011-01-20  Bruno Haible  <bruno@clisp.org>
21472
21473         mbfile, mbiter: Complete change from 2008-12-21.
21474         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21475         * m4/mbiter.m4 (gl_MBITER): Likewise.
21476
21477 2011-01-20  Jim Meyering  <meyering@redhat.com>
21478
21479         init.sh: insert space between each function name and "()"
21480         * tests/init.sh: Make it a little easier to see that a function's
21481         name is "warn_", and not "warn" when looking at the first part of
21482         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21483
21484 2011-01-20  Jim Meyering  <meyering@redhat.com>
21485
21486         mountlist: clean up code formatting
21487         * lib/mountlist.c (read_file_system_list): Split a long line,
21488         correct bracing style, use NULL in place of "(struct statfs *)0",
21489         don't parenthesize return value, add spaces around "=" and after
21490         ";-in-for-stmt".
21491
21492 2011-01-14  Markus Duft <mduft@gentoo.org>
21493
21494         mountlist: add support for Interix
21495         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21496         Apply statvfs to all entries of /dev/fs.
21497         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21498         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21499
21500 2011-01-20  Jim Meyering  <meyering@redhat.com>
21501
21502         maint.mk: improve the public-submodule-commit rule
21503         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21504         to suppress printing of its commands... unless V=1.
21505         Add git submodule's --quiet option to suppress printing of e.g.,
21506         "Entering gnulib" output.
21507         "cd" into $(srcdir) before running git submodule.
21508
21509 2011-01-20  Bruno Haible  <bruno@clisp.org>
21510
21511         include_next: Fix bug introduced on 2011-01-18.
21512         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21513         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21514         ac_cv_header_... variable if the second argument is not 'check'.
21515         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21516         gl_NEXT_HEADERS_INTERNAL.
21517
21518 2011-01-20  Bruno Haible  <bruno@clisp.org>
21519
21520         Allow the user to avoid the GNULIB_TEST_* macros.
21521         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21522         Suggested by Paul Eggert.
21523
21524 2011-01-14  Jim Meyering  <meyering@redhat.com>
21525
21526         bootstrap: avoid failure when there is no .gitmodules file
21527         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21528         has been assigned to, even when its value is the empty string.
21529         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21530         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21531         Reported by John W. Eaton <jwe@gnu.org>.
21532
21533 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21534
21535         assume <ctype.h>, ..., <time.h> exist
21536         For years gnulib has been assuming the existence of the headers
21537         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21538         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21539         them, since they don't appear to be needed.
21540         * README (Portability guidelines): Document this.
21541         * lib/flock.c: Assume <fcntl.h> exists.
21542         * lib/regex_internal.h: Assume <locale.h> exists.
21543         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21545         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21546         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21547         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21548         * m4/regex.m4 (gl_REGEX): Likewise.
21549         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21550         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21551         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21552         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21553         * tests/test-argp.c: Likewise.
21554         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21555
21556         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21557         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21558         AA_APPLE_UNIVERSAL_BUILD.  See
21559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21560         * NEWS: Document this.
21561
21562 2011-01-19  Eric Blake  <eblake@redhat.com>
21563
21564         c-stack: assume stack overflow if SA_SIGINFO unsupported
21565         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21566         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21567         sigaction will work.
21568         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21569         behavior match Linux.
21570         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21571
21572         stdbool-tests: accomodate Haiku
21573         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21574
21575         binary-io: fix O_TEXT on Haiku
21576         * modules/binary-io (Depends-on): Add fcntl-h.
21577         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21578         than blindly undefining O_TEXT.
21579         Reported by Scott McCreary.
21580
21581 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21582
21583         include_next: do not check for standard headers like stddef.h
21584
21585         I found this problem when modifying Emacs to use gnulib.
21586         I noticed that it added HAVE_STDDEF_H to config.h, even though
21587         gnulib always assumes <stddef.h> exists as per README and this
21588         symbol is unnecessary.
21589         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21590         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21591         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21592         faster for headers like stddef.h that are known to exist.
21593         (gl_CHECK_NEXT_HEADERS): Use it.
21594         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21595         rather than gl_CHECK_NEXT_HEADERS.
21596         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21597         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21598
21599 2011-01-18  Eric Blake  <eblake@redhat.com>
21600
21601         ansi-c++-opt: skip C++ dependency style if C++ is unused
21602         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21603         tests when we know C++ compilation is not desired.
21604         Reported by Scott McCreary.
21605
21606 2011-01-18  Bruno Haible  <bruno@clisp.org>
21607
21608         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21609         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21610         (main): Perform test also when getrlimit and setrlimit don't exist or
21611         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21612         limiting the address space size using setrlimit, compare the address
21613         space size before and after the the test.
21614         * tests/test-dprintf-posix2.c: Likewise.
21615         * tests/test-fprintf-posix3.sh: Update skip messages.
21616         * tests/test-dprintf-posix2.sh: Likewise.
21617         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21618         * modules/dprintf-posix-tests (Depends-on): Likewise.
21619         Reported by Bruce Korb <bkorb@gnu.org> and
21620         Gary V. Vaughan <gary@gnu.org>.
21621
21622 2011-01-18  Bruno Haible  <bruno@clisp.org>
21623
21624         get-rusage-as: Improvement for Cygwin.
21625         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21626         areas that are merely reserved.
21627
21628 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21629
21630         strftime: remove dependencies on multibyte modules
21631
21632         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21633         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21634         only if __osf__ is defined, and I suspect OSF doesn't need these
21635         other modules.  If my guess is wrong, we'll need to come up with a
21636         variant of strftime that doesn't need the multibyte modules.
21637
21638         I discovered this problem when attempting modify Emacs to use the
21639         strftime module.  With the previous gnulib, this caused Emacs to
21640         need 31 new files, ranging from lib/config.charset to
21641         m4/wint_t.m4.  This was overkill and I expect would be offputting
21642         to the Emacs maintainers.  After this change, only 6 new files are
21643         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21644         stdbool.m4, and tm_gmtoff.m4.
21645
21646         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21647         Suggested by Bruno Haible in
21648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21649         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21650         and do not check for wchar.h.
21651         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21652         (Depends-on): Remove mbrlen, mbsinit, wchar.
21653
21654 2011-01-18  Bruno Haible  <bruno@clisp.org>
21655
21656         Tests for module 'get-rusage-as'.
21657         * modules/get-rusage-as-tests: New file.
21658         * tests/test-get-rusage-as.c: New file.
21659
21660         New module 'get-rusage-as'.
21661         * modules/get-rusage-as: New file.
21662         * lib/resource-ext.h: New file.
21663         * lib/get-rusage-as.c: New file.
21664
21665 2011-01-17  Eric Blake  <eblake@redhat.com>
21666
21667         sigaction: relax license from LGPLv3+ to LGPLv2+
21668         * modules/sigaction (License): Relax to LGPLv2+.
21669
21670 2011-01-14  Bruno Haible  <bruno@clisp.org>
21671
21672         filemode: Make function declarations usable in C++ mode.
21673         * lib/filemode.h: Enclose function declarations in extern "C" block.
21674         Reported by John W. Eaton <jwe@gnu.org>.
21675
21676 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21677
21678         save-cwd: no longer include "xgetcwd.h"
21679         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21680         This avoids a compilation failure in projects that use save-cwd
21681         without also using the xgetcwd module.
21682
21683 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21684
21685         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21686         This is so that a program like Emacs, which needs only dtoastr,
21687         does not have to bother with distributing and compiling ftoastr
21688         and ldtoastr.
21689         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21690         * modules/dtoastr, modules/ldtoastr: New files.
21691         * modules/ftoastr: Now works just for 'float'.
21692         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21693         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21694         dtoastr.c, ldtoastr.c.
21695
21696 2011-01-11  Jim Meyering  <meyering@redhat.com>
21697
21698         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21699         There is no need to work around the lack of the fchdir function,
21700         since gnulib can now provide a replacement when required.
21701         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21702         * modules/save-cwd (Depends-on): Add fchdir.
21703
21704 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21705
21706         openat, save-cwd: avoid xmalloc
21707
21708         This removes a direct (but undocumented) dependency of openat on
21709         xalloc, along with an indirect dependency via save-cwd.  It also
21710         removes a dependency of save-cwd on xgetcwd, and thereby
21711         indirectly on xalloc.  This change causes the openat substitute
21712         to fall back on save_cwd when memory is tight, and for save_cwd to
21713         fail instead of dying when memory is tight, but that's good enough.
21714         Problem and initial idea for fix reported by Bastien Roucaries in
21715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21716
21717         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21718         xalloc.h (for xmalloc).
21719         (openat_proc_name): Use malloc, not xmalloc.
21720         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21721         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21722
21723         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21724         This avoids heap allocation for file names whose lengths are in
21725         the range 512..1023, with the upper bound increasing to at most
21726         4031 depending on the platform's PATH_MAX.  (We do not want
21727         pathmax.h here as it might supply a non-constant PATH_MAX.)
21728         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21729         Perhaps they should be moved to malloca.h?
21730         (OPENAT_BUFFER_SIZE): Use them.
21731
21732 2011-01-10  Bruno Haible  <bruno@clisp.org>
21733
21734         doc: Update users.txt.
21735         * users.txt: Add recutils.
21736
21737 2011-01-09  Karl Berry  <karl@gnu.org>
21738
21739         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21740
21741         * doc/configmake.texi: New file.
21742         * doc/gnulib.texi: Include it.
21743         * modules/configmake: Move documentation from here.
21744
21745 2011-01-09  Bruno Haible  <bruno@clisp.org>
21746
21747         Update to Unicode 6.0.0.
21748         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21749         (get_lbp): Update for Unicode 6.0.0.
21750         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21751         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21752         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21753         U+11001, U+11038..U+11046. Remove U+06DE.
21754         (uc_width): Fix bounds of planes.
21755         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21756         lib/uniwidth/width.c.
21757         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21758         trailing whitespace removed.
21759         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21760         without comments, but with the original copyright notice.
21761         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21762         * lib/unicase/ignorable.h: Likewise.
21763         * lib/unicase/tocasefold.h: Likewise.
21764         * lib/unicase/tolower.h: Likewise.
21765         * lib/unicase/totitle.h: Likewise.
21766         * lib/unicase/toupper.h: Likewise.
21767         * lib/unictype/bidi_of.h: Likewise.
21768         * lib/unictype/blocks.h: Likewise.
21769         * lib/unictype/categ_C.h: Likewise.
21770         * lib/unictype/categ_Cn.h: Likewise.
21771         * lib/unictype/categ_L.h: Likewise.
21772         * lib/unictype/categ_Ll.h: Likewise.
21773         * lib/unictype/categ_Lm.h: Likewise.
21774         * lib/unictype/categ_Lo.h: Likewise.
21775         * lib/unictype/categ_Lu.h: Likewise.
21776         * lib/unictype/categ_M.h: Likewise.
21777         * lib/unictype/categ_Mc.h: Likewise.
21778         * lib/unictype/categ_Me.h: Likewise.
21779         * lib/unictype/categ_Mn.h: Likewise.
21780         * lib/unictype/categ_N.h: Likewise.
21781         * lib/unictype/categ_Nd.h: Likewise.
21782         * lib/unictype/categ_No.h: Likewise.
21783         * lib/unictype/categ_P.h: Likewise.
21784         * lib/unictype/categ_Po.h: Likewise.
21785         * lib/unictype/categ_S.h: Likewise.
21786         * lib/unictype/categ_Sc.h: Likewise.
21787         * lib/unictype/categ_Sk.h: Likewise.
21788         * lib/unictype/categ_Sm.h: Likewise.
21789         * lib/unictype/categ_So.h: Likewise.
21790         * lib/unictype/categ_of.h: Likewise.
21791         * lib/unictype/combining.h: Likewise.
21792         * lib/unictype/ctype_alnum.h: Likewise.
21793         * lib/unictype/ctype_alpha.h: Likewise.
21794         * lib/unictype/ctype_graph.h: Likewise.
21795         * lib/unictype/ctype_lower.h: Likewise.
21796         * lib/unictype/ctype_print.h: Likewise.
21797         * lib/unictype/ctype_punct.h: Likewise.
21798         * lib/unictype/ctype_upper.h: Likewise.
21799         * lib/unictype/decdigit.h: Likewise.
21800         * lib/unictype/digit.h: Likewise.
21801         * lib/unictype/numeric.h: Likewise.
21802         * lib/unictype/pr_alphabetic.h: Likewise.
21803         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21804         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21805         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21806         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21807         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21808         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21809         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21810         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21811         * lib/unictype/pr_case_ignorable.h: Likewise.
21812         * lib/unictype/pr_cased.h: Likewise.
21813         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21814         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21815         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21816         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21817         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21818         * lib/unictype/pr_combining.h: Likewise.
21819         * lib/unictype/pr_composite.h: Likewise.
21820         * lib/unictype/pr_currency_symbol.h: Likewise.
21821         * lib/unictype/pr_decimal_digit.h: Likewise.
21822         * lib/unictype/pr_deprecated.h: Likewise.
21823         * lib/unictype/pr_format_control.h: Likewise.
21824         * lib/unictype/pr_grapheme_base.h: Likewise.
21825         * lib/unictype/pr_grapheme_extend.h: Likewise.
21826         * lib/unictype/pr_grapheme_link.h: Likewise.
21827         * lib/unictype/pr_id_continue.h: Likewise.
21828         * lib/unictype/pr_id_start.h: Likewise.
21829         * lib/unictype/pr_ideographic.h: Likewise.
21830         * lib/unictype/pr_lowercase.h: Likewise.
21831         * lib/unictype/pr_math.h: Likewise.
21832         * lib/unictype/pr_numeric.h: Likewise.
21833         * lib/unictype/pr_other_alphabetic.h: Likewise.
21834         * lib/unictype/pr_other_id_continue.h: Likewise.
21835         * lib/unictype/pr_other_math.h: Likewise.
21836         * lib/unictype/pr_punctuation.h: Likewise.
21837         * lib/unictype/pr_sentence_terminal.h: Likewise.
21838         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21839         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21840         * lib/unictype/pr_unified_ideograph.h: Likewise.
21841         * lib/unictype/pr_uppercase.h: Likewise.
21842         * lib/unictype/pr_xid_continue.h: Likewise.
21843         * lib/unictype/pr_xid_start.h: Likewise.
21844         * lib/unictype/scripts.h: Likewise.
21845         * lib/unictype/scripts_byname.gperf: Likewise.
21846         * lib/unictype/sy_java_ident.h: Likewise.
21847         * lib/unigbrk/gbrkprop.h: Likewise.
21848         * lib/unilbrk/lbrkprop1.h: Likewise.
21849         * lib/unilbrk/lbrkprop2.h: Likewise.
21850         * lib/uninorm/decomposition-table2.h: Likewise.
21851         * lib/uniwbrk/wbrkprop.h: Likewise.
21852         * tests/unicase/test-cased.c: Likewise.
21853         * tests/unicase/test-ignorable.c: Likewise.
21854         * tests/unicase/test-uc_tolower.c: Likewise.
21855         * tests/unicase/test-uc_totitle.c: Likewise.
21856         * tests/unicase/test-uc_toupper.c: Likewise.
21857         * tests/unictype/test-categ_C.c: Likewise.
21858         * tests/unictype/test-categ_Cn.c: Likewise.
21859         * tests/unictype/test-categ_L.c: Likewise.
21860         * tests/unictype/test-categ_Ll.c: Likewise.
21861         * tests/unictype/test-categ_Lm.c: Likewise.
21862         * tests/unictype/test-categ_Lo.c: Likewise.
21863         * tests/unictype/test-categ_Lu.c: Likewise.
21864         * tests/unictype/test-categ_M.c: Likewise.
21865         * tests/unictype/test-categ_Mc.c: Likewise.
21866         * tests/unictype/test-categ_Me.c: Likewise.
21867         * tests/unictype/test-categ_Mn.c: Likewise.
21868         * tests/unictype/test-categ_N.c: Likewise.
21869         * tests/unictype/test-categ_Nd.c: Likewise.
21870         * tests/unictype/test-categ_No.c: Likewise.
21871         * tests/unictype/test-categ_P.c: Likewise.
21872         * tests/unictype/test-categ_Po.c: Likewise.
21873         * tests/unictype/test-categ_S.c: Likewise.
21874         * tests/unictype/test-categ_Sc.c: Likewise.
21875         * tests/unictype/test-categ_Sk.c: Likewise.
21876         * tests/unictype/test-categ_Sm.c: Likewise.
21877         * tests/unictype/test-categ_So.c: Likewise.
21878         * tests/unictype/test-ctype_alnum.c: Likewise.
21879         * tests/unictype/test-ctype_alpha.c: Likewise.
21880         * tests/unictype/test-ctype_graph.c: Likewise.
21881         * tests/unictype/test-ctype_lower.c: Likewise.
21882         * tests/unictype/test-ctype_print.c: Likewise.
21883         * tests/unictype/test-ctype_punct.c: Likewise.
21884         * tests/unictype/test-ctype_upper.c: Likewise.
21885         * tests/unictype/test-decdigit.h: Likewise.
21886         * tests/unictype/test-digit.h: Likewise.
21887         * tests/unictype/test-numeric.h: Likewise.
21888         * tests/unictype/test-pr_alphabetic.c: Likewise.
21889         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21890         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21891         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21892         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21893         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21894         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21895         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21896         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21897         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21898         * tests/unictype/test-pr_cased.c: Likewise.
21899         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21900         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21901         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21902         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21903         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21904         * tests/unictype/test-pr_combining.c: Likewise.
21905         * tests/unictype/test-pr_composite.c: Likewise.
21906         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21907         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21908         * tests/unictype/test-pr_deprecated.c: Likewise.
21909         * tests/unictype/test-pr_format_control.c: Likewise.
21910         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21911         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21912         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21913         * tests/unictype/test-pr_id_continue.c: Likewise.
21914         * tests/unictype/test-pr_id_start.c: Likewise.
21915         * tests/unictype/test-pr_ideographic.c: Likewise.
21916         * tests/unictype/test-pr_lowercase.c: Likewise.
21917         * tests/unictype/test-pr_math.c: Likewise.
21918         * tests/unictype/test-pr_numeric.c: Likewise.
21919         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21920         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21921         * tests/unictype/test-pr_other_math.c: Likewise.
21922         * tests/unictype/test-pr_punctuation.c: Likewise.
21923         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21924         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21925         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21926         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21927         * tests/unictype/test-pr_uppercase.c: Likewise.
21928         * tests/unictype/test-pr_xid_continue.c: Likewise.
21929         * tests/unictype/test-pr_xid_start.c: Likewise.
21930         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21931         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21932         changes.
21933         * lib/unictype/categ_Cc.h: Likewise.
21934         * lib/unictype/categ_Cf.h: Likewise.
21935         * lib/unictype/categ_Co.h: Likewise.
21936         * lib/unictype/categ_Cs.h: Likewise.
21937         * lib/unictype/categ_Lt.h: Likewise.
21938         * lib/unictype/categ_Nl.h: Likewise.
21939         * lib/unictype/categ_Pc.h: Likewise.
21940         * lib/unictype/categ_Pd.h: Likewise.
21941         * lib/unictype/categ_Pe.h: Likewise.
21942         * lib/unictype/categ_Pf.h: Likewise.
21943         * lib/unictype/categ_Pi.h: Likewise.
21944         * lib/unictype/categ_Ps.h: Likewise.
21945         * lib/unictype/categ_Z.h: Likewise.
21946         * lib/unictype/categ_Zl.h: Likewise.
21947         * lib/unictype/categ_Zp.h: Likewise.
21948         * lib/unictype/categ_Zs.h: Likewise.
21949         * lib/unictype/ctype_blank.h: Likewise.
21950         * lib/unictype/ctype_cntrl.h: Likewise.
21951         * lib/unictype/ctype_digit.h: Likewise.
21952         * lib/unictype/ctype_space.h: Likewise.
21953         * lib/unictype/ctype_xdigit.h: Likewise.
21954         * lib/unictype/mirror.h: Likewise.
21955         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21956         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21957         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21958         * lib/unictype/pr_bidi_control.h: Likewise.
21959         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21960         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21961         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21962         * lib/unictype/pr_bidi_pdf.h: Likewise.
21963         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21964         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21965         * lib/unictype/pr_dash.h: Likewise.
21966         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21967         * lib/unictype/pr_diacritic.h: Likewise.
21968         * lib/unictype/pr_extender.h: Likewise.
21969         * lib/unictype/pr_hex_digit.h: Likewise.
21970         * lib/unictype/pr_hyphen.h: Likewise.
21971         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21972         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21973         * lib/unictype/pr_ignorable_control.h: Likewise.
21974         * lib/unictype/pr_iso_control.h: Likewise.
21975         * lib/unictype/pr_join_control.h: Likewise.
21976         * lib/unictype/pr_left_of_pair.h: Likewise.
21977         * lib/unictype/pr_line_separator.h: Likewise.
21978         * lib/unictype/pr_logical_order_exception.h: Likewise.
21979         * lib/unictype/pr_non_break.h: Likewise.
21980         * lib/unictype/pr_not_a_character.h: Likewise.
21981         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21982         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21983         * lib/unictype/pr_other_id_start.h: Likewise.
21984         * lib/unictype/pr_other_lowercase.h: Likewise.
21985         * lib/unictype/pr_other_uppercase.h: Likewise.
21986         * lib/unictype/pr_paired_punctuation.h: Likewise.
21987         * lib/unictype/pr_paragraph_separator.h: Likewise.
21988         * lib/unictype/pr_pattern_syntax.h: Likewise.
21989         * lib/unictype/pr_pattern_white_space.h: Likewise.
21990         * lib/unictype/pr_private_use.h: Likewise.
21991         * lib/unictype/pr_quotation_mark.h: Likewise.
21992         * lib/unictype/pr_radical.h: Likewise.
21993         * lib/unictype/pr_soft_dotted.h: Likewise.
21994         * lib/unictype/pr_space.h: Likewise.
21995         * lib/unictype/pr_titlecase.h: Likewise.
21996         * lib/unictype/pr_variation_selector.h: Likewise.
21997         * lib/unictype/pr_white_space.h: Likewise.
21998         * lib/unictype/pr_zero_width.h: Likewise.
21999         * lib/unictype/sy_c_ident.h: Likewise.
22000         * lib/unictype/sy_c_whitespace.h: Likewise.
22001         * lib/unictype/sy_java_whitespace.h: Likewise.
22002         * lib/uninorm/composition-table.gperf: Likewise.
22003         * lib/uninorm/decomposition-table1.h: Likewise.
22004         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22005         LB8.
22006         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22007         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22008         * modules/unictype/*: Bump version number of expected libunistring
22009         version.
22010
22011 2011-01-09  Bruno Haible  <bruno@clisp.org>
22012
22013         Update to Unicode 5.2.0.
22014         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22015         trailing whitespace removed.
22016
22017 2011-01-09  Bruno Haible  <bruno@clisp.org>
22018
22019         New Unicode character properties, from Unicode 5.2.0.
22020         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22021         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22022         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22023         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22024         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22025         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22026         uc_is_property_cased, uc_is_property_case_ignorable,
22027         uc_is_property_changes_when_lowercased,
22028         uc_is_property_changes_when_uppercased,
22029         uc_is_property_changes_when_titlecased,
22030         uc_is_property_changes_when_casefolded,
22031         uc_is_property_changes_when_casemapped): New declarations.
22032         * lib/unictype/pr_byname.gperf: Add the new properties.
22033         * modules/unictype/property-byname (Depends-on): Depend on the new
22034         properties modules.
22035         * modules/unictype/property-all (Depends-on): Likewise.
22036         * MODULES.html.sh (Unicode string functions): Add
22037         unictype/property-case-ignorable, unictype/property-cased,
22038         unictype/property-changes-when-casefolded,
22039         unictype/property-changes-when-casemapped,
22040         unictype/property-changes-when-lowercased,
22041         unictype/property-changes-when-titlecased,
22042         unictype/property-changes-when-uppercased.
22043
22044         New module 'unictype/property-changes-when-casemapped'.
22045         * modules/unictype/property-changes-when-casemapped: New file.
22046         * lib/unictype/pr_changes_when_casemapped.c: New file.
22047         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22048         generated by gen-uni-tables.
22049         * modules/unictype/property-changes-when-casemapped-tests: New file.
22050         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22051         automatically generated by gen-uni-tables.
22052
22053         New module 'unictype/property-changes-when-casefolded'.
22054         * modules/unictype/property-changes-when-casefolded: New file.
22055         * lib/unictype/pr_changes_when_casefolded.c: New file.
22056         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22057         generated by gen-uni-tables.
22058         * modules/unictype/property-changes-when-casefolded-tests: New file.
22059         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22060         automatically generated by gen-uni-tables.
22061
22062         New module 'unictype/property-changes-when-titlecased'.
22063         * modules/unictype/property-changes-when-titlecased: New file.
22064         * lib/unictype/pr_changes_when_titlecased.c: New file.
22065         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22066         generated by gen-uni-tables.
22067         * modules/unictype/property-changes-when-titlecased-tests: New file.
22068         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22069         automatically generated by gen-uni-tables.
22070
22071         New module 'unictype/property-changes-when-uppercased'.
22072         * modules/unictype/property-changes-when-uppercased: New file.
22073         * lib/unictype/pr_changes_when_uppercased.c: New file.
22074         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22075         generated by gen-uni-tables.
22076         * modules/unictype/property-changes-when-uppercased-tests: New file.
22077         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22078         automatically generated by gen-uni-tables.
22079
22080         New module 'unictype/property-changes-when-lowercased'.
22081         * modules/unictype/property-changes-when-lowercased: New file.
22082         * lib/unictype/pr_changes_when_lowercased.c: New file.
22083         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22084         generated by gen-uni-tables.
22085         * modules/unictype/property-changes-when-lowercased-tests: New file.
22086         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22087         automatically generated by gen-uni-tables.
22088
22089         New module 'unictype/property-case-ignorable'.
22090         * modules/unictype/property-case-ignorable: New file.
22091         * lib/unictype/pr_case_ignorable.c: New file.
22092         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22093         by gen-uni-tables.
22094         * modules/unictype/property-case-ignorable-tests: New file.
22095         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22096         generated by gen-uni-tables.
22097
22098         New module 'unictype/property-cased'.
22099         * modules/unictype/property-cased: New file.
22100         * lib/unictype/pr_cased.c: New file.
22101         * lib/unictype/pr_cased.h: New file, automatically generated by
22102         gen-uni-tables.
22103         * modules/unictype/property-cased-tests: New file.
22104         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22105         gen-uni-tables.
22106
22107 2011-01-09  Bruno Haible  <bruno@clisp.org>
22108
22109         Update to Unicode 5.2.0.
22110         * lib/gen-uni-tables.c (output_predicate, output_category,
22111         output_combclass, output_bidi_category, output_decimal_digit_test,
22112         output_decimal_digit, output_digit_test, output_digit,
22113         output_numeric_test, output_numeric, output_mirror, output_scripts,
22114         output_scripts_byname, output_blocks, output_ident_category): Fix
22115         comment header.
22116         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22117         get_wbp.
22118         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22119         items.
22120         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22121         Changes_When_Lowercased, Changes_When_Uppercased,
22122         Changes_When_Titlecased, Changes_When_Casefolded,
22123         Changes_When_Casemapped.
22124         (is_property_alphabetic, is_property_default_ignorable_code_point):
22125         Update for Unicode 5.2.0.
22126         (is_property_cased, is_property_case_ignorable,
22127         is_property_changes_when_lowercased,
22128         is_property_changes_when_uppercased,
22129         is_property_changes_when_titlecased,
22130         is_property_changes_when_casefolded,
22131         is_property_changes_when_casemapped): New functions.
22132         (output_properties): Output also the properties cased, case_ignorable,
22133         changes_when_lowercased, changes_when_uppercased,
22134         changes_when_titlecased, changes_when_casefolded,
22135         changes_when_casemapped.
22136         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22137         Unicode TR#11 revision 17 -> 19.
22138         (LBP_CP): New enumeration value.
22139         (LBP_*): Adjust values accordingly.
22140         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22141         TR#14 revision 22 -> 24.
22142         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22143         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22144         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22145         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22146         is_WBP_MIDLETTER.
22147         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22148         the code1 and code2 of each composition rule.
22149         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22150         * lib/unicase/ignorable.h: Likewise.
22151         * lib/unicase/tocasefold.h: Likewise.
22152         * lib/unicase/tolower.h: Likewise.
22153         * lib/unicase/totitle.h: Likewise.
22154         * lib/unicase/toupper.h: Likewise.
22155         * lib/unictype/bidi_of.h: Likewise.
22156         * lib/unictype/blocks.h: Likewise.
22157         * lib/unictype/categ_C.h: Likewise.
22158         * lib/unictype/categ_Cf.h: Likewise.
22159         * lib/unictype/categ_Cn.h: Likewise.
22160         * lib/unictype/categ_L.h: Likewise.
22161         * lib/unictype/categ_Ll.h: Likewise.
22162         * lib/unictype/categ_Lm.h: Likewise.
22163         * lib/unictype/categ_Lo.h: Likewise.
22164         * lib/unictype/categ_Lu.h: Likewise.
22165         * lib/unictype/categ_M.h: Likewise.
22166         * lib/unictype/categ_Mc.h: Likewise.
22167         * lib/unictype/categ_Mn.h: Likewise.
22168         * lib/unictype/categ_N.h: Likewise.
22169         * lib/unictype/categ_Nd.h: Likewise.
22170         * lib/unictype/categ_Nl.h: Likewise.
22171         * lib/unictype/categ_No.h: Likewise.
22172         * lib/unictype/categ_P.h: Likewise.
22173         * lib/unictype/categ_Pd.h: Likewise.
22174         * lib/unictype/categ_Po.h: Likewise.
22175         * lib/unictype/categ_S.h: Likewise.
22176         * lib/unictype/categ_Sc.h: Likewise.
22177         * lib/unictype/categ_So.h: Likewise.
22178         * lib/unictype/categ_of.h: Likewise.
22179         * lib/unictype/combining.h: Likewise.
22180         * lib/unictype/ctype_alnum.h: Likewise.
22181         * lib/unictype/ctype_alpha.h: Likewise.
22182         * lib/unictype/ctype_graph.h: Likewise.
22183         * lib/unictype/ctype_lower.h: Likewise.
22184         * lib/unictype/ctype_print.h: Likewise.
22185         * lib/unictype/ctype_punct.h: Likewise.
22186         * lib/unictype/ctype_upper.h: Likewise.
22187         * lib/unictype/decdigit.h: Likewise.
22188         * lib/unictype/digit.h: Likewise.
22189         * lib/unictype/numeric.h: Likewise.
22190         * lib/unictype/pr_alphabetic.h: Likewise.
22191         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22192         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22193         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22194         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22195         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22196         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22197         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22198         * lib/unictype/pr_combining.h: Likewise.
22199         * lib/unictype/pr_composite.h: Likewise.
22200         * lib/unictype/pr_currency_symbol.h: Likewise.
22201         * lib/unictype/pr_dash.h: Likewise.
22202         * lib/unictype/pr_decimal_digit.h: Likewise.
22203         * lib/unictype/pr_deprecated.h: Likewise.
22204         * lib/unictype/pr_diacritic.h: Likewise.
22205         * lib/unictype/pr_extender.h: Likewise.
22206         * lib/unictype/pr_grapheme_base.h: Likewise.
22207         * lib/unictype/pr_grapheme_extend.h: Likewise.
22208         * lib/unictype/pr_grapheme_link.h: Likewise.
22209         * lib/unictype/pr_id_continue.h: Likewise.
22210         * lib/unictype/pr_id_start.h: Likewise.
22211         * lib/unictype/pr_ideographic.h: Likewise.
22212         * lib/unictype/pr_ignorable_control.h: Likewise.
22213         * lib/unictype/pr_logical_order_exception.h: Likewise.
22214         * lib/unictype/pr_lowercase.h: Likewise.
22215         * lib/unictype/pr_numeric.h: Likewise.
22216         * lib/unictype/pr_other_alphabetic.h: Likewise.
22217         * lib/unictype/pr_punctuation.h: Likewise.
22218         * lib/unictype/pr_sentence_terminal.h: Likewise.
22219         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22220         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22221         * lib/unictype/pr_unified_ideograph.h: Likewise.
22222         * lib/unictype/pr_uppercase.h: Likewise.
22223         * lib/unictype/pr_xid_continue.h: Likewise.
22224         * lib/unictype/pr_xid_start.h: Likewise.
22225         * lib/unictype/pr_zero_width.h: Likewise.
22226         * lib/unictype/scripts.h: Likewise.
22227         * lib/unictype/scripts_byname.gperf: Likewise.
22228         * lib/unictype/sy_java_ident.h: Likewise.
22229         * lib/unigbrk/gbrkprop.h: Likewise.
22230         * lib/unilbrk/lbrkprop1.h: Likewise.
22231         * lib/unilbrk/lbrkprop2.h: Likewise.
22232         * lib/unilbrk/lbrktables.h: Likewise.
22233         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22234         LBP_CP. Implement rule LB30.
22235         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22236         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22237         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22238         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22239         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22240         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22241         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22242         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22243         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22244         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22245         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22246         bits instead of 16 bits in the code1 and code2 of each composition
22247         rule.
22248         (uc_composition): Update for Unicode 5.2.0.
22249         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22250         * lib/uninorm/decomposition-table2.h: Likewise.
22251         * lib/uniwbrk/wbrkprop.h: Likewise.
22252         * tests/unicase/test-cased.c: Likewise.
22253         * tests/unicase/test-ignorable.c: Likewise.
22254         * tests/unicase/test-uc_tolower.c: Likewise.
22255         * tests/unicase/test-uc_totitle.c: Likewise.
22256         * tests/unicase/test-uc_toupper.c: Likewise.
22257         * tests/unictype/test-categ_C.c: Likewise.
22258         * tests/unictype/test-categ_Cf.c: Likewise.
22259         * tests/unictype/test-categ_Cn.c: Likewise.
22260         * tests/unictype/test-categ_L.c: Likewise.
22261         * tests/unictype/test-categ_Ll.c: Likewise.
22262         * tests/unictype/test-categ_Lm.c: Likewise.
22263         * tests/unictype/test-categ_Lo.c: Likewise.
22264         * tests/unictype/test-categ_Lu.c: Likewise.
22265         * tests/unictype/test-categ_M.c: Likewise.
22266         * tests/unictype/test-categ_Mc.c: Likewise.
22267         * tests/unictype/test-categ_Mn.c: Likewise.
22268         * tests/unictype/test-categ_N.c: Likewise.
22269         * tests/unictype/test-categ_Nd.c: Likewise.
22270         * tests/unictype/test-categ_Nl.c: Likewise.
22271         * tests/unictype/test-categ_No.c: Likewise.
22272         * tests/unictype/test-categ_P.c: Likewise.
22273         * tests/unictype/test-categ_Pd.c: Likewise.
22274         * tests/unictype/test-categ_Po.c: Likewise.
22275         * tests/unictype/test-categ_S.c: Likewise.
22276         * tests/unictype/test-categ_Sc.c: Likewise.
22277         * tests/unictype/test-categ_So.c: Likewise.
22278         * tests/unictype/test-ctype_alnum.c: Likewise.
22279         * tests/unictype/test-ctype_alpha.c: Likewise.
22280         * tests/unictype/test-ctype_graph.c: Likewise.
22281         * tests/unictype/test-ctype_lower.c: Likewise.
22282         * tests/unictype/test-ctype_print.c: Likewise.
22283         * tests/unictype/test-ctype_punct.c: Likewise.
22284         * tests/unictype/test-ctype_upper.c: Likewise.
22285         * tests/unictype/test-decdigit.h: Likewise.
22286         * tests/unictype/test-digit.h: Likewise.
22287         * tests/unictype/test-numeric.h: Likewise.
22288         * tests/unictype/test-pr_alphabetic.c: Likewise.
22289         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22290         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22291         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22292         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22293         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22294         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22295         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22296         * tests/unictype/test-pr_combining.c: Likewise.
22297         * tests/unictype/test-pr_composite.c: Likewise.
22298         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22299         * tests/unictype/test-pr_dash.c: Likewise.
22300         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22301         * tests/unictype/test-pr_deprecated.c: Likewise.
22302         * tests/unictype/test-pr_diacritic.c: Likewise.
22303         * tests/unictype/test-pr_extender.c: Likewise.
22304         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22305         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22306         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22307         * tests/unictype/test-pr_id_continue.c: Likewise.
22308         * tests/unictype/test-pr_id_start.c: Likewise.
22309         * tests/unictype/test-pr_ideographic.c: Likewise.
22310         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22311         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22312         * tests/unictype/test-pr_lowercase.c: Likewise.
22313         * tests/unictype/test-pr_numeric.c: Likewise.
22314         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22315         * tests/unictype/test-pr_punctuation.c: Likewise.
22316         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22317         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22318         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22319         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22320         * tests/unictype/test-pr_uppercase.c: Likewise.
22321         * tests/unictype/test-pr_xid_continue.c: Likewise.
22322         * tests/unictype/test-pr_xid_start.c: Likewise.
22323         * tests/unictype/test-pr_zero_width.c: Likewise.
22324         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22325         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22326         changed behaviour: line breaking is now disallowed between a letter
22327         or '=' and '('.
22328         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22329         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22330         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22331         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22332         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22333         lib/uniwidth/width.c.
22334         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22335         without comments, but with the original copyright notice.
22336         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22337         changes.
22338         * lib/unictype/categ_Cc.h: Likewise.
22339         * lib/unictype/categ_Co.h: Likewise.
22340         * lib/unictype/categ_Cs.h: Likewise.
22341         * lib/unictype/categ_Lt.h: Likewise.
22342         * lib/unictype/categ_Me.h: Likewise.
22343         * lib/unictype/categ_Pc.h: Likewise.
22344         * lib/unictype/categ_Pe.h: Likewise.
22345         * lib/unictype/categ_Pf.h: Likewise.
22346         * lib/unictype/categ_Pi.h: Likewise.
22347         * lib/unictype/categ_Ps.h: Likewise.
22348         * lib/unictype/categ_Sk.h: Likewise.
22349         * lib/unictype/categ_Sm.h: Likewise.
22350         * lib/unictype/categ_Z.h: Likewise.
22351         * lib/unictype/categ_Zl.h: Likewise.
22352         * lib/unictype/categ_Zp.h: Likewise.
22353         * lib/unictype/categ_Zs.h: Likewise.
22354         * lib/unictype/ctype_blank.h: Likewise.
22355         * lib/unictype/ctype_cntrl.h: Likewise.
22356         * lib/unictype/ctype_digit.h: Likewise.
22357         * lib/unictype/ctype_space.h: Likewise.
22358         * lib/unictype/ctype_xdigit.h: Likewise.
22359         * lib/unictype/mirror.h: Likewise.
22360         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22361         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22362         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22363         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22364         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22365         * lib/unictype/pr_bidi_control.h: Likewise.
22366         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22367         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22368         * lib/unictype/pr_bidi_pdf.h: Likewise.
22369         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22370         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22371         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22372         * lib/unictype/pr_format_control.h: Likewise.
22373         * lib/unictype/pr_hex_digit.h: Likewise.
22374         * lib/unictype/pr_hyphen.h: Likewise.
22375         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22376         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22377         * lib/unictype/pr_iso_control.h: Likewise.
22378         * lib/unictype/pr_join_control.h: Likewise.
22379         * lib/unictype/pr_left_of_pair.h: Likewise.
22380         * lib/unictype/pr_line_separator.h: Likewise.
22381         * lib/unictype/pr_math.h: Likewise.
22382         * lib/unictype/pr_non_break.h: Likewise.
22383         * lib/unictype/pr_not_a_character.h: Likewise.
22384         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22385         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22386         * lib/unictype/pr_other_id_continue.h: Likewise.
22387         * lib/unictype/pr_other_id_start.h: Likewise.
22388         * lib/unictype/pr_other_lowercase.h: Likewise.
22389         * lib/unictype/pr_other_math.h: Likewise.
22390         * lib/unictype/pr_other_uppercase.h: Likewise.
22391         * lib/unictype/pr_paired_punctuation.h: Likewise.
22392         * lib/unictype/pr_paragraph_separator.h: Likewise.
22393         * lib/unictype/pr_pattern_syntax.h: Likewise.
22394         * lib/unictype/pr_pattern_white_space.h: Likewise.
22395         * lib/unictype/pr_private_use.h: Likewise.
22396         * lib/unictype/pr_quotation_mark.h: Likewise.
22397         * lib/unictype/pr_radical.h: Likewise.
22398         * lib/unictype/pr_soft_dotted.h: Likewise.
22399         * lib/unictype/pr_space.h: Likewise.
22400         * lib/unictype/pr_titlecase.h: Likewise.
22401         * lib/unictype/pr_variation_selector.h: Likewise.
22402         * lib/unictype/pr_white_space.h: Likewise.
22403         * lib/unictype/sy_c_ident.h: Likewise.
22404         * lib/unictype/sy_c_whitespace.h: Likewise.
22405         * lib/unictype/sy_java_whitespace.h: Likewise.
22406         * modules/uni*/*: Bump version number of expected libunistring version.
22407         Reported by Simon Josefsson.
22408
22409 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22410
22411         useless-if-before-free: fix typo in --help and make the internal,
22412         automatic version date update process work once again.
22413         --help output contained a NUL character instead of the
22414         backslash-zero that was intended.  Also, the "must lie within
22415         the first 8 lines" line is on line 9, and hence not getting
22416         automatically updated.
22417         * build-aux/useless-if-before-free: Fix the former by adding a
22418         backslash, and the latter by condensing the three lines of what-it-does
22419         to a single line, leaving one line of slack for the future.
22420
22421 2011-01-09  Bruno Haible  <bruno@clisp.org>
22422
22423         uniwidth/width: Fix width of U+1D173..U+1D17A.
22424         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22425         symbolic_width, output_width_property_test): New functions.
22426         (main): Invoke output_nonspacing_property, output_width_property_test.
22427         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22428         U+1D173..U+1D17A.
22429         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22430         1.
22431         * modules/uniwidth/*: Bump version number of expected libunistring
22432         version.
22433         * modules/unilbrk/*: Likewise.
22434
22435 2011-01-08  Bruno Haible  <bruno@clisp.org>
22436
22437         uninorm tests: Preserve copyright of Unicode data file.
22438         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22439         Mention modifications.
22440
22441 2011-01-08  Bruno Haible  <bruno@clisp.org>
22442
22443         gen-uni-tables: Prepare for Unicode 5.2.0.
22444         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22445         (debug_output_lbp, output_lbp): Update.
22446
22447 2011-01-08  Bruno Haible  <bruno@clisp.org>
22448
22449         unilbrk: Clarify gen-uni-tables.c code.
22450         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22451         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22452         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22453
22454 2011-01-07  Bruno Haible  <bruno@clisp.org>
22455
22456         strtod: Restore errno when successfully parsing Infinity or NaN.
22457         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22458         restore the original errno.
22459
22460 2011-01-07  Bruno Haible  <bruno@clisp.org>
22461
22462         remove test: Avoid failure on HP-UX 11.
22463         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22464
22465 2011-01-07  Bruno Haible  <bruno@clisp.org>
22466
22467         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22468         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22469         error code.
22470
22471 2011-01-07  Pádraig Brady <P@draigBrady.com>
22472
22473         ignore-value: fixup comments, and add Eric Blake
22474         as an author since he rewrote the macros.
22475         * lib/ignore-value.h (ignore_value):  State that
22476         we now support aggregates.  Also specify exactly
22477         when the GCC warn_unused_result feature was added.
22478
22479 2011-01-06  Eric Blake  <eblake@redhat.com>
22480
22481         ignore-value: support aggregate types
22482         * lib/ignore-value.h (ignore_value): Provide separate gcc
22483         definition.
22484         * modules/ignore-value-tests: New test module.
22485         * tests/test-ignore-value.c: New test.
22486
22487         maint.mk: improve sc_prohibit_strcmp regex
22488         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22489         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22490         definition of STRNEQ.
22491
22492         signal: work around Haiku issue with SIGBUS
22493         * lib/siglist.h: Add comment.
22494         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22495         strsignal's favoring of SIGSEGV.
22496         * tests/test-signal.c (main): Avoid test failure.
22497         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22498         Reported by Scott McCreary.
22499
22500         maint.mk: add pre-release check to ensure submodule commits are public
22501         * top/maint.mk (public-submodule-commit): New rule.
22502         (submodule-checks): New variable.
22503         (alpha beta stable): Depend on the variable.
22504
22505 2011-01-05  Pádraig Brady <P@draigBrady.com>
22506         and Jim Meyering  <meyering@redhat.com>
22507
22508         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22509         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22510         (ATTRIBUTE_DEPRECATED): Define.
22511         (_ignore_case): New function.
22512         (ignore_value): New macro, to replace the old function.
22513         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22514         * modules/ignore-value (Depends-on): Add stdint.
22515
22516 2011-01-04  Eric Blake  <eblake@redhat.com>
22517
22518         doc: regenerate INSTALL
22519         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22520         @firstparagraphindent support, now that autoconf dropped it.
22521         (INSTALL_PRELUDE): Reinstate old macro.
22522         * doc/install.texi: Resync from autoconf.
22523         * doc/INSTALL: Reflect recent autoconf update.
22524         * doc/INSTALL.ISO: Likewise.
22525         * doc/INSTALL.UTF-8: Likewise.
22526         Reported by Karl Berry.
22527
22528 2011-01-04  Bruce Korb  <address@hidden>
22529
22530         git-version-gen: avoid a sub-shell
22531         * build-aux/git-version-gen: Redirect stderr in `...` via
22532         "exec 2>...", rather than via an added sub-shell.
22533
22534 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22535
22536         git-version-gen: use (...) rather than sh -c '...'
22537         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22538         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22539
22540 2011-01-03  Jim Meyering  <meyering@redhat.com>
22541
22542         git-version-gen: convert leading TABs to spaces
22543         * build-aux/git-version-gen: Expand leading TABs.
22544
22545         git-version-gen: handle failed "git rev-list"
22546         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22547         from git and proceeding as if it had succeeded but printed no SHA1
22548         checksums, suppress the diagnostic and handle the failure.
22549         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22550
22551         git-version-gen: include command name in one more diagnostic
22552         * build-aux/git-version-gen: When the required .tarball-version file
22553         was missing or unreadable, you might see the diagnostic from "cat",
22554         but no trace of the name of the invoking script.  Now, you still see
22555         the diagnostic from cat, but also get one from "git-version-gen: ".
22556         Inspired by a patch from Bruce Korb.
22557
22558         update-copyright: adjust test to match changed code
22559         * tests/test-update-copyright.sh: Change test's expected output
22560         to match new actual output.
22561
22562 2011-01-02  Bruno Haible  <bruno@clisp.org>
22563
22564         getlogin_r: Avoid test failure on HP-UX 11.
22565         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22566         ERANGE when the second argument is zero.
22567         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22568         portability problem.
22569
22570 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22571
22572         * build-aux/update-copyright: doc Simon's changes
22573
22574 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22575
22576         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22577         environment variable.
22578
22579 2011-01-02  Bruno Haible  <bruno@clisp.org>
22580
22581         unigbrk: Avoid gcc warnings.
22582         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22583         unused variable.
22584         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22585         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22586         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22587         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22588         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22589         Change type of first argument to 'const char *'.
22590         (main): Remove unused variable.
22591         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22592         type of first argument to 'const char *'.
22593         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22594         Likewise.
22595         (main): Change type of variable 's'.
22596         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22597         to 'int'.
22598
22599 2011-01-02  Bruno Haible  <bruno@clisp.org>
22600
22601         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22602         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22603         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22604         bug.
22605         * lib/pwrite.c: Undo 2010-12-31 patch.
22606         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22607
22608 2011-01-02  Bruno Haible  <bruno@clisp.org>
22609
22610         pread: Fix test whether it works.
22611         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22612
22613 2011-01-02  Bruno Haible  <bruno@clisp.org>
22614
22615         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22616         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22617         ends in "6". Don't require a specific month name. Try also the locale
22618         names found on HP-UX 11 and Solaris 7.
22619
22620 2011-01-02  Bruno Haible  <bruno@clisp.org>
22621
22622         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22623         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22624         C linkage.
22625         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22626
22627 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22628
22629         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22630         for consistency, since the "cluster" term is not used elsewhere.
22631         * lib/unigbrk.in.h: Update name.
22632         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22633         * lib/unigbrk/u16-grapheme-next.c: Update name.
22634         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22635         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22636         * lib/unigbrk/u32-grapheme-next.c: Update name.
22637         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22638         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22639         * lib/unigbrk/u8-grapheme-next.c: Update name.
22640         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22641         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22642         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22643         Suggested by Bruno Haible.
22644
22645 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22646
22647         Remove module 'u8-grapheme-len' as too redundant with
22648         'u8-grapheme-next'.
22649         * modules/unigbrk/u8-grapheme-len: Delete file.
22650         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22651         * lib/unigbrk.in.h: Remove prototype for deleted function.
22652         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22653         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22654
22655         Remove module 'u16-grapheme-len' as too redundant with
22656         'u16-grapheme-next'.
22657         * modules/unigbrk/u16-grapheme-len: Delete file.
22658         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22659         * lib/unigbrk.in.h: Remove prototype for deleted function.
22660         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22661         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22662
22663         Remove module 'u32-grapheme-len' as too redundant with
22664         'u32-grapheme-next'.
22665         * modules/unigbrk/u32-grapheme-len: Delete file.
22666         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22667         * lib/unigbrk.in.h: Remove prototype for deleted function.
22668         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22669         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22670
22671         Suggested by Bruno Haible.
22672
22673 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22674
22675         * unigbrk.in.h: Fix typo: "ben" => "been".
22676         Reported by Bruno Haible.
22677
22678 2011-01-01  Jim Meyering  <meyering@redhat.com>
22679
22680         maint: update almost all copyright ranges to include 2011
22681         Run the new "make update-copyright" rule.
22682
22683 2011-01-01  Jim Meyering  <meyering@redhat.com>
22684
22685         maint: update-copyright: exempt doc/INSTALL*
22686         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22687         since they are generated.  Suggested by Bruno Haible.
22688
22689 2011-01-01  Jim Meyering  <meyering@redhat.com>
22690
22691         maint: refine the update-copyright rule
22692         * Makefile (update-copyright): Also exclude any file that includes
22693         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22694         code that merely generates the comment.
22695
22696 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22697
22698         New module 'u8-grapheme-len'.
22699         * modules/unigbrk/u8-grapheme-len: New file.
22700         * modules/unigbrk/u8-grapheme-len-tests: New file.
22701         * lib/unigbrk.in.h: Add prototype for new function.
22702         * lib/unigbrk/u8-grapheme-len.c: New file.
22703         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22704
22705         New module 'u16-grapheme-len'.
22706         * modules/unigbrk/u16-grapheme-len: New file.
22707         * modules/unigbrk/u16-grapheme-len-tests: New file.
22708         * lib/unigbrk.in.h: Add prototype for new function.
22709         * lib/unigbrk/u16-grapheme-len.c: New file.
22710         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22711
22712         New module 'u32-grapheme-len'.
22713         * modules/unigbrk/u32-grapheme-len: New file.
22714         * modules/unigbrk/u32-grapheme-len-tests: New file.
22715         * lib/unigbrk.in.h: Add prototype for new function.
22716         * lib/unigbrk/u32-grapheme-len.c: New file.
22717         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22718
22719         New module 'u8-grapheme-next'.
22720         * modules/unigbrk/u8-grapheme-next: New file.
22721         * modules/unigbrk/u8-grapheme-next-tests: New file.
22722         * lib/unigbrk.in.h: Add prototype for new function.
22723         * lib/unigbrk/u8-grapheme-next.c: New file.
22724         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22725
22726         New module 'u16-grapheme-next'.
22727         * modules/unigbrk/u16-grapheme-next: New file.
22728         * modules/unigbrk/u16-grapheme-next-tests: New file.
22729         * lib/unigbrk.in.h: Add prototype for new function.
22730         * lib/unigbrk/u16-grapheme-next.c: New file.
22731         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22732
22733         New module 'u32-grapheme-next'.
22734         * modules/unigbrk/u32-grapheme-next: New file.
22735         * modules/unigbrk/u32-grapheme-next-tests: New file.
22736         * lib/unigbrk.in.h: Add prototype for new function.
22737         * lib/unigbrk/u32-grapheme-next.c: New file.
22738         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22739
22740         New module 'u8-grapheme-prev'.
22741         * modules/unigbrk/u8-grapheme-prev: New file.
22742         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22743         * lib/unigbrk.in.h: Add prototype for new function.
22744         * lib/unigbrk/u8-grapheme-prev.c: New file.
22745         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22746
22747         New module 'u16-grapheme-prev'.
22748         * modules/unigbrk/u16-grapheme-prev: New file.
22749         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22750         * lib/unigbrk.in.h: Add prototype for new function.
22751         * lib/unigbrk/u16-grapheme-prev.c: New file.
22752         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22753
22754         New module 'u32-grapheme-prev'.
22755         * modules/unigbrk/u32-grapheme-prev: New file.
22756         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22757         * lib/unigbrk.in.h: Add prototype for new function.
22758         * lib/unigbrk/u32-grapheme-prev.c: New file.
22759         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22760
22761         New module 'u8-grapheme-breaks'.
22762         * modules/unigbrk/u8-grapheme-breaks: New file.
22763         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22764         * lib/unigbrk.in.h: Add prototype for new function.
22765         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22766         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22767
22768         New module 'u16-grapheme-breaks'.
22769         * modules/unigbrk/u16-grapheme-breaks: New file.
22770         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22771         * lib/unigbrk.in.h: Add prototype for new function.
22772         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22773         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22774
22775         New module 'u32-grapheme-breaks'.
22776         * modules/unigbrk/u32-grapheme-breaks: New file.
22777         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22778         * lib/unigbrk.in.h: Add prototype for new function.
22779         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22780         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22781
22782         New module 'ulc-grapheme-breaks'.
22783         * modules/unigbrk/ulc-grapheme-breaks: New file.
22784         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22785         * m4/locale-ar.m4: New file.
22786         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22787         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22788         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22789
22790 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22791
22792         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22793         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22794         modified how this file was generated before I initially submitted
22795         the module, but failed to regenerate it.  This meant that several
22796         of the level2 entries were wrong.
22797         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22798         Remove the division-by-2 that is folded into the table now that
22799         gbrkprop.h has been regenerated properly.  Now -1 entries are
22800         handled correctly.
22801
22802         New module 'unigbrk/uc-gbrk-prop-tests'.
22803         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22804         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22805         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22806         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22807
22808 2011-01-01  Bruno Haible  <bruno@clisp.org>
22809
22810         Avoid use of hexadecimal escapes.
22811         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22812         instead of hexadecimal escapes.
22813
22814 2011-01-01  Jim Meyering  <meyering@redhat.com>
22815
22816         maint: new rule to update copyright year ranges
22817         * Makefile (update-copyright): New rule.
22818
22819         maint: indent with TABs in Makefile
22820         * Makefile: Expand leading sequences of spaces to TABs
22821
22822         version-etc: update the copyright year it reports
22823         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22824
22825 2010-12-31  Bruno Haible  <bruno@clisp.org>
22826
22827         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22828         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22829         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22830         zero.
22831
22832 2010-12-31  Bruno Haible  <bruno@clisp.org>
22833
22834         pwrite: Work around HP-UX 11.11 bug.
22835         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22836         works and set REPLACE_PWRITE if not.
22837         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22838         function.
22839         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22840
22841 2010-12-31  Bruno Haible  <bruno@clisp.org>
22842
22843         pread: Work around HP-UX 11 bugs.
22844         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22845         and set REPLACE_PREAD if not.
22846         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22847
22848 2010-12-31  Eric Blake  <eblake@redhat.com>
22849
22850         nl_langinfo: fix YESEXPR on Irix 6.5
22851         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22852         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22853         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22854         it.
22855
22856 2010-12-31  Bruno Haible  <bruno@clisp.org>
22857
22858         iconv: Document HP-UX 11 bug.
22859         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22860
22861 2010-12-31  Bruno Haible  <bruno@clisp.org>
22862
22863         ldexpl: Fix link error on HP-UX 11.
22864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22865         LDEXPL_LIBM, using $ISNANL_LIBM.
22866
22867 2010-12-31  Eric Blake  <eblake@redhat.com>
22868
22869         ftello: avoid compilation failure with SunStudio c89
22870         * lib/ftello.c (ftello): Use lseek, not llseek.
22871
22872         tests: avoid failing coreutils tests on cygwin
22873         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22874         (create_exe_shims_): Return 0 when skipping.
22875
22876 2010-12-31  Bruno Haible  <bruno@clisp.org>
22877
22878         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22879         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22880
22881 2010-12-31  Bruno Haible  <bruno@clisp.org>
22882
22883         waitpid: Fix link error in C++ mode.
22884         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22885
22886 2010-12-31  Bruno Haible  <bruno@clisp.org>
22887
22888         isnan: Use GCC built-ins when possible.
22889         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22890         __builtin_isnan.
22891         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22892         (isnan): Define using GCC built-ins for GCC >= 4.0.
22893
22894 2010-12-31  Bruno Haible  <bruno@clisp.org>
22895
22896         isnand: Fix mistake.
22897         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22898         __builtin_isnand.
22899
22900 2010-12-31  Bruno Haible  <bruno@clisp.org>
22901
22902         open: Avoid C++ error on HP-UX 11.
22903         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22904
22905 2010-12-31  Bruno Haible  <bruno@clisp.org>
22906
22907         time_r: Add missing declarations on HP-UX 11.
22908         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22909         instead of HAVE_LOCALTIME_R.
22910         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22911         HAVE_LOCALTIME_R always.
22912         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22913         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22914         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22915         HAVE_LOCALTIME_R.
22916         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22917         * doc/posix-functions/localtime_r.texi: Likewise.
22918
22919 2010-12-29  Eric Blake  <eblake@redhat.com>
22920
22921         mountlist: tweak previous commit
22922         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22923         Reported by Paul Eggert.
22924
22925         mountlist: fix local drive detection on cygwin
22926         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22927         that works for cygwin.
22928
22929 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22930
22931         ftoastr, snprintf: ftoastr + snprintf module
22932         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22933         since the snprintf module now should be good enough here.
22934         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22935         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22936         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22937         GNULIB_SNPRINTF only for the test directory, and the latter
22938         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22939         seems to suffice by itself.
22940
22941 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22942
22943         alloca: one step towards thread-safety
22944         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22945         need for a static variable.  All callers changed.  This does not
22946         make the alloca replacement thread-safe, but it's one step.
22947
22948         tests: minor indenting change
22949         * tests/init.sh: Sync from coreutils housekeeping patch
22950         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22951         to keep lines within 80 columns.
22952
22953 2010-12-28  Jim Meyering  <meyering@redhat.com>
22954
22955         regex: don't infloop on persistent failing calloc
22956         * lib/regexec.c (build_trtable): Return failure indication upon
22957         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22958         In glibc, this was fixed for version 2.13:
22959         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22960
22961 2010-12-28  Bruno Haible  <bruno@clisp.org>
22962             Paul Eggert <eggert@cs.ucla.edu>
22963
22964         linkat: Make implementation robust against system behaviour variations.
22965         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22966         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22967         way, and to -2 if it needs a generic runtime test.
22968         * lib/linkat.c (solaris_optimized_link_immediate,
22969         solaris_optimized_link_follow): New functions.
22970         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22971         (check_same_link): Use it.
22972
22973 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22974
22975         New module 'unigbrk/base'.
22976         * modules/unigbrk/base: New file.
22977         * lib/unigbrk.in.h: New file.
22978
22979         New module 'unigbrk/uc-gbrk-prop'.
22980         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22981         * modules/unigbrk/uc-gbrk-prop: New file.
22982         * lib/unigbrk/gbrkprop.h: New file.
22983         * lib/unigbrk/uc-gbrk-prop.c: New file.
22984
22985         New module 'unigbrk/uc-is-grapheme-break'.
22986         * modules/unigbrk/uc-is-grapheme-break: New file.
22987         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22988         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22989         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22990         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22991         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22992
22993         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22994
22995 2010-12-27  Bruno Haible  <bruno@clisp.org>
22996
22997         linkat test: Avoid failure on Solaris 11 2010-11.
22998         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22999
23000 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23001
23002         utimens: work around glibc rounding bug on more platforms
23003         * lib/utimens.c (fdutimens): Work around rounding bug even if
23004         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23005         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23006
23007 2010-12-27  Bruno Haible  <bruno@clisp.org>
23008
23009         select tests: Improve comments.
23010         * tests/test-select.c (do_select): Add comments.
23011
23012 2010-12-27  Bruno Haible  <bruno@clisp.org>
23013
23014         select tests: Safer way of handling timeout.
23015         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23016         at every invocation.
23017
23018 2010-12-27  Bruno Haible  <bruno@clisp.org>
23019
23020         select tests: Use 'bool' where appropriate.
23021         * tests/test-select.c (connect_to_socket): Change argument type to
23022         'bool'.
23023
23024 2010-12-27  Bruno Haible  <bruno@clisp.org>
23025
23026         select tests: Use existing modules.
23027         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23028         (configure.ac): Don't test for unistd.h.
23029         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23030         declared in <unistd.h>.
23031
23032 2010-12-27  Bruno Haible  <bruno@clisp.org>
23033
23034         mbrtowc: Work around a Solaris 7 bug.
23035         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23036         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23037         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23038         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23039         MBRTOWC_NULL_ARG1_BUG.
23040         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23041         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23042         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23043         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23044
23045 2010-12-27  Jim Meyering  <meyering@redhat.com>
23046
23047         read-file.c: tweak syntax
23048         * lib/read-file.c (fread_file): Remove space after "*" in function
23049         definitions.
23050
23051 2010-12-27  Bruno Haible  <bruno@clisp.org>
23052
23053         times test: Avoid gcc warnings on OSF/1.
23054         * tests/test-times.c (main): Cast printf arguments from clock_t to
23055         'long int'.
23056
23057 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         utimens: work around glibc rounding bug on older Linux kernels
23060         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23061         on Linux with a glibc whose utimes might not work, then work
23062         around a longstanding glibc bug involving rounding rather than
23063         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23064         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23065
23066 2010-12-26  Bruno Haible  <bruno@clisp.org>
23067
23068         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23069         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23070         _GL_CXXALIAS_SYS.
23071         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23072
23073 2010-12-26  Bruno Haible  <bruno@clisp.org>
23074
23075         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23076         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23077         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23078         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23079         looking for the declaration.
23080         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23081         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23082         problem.
23083         * doc/posix-functions/inet_pton.texi: Likewise.
23084
23085 2010-12-26  Bruno Haible  <bruno@clisp.org>
23086
23087         arpa_inet: Use the common idioms with C++ support.
23088         * lib/arpa_inet.in.h: Include c++defs.h.
23089         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23090         support.
23091         * modules/arpa_inet (Depends-on): Add c++defs.
23092         (Makefile.am): Substitute the contents of c++defs.h.
23093         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23094         * modules/arpa_inet-c++-tests: New file.
23095         * tests/test-arpa_inet-c++.cc: New file.
23096
23097 2010-12-25  Bruno Haible  <bruno@clisp.org>
23098
23099         Fix more C++ link errors on Solaris 8.
23100         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23101         $(LIB_EACCESS).
23102         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23103         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23104         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23105         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23106         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23107
23108 2010-12-25  Bruno Haible  <bruno@clisp.org>
23109
23110         printf-posix: Fix link error when a non-GCC compiler is used.
23111         * lib/stdio.in.h (printf): When not using GCC, override printf
23112         correctly.
23113         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23114
23115 2010-12-25  Bruno Haible  <bruno@clisp.org>
23116
23117         strerror_r-posix: Update doc.
23118         * doc/posix-functions/strerror_r.texi: Update doc about the return
23119         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23120
23121 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23122
23123         utimens: simplify the logic of the previous change
23124         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23125         This should not affect whether the test succeeds or fails.
23126
23127         utimens: configure better on hosts with NFS clock skew
23128         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23129         uses the clock of the local host.  It might use the clock of the
23130         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23132
23133 2010-12-25  Bruno Haible  <bruno@clisp.org>
23134
23135         ptsname test: Avoid failure on Solaris.
23136         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23137         open a pseudo-terminal; don't use BSD-style ptys.
23138         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23139
23140 2010-12-25  Bruno Haible  <bruno@clisp.org>
23141
23142         ptsname: Avoid ERANGE failure on some systems.
23143         * lib/ptsname.c (buffer): Increase size.
23144
23145 2010-12-25  Bruno Haible  <bruno@clisp.org>
23146
23147         rename, renameat: Avoid test failures at NFS mounted locations.
23148         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23149         so that subsequent mkdir calls succeed.
23150
23151 2010-12-25  Bruno Haible  <bruno@clisp.org>
23152
23153         iswblank: Fix C++ link error on Solaris 8.
23154         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23155         _GL_FUNCDECL_SYS.
23156
23157 2010-12-25  Bruno Haible  <bruno@clisp.org>
23158
23159         unistd: Fix C++ link error on Solaris 8.
23160         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23161
23162 2010-12-25  Bruno Haible  <bruno@clisp.org>
23163
23164         readlink doc: Mention an old glibc bug.
23165         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23166
23167 2010-12-25  Bruno Haible  <bruno@clisp.org>
23168
23169         fcntl-h: Fix for use of C++ on glibc systems.
23170         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23171         also on glibc systems in C++ mode.
23172         Reported by Gary V. Vaughan <gary@gnu.org>.
23173
23174 2010-12-25  Bruno Haible  <bruno@clisp.org>
23175
23176         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23177         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23178
23179 2010-12-25  Bruno Haible  <bruno@clisp.org>
23180
23181         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23182         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23183         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23184         test whether truncl works according to ISO C 99 with IEC 60559.
23185         * m4/truncl-ieee.m4: New file.
23186         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23187         m4/signbit.m4.
23188         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23189
23190 2010-12-25  Bruno Haible  <bruno@clisp.org>
23191
23192         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23193         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23194         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23195         test whether ceill works according to ISO C 99 with IEC 60559.
23196         * m4/ceill-ieee.m4: New file.
23197         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23198         m4/signbit.m4.
23199         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23200
23201 2010-12-25  Bruno Haible  <bruno@clisp.org>
23202
23203         Ensure all prerequisites of <wchar.h> are included.
23204         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23205         before <wchar.h>.
23206         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23207         gl_MBRLEN_NUL_RETVAL): Likewise.
23208         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23209         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23210         AC_FUNC_MBRTOWC): Likewise.
23211         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23212         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23214         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23215         Likewise.
23216         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23217         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23218         (gl_WCHAR_H): Improve comments.
23219         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23220
23221 2010-12-25  Bruno Haible  <bruno@clisp.org>
23222
23223         strtok_r: Fix C syntax error in autoconf macro.
23224         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23225         characters in test program.
23226
23227 2010-12-24  Bruno Haible  <bruno@clisp.org>
23228
23229         ceil, trunc, round: Fix gcc warnings.
23230         * lib/ceil.c (MIN): Undefine before redefining.
23231         * lib/trunc.c (MIN): Likewise.
23232         * lib/round.c (MIN): Likewise.
23233         Include <math.h> first.
23234
23235 2010-12-24  Bruno Haible  <bruno@clisp.org>
23236
23237         select tests: Avoid failures on OSF/1 5.1.
23238         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23239         failure of closing the last socket; it may fail with ECONNRESET.
23240
23241 2010-12-24  Eric Blake  <eblake@redhat.com>
23242
23243         stdint: avoid HP-UX 10.20 preprocessor bug
23244         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23245         than #if.
23246         * tests/test-floor2.c (main): Likewise.
23247         Reported by Peter O'Gorman.
23248
23249         pipe: make obsoletion transition easier
23250         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23251         * modules/pipe (Files): Include revived file.
23252         (Include): Drop reference, to mirror getdate's behavior.
23253
23254 2010-12-24  Bruno Haible  <bruno@clisp.org>
23255
23256         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23257         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23258         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23259         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23260
23261 2010-12-24  Bruno Haible  <bruno@clisp.org>
23262
23263         gethostname: Ensure declaration on NonStop Kernel.
23264         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23265         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23266
23267 2010-12-24  Bruno Haible  <bruno@clisp.org>
23268
23269         sys_select: Ensure all necessary types on NonStop Kernel.
23270         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23271         include <sys/time.h>.
23272         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23273         NonStop Kernel.
23274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23275
23276 2010-12-24  Bruno Haible  <bruno@clisp.org>
23277
23278         sys_select: Remove unneeded include.
23279         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23280         have <sys/select.h>.
23281
23282 2010-12-24  Bruno Haible  <bruno@clisp.org>
23283
23284         gethostname: Provide a fallback for HOST_NAME_MAX.
23285         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23286         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23287         instead.
23288         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23289
23290 2010-12-24  Bruno Haible  <bruno@clisp.org>
23291
23292         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23293         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23294         (SA_RESTART): Likewise.
23295         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23296
23297 2010-12-24  Bruno Haible  <bruno@clisp.org>
23298
23299         signal: Define NSIG.
23300         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23301         * tests/test-signal.c (nsig): New variable.
23302         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23303
23304 2010-12-24  Bruno Haible  <bruno@clisp.org>
23305
23306         rename, renameat: Avoid test failures on OSF/1 5.1.
23307         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23308         alternative error codes.
23309         * tests/test-renameat.c (main): Likewise.
23310
23311 2010-12-24  Bruno Haible  <bruno@clisp.org>
23312
23313         *printf: Detect large precisions bug on Solaris 10/SPARC.
23314         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23315         by Paul Eggert.
23316         * tests/test-snprintf-posix.h (test_function): Add this test code here
23317         too.
23318         * tests/test-sprintf-posix.h (test_function): Likewise.
23319         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23320         * tests/test-vasprintf-posix.c (test_function): Likewise.
23321         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23322         around by gnulib.
23323         * doc/posix-functions/printf.texi: Likewise.
23324         * doc/posix-functions/snprintf.texi: Likewise.
23325         * doc/posix-functions/sprintf.texi: Likewise.
23326         * doc/posix-functions/vfprintf.texi: Likewise.
23327         * doc/posix-functions/vprintf.texi: Likewise.
23328         * doc/posix-functions/vsnprintf.texi: Likewise.
23329         * doc/posix-functions/vsprintf.texi: Likewise.
23330         * doc/posix-functions/dprintf.texi: Undo last commit.
23331         * doc/posix-functions/vdprintf.texi: Likewise.
23332
23333 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23334
23335         tests: port test-fdutimensat.c to Solaris 8
23336         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23337         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23338         On Solaris 8, it fails with errno == ENOSYS, because there is no
23339         futimens (so it can't use the fd), and there is no lutimens (so it
23340         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23341
23342         vsnprintf: make more consistent with snprintf; doc fixes
23343
23344         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23345         the byte count return problem was promoted from the snprintf-posix
23346         to the snprintf module.
23347         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23348         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23349         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23350         * tests/test-snprintf.c (main): Check the byte count returned.
23351         * tests/test-vsnprintf.c (main): Likewise.
23352
23353 2010-12-23  Eric Blake  <eblake@redhat.com>
23354
23355         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23356         * modules/sigpipe (License): Relax license.
23357
23358 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23359
23360         doc: document Solaris printf bug with large float precisions
23361         * doc/posix-functions/dprintf.texi (dprintf):
23362         * doc/posix-functions/fprintf.texi (fprintf):
23363         * doc/posix-functions/printf.texi (printf):
23364         * doc/posix-functions/snprintf.texi (snprintf):
23365         * doc/posix-functions/sprintf.texi (sprintf):
23366         * doc/posix-functions/vdprintf.texi (vdprintf):
23367         * doc/posix-functions/vfprintf.texi (vfprintf):
23368         * doc/posix-functions/vprintf.texi (vprintf):
23369         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23370         * doc/posix-functions/vsprintf.texi (vsprintf):
23371         Mention that these functions mishandle large floating point
23372         precisions on Solaris 10.  The same bug is also present in Solaris
23373         8, and I assume earlier.  This causes "cd gnulib-tests; make
23374         check" to fail on Solaris 8 (and I assume, later) when building
23375         the latest coreutils, in test-vasprintf-posix's call to
23376         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23377         the wide flavors (e.g., wprintf) so this patch just updates the
23378         documentation for the narrow ones.
23379
23380         test-posixtm.c: add two tests
23381         * tests/test-posixtm.c: Add two tests, to highlight the
23382         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23383         around this bug; this is merely to document it.
23384
23385 2010-12-22  Bruno Haible  <bruno@clisp.org>
23386
23387         getlogin_r: Work around portability problem on OSF/1.
23388         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23389         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23390         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23391         test for a truncated result.
23392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23393         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23394         * modules/getlogin_r (Depends-on): Add memchr.
23395         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23396
23397 2010-12-22  Bruno Haible  <bruno@clisp.org>
23398
23399         ptsname: Avoid test failure on OSF/1 5.1.
23400         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23401         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23402         (same_slave): New function.
23403         (main): Use it to compare ptsname's result with the expected file name.
23404
23405 2010-12-22  Bruno Haible  <bruno@clisp.org>
23406
23407         Port extended stdio modules to HP NonStop Kernel.
23408         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23409         macros.
23410         * lib/fbufmode.c: Update comments.
23411         * lib/fflush.c: Likewise.
23412         * lib/fpurge.c: Likewise.
23413         * lib/freadable.c: Likewise.
23414         * lib/freadahead.c: Likewise.
23415         * lib/freading.c: Likewise.
23416         * lib/freadptr.c: Likewise.
23417         * lib/freadseek.c: Likewise.
23418         * lib/fseeko.c: Likewise.
23419         * lib/fseterr.c: Likewise.
23420         * lib/fwritable.c: Likewise.
23421         * lib/fwriting.c: Likewise.
23422         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23423
23424 2010-12-22  Bruno Haible  <bruno@clisp.org>
23425
23426         ttyname_r: Work around bug on OSF/1 5.1.
23427         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23428         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23429         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23430         present.
23431         * lib/ttyname_r.c (ttyname_r): Update comments.
23432
23433 2010-12-22  Bruno Haible  <bruno@clisp.org>
23434
23435         round: Implement result sign according to IEEE 754.
23436         * lib/round.c (MIN, MINUS_ZERO): New macros.
23437         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23438         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23439         * tests/test-round-ieee.c (main): Likewise.
23440         * tests/test-roundl-ieee.c (main): Likewise.
23441
23442         trunc: Implement result sign according to IEEE 754.
23443         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23444         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23445         * tests/test-trunc2.c: Include minus-zero.h.
23446         (MINUS_ZERO): New macro.
23447         (trunc_reference): Keep in sync with lib/trunc.c.
23448         * tests/test-truncf2.c: Include minus-zero.h.
23449         (MINUS_ZERO): New macro.
23450         (truncf_reference): Keep in sync with lib/trunc.c.
23451         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23452         * tests/test-trunc-ieee.c (main): Likewise.
23453         * tests/test-truncl-ieee.c (main): Likewise.
23454
23455         ceil: Implement result sign according to IEEE 754.
23456         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23457         (FUNC): Return -0.0 for -1 < x < 0.
23458         * tests/test-ceil2.c: Include minus-zero.h.
23459         (MINUS_ZERO): New macro.
23460         (ceil_reference): Keep in sync with lib/ceil.c.
23461         * tests/test-ceilf2.c: Include minus-zero.h.
23462         (MINUS_ZERO): New macro.
23463         (ceilf_reference): Keep in sync with lib/ceil.c.
23464         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23465         * tests/test-ceil-ieee.c (main): Likewise.
23466         * tests/test-ceill-ieee.c (main): Likewise.
23467
23468         floor: Implement result sign according to IEEE 754.
23469         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23470         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23471         * tests/test-floorf2.c (floorf_reference): Likewise.
23472         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23473         * tests/test-floor-ieee.c (main): Likewise.
23474         * tests/test-floorl-ieee.c (main): Likewise.
23475
23476 2010-12-22  Bruno Haible  <bruno@clisp.org>
23477
23478         getaddrinfo: Update doc.
23479         * doc/posix-functions/gai_strerror.texi: Return type is also different
23480         on AIX and HP-UX.
23481
23482 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23483
23484         getaddrinfo, inet_ntop: Update doc for Solaris.
23485         * doc/posix-functions/gai_strerror.texi: Return type is also an
23486         issue on Solaris 9 and earlier.
23487         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23488         on Solaris 10 and earlier.
23489
23490 2010-12-21  Bruno Haible  <bruno@clisp.org>
23491
23492         New module 'roundl-ieee'.
23493         * modules/roundl-ieee: New file.
23494         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23495         test whether roundl works according to ISO C 99 with IEC 60559.
23496         * m4/roundl-ieee.m4: New file.
23497         * modules/roundl-ieee-tests: New file.
23498         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23499         * tests/test-roundl.c (main): Remove signbit tests.
23500         * modules/roundl-tests (Depends-on): Remove signbit.
23501         * doc/posix-functions/roundl.texi: Mention the new module.
23502
23503 2010-12-21  Bruno Haible  <bruno@clisp.org>
23504
23505         New module 'truncl-ieee'.
23506         * modules/truncl-ieee: New file.
23507         * modules/truncl-ieee-tests: New file.
23508         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23509         * tests/test-truncl.c (main): Remove signbit tests.
23510         * modules/truncl-tests (Depends-on): Remove signbit.
23511         * doc/posix-functions/truncl.texi: Mention the new module.
23512
23513 2010-12-21  Bruno Haible  <bruno@clisp.org>
23514
23515         New module 'ceill-ieee'.
23516         * modules/ceill-ieee: New file.
23517         * modules/ceill-ieee-tests: New file.
23518         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23519         * tests/test-ceill.c (main): Remove signbit tests.
23520         * modules/ceill-tests (Depends-on): Remove signbit.
23521         * doc/posix-functions/ceill.texi: Mention the new module.
23522
23523 2010-12-21  Bruno Haible  <bruno@clisp.org>
23524
23525         New module 'floorl-ieee'.
23526         * modules/floorl-ieee: New file.
23527         * modules/floorl-ieee-tests: New file.
23528         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23529         * tests/test-floorl.c (main): Remove signbit tests.
23530         * modules/floorl-tests (Depends-on): Remove signbit.
23531         * doc/posix-functions/floorl.texi: Mention the new module.
23532
23533 2010-12-21  Bruno Haible  <bruno@clisp.org>
23534
23535         New module 'round-ieee'.
23536         * modules/round-ieee: New file.
23537         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23538         whether round works according to ISO C 99 with IEC 60559.
23539         * m4/round-ieee.m4: New file.
23540         * modules/round-ieee-tests: New file.
23541         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23542         * tests/test-round1.c (main): Remove signbit tests.
23543         * modules/round-tests (Depends-on): Remove 'signbit'.
23544         * doc/posix-functions/round.texi: Mention the new module.
23545
23546 2010-12-21  Bruno Haible  <bruno@clisp.org>
23547
23548         New module 'trunc-ieee'.
23549         * modules/trunc-ieee: New file.
23550         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23551         whether trunc works according to ISO C 99 with IEC 60559.
23552         * m4/trunc-ieee.m4: New file.
23553         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23555         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23556         * modules/trunc-ieee-tests: New file.
23557         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23558         * tests/test-trunc1.c (main): Remove signbit tests.
23559         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23560         * doc/posix-functions/trunc.texi: Mention the new module.
23561
23562 2010-12-21  Bruno Haible  <bruno@clisp.org>
23563
23564         New module 'ceil-ieee'.
23565         * modules/ceil-ieee: New file.
23566         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23567         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23568         ISO C 99 with IEC 60559.
23569         * m4/ceil-ieee.m4: New file.
23570         * modules/ceil (Files): Add lib/ceil.c.
23571         (Depends-on): Add 'float'.
23572         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23573         * lib/math.in.h (ceil): New declaration.
23574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23575         REPLACE_CEIL.
23576         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23577         * modules/ceil-ieee-tests: New file.
23578         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23579         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23580         * doc/posix-functions/ceil.texi: Mention the new module.
23581
23582 2010-12-21  Bruno Haible  <bruno@clisp.org>
23583
23584         New module 'floor-ieee'.
23585         * modules/floor-ieee: New file.
23586         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23587         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23588         ISO C 99 with IEC 60559.
23589         * m4/floor-ieee.m4: New file.
23590         * modules/floor (Files): Add lib/floor.c.
23591         (Depends-on): Add 'float'.
23592         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23593         * lib/math.in.h (floor): New declaration.
23594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23595         REPLACE_FLOOR.
23596         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23597         * modules/floor-ieee-tests: New file.
23598         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23599         * tests/test-math-c++.cc: Check the signature of 'floor'.
23600         * doc/posix-functions/floor.texi: Mention the new module.
23601
23602 2010-12-21  Bruno Haible  <bruno@clisp.org>
23603
23604         New module 'roundf-ieee'.
23605         * modules/roundf-ieee: New file.
23606         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23607         test whether roundf works according to ISO C 99 with IEC 60559.
23608         * m4/roundf-ieee.m4: New file.
23609         * modules/roundf-ieee-tests: New file.
23610         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23611         * tests/test-roundf1.c (main): Remove signbit tests.
23612         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23613         * doc/posix-functions/roundf.texi: Mention the new module.
23614
23615 2010-12-21  Bruno Haible  <bruno@clisp.org>
23616
23617         New module 'truncf-ieee'.
23618         * modules/truncf-ieee: New file.
23619         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23620         test whether truncf works according to ISO C 99 with IEC 60559.
23621         * m4/truncf-ieee.m4: New file.
23622         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23624         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23625         * modules/truncf-ieee-tests: New file.
23626         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23627         * tests/test-truncf1.c (main): Remove signbit tests.
23628         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23629         * doc/posix-functions/truncf.texi: Mention the new module.
23630
23631 2010-12-21  Bruno Haible  <bruno@clisp.org>
23632
23633         New module 'ceilf-ieee'.
23634         * modules/ceilf-ieee: New file.
23635         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23636         test whether ceilf works according to ISO C 99 with IEC 60559.
23637         * m4/ceilf-ieee.m4: New file.
23638         * modules/ceilf-ieee-tests: New file.
23639         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23640         * tests/test-ceilf1.c (main): Remove signbit tests.
23641         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23642         * doc/posix-functions/ceilf.texi: Mention the new module.
23643
23644 2010-12-21  Bruno Haible  <bruno@clisp.org>
23645
23646         New module 'floorf-ieee'.
23647         * modules/floorf-ieee: New file.
23648         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23649         test whether floorf works according to ISO C 99 with IEC 60559.
23650         * m4/floorf-ieee.m4: New file.
23651         * modules/floorf-ieee-tests: New file.
23652         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23653         * tests/test-floorf1.c (main): Remove signbit tests.
23654         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23655         * doc/posix-functions/floorf.texi: Mention the new module.
23656
23657 2010-12-21  Bruno Haible  <bruno@clisp.org>
23658
23659         Support for minus zero in autoconf macros.
23660         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23661         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23662         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23663         * tests/minus-zero.h: Update comments.
23664
23665 2010-12-21  Bruno Haible  <bruno@clisp.org>
23666
23667         Tests for module 'ceil'.
23668         * modules/ceil-tests: New file.
23669         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23670         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23671
23672 2010-12-21  Bruno Haible  <bruno@clisp.org>
23673
23674         Tests for module 'floor'.
23675         * modules/floor-tests: New file.
23676         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23677         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23678
23679 2010-12-21  Bruno Haible  <bruno@clisp.org>
23680
23681         math: Fix indentation.
23682         * lib/math.in.h (floorf): Fix indentation.
23683
23684 2010-12-21  Bruno Haible  <bruno@clisp.org>
23685
23686         Fix cross-compilation guesses on Solaris.
23687         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23688         not match "solaris2.10".
23689         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23690         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23691         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23692
23693 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23694
23695         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23696         This fixes a problem observed with the latest coreutils snapshot
23697         that caused a test to fail on Solaris 8.  src/csplit.c's call
23698         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23699         earlier, instead of returning the number of bytes that would have
23700         been generated; this causes csplit to incorrectly report memory
23701         exhaustion.
23702         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23703         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23704         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23705         comments to match.
23706         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23707         Fix typo in matching older versions of Solaris: "solaris2.10"
23708         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23709         only for guessing while cross-compiling.
23710         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23711
23712 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23713
23714         ftoastr: fix comment again
23715         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23716         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23717         Also, simplify example a bit by using flags = 0.
23718
23719 2010-12-20  Bruno Haible  <bruno@clisp.org>
23720
23721         round*, trunc*: Update documentation regarding glibc.
23722         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23723         * doc/posix-functions/round.texi: Likewise.
23724         * doc/posix-functions/roundl.texi: Likewise.
23725         * doc/posix-functions/truncf.texi: Likewise.
23726         * doc/posix-functions/trunc.texi: Likewise.
23727         * doc/posix-functions/truncl.texi: Likewise.
23728
23729 2010-12-20  Bruno Haible  <bruno@clisp.org>
23730
23731         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23732         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23733         * doc/posix-functions/round.texi: Likewise.
23734         * doc/posix-functions/roundl.texi: Likewise.
23735
23736 2010-12-20  Bruno Haible  <bruno@clisp.org>
23737
23738         ttyname_r: Add missing declaration on HP-UX 11.
23739         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23740         HAVE_TTYNAME_R.
23741         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23742         declared. Set HAVE_TTYNAME_R always.
23743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23744         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23745         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23746         HAVE_TTYNAME_R.
23747         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23748
23749 2010-12-20  Bruno Haible  <bruno@clisp.org>
23750
23751         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23752         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23753         * doc/posix-functions/getlogin_r.texi: Likewise.
23754         * tests/test-getlogin.c: Include <errno.h>.
23755         (main): Avoid test failure on HP-UX 11.11.
23756         * tests/test-getlogin_r.c (main): Likewise.
23757
23758 2010-12-20  Bruno Haible  <bruno@clisp.org>
23759
23760         getlogin_r: Add missing declaration on HP-UX 11.
23761         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23762         declared also when it exists as a function.
23763         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23764
23765 2010-12-20  Bruno Haible  <bruno@clisp.org>
23766
23767         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23768         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23769         through wcrtomb.
23770
23771 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23772
23773         ftoastr: fix comment
23774         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23775         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23776
23777 2010-12-19  Bruno Haible  <bruno@clisp.org>
23778
23779         isnan: Ensure it is a macro.
23780         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23781         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23782         Solaris.
23783
23784 2010-12-19  Bruno Haible  <bruno@clisp.org>
23785
23786         ldexpl test: Fix link error on OSF/1 5.1.
23787         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23788
23789 2010-12-19  Bruno Haible  <bruno@clisp.org>
23790
23791         wctype: Make it work in C++ mode on OSF/1 5.1.
23792         * lib/wctype.in.h (iswblank): Declare but not define here.
23793         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23794         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23795         * modules/wctype (Files): Add lib/iswblank.c.
23796
23797 2010-12-19  Bruno Haible  <bruno@clisp.org>
23798
23799         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23800         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23801         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23802
23803 2010-12-19  Bruno Haible  <bruno@clisp.org>
23804
23805         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23806         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23807         _POSIX_PII_SOCKET.
23808         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23809         * doc/posix-functions/recvfrom.texi: Likewise.
23810         * doc/posix-functions/send.texi: Likewise.
23811         * doc/posix-functions/sendto.texi: Likewise.
23812
23813 2010-12-19  Bruno Haible  <bruno@clisp.org>
23814
23815         tcgetsid: Add missing declaration on OSF/1 5.1.
23816         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23817         HAVE_TCGETSID.
23818         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23819         Don't set HAVE_TCGETSID.
23820         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23821         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23822         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23823         HAVE_TCGETSID.
23824         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23825
23826 2010-12-19  Bruno Haible  <bruno@clisp.org>
23827
23828         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23829         * lib/stdio.in.h: During the include_next statement, let recursive
23830         includes of this file include only the system header file.
23831
23832 2010-12-19  Bruno Haible  <bruno@clisp.org>
23833
23834         iconv_open: Fix regression from 2010-12-04.
23835         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23836         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23837
23838 2010-12-19  Bruno Haible  <bruno@clisp.org>
23839
23840         stdbool test: Avoid a gcc warning.
23841         * tests/test-stdbool.c (main): Fail if e1 is false.
23842         Reported by Jim Meyering.
23843
23844 2010-12-19  Jim Meyering  <meyering@redhat.com>
23845
23846         setenv: restore to working order
23847         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23848         mistakenly removed.
23849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23850         HAVE_SETENV.
23851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23852         HAVE_SETENV.
23853
23854 2010-12-19  Bruno Haible  <bruno@clisp.org>
23855
23856         Document some different function declarations on OSF/1 5.1.
23857         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23858         * doc/posix-functions/inet_ntop.texi: Likewise.
23859         * doc/posix-functions/gethostname.texi: Likewise.
23860         * lib/unistd.in.h (gethostname): Update comment.
23861
23862 2010-12-19  Bruno Haible  <bruno@clisp.org>
23863
23864         doc: Mention vasprintf-posix module.
23865         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23866         the 'vasprintf-posix' module.
23867         * doc/glibc-functions/vasprintf.texi: Likewise.
23868
23869 2010-12-19  Bruno Haible  <bruno@clisp.org>
23870
23871         unsetenv: Add missing declaration on OSF/1 5.1.
23872         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23873         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23874         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23876         not HAVE_UNSETENV.
23877         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23878         HAVE_UNSETENV.
23879         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23880
23881 2010-12-19  Bruno Haible  <bruno@clisp.org>
23882
23883         setenv: Add missing declaration on OSF/1 5.1.
23884         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23885         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23886         declared. Don't set HAVE_SETENV.
23887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23888         not HAVE_SETENV.
23889         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23890         HAVE_SETENV.
23891         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23892
23893 2010-12-19  Bruno Haible  <bruno@clisp.org>
23894
23895         nl_langinfo tests: Avoid gcc warning.
23896         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23897
23898 2010-12-19  Bruno Haible  <bruno@clisp.org>
23899
23900         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23901         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23902         _GL_CXXALIAS_SYS.
23903
23904 2010-12-19  Bruno Haible  <bruno@clisp.org>
23905
23906         stdbool: Relax test.
23907         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23908         address to 'bool' work in static initializer, for compilers other than
23909         GCC.
23910
23911 2010-12-19  Bruno Haible  <bruno@clisp.org>
23912
23913         ftello: Add missing declaration on OSF/1 5.1.
23914         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23915         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23917         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23918         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23919
23920 2010-12-19  Bruno Haible  <bruno@clisp.org>
23921
23922         fseeko: Add missing declaration on OSF/1 5.1.
23923         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23924         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23926         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23927         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23928
23929 2010-12-19  Bruno Haible  <bruno@clisp.org>
23930
23931         fchdir: Add missing declaration on OSF/1 5.1.
23932         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23935         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23936         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23937
23938 2010-12-19  Bruno Haible  <bruno@clisp.org>
23939
23940         relocatable-prog-wrapper: Separate from relocatable-prog.
23941         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23942         uninstall-relocwrapper rule here.
23943         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23944         Reported by Ian Beckwith <ianb@erislabs.net>.
23945
23946 2010-12-19  Bruno Haible  <bruno@clisp.org>
23947
23948         unistr/u8-mbsnlen: Add missing dependency.
23949         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23950         Reported by Ian Beckwith <ianb@erislabs.net>.
23951
23952 2010-12-19  Bruno Haible  <bruno@clisp.org>
23953
23954         iconv: Make it possible again to use this module without 'iconv-h'.
23955         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23956         if it is not defined.
23957         Reported by Ian Beckwith <ianb@erislabs.net>.
23958
23959 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23960
23961         acl: port to Solaris 8 when copying from tmpfs to ufs
23962         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23963         error number.  Problem observed on Solaris 8 with latest
23964         coreutils, with "mv A B", where A is on a tmpfs file system and B
23965         is on a ufs file system.  This caused coreutils' mv/part-symlink
23966         test to fail.
23967
23968         tests: set fail=0 at start
23969         * tests/init.sh (setup_): Move fail=0 initialization here ...
23970         (mktempd_): ... from here, so that tests can rely on fail being
23971         set to 0 initially.  This fixes a problem in coreutils; see:
23972         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23973
23974 2010-12-18  Bruno Haible  <bruno@clisp.org>
23975
23976         memmem-simple: Stylistic changes.
23977         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23978         Fix preprocessor directive indentation.
23979
23980 2010-12-15  Pádraig Brady <P@draigBrady.com>
23981
23982         memmem, memmem-simple: reorganize and expand empty needle check
23983         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23984         functional checks to memmem-simple so that one has a fully functional
23985         memmem by using just this module.
23986         Restrict the performance only check to the memmem module.
23987         Also expand the empty needle check to ensure the correct
23988         pointer is returned, not just a non NULL pointer.
23989         * doc/glibc-functions/memmem.texi: Rearrange the portability
23990         documentation to correlate with the rearranged checks.
23991         Clarify exactly how the memmem and memmem-simple modules
23992         relate to each other.
23993
23994 2010-12-15  Pádraig Brady <P@draigBrady.com>
23995             Bruno Haible  <bruno@clisp.org>
23996
23997         Improve cross-compilation guesses for uClibc.
23998         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23999         that uClibc does not have the glibc bug.
24000         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24001         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24002
24003 2010-12-14  Eric Blake  <eblake@redhat.com>
24004
24005         configmake: provide fallbacks for oldest supported autotools
24006         * m4/configmake.m4: New file.
24007         * modules/configmake (Files): Ship it.
24008         (configure.ac): Use it to guarantee fallbacks.
24009
24010 2010-12-13  Pádraig Brady <P@draigBrady.com>
24011
24012         read-file: Improve handling of large files
24013         * lib/read-file.c (fread_file): Minimize realloc()s
24014         for regular files, and better manage sizes around SIZE_MAX.
24015
24016 2010-12-13  Eric Blake  <eblake@redhat.com>
24017
24018         cloexec, fcntl: relax license
24019         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24020         consent from all contributors.
24021         * modules/fcntl (License): Likewise.
24022
24023 2010-12-10  Bruno Haible  <bruno@clisp.org>
24024
24025         Tests for module 'pipe-posix'.
24026         * modules/pipe-posix-tests: New file.
24027         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24028
24029 2010-12-10  Bruno Haible  <bruno@clisp.org>
24030
24031         pipe-posix: Make it work in C++ mode.
24032         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24033         (pipe): Use common idiom, not a macro definition.
24034         * lib/pipe.c: New file.
24035         * m4/pipe.m4: New file.
24036         * modules/pipe-posix (Description): Enhance.
24037         (Files): Add lib/pipe.c, m4/pipe.m4.
24038         (configure.ac): Invoke gl_FUNC_PIPE.
24039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24040         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24041         * tests/test-unistd-c++.cc: Check the signature of pipe.
24042
24043 2010-12-10  Bruno Haible  <bruno@clisp.org>
24044
24045         Rename module 'pipe' to 'spawn-pipe'.
24046         * modules/spawn-pipe: New file, renamed from modules/pipe.
24047         (Files, configure.ac, Makefile.am): Update.
24048         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24049         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24050         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24051         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24052         "spawn-pipe.h" instead of "pipe.h".
24053         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24054         to gl_SPAWN_PIPE.
24055         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24056         (Files, Makefile.am): Update.
24057         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24058         Update.
24059         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24060         Include "spawn-pipe.h" instead of "pipe.h".
24061         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24062         * lib/javacomp.c: Likewise.
24063         * lib/javaversion.c: Likewise.
24064         * lib/pipe-filter-gi.c: Likewise.
24065         * lib/pipe-filter-ii.c: Likewise.
24066         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24067         * modules/javacomp (Depends-on): Likewise.
24068         * modules/javaversion (Depends-on): Likewise.
24069         * modules/pipe-filter-gi (Depends-on): Likewise.
24070         * modules/pipe-filter-ii (Depends-on): Likewise.
24071         * MODULES.html.sh (Executing programs): Update.
24072         * NEWS: Mention the change.
24073
24074 2010-12-10  Eric Blake  <eblake@redhat.com>
24075
24076         pipe-posix: new module
24077         * modules/pipe-posix: New file.
24078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24079         (gl_UNISTD_H): Check for declaration.
24080         * modules/unistd (Makefile.am): Substitute it.
24081         * lib/unistd.in.h (pipe): Provide it for mingw.
24082         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24083         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24084
24085 2010-12-07  Bruno Haible  <bruno@clisp.org>
24086
24087         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24088         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24089         u8_strcmp_gnu.
24090         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24091
24092 2010-12-06  Bruno Haible  <bruno@clisp.org>
24093
24094         Update internal documentation.
24095         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24096
24097 2010-12-04  Bruno Haible  <bruno@clisp.org>
24098
24099         Put more information about failed tests into the test return codes.
24100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24101         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24102         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24103         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24104         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24105         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24106         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24107         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24108         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24111         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24112         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24113         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24114         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24115         returns a bit mask.
24116         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24117         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24118         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24119         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24120         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24121         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24124         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24125         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24126         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24127         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24129         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24130         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24131         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24132         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24133         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24134         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24135         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24137         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24139         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24140         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24141         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24142         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24143         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24144         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24145         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24146         gl_PRINTF_PRECISION): Likewise.
24147         * m4/regex.m4 (gl_REGEX): Likewise.
24148         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24149         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24150         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24151         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24154         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24155         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24156         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24157         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24158         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24159         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24160         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24161         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24162         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24163         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24164         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24165         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24167         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24168         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24169         enumerated value.
24170         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24171
24172 2010-12-04  Bruno Haible  <bruno@clisp.org>
24173
24174         Update for Solaris 11 2010-11.
24175         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24176         Express, released in November 2010.
24177
24178 2010-12-04  Bruno Haible  <bruno@clisp.org>
24179
24180         nproc: Relax license.
24181         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24182         and Paul Eggert.
24183         Requested by Ludovic Courtès <ludo@gnu.org>.
24184
24185 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24186
24187         utimecmp: fine-grained src to nearby coarse-grained dest
24188
24189         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24190         and the source is on a file system with higher-resolution time
24191         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24192         not work, and the time stamps are close together, the algorithm to
24193         determine the exact resolution from the read-back mtime was buggy:
24194         it had a "!=" where it should have had an "==".  This bug has been
24195         in the code ever since it was introduced to gnulib.
24196         Problem reported by Dan Jacobson in
24197         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24198
24199 2010-11-30  Bruno Haible  <bruno@clisp.org>
24200
24201         strerror_r-posix: Fix autoconf test.
24202         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24203
24204 2010-11-28  Bruno Haible  <bruno@clisp.org>
24205             Paul Eggert  <eggert@cs.ucla.edu>
24206
24207         Tests for module 'getdomainname'.
24208         * modules/getdomainname-tests: New file.
24209         * tests/test-getdomainname.c: New file, based on
24210         tests/test-gethostname.c.
24211
24212 2010-11-28  Bruno Haible  <bruno@clisp.org>
24213             Paul Eggert  <eggert@cs.ucla.edu>
24214
24215         getdomainname: Use the system function when possible.
24216         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24217         (getdomainname): Replace if needed. Provide the declaration if it is
24218         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24219         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24220         (getdomainname): When the system has getdomainname, call the system
24221         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24222         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24223         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24224         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24225         the function if its second argument is of type 'int' or if it is found
24226         in libnsl.
24227         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24228         <sys/systeminfo.h> and sysinfo().
24229         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24231         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24232         HAVE_GETDOMAINNAME.
24233         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24234         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24235         * doc/glibc-functions/getdomainname.texi: Document the problems with
24236         the getdomainname declaration.
24237
24238 2010-11-28  Bruno Haible  <bruno@clisp.org>
24239
24240         sys_socket: Ensure ss_family field on AIX.
24241         * lib/sys_socket.in.h (ss_family): New macro definition.
24242         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24243         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24244         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24245         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24246         * modules/sys_socket (Makefile.am): Substitute
24247         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24248         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24249
24250 2010-11-27  Bruno Haible  <bruno@clisp.org>
24251
24252         readline: Improve configure output.
24253         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24254         "checking for readline..." result understandable.
24255
24256 2010-11-27  Bruno Haible  <bruno@clisp.org>
24257
24258         *printf-posix: Detect a bug on Solaris 10/x86.
24259         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24260         for floating-point output.
24261         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24262         directive.
24263         * tests/test-snprintf-posix.h (test_function): Likewise.
24264         * tests/test-sprintf-posix.h (test_function): Likewise.
24265         * tests/test-vasprintf-posix.c (test_function): Likewise.
24266         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24267         * doc/posix-functions/printf.texi: Likewise.
24268         * doc/posix-functions/snprintf.texi: Likewise.
24269         * doc/posix-functions/sprintf.texi: Likewise.
24270         * doc/posix-functions/vfprintf.texi: Likewise.
24271         * doc/posix-functions/vprintf.texi: Likewise.
24272         * doc/posix-functions/vsnprintf.texi: Likewise.
24273         * doc/posix-functions/vsprintf.texi: Likewise.
24274         * doc/glibc-functions/obstack_printf.texi: Likewise.
24275         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24276
24277 2010-11-27  Bruno Haible  <bruno@clisp.org>
24278
24279         Fix link error when module libunistring-optional is in use.
24280         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24281         * modules/striconveha-tests (Makefile.am): Likewise.
24282
24283 2010-11-27  Bruno Haible  <bruno@clisp.org>
24284
24285         regex: Mention link dependencies.
24286         * modules/regex (Link): New section.
24287         * modules/rpmatch (Link): Likewise.
24288         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24289
24290 2010-11-27  Bruno Haible  <bruno@clisp.org>
24291
24292         ftoastr: Fix compilation error on Solaris.
24293         * lib/ftoastr.c: Include <config.h>.
24294
24295 2010-11-27  Bruno Haible  <bruno@clisp.org>
24296
24297         getloadavg: Update documentation.
24298         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24299
24300 2010-11-27  Bruno Haible  <bruno@clisp.org>
24301
24302         sys_socket: Fix test whether the functions are declared.
24303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24304         not <sys/select.h>.
24305
24306 2010-11-27  Bruno Haible  <bruno@clisp.org>
24307
24308         getpass: Make sure to get system declaration on some platforms.
24309         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24310         gl_USE_SYSTEM_EXTENSIONS.
24311         * modules/getpass (Depends-on): Add extensions.
24312
24313 2010-11-26  Bruno Haible  <bruno@clisp.org>
24314
24315         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24316         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24317         'iconv' module is present.
24318         (ICONV_CONST): New macro.
24319         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24320         ICONV_CONST.
24321         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24322         set ICONV_CONST.
24323         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24324         here.
24325         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24326         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24327         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24328         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24329         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24330         present.
24331
24332 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         ftoastr: comment fix
24335         * lib/ftoastr.c: "little" -> "little or no" in comment
24336
24337 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24338
24339         stdint: port to GCC 4.3 + OSX + Octave
24340         On this platform, stdint.h is buggy and defines int64_t to long
24341         long int.  The replacement defined it to long int, causing
24342         problems with C++ style name mangling.  Instead, trust the system
24343         definition if INT64_MAX is defined, and likewise for the unsigned
24344         variant.   Problem reported by Jarno Rajahalme in
24345         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24346         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24347         and don't mess with int64_t and INT64_MAX in this case.
24348         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24349
24350 2010-11-24  Bruno Haible  <bruno@clisp.org>
24351
24352         doc: Corrections regarding MacOS X 10.4 and 10.5.
24353         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24354         MacOS X.
24355         Reported by Simon Josefsson.
24356
24357 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24358
24359         Uninstall ".bin" files installed by relocwrapper.
24360         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24361         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24362         unless it is already there.
24363
24364 2010-11-21  Bruno Haible  <bruno@clisp.org>
24365
24366         Update for NetBSD 5.0.
24367         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24368         NetBSD; the test fails on NetBSD 5.0.
24369         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24370         about NetBSD.
24371
24372 2010-11-21  Bruno Haible  <bruno@clisp.org>
24373
24374         Update for HP-UX 11.23 and HP-UX 11.31.
24375         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24376         HP-UX.
24377
24378 2010-11-21  Bruno Haible  <bruno@clisp.org>
24379
24380         Update for MacOS X 10.5.
24381         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24382         MacOS X; the test fails on MacOS X 10.5.8.
24383         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24384         about MacOS X.
24385
24386 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24387
24388         bootstrap: add bootstrap_sync option.
24389         See discussion at
24390         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24391         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24392         * build-aux/bootstrap: Accept --bootstrap-sync to update
24393         bootstrap if it is not identical to the local gnulib's
24394         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24395         enable this by default.  Accept --no-bootstrap-sync to disable
24396         it.
24397
24398 2010-11-20  Bruno Haible  <bruno@clisp.org>
24399
24400         Ensure that <features.h> is included before __GLIBC__ is tested.
24401         * lib/printf-parse.h: Include <features.h>.
24402         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24403         Reported by Mike Frysinger <vapier@gentoo.org>.
24404
24405         Ensure that <features.h> is included before __GLIBC__ is tested.
24406         * lib/wchar.in.h: Include <features.h>.
24407         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24408         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24409         Reported by Mike Frysinger <vapier@gentoo.org>.
24410
24411         Ensure that <features.h> is included before __GLIBC__ is tested.
24412         * lib/arpa_inet.in.h: Include <features.h>.
24413         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24414         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24415         Reported by Mike Frysinger <vapier@gentoo.org>.
24416
24417         Ensure that <features.h> is included before __GLIBC__ is tested.
24418         * build-aux/link-warning.h: Include <features.h>.
24419         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24420         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24421         Reported by Mike Frysinger <vapier@gentoo.org>.
24422
24423         Ensure that <features.h> is included before __GLIBC__ is tested.
24424         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24425         Reported by Mike Frysinger <vapier@gentoo.org>.
24426
24427 2010-11-20  Bruno Haible  <bruno@clisp.org>
24428
24429         memmem: Fix autoconf test.
24430         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24431
24432 2010-11-20  Bruno Haible  <bruno@clisp.org>
24433
24434         Port to uClibc.
24435         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24436         * lib/fcntl.in.h: Likewise.
24437         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24438         * lib/mbrtowc.c (mbrtowc): Likewise.
24439         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24440         * lib/strerror_r.c: Likewise.
24441         * lib/unistr/u8-strnlen.c: Likewise.
24442         * lib/vasnprintf.c (decimal_point_char): Likewise.
24443         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24444         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24445         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24446         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24447         * tests/test-sigaction.c (handler, main): Likewise.
24448         * lib/freading.h: Treat uClibc like a non-glibc platform.
24449         * lib/freading.c: Likewise.
24450         * lib/gettext.h: Likewise.
24451         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24452         Likewise.
24453         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24454         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24455         * lib/propername.c (proper_name_utf8): Likewise.
24456         * lib/spawn.in.h: Likewise.
24457         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24458         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24459         mem_cd_iconveh_internal): Likewise.
24460         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24461         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24462         strstr, strcasestr): Likewise.
24463         * lib/unicodeio.c (unicode_to_mb): Likewise.
24464         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24465         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24466         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24467         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24468         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24469         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24470         * lib/unistr/u8-stpncpy.c: Likewise.
24471         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24472         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24473         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24474         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24475         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24476         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24477         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24480         Likewise.
24481         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24482         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24483         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24485         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24486         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24487         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24488         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24489         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24490         * tests/test-striconveha.c (main): Likewise.
24491         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24492         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24493         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24494         * doc/posix-functions/getline.texi: Likewise.
24495         Reported by Mike Frysinger <vapier@gentoo.org>.
24496
24497 2010-11-20  Bruno Haible  <bruno@clisp.org>
24498
24499         nproc: Fix condition.
24500         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24501         HAVE_PTHREAD_AFFINITY_NP.
24502
24503 2010-11-20  Bruno Haible  <bruno@clisp.org>
24504
24505         Fix a comment.
24506         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24507
24508 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24509
24510         ftoastr: don't assume snprintf
24511         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24512         Implement a subset of snprintf here, by using sprintf safely.
24513         * modules/ftoastr (Depends-on): Remove snprintf.
24514
24515 2010-11-19  Jim Meyering  <meyering@redhat.com>
24516
24517         test-rename.h: fix compilation failure
24518         * tests/test-rename.h (test_rename): Add omitted "}".
24519
24520 2010-11-17  Jim Meyering  <meyering@redhat.com>
24521
24522         maint.mk: add a URL discussing the no-@acronym policy
24523         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24524
24525 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24526
24527         ftoastr: depend on snprintf, improve comments
24528         * lib/ftoastr.c: Also mention Loitsch's draft.
24529         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24530         needed in the current implementation, but it might simplify
24531         speeding up the code later.
24532         * modules/ftoastr: Depend on snprintf; this improves portability.
24533         Suggested by Bruno Haible in the same email.
24534
24535         ftoastr: port to hosts lacking strtof and strtold
24536         Problem reported by Bruno Haible in
24537         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24538         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24539         environment and strtold (and presumably strtof) are not available.
24540         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24541         (configure.ac): Require gl_C99_STRTOLD.
24542
24543 2010-11-18  Bruno Haible  <bruno@clisp.org>
24544
24545         c-strtold: Avoid link error on AIX 7.
24546         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24547         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24548         (gl_C_STRTOLD): Test whether strtold_l exists.
24549         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24550
24551 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24552
24553         intprops: new macro INT_BITS_STRLEN_BOUND
24554         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24555         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24556         not exposed.  Also, it uses a slightly tighter bound than before;
24557         though this makes no practical difference, we might as well be as
24558         tight as we easily can.
24559
24560         ftoastr: new module, for lossless conversion of floats to short strings
24561         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24562         * modules/ftoastr: New files.
24563
24564 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24565
24566         bootstrap: port to Solaris sed
24567         * build-aux/bootstrap (get_version): Port to Solaris sed.
24568         See Ralf Wildenhues's note in
24569         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24570
24571 2010-11-14  Jim Meyering  <meyering@redhat.com>
24572
24573         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24574         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24575         and move definition closer to sole use.
24576
24577 2010-11-13  Jim Meyering  <meyering@redhat.com>
24578
24579         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24580         Now we require at least autoconf-2.59, which means the work-around
24581         is no longer needed.
24582         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24583         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24584         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24585         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24586         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24587
24588 2010-11-13  Bruno Haible  <bruno@clisp.org>
24589
24590         rename, renameat: Avoid test failures at NFS mounted locations.
24591         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24592         functions.
24593         (test_rename): Use assert_nonexistent.
24594         * tests/test-rename.c: Include <dirent.h>.
24595         * tests/test-renameat.c: Likewise.
24596         Reported by Gary V. Vaughan <gary@gnu.org>.
24597
24598         rename, renameat: Document Linux bug with NFS
24599         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24600         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24601         * doc/posix-functions/renameat.texi: Likewise.
24602         Suggested by Eric Blake.
24603
24604 2010-11-13  Bruno Haible  <bruno@clisp.org>
24605
24606         rename test: Add comments.
24607         * tests/test-rename.h (test_rename): Add structure and comments.
24608
24609 2010-11-13  Eric Blake  <eblake@redhat.com>
24610
24611         maintainer-makefile: cover a few more files
24612         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24613         scripts generated within C files, for libvirt.
24614
24615 2010-11-13  Bruno Haible  <bruno@clisp.org>
24616
24617         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24618         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24619         character, return the number of bytes that belong together, not always
24620         1.
24621         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24622         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24623         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24624         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24625         number of bytes of an invalid character.
24626         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24627         (main): Invoke it.
24628         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24629         results.
24630         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24631         malformed byte sequences.
24632         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24633         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24634         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24635         Reported by Ben Pfaff and Paolo Bonzini.
24636
24637 2010-11-13  Bruno Haible  <bruno@clisp.org>
24638
24639         openat: Work around glibc bug with fchownat() and empty file names.
24640         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24641         (gl_FUNC_FCHOWNAT): Invoke it.
24642         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24643         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24644         Reported by Gary V. Vaughan <gary@gnu.org>.
24645
24646 2010-11-13  Bruno Haible  <bruno@clisp.org>
24647
24648         openat: Ensure autoconf macro ordering.
24649         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24650         gl_USE_SYSTEM_EXTENSIONS.
24651         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24652
24653 2010-11-13  Bruno Haible  <bruno@clisp.org>
24654
24655         Update comments.
24656         * lib/unistr/u8-check.c: Update file name in comments.
24657         * lib/unistr/u8-mblen.c: Likewise.
24658         * lib/unistr/u8-prev.c: Likewise.
24659         * lib/unistr/u8-strmblen.c: Likewise.
24660         * lib/unistr/u8-strmbtouc.c: Likewise.
24661
24662 2010-11-13  Jim Meyering  <meyering@redhat.com>
24663
24664         tests: avoid test failure on Solaris 10 due to lack of PATH export
24665         * tests/test-update-copyright.sh: Don't forget to export PATH.
24666
24667         init.sh: ensure that IFS is defined, just in case...
24668         * tests/init.sh (setup_): Ensure that IFS is defined,
24669         so that saving and restoring it works as expected.  This
24670         appears to be useful at least for an old version of dash
24671         from a long time ago (RH 6).  See here for details:
24672         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24673
24674         maint.mk: tighten "test a == b" check
24675         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24676         test to files that contain something like #!/bin/sh.
24677         Without this, coreutils would get two false positives in
24678         the comments of C source files.
24679
24680 2010-11-12  Eric Blake  <eblake@redhat.com>
24681
24682         bootstrap: fix typo in previous attempt
24683         * build-aux/bootstrap (buildreq): Correct the grouping.
24684         Reported by Paul Eggert.
24685
24686         maintainer-makefile: prohibit test x == x
24687         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24688         Based on a report by Matthias Bolte.
24689
24690         bootstrap: allow FreeBSD gzip
24691         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24692         which has no '.' and goes to stderr.
24693         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24694         Reported by Matthias Bolte.
24695
24696         maintainer-makefile: check for i18n setup
24697         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24698         will likely work.
24699
24700 2010-11-12  Bruno Haible  <bruno@clisp.org>
24701
24702         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24703         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24704         * lib/nanosleep.c (nanosleep): Likewise.
24705
24706 2010-11-11  Bruno Haible  <bruno@clisp.org>
24707
24708         fcntl-h: Fix for use of C++ on glibc systems.
24709         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24710         also on glibc systems in C++ mode.
24711         Reported by Gary V. Vaughan <gary@gnu.org>.
24712
24713 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24714
24715         mknod: avoid false failure with dash
24716         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24717
24718 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24719
24720         unlink: Fix "is it should" typo in diagnostic.
24721         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24722         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24723
24724 2010-11-11  Bruno Haible  <bruno@clisp.org>
24725
24726         Tests for module 'strerror_r-posix'.
24727         * modules/strerror_r-posix-tests: New file.
24728         * tests/test-strerror_r.c: New file.
24729         * tests/test-string-c++.cc: Check the signature of strerror_r.
24730
24731         New module 'strerror_r-posix'.
24732         * lib/string.in.h (strerror_r): New declaration.
24733         * lib/strerror_r.c: New file.
24734         * m4/strerror_r.m4: New file.
24735         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24736         of strerror_r.
24737         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24738         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24739         * modules/strerror_r-posix: New file.
24740         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24741         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24742         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24743         portability problems.
24744
24745 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24746
24747         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24748         line is also considered for output. Quoted function name in shell
24749         command, so temporary files for functions like MyClass::operator()
24750         are removed correctly without errors.
24751
24752 2010-11-09  Bruno Haible  <bruno@clisp.org>
24753
24754         * doc/posix-functions/strerror.texi: List more failing platforms.
24755
24756         * doc/posix-functions/strerror.texi: Add a comment.
24757
24758 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24759
24760         fdopendir: fix bug on MacOS X when low on file descriptors
24761
24762         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24763         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24764         All callers changed.
24765         (fdopendir): Invoke save_cwd at the top level, not after using
24766         multiple dup() calls to use up file descriptors.  Then retry
24767         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24768         less than the maximum number of open file descriptors, because
24769         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24770         on Mac OS X 10.6.4 for tar 1.24
24771         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24772         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24773         and for tar 1.25
24774         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24775
24776 2010-11-07  Bruno Haible  <bruno@clisp.org>
24777
24778         vasnprintf: Support I flag on glibc systems.
24779         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24780         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24781         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24782         snprintf function.
24783         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24784         glibc systems.
24785         * tests/test-vasnprintf-posix3.c: New file.
24786         * modules/vasnprintf-posix-tests (Files): Add it.
24787         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24788
24789 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24790
24791         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24792         * MODULES.html.sh: For compiler warnings, use name
24793         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24794
24795 2010-11-05  Eric Blake  <eblake@redhat.com>
24796
24797         ceil, floor: avoid spurious failure with icc
24798         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24799         [denormals-as-zero] when optimizing without -mieee-fp option.
24800         * tests/test-floorf2.c (floorf_reference): Likewise.
24801         * tests/test-ceilf1.c (dummy): New function.
24802         (main): Use it to outsmart icc's optimization.
24803         * tests/test-floorf1.c (dummy, main): Likewise.
24804
24805         tests: require working signbit
24806         * modules/ceilf-tests (Depends-on): Add signbit.
24807         * modules/ceill-tests (Depends-on): Likewise.
24808         * modules/floorf-tests (Depends-on): Likewise.
24809         * modules/floorl-tests (Depends-on): Likewise.
24810         * modules/round-tests (Depends-on): Likewise.
24811         * modules/roundf-tests (Depends-on): Likewise.
24812         * modules/roundl-tests (Depends-on): Likewise.
24813         * modules/trunc-tests (Depends-on): Likewise.
24814         * modules/truncf-tests (Depends-on): Likewise.
24815         * modules/truncl-tests (Depends-on): Likewise.
24816
24817         strtod: work around icc bug
24818         * lib/strtod.c (minus_zero): Define to working value.
24819         (strtod): Use it to avoid icc bug.
24820
24821         copysign: enhance tests
24822         * modules/copysign-tests (Files): Add minus-zero.h.
24823         * tests/test-copysign.c (main): Also test zeros.
24824
24825 2010-11-04  Eric Blake  <eblake@redhat.com>
24826
24827         ceil, floor, round, trunc: enhance tests of -0
24828         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24829         * tests/test-ceill.c (main): Likewise.
24830         * tests/test-floorf1.c (main): Likewise.
24831         * tests/test-floorl.c (main): Likewise.
24832         * tests/test-round1.c (main): Likewise.
24833         * tests/test-roundf1.c (main): Likewise.
24834         * tests/test-roundl.c (main): Likewise.
24835         * tests/test-trunc1.c (main): Likewise.
24836         * tests/test-truncf1.c (main): Likewise.
24837         * tests/test-truncl.c (main): Likewise.
24838
24839 2010-11-04  Eric Blake  <eblake@redhat.com>
24840
24841         frexp, tests: work around ICC bug with -zero
24842         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24843         works with more compilers.
24844         * tests/minus-zero.h: New file.
24845         * modules/ceilf-tests (Files): Include it.
24846         * modules/ceill-tests (Files): Likewise.
24847         * modules/floorf-tests (Files): Likewise.
24848         * modules/floorl-tests (Files): Likewise.
24849         * modules/frexp-nolibm-tests (Files): Likewise.
24850         * modules/frexp-tests (Files): Likewise.
24851         * modules/frexpl-nolibm-tests (Files): Likewise.
24852         * modules/frexpl-tests (Files): Likewise.
24853         * modules/isnan-tests (Files): Likewise.
24854         * modules/isnand-nolibm-tests (Files): Likewise.
24855         * modules/isnand-tests (Files): Likewise.
24856         * modules/isnanf-nolibm-tests (Files): Likewise.
24857         * modules/isnanf-tests (Files): Likewise.
24858         * modules/isnanl-nolibm-tests (Files): Likewise.
24859         * modules/isnanl-tests (Files): Likewise.
24860         * modules/round-tests (Files): Likewise.
24861         * modules/roundf-tests (Files): Likewise.
24862         * modules/roundl-tests (Files): Likewise.
24863         * modules/ldexpl-tests (Files): Likewise.
24864         * modules/signbit-tests (Files): Likewise.
24865         * modules/snprintf-posix-tests (Files): Likewise.
24866         * modules/sprintf-posix-tests (Files): Likewise.
24867         * modules/strtod-tests (Files): Likewise.
24868         * modules/trunc-tests (Files): Likewise.
24869         * modules/truncf-tests (Files): Likewise.
24870         * modules/truncl-tests (Files): Likewise.
24871         * modules/vsnprintf-posix-tests (Files): Likewise.
24872         * modules/vsprintf-posix-tests (Files): Likewise.
24873         * modules/vasnprintf-posix-tests (Files): Likewise.
24874         * modules/vasprintf-posix-tests (Files): Likewise.
24875         * tests/test-ceilf1.c (main): Use it.
24876         * tests/test-ceill.c (main): Likewise.
24877         * tests/test-floorf1.c (main): Likewise.
24878         * tests/test-floorl.c (main): Likewise.
24879         * tests/test-frexp.c (main): Likewise.
24880         * tests/test-frexpl.c (main): Likewise.
24881         * tests/test-isnan.c (main): Likewise.
24882         * tests/test-isnand.h (main): Likewise.
24883         * tests/test-isnanf.h (main): Likewise.
24884         * tests/test-isnanl.h (main): Likewise.
24885         * tests/test-ldexpl.c (main): Likewise.
24886         * tests/test-round.c (main): Likewise.
24887         * tests/test-roundf.c (main): Likewise.
24888         * tests/test-roundl.c (main): Likewise.
24889         * tests/test-signbit.c (test_signbitf, test_signbitd)
24890         (test_signbitl): Likewise.
24891         * tests/test-snprintf-posix.h (test_function): Likewise.
24892         * tests/test-sprintf-posix.h (test_function): Likewise.
24893         * tests/test-strtod.c (main): Likewise.
24894         * tests/test-trunc1.c (main): Likewise.
24895         * tests/test-truncf1.c (main): Likewise.
24896         * tests/test-truncl.c (main): Likewise.
24897
24898         isnanl: work around icc bug
24899         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24900
24901 2010-11-03  Eric Blake  <eblake@redhat.com>
24902
24903         tests: fix compiler warnings
24904         * tests/test-getopt.h (test_getopt): Fix condition.
24905         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24906         * tests/test-pipe2.c (main): Likewise.
24907         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24908
24909         utimens: fix broken m4 test
24910         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24911
24912 2010-10-28  Bruno Haible  <bruno@clisp.org>
24913
24914         posix_spawn*, getdtablesize: Relax license.
24915         * modules/posix_spawn (License): Change to LGPLv2+.
24916         * modules/posix_spawnp (License): Likewise.
24917         * modules/posix_spawn-internal (License): Likewise.
24918         * modules/posix_spawnattr_init (License): Likewise.
24919         * modules/posix_spawnattr_getflags (License): Likewise.
24920         * modules/posix_spawnattr_setflags (License): Likewise.
24921         * modules/posix_spawnattr_getpgroup (License): Likewise.
24922         * modules/posix_spawnattr_setpgroup (License): Likewise.
24923         * modules/posix_spawnattr_getschedparam (License): Likewise.
24924         * modules/posix_spawnattr_setschedparam (License): Likewise.
24925         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24926         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24927         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24928         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24929         * modules/posix_spawnattr_getsigmask (License): Likewise.
24930         * modules/posix_spawnattr_setsigmask (License): Likewise.
24931         * modules/posix_spawnattr_destroy (License): Likewise.
24932         * modules/posix_spawn_file_actions_init (License): Likewise.
24933         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24934         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24935         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24936         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24937         * modules/getdtablesize (License): Likewise.
24938         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24939
24940 2010-10-26  Bruno Haible  <bruno@clisp.org>
24941
24942         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24943         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24944         Cygwin and mingw.
24945         Suggested by Eric Blake.
24946
24947 2010-10-26  Bruno Haible  <bruno@clisp.org>
24948
24949         stdio: Work around compilation error due to renameat() on Solaris 10.
24950         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24951         * lib/renameat.c: Don't include <unistd.h> here.
24952         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24953         Reported by Paul Eggert and Eric Blake.
24954
24955 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24956
24957         renameat: port to Solaris 10, which declares renameat in unistd.h
24958
24959         * lib/renameat.c: Include unistd.h before stdio.h, because
24960         Solaris 10 declares renameat in unistd.h.  Problem encountered
24961         when building GNU tar 1.24 on Solaris 10.
24962
24963 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24964
24965         fdopendir: fix C89 compilation
24966         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24967         compilers.
24968
24969 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24970
24971         inttostr: simplify by removing unnecessary redundancy
24972         * lib/anytostr.c: Don't include verify.h.
24973         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24974         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24975         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24976         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24977         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24978         Likewise.
24979         * modules/inttostr (Depends-on): Remove 'verify'.
24980
24981 2010-10-23  Bruno Haible  <bruno@clisp.org>
24982
24983         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24984         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24985         Reported by Eric Blake.
24986
24987 2010-10-23  Bruno Haible  <bruno@clisp.org>
24988
24989         Tests: Fix LOCALE_JA on MirBSD 10.
24990         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24991         to an UTF-8 locale.
24992         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24993         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24994         Reported by Eric Blake.
24995
24996 2010-10-21  Bruno Haible  <bruno@clisp.org>
24997
24998         nl_langinfo test: Avoid test failure on NetBSD 5.
24999         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25000         Reported by Eric Blake.
25001
25002 2010-10-21  Eric Blake  <eblake@redhat.com>
25003
25004         c-stack: work around libsigsegv 2.8 bug
25005         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25006         overflow on at least PowerPC64.
25007
25008 2010-10-17  Bruno Haible  <bruno@clisp.org>
25009
25010         userspec: Drop redundant file.
25011         * modules/userspec (Files): Remove lib/inttostr.h.
25012
25013 2010-10-17  Bruno Haible  <bruno@clisp.org>
25014
25015         nl_langinfo tests: Silence some warnings.
25016         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25017         Reported by Jim Meyering.
25018
25019 2010-10-17  Bruno Haible  <bruno@clisp.org>
25020
25021         Make use of GCC's attribute __alloc_size__.
25022         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25023         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25024         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25025         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25026         __alloc_size__.
25027         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25028         Suggested by Jim Meyering.
25029
25030 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25031
25032         bootstrap: anchor .gitignore entries.
25033         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25034         with...
25035         (insert_vc_ignore): ... this new function, which prepends `/' to
25036         all .gitignore entries before passing them to
25037         insert_sorted_if_absent.
25038
25039 2010-10-16  Bruno Haible  <bruno@clisp.org>
25040
25041         nextafter: Fix configure check.
25042         * modules/nextafter (configure.ac): Correct expected prototype.
25043
25044 2010-10-16  Bruno Haible  <bruno@clisp.org>
25045
25046         termios: Update documentation.
25047         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25048
25049 2010-10-16  Bruno Haible  <bruno@clisp.org>
25050
25051         tests: Make them compile with TinyCC.
25052         * tests/test-strstr.c (main): Remove parentheses around array
25053         initializer.
25054
25055 2010-10-15  Eric Blake  <eblake@redhat.com>
25056
25057         ignore-value: make header idempotent
25058         * lib/ignore-value.h: Add double-inclusion guards.
25059         Reported by Stefan Berger.
25060
25061 2010-10-15  Jim Meyering  <meyering@redhat.com>
25062
25063         GNUmakefile: handle "stable" target, not "major"
25064         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25065         lists in maint.mk and announce-gen.  Without this, "make stable"
25066         would fail to ensure that $(VERSION) is up to date.
25067
25068 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25069
25070         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25071         & co.
25072
25073 2010-10-14  Bruno Haible  <bruno@clisp.org>
25074
25075         vasnprintf: Don't set errno to 0.
25076         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25077         block that sets it to 0.
25078         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25079
25080 2010-10-14  Bruno Haible  <bruno@clisp.org>
25081
25082         socketlib: Fix.
25083         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25084         gl_PREREQ_SYS_H_WINSOCK2.
25085         Reported by Ian Beckwith <ianb@erislabs.net>.
25086
25087 2010-10-13  Jim Meyering  <meyering@redhat.com>
25088
25089         test-select-stdin.c: avoid warn_unused_result warnings
25090         * tests/test-select-stdin.c: Include "macros.h".
25091         ASSERT that read and fflush succeed.
25092
25093 2010-10-13  Jim Meyering  <meyering@redhat.com>
25094
25095         git-version-gen: do require git-VC'd files in cwd
25096         * build-aux/git-version-gen: Reject a git version string
25097         if there are no commits associated with the current directory.
25098         This avoids an unlikely false-positive (unrelated dir whose parent
25099         repository also contains a tag matching v*), as pointed out
25100         by Giuseppe Scrivano in
25101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25102
25103 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25104
25105         argv-iter: omit nonconforming declaration
25106         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25107         enum arg_iter_err declaration, which doesn't conform to C99.
25108         Solaris 10 cc warns about this.
25109
25110 2010-10-13  Eric Blake  <eblake@redhat.com>
25111
25112         termios: fix compilation on mingw
25113         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25114         (gl_TERMIOS_H): Adjust it on mingw.
25115         * modules/termios (Makefile.am): Substitute new key.
25116         * lib/termios.in.h (includes): Make include_next conditional.
25117         * doc/posix-headers/termios.texi (termios.h): Update
25118         documentation.
25119         Reported by Daniel P. Berrange.
25120
25121 2010-10-13  Jim Meyering  <meyering@redhat.com>
25122
25123         git-version-gen: don't require that .git/ be in the current dir
25124         * build-aux/git-version-gen: Adjust this script so that it works
25125         when run from any working directory beneath the top-level .git/-
25126         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25127         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25128
25129         test-select: avoid warn_unused_result warnings
25130         * tests/test-select.c: Include "macros.h".
25131         ASSERT that each call to read, write, and pipe succeeds.
25132         While not technically required, also check each "close".
25133         * modules/select-tests (Files): Add tests/macros.h.
25134
25135         test-symlinkat: remove declaration of unused local
25136         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25137
25138         test-inttostr: avoid shadowing warnings
25139         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25140         and use malloc rather than the stack for the same reason as
25141         mentioned in the comment justifying the other allocation.
25142
25143 2010-10-11  Bruno Haible  <bruno@clisp.org>
25144
25145         stdlib: Allow multiple gnulib generated replacements to coexist.
25146         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25147         Reported by Sam Steingold <sds@gnu.org>.
25148
25149 2010-10-11  Jim Meyering  <meyering@redhat.com>
25150
25151         fix a documentation typo
25152         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25153
25154 2010-10-11  Eric Blake  <eblake@redhat.com>
25155
25156         futimens: work around Solaris 11 bug
25157         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25158         * tests/test-futimens.h (test_futimens): Enhance, rather than
25159         weaken test.
25160         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25161
25162 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25163
25164         Indentation.
25165         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25166         higher-level operators more to the left.
25167
25168 2010-10-11  Jim Meyering  <meyering@redhat.com>
25169
25170         test-futimens: avoid unwarranted test failure on Solaris 5.11
25171         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25172         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25173         because it tries to dereference the NULL name argument.
25174
25175 2010-10-11  Bruno Haible  <bruno@clisp.org>
25176
25177         Indentation.
25178         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25179         indentation.
25180
25181 2010-10-11  Jim Meyering  <meyering@redhat.com>
25182
25183         spawn.in.h: make indentation consistent with parentheses
25184         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25185         Make indentation consistent with parentheses.
25186
25187 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25188
25189         Fix mismatched parens in previous commit
25190         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25191         parens.
25192
25193 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25194
25195         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25196
25197         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25198         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25199         * lib/malloca.c: Include "verify.h".
25200         (verify1): Remove, replacing with a verify call.
25201         * lib/relocwrapper.c (verify1): Likewise.
25202         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25203         Likewise.
25204         * modules/malloca (Depends-on): Add 'verify'.
25205         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25206         * modules/vasnprintf (Depends-on): Add 'verify'.
25207         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25208         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25209         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25210         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25211         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25212         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25213         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25214
25215         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25216
25217         Formerly the style was sometimes 2*X - 1, because the C standard
25218         was wrongly thought to disallow ?: in integral constant expressions.
25219         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25220         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25221         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25222         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25223         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25224         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25225         verify that time_t cannot be floating.
25226
25227 2010-10-08  Eric Blake  <eblake@redhat.com>
25228
25229         time: enforce recent POSIX ruling that time_t is integral
25230         * lib/time.in.h (__time_t_must_be_integral): Detect any
25231         problematic systems, allowing the rest of gnulib to assume POSIX.
25232
25233 2010-10-08  Jim Meyering  <meyering@redhat.com>
25234
25235         fdopendir: fix a bug on systems lacking openat and /proc support
25236         OpenBSD 4.7 is one such system.  The most noticeable effect was
25237         failure of any application making nontrivial use of fts: rm, du,
25238         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25239           ./rm: traversal failed: `a': Bad file descriptor
25240         Debugging that, you see that even though FD 6 was closed just
25241         prior to the opendir call in fd_clone_opendir, its resulting
25242         dir->dd_fd was 8, rather than the expected value of 6:
25243
25244         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25245         93                close (fd);
25246         (gdb) n
25247         94                dir = fd_clone_opendir (dupfd);
25248         (gdb) n
25249         95                saved_errno = errno;
25250         (gdb) p dir->dd_fd
25251         $11 = 8
25252
25253         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25254         The problem is that on OpenBSD, fd_clone_opendir has to resort
25255         to using the old-style save/restore CWD mechanism, due to its
25256         lack of openat/proc support, and *that* would steal the FD (6)
25257         that opendir was supposed to use.
25258
25259         The fix is to squirrel away the desired FD so that save_cwd uses a
25260         different one, and then free the dest FD right before calling opendir.
25261         That guarantees opendir will use the required file descriptor.
25262
25263         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25264
25265 2010-10-08  Bruno Haible  <bruno@clisp.org>
25266
25267         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25268         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25269
25270 2010-10-08  Bruno Haible  <bruno@clisp.org>
25271
25272         nanosleep: Make replacement POSIX compliant.
25273         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25274         is out of range.
25275         Reported by Jim Meyering.
25276
25277 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25278
25279         bootstrap: add hook for altering gnulib.mk, for Bison
25280         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25281         the Bison bootstrapping process can rewrite file names and variables
25282         in this file before later parts of 'bootstrap' use the file.
25283         Bison wants to include lib/gnulib.mk from the top-level makefile,
25284         so it needs the file names in this file to be relative to the top
25285         level, not relative to lib; plus it needs variable names to be
25286         rewritten.
25287         (slurp): Use the new function.
25288
25289         bootstrap: reformat for readability
25290         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25291
25292 2010-10-08  Eric Blake  <eblake@redhat.com>
25293
25294         docs: update cygwin progress
25295         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25296         1.7.7.
25297         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25298         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25299         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25300         * doc/posix-functions/carg.texi (carg): Likewise.
25301         * doc/posix-functions/cargf.texi (cargf): Likewise.
25302         * doc/posix-functions/casin.texi (casin): Likewise.
25303         * doc/posix-functions/casinf.texi (casinf): Likewise.
25304         * doc/posix-functions/casinh.texi (casinh): Likewise.
25305         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25306         * doc/posix-functions/catan.texi (catan): Likewise.
25307         * doc/posix-functions/catanf.texi (catanf): Likewise.
25308         * doc/posix-functions/catanh.texi (catanh): Likewise.
25309         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25310         * doc/posix-functions/ccos.texi (ccos): Likewise.
25311         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25312         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25313         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25314         * doc/posix-functions/cexp.texi (cexp): Likewise.
25315         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25316         * doc/posix-functions/cimag.texi (cimag): Likewise.
25317         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25318         * doc/posix-functions/clog.texi (clog): Likewise.
25319         * doc/posix-functions/clogf.texi (clogf): Likewise.
25320         * doc/posix-functions/conj.texi (conj): Likewise.
25321         * doc/posix-functions/conjf.texi (conjf): Likewise.
25322         * doc/posix-functions/cpow.texi (cpow): Likewise.
25323         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25324         * doc/posix-functions/cproj.texi (cproj): Likewise.
25325         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25326         * doc/posix-functions/creal.texi (creal): Likewise.
25327         * doc/posix-functions/crealf.texi (crealf): Likewise.
25328         * doc/posix-functions/csin.texi (csin): Likewise.
25329         * doc/posix-functions/csinf.texi (csinf): Likewise.
25330         * doc/posix-functions/csinh.texi (csinh): Likewise.
25331         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25332         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25333         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25334         * doc/posix-functions/ctan.texi (ctan): Likewise.
25335         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25336         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25337         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25338         * doc/posix-headers/complex.texi (complex.h): Likewise.
25339
25340 2010-10-07  Jim Meyering  <meyering@redhat.com>
25341
25342         parse-datetime: avoid compilation failure on OpenBSD 4.7
25343         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25344         This works around a compilation failure on OpenBSD 4.7:
25345         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25346
25347 2010-10-07  Eric Blake  <eblake@redhat.com>
25348
25349         docs: update cygwin progress
25350         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25351         1.7.6.
25352         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25353         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25354         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25355         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25356         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25357         Likewise.
25358         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25359         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25360         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25361         Likewise.
25362         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25363         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25364         Likewise.
25365         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25366         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25367         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25368         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25369         Likewise.
25370         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25371         Likewise.
25372         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25373
25374         docs: update parse-datetime history
25375         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25376         documentation of this function's history and alternatives.
25377
25378         cygwin: use more robust version check
25379         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25380         exclude an eventual cygwin 1.9.1.
25381         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25383         (gl_FUNC_STRCASESTR): Likewise.
25384         Reported by Bruno Haible.
25385
25386 2010-10-06  Bruno Haible  <bruno@clisp.org>
25387
25388         string, sys_select: Avoid #including large headers unless necessary.
25389         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25390         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25391         OSF/1, BeOS, Haiku.
25392         Reported by Jim Meyering.
25393
25394 2010-10-05  Eric Blake  <eblake@redhat.com>
25395
25396         memmem, strstr, strcasestr: fix bug with long periodic needle
25397         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25398         periodic needle having false positive.
25399         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25400         and cygwin 1.7.7.
25401         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25403         (gl_FUNC_STRCASESTR): Likewise.
25404         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25405         * tests/test-memmem.c (main): Expose the bug.
25406         * tests/test-strcasestr.c (main): Likewise.
25407         * tests/test-strstr.c (main): Likewise.
25408         * tests/test-c-strcasestr.c (main): Likewise.
25409         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25410         * doc/posix-functions/strstr.texi (strstr): Likewise.
25411         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25412         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25413
25414 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25415
25416         parse-datetime: do some more renaming
25417         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25418         parse_datetime, not get_date.  Mention the renaming.
25419         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25420         in comments.
25421         * m4/bison.m4: Likewise.
25422
25423 2010-10-05  Eric Blake  <eblake@redhat.com>
25424
25425         parse-datetime: better name than get_date
25426         * NEWS: Reword the deprecation notice.
25427         * modules/get_date: Rename to modules/parse-datetime.
25428         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25429         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25430         * lib/get_date.y: Rename to lib/parse-datetime.y.
25431         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25432         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25433         * doc/getdate.texi: Provide fallback wrapper.
25434         * lib/getdate.h: Move guts, and wrap...
25435         * lib/parse-datetime.h: ...new file.
25436         * lib/parse-datetime.y (get_date): Rename...
25437         (parse_datetime): ...to this.
25438         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25439         (gl_PARSE_DATETIME): ...to this.
25440         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25441         documentation.
25442         * modules/getdate (Files): Provide fallback docs and header.
25443         (Notice, Depends-on): Update references.
25444         * tests/test-parse-datetime.c: Likewise.
25445         * DEPENDENCIES: Likewise.
25446         * MODULES.html.sh (Date and time <time.h>): Likewise.
25447         * doc/parse-datetime.texi (Date input formats)
25448         (Authors of parse_datetime): Likewise.
25449         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25450         (Include): Likewise.
25451         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25452         * gnulib-tool: Likewise.
25453         * m4/bison.m4 (gl_BISON): Likewise.
25454         Suggested by Bruno Haible.
25455
25456 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25457
25458         more ports to Solaris tr, which needs [] around ranges
25459         * gnulib-tool: Solaris tr needs [] around ranges.
25460         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25461         * tests/test-pipe-filter-gi1.c (main): Likewise.
25462         * tests/test-pipe-filter-ii1.c (main): Likewise.
25463
25464 2010-10-05  Eric Blake  <eblake@redhat.com>
25465
25466         bootstrap: fix Solaris regression
25467         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25468         around ranges.
25469         Reported by Pádraig Brady.
25470
25471         bootstrap: work with pkg-config
25472         * build-aux/bootstrap (check_versions): Also transliterate - in
25473         prerequisite name.
25474         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25475         prerequisites that were already found, to avoid confusion.
25476         Reported by Justin Clift.
25477
25478         faccessat: remove unused wrappers
25479         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25480         presence of these wrappers dragged in -lgen on Solaris.
25481         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25482
25483 2010-10-05  Jim Meyering  <meyering@redhat.com>
25484
25485         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25486         * Makefile (sc_pragma_columns): New syntax-check rule.
25487
25488 2010-10-04  Bruno Haible  <bruno@clisp.org>
25489
25490         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25491         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25492         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25493         Reported by Bruce Korb and Eric Blake.
25494
25495 2010-10-04  Bruno Haible  <bruno@clisp.org>
25496
25497         threadlib: Make option --with-libpth-prefix work.
25498         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25499         use $LIBPTH, not just -lpth.
25500
25501 2010-10-04  Bruno Haible  <bruno@clisp.org>
25502
25503         Avoid line length limitation from HP NonStop system header files.
25504         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25505         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25506         * lib/ctype.in.h: Likewise.
25507         * lib/dirent.in.h: Likewise.
25508         * lib/errno.in.h: Likewise.
25509         * lib/fcntl.in.h: Likewise.
25510         * lib/float.in.h: Likewise.
25511         * lib/getopt.in.h: Likewise.
25512         * lib/iconv.in.h: Likewise.
25513         * lib/inttypes.in.h: Likewise.
25514         * lib/langinfo.in.h: Likewise.
25515         * lib/locale.in.h: Likewise.
25516         * lib/math.in.h: Likewise.
25517         * lib/netdb.in.h: Likewise.
25518         * lib/netinet_in.in.h: Likewise.
25519         * lib/poll.in.h: Likewise.
25520         * lib/pthread.in.h: Likewise.
25521         * lib/pty.in.h: Likewise.
25522         * lib/sched.in.h: Likewise.
25523         * lib/se-selinux.in.h: Likewise.
25524         * lib/search.in.h: Likewise.
25525         * lib/signal.in.h: Likewise.
25526         * lib/spawn.in.h: Likewise.
25527         * lib/stdarg.in.h: Likewise.
25528         * lib/stddef.in.h: Likewise.
25529         * lib/stdint.in.h: Likewise.
25530         * lib/stdio.in.h: Likewise.
25531         * lib/stdlib.in.h: Likewise.
25532         * lib/string.in.h: Likewise.
25533         * lib/strings.in.h: Likewise.
25534         * lib/sys_file.in.h: Likewise.
25535         * lib/sys_ioctl.in.h: Likewise.
25536         * lib/sys_select.in.h: Likewise.
25537         * lib/sys_socket.in.h: Likewise.
25538         * lib/sys_stat.in.h: Likewise.
25539         * lib/sys_time.in.h: Likewise.
25540         * lib/sys_times.in.h: Likewise.
25541         * lib/sys_utsname.in.h: Likewise.
25542         * lib/sys_wait.in.h: Likewise.
25543         * lib/sysexits.in.h: Likewise.
25544         * lib/termios.in.h: Likewise.
25545         * lib/time.in.h: Likewise.
25546         * lib/unistd.in.h: Likewise.
25547         * lib/wchar.in.h: Likewise.
25548         * lib/wctype.in.h: Likewise.
25549         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25550         * modules/ctype (Makefile.am): Likewise.
25551         * modules/dirent (Makefile.am): Likewise.
25552         * modules/errno (Makefile.am): Likewise.
25553         * modules/fcntl-h (Makefile.am): Likewise.
25554         * modules/float (Makefile.am): Likewise.
25555         * modules/getopt-posix (Makefile.am): Likewise.
25556         * modules/iconv-h (Makefile.am): Likewise.
25557         * modules/inttypes (Makefile.am): Likewise.
25558         * modules/langinfo (Makefile.am): Likewise.
25559         * modules/locale (Makefile.am): Likewise.
25560         * modules/math (Makefile.am): Likewise.
25561         * modules/netdb (Makefile.am): Likewise.
25562         * modules/netinet_in (Makefile.am): Likewise.
25563         * modules/poll-h (Makefile.am): Likewise.
25564         * modules/pthread (Makefile.am): Likewise.
25565         * modules/pty (Makefile.am): Likewise.
25566         * modules/sched (Makefile.am): Likewise.
25567         * modules/search (Makefile.am): Likewise.
25568         * modules/selinux-h (Makefile.am): Likewise.
25569         * modules/signal (Makefile.am): Likewise.
25570         * modules/spawn (Makefile.am): Likewise.
25571         * modules/stdarg (Makefile.am): Likewise.
25572         * modules/stddef (Makefile.am): Likewise.
25573         * modules/stdint (Makefile.am): Likewise.
25574         * modules/stdio (Makefile.am): Likewise.
25575         * modules/stdlib (Makefile.am): Likewise.
25576         * modules/string (Makefile.am): Likewise.
25577         * modules/strings (Makefile.am): Likewise.
25578         * modules/sys_file (Makefile.am): Likewise.
25579         * modules/sys_ioctl (Makefile.am): Likewise.
25580         * modules/sys_select (Makefile.am): Likewise.
25581         * modules/sys_socket (Makefile.am): Likewise.
25582         * modules/sys_stat (Makefile.am): Likewise.
25583         * modules/sys_time (Makefile.am): Likewise.
25584         * modules/sys_times (Makefile.am): Likewise.
25585         * modules/sys_utsname (Makefile.am): Likewise.
25586         * modules/sys_wait (Makefile.am): Likewise.
25587         * modules/sysexits (Makefile.am): Likewise.
25588         * modules/termios (Makefile.am): Likewise.
25589         * modules/time (Makefile.am): Likewise.
25590         * modules/unistd (Makefile.am): Likewise.
25591         * modules/wchar (Makefile.am): Likewise.
25592         * modules/wctype (Makefile.am): Likewise.
25593
25594 2010-10-04  Bruno Haible  <bruno@clisp.org>
25595
25596         read-file tests: Avoid a test failure on NonStop Kernel.
25597         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25598         a regular file.
25599         Reported by Joachim Schmitz <schmitz@hp.com>.
25600
25601 2010-10-03  Bruno Haible  <bruno@clisp.org>
25602
25603         gnulib-tool: Fixes for --create-testdir with --libtool.
25604         * gnulib-tool (func_get_automake_snippet): Don't augment
25605         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25606         an executable.
25607         (func_create_testdir): Handle module 'alloca' like func_import.
25608         Reported by Bruce Korb <bruce.korb@gmail.com>.
25609
25610 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25611
25612         Avoid some lines longer than 80 characters.
25613         * lib/stdint.in.h: Break long comment lines.
25614         * lib/math.in.h: Likewise.
25615         (_GL_NUM_UINT_WORDS): New macro, for readability.
25616         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25617         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25618         * lib/stdlib.in.h: Likewise.
25619         * lib/spawn.in.h: Likewise.
25620         * lib/sys_socket.in.h: Update an URL.
25621         * lib/sys_stat.in.h: Break long line.
25622
25623 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25624
25625         Improve pmccabe2html.
25626         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25627         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25628         when the sources change. Remove the line in the HTML about "Used
25629         ranges" (which implied that there might be other unused ranges),
25630         rename "Resume" to "Summary" (easier to understand for more users).
25631         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25632         styles, and some unnecessary blank lines.
25633
25634 2010-10-03  Bruno Haible  <bruno@clisp.org>
25635             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25636
25637         acl: Add support for ACLs on NonStop Kernel.
25638         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25639         Check whether the function aclsort() exists.
25640         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25641         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25642         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25643         (acl_nontrivial [HAVE_ACLSORT]: New function.
25644         (file_has_acl): Implement for NonStop Kernel.
25645         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25646         (qset_acl): Implement for NonStop Kernel.
25647         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25648         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25649         (main): Implement for NonStop Kernel.
25650         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25651         Kernel. Handle this flavor.
25652         * tests/test-set-mode-acl.sh: Likewise.
25653         * tests/test-copy-acl.sh: Likewise.
25654         * tests/test-copy-file.sh: Likewise.
25655
25656 2010-10-03  Bruno Haible  <bruno@clisp.org>
25657
25658         Info about ACLs on NonStop Kernel.
25659         * doc/acl-resources.txt: Add info about NonStop Kernel.
25660         References by Joachim Schmitz <schmitz@hp.com>.
25661
25662 2010-10-02  Bruno Haible  <bruno@clisp.org>
25663
25664         Define missing EDQUOT on NonStop Kernel.
25665         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25666         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25667         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25668         missing.
25669         * doc/posix-headers/errno.texi: Mention the NSK bug.
25670         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25671         Reported by Joachim Schmitz <schmitz@hp.com>.
25672
25673 2010-10-02  Bruno Haible  <bruno@clisp.org>
25674
25675         Update doc for POSIX:2008.
25676         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25677         Update URL of POSIX specification.
25678
25679 2010-10-02  Bruno Haible  <bruno@clisp.org>
25680
25681         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25682         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25683         from gnulib, not from Automake.
25684
25685 2010-10-02  Bruno Haible  <bruno@clisp.org>
25686
25687         New module 'system-posix'.
25688         * modules/system-posix: New file.
25689         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25690         module is present.
25691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25692         GNULIB_SYSTEM_POSIX.
25693         * modules/stdlib (Depends-on): Remove sys_wait.
25694         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25695         * doc/posix-functions/system.texi: Mention the new module.
25696         * doc/posix-headers/stdlib.texi: Likewise.
25697         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25698         define test_sys_wait_macros to a no-op.
25699         Reported by Sam Steingold <sds@gnu.org>.
25700
25701 2010-09-30  Bruno Haible  <bruno@clisp.org>
25702
25703         More renaming from 'getdate' to 'get_date'.
25704         * doc/get_date.texi: Renamed from doc/getdate.texi.
25705         * modules/get_date (Files): Update.
25706         * MODULES.html.sh (Date and time <time.h>): Update.
25707         * DEPENDENCIES: Update.
25708         * gnulib-tool: Update comment.
25709         * m4/bison.m4 (gl_BISON): Likewise.
25710         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25711
25712 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25713
25714         bootstrap: support ACLOCAL_FLAGS during aclocal
25715         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25716         can add additional -I dir for third-party .m4 files.
25717
25718 2010-09-30  Eric Blake  <eblake@redhat.com>
25719
25720         bootstrap: use glibtoolize on MacOS
25721         * build-aux/bootstrap (check_versions): Convert libtool into
25722         libtoolize.
25723         (tool search): Move libtool check earlier, and look for
25724         glibtoolize for MacOS.
25725         (gnulib_tool_options): Auto-add --libtool when appropriate.
25726         Reported by Justin Clift.
25727
25728         poll: fix typo that broke test on MacOS
25729         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25730         Reported by Justin Clift.
25731
25732         getdate: rename to get_date
25733         Note: getdate.h is not renamed, to minimize client impact.
25734         * modules/getdate: Mark obsolete.  Move old contents...
25735         * modules/get_date: ...to new module name.
25736         * modules/getdate-tests: Move...
25737         * modules/get_date-tests: ...here.
25738         * m4/getdate.m4: Move...
25739         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25740         * lib/getdate.y: Move...
25741         * lib/get_date.y: ...here.
25742         * tests/test-getdate.c: Move...
25743         * tests/test-get_date.c: ...here.
25744         * doc/posix-functions/getdate.texi (getdate): Update name.
25745         * NEWS: Mention the change.
25746
25747 2010-09-29  Bruno Haible  <bruno@clisp.org>
25748
25749         Separate the module 'waitpid' from the module 'sys_wait'.
25750         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25751         present.
25752         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25753         gl_MODULE_INDICATOR_FOR_TESTS.
25754         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25755         * modules/sys_wait (Depends-on): Remove waitpid.
25756         (Makefile.am): Substitute GNULIB_WAITPID.
25757         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25758         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25759         signature only if the 'waitpid' module is present.
25760         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25761         * NEWS: Mention the change.
25762         * modules/grantpt (Depends-on): Add waitpid.
25763         * modules/wait-process (Depends-on): Likewise.
25764
25765 2010-09-29  Bruno Haible  <bruno@clisp.org>
25766
25767         More tests for module 'sys_wait'.
25768         * modules/sys_wait-c++-tests: New file.
25769         * tests/test-sys_wait-c++.cc: New file.
25770         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25771         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25772
25773 2010-09-29  Bruno Haible  <bruno@clisp.org>
25774
25775         New module 'waitpid'.
25776         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25777         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25778         Don't include <process.h>.
25779         (waitpid): Declare only, using modern idiom.
25780         * m4/waitpid.m4: New file.
25781         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25782         * modules/waitpid: New file.
25783         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25784         (Makefile.am): Update.
25785         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25786
25787 2010-09-28  Bruno Haible  <bruno@clisp.org>
25788
25789         poll: Assume ANSI C.
25790         * lib/poll.c (poll): Use an ANSI C declaration.
25791
25792 2010-09-28  Bruno Haible  <bruno@clisp.org>
25793
25794         poll-h: Create poll.h on all platforms.
25795         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25796         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25797         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25798         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25799         (gl_REPLACE_POLL_H): Don't set POLL_H.
25800         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25801         * modules/poll-h (Depends-on): Add include_next.
25802         (Makefile.am): Create poll.h unconditionally. Substitute also
25803         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25804
25805 2010-09-28  Bruno Haible  <bruno@clisp.org>
25806
25807         Tests for module 'poll-h'.
25808         * modules/poll-h-c++-tests: New file.
25809         * tests/test-poll-h-c++.cc: New file.
25810
25811         Tests for module 'poll-h'.
25812         * modules/poll-h-tests: New file.
25813         * tests/test-poll-h.c: New file.
25814
25815 2010-09-28  Bruno Haible  <bruno@clisp.org>
25816
25817         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25818         * modules/poll-h (Depends-on): Add 'extensions'.
25819
25820 2010-09-28  Bruno Haible  <bruno@clisp.org>
25821
25822         New module 'poll-h'.
25823         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25824         (poll): Use modern idiom.
25825         * modules/poll-h: New file.
25826         * modules/poll (Files): Remove lib/poll.in.h.
25827         (Depends-on): Add poll-h.
25828         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25829         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25830         * m4/poll_h.m4: New file.
25831         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25832         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25833         and invoke gl_REPLACE_POLL_H.
25834         * lib/poll.c: Use common idiom.
25835         * tests/test-poll.c: Likewise.
25836         * doc/posix-headers/poll.texi: Mention the poll-h module.
25837         Suggested by Eric Blake.
25838
25839 2010-09-26  Bruno Haible  <bruno@clisp.org>
25840
25841         sys_wait: Implement WSTOPSIG.
25842         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25843         Reported by Simon Josefsson.
25844
25845 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25846
25847         stdlib, sys_wait: Avoid compilation error on mingw.
25848         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25849
25850 2010-09-26  Bruno Haible  <bruno@clisp.org>
25851
25852         stdlib tests: Avoid code duplication.
25853         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25854         * modules/sys_wait-tests (Files): Likewise.
25855         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25856         * tests/test-stdlib.c: Include test-sys_wait.h.
25857         (main): Invoke test_sys_wait_macros.
25858         * tests/test-sys_wait.c: Include test-sys_wait.h.
25859         (main): Invoke test_sys_wait_macros.
25860
25861 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25862
25863         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25864         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25865         sure Windows sockets are working before calling getaddrinfo.
25866         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25867         * doc/gnulib.texi (Windows sockets): Fix typo.
25868
25869 2010-09-25  Bruno Haible  <bruno@clisp.org>
25870
25871         Tests for module 'regex-quote'.
25872         * modules/regex-quote-tests: New file.
25873         * tests/test-regex-quote.c: New file.
25874
25875         New module 'regex-quote'.
25876         * lib/regex-quote.h: New file.
25877         * lib/regex-quote.c: New file.
25878         * modules/regex-quote: New file.
25879         Suggested by Reuben Thomas <rrt@sc3d.org>.
25880
25881 2010-09-24  Bruno Haible  <bruno@clisp.org>
25882
25883         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25884         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25885
25886 2010-09-23  Bruno Haible  <bruno@clisp.org>
25887
25888         setenv: Relax license.
25889         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25890         Blake.
25891         Requested by Eric Blake.
25892
25893 2010-09-22  Bruno Haible  <bruno@clisp.org>
25894
25895         termios: Relax license.
25896         * modules/termios (License): Change to LGPLv2+.
25897         Requested by Eric Blake.
25898
25899 2010-09-22  Bruno Haible  <bruno@clisp.org>
25900
25901         threadlib: Allow the package to change the default to 'no'.
25902         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25903         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25904         Reported by Paul Eggert.
25905
25906 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25907             Bruno Haible  <bruno@clisp.org>
25908
25909         Fix endless loop in mbmemcasecoll.
25910         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25911         byte.
25912         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25913
25914 2010-09-22  Bruno Haible  <bruno@clisp.org>
25915
25916         Tests for module 'memcoll'.
25917         * modules/memcoll-tests: New file.
25918         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25919
25920         memcoll, xmemcoll: Clarify size vs. length.
25921         * modules/memcoll.c (memcoll0): Clarify specification.
25922         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25923         passed to collate_error.
25924
25925 2010-09-22  Bruno Haible  <bruno@clisp.org>
25926
25927         Tests for module 'memcasecmp'.
25928         * modules/memcasecmp-tests: New file.
25929         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25930
25931 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25932
25933         * lib/pthread.in.h: Add split double-inclusion guard, and include
25934         system <pthread.h> if there is one.  Use @@-style as in other
25935         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25936         pthread.h doesn't.
25937         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25938         (pthread_mutexattr_settype, pthread_mutex_trylock):
25939         New static inline functions, if there's no system <pthread.h>.
25940         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25941         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25942         Approximate with mutexes if the system lacks spinlocks, as in
25943         MacOS.
25944         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25945         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25946         @@-style.  Check for spinlocks separately.
25947         (gl_PTHREAD_DEFAULTS): New macro.
25948         * modules/pthread: Redo to use a more typical style for in.h files.
25949
25950 2010-09-21  Eric Blake  <eblake@redhat.com>
25951
25952         net_if: enhance tests
25953         * tests/test-net_if.c (main): Move signature checks earlier.
25954         Print failures to stderr.
25955         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25956         Document the bug that we do not yet fix.
25957
25958 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25959
25960         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25961         about gnulib, not GSS.
25962
25963 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25964
25965         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25966         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25967         for Emacs.
25968         * build-aux/pmccabe2html: Make Makefile.am example code more
25969         cut-and-paste friendly.
25970
25971 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25972
25973         * tests/test-net_if.c: New file.
25974         * modules/net_if-tests: New file.
25975
25976 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25977
25978         pthread: add pthread_spin_destroy
25979         * lib/pthread.in.h (pthread_spin_destroy): New function.
25980
25981 2010-09-19  Bruno Haible  <bruno@clisp.org>
25982
25983         gnulib-tool: Fix --help output.
25984         * gnulib-tool (func_usage): Fix help message.
25985         Reported by Reuben Thomas <rrt@sc3d.org>.
25986
25987 2010-09-18  Jim Meyering  <meyering@redhat.com>
25988
25989         maint.mk: avoid unexpanded \n in two diagnostics
25990         * top/maint.mk (sc_prohibit_always_true_header_tests):
25991         Don't use a literal \n in a halt=... assignment.  It would not be
25992         expanded, and the two \n bytes would appear in the diagnostic output
25993         rather than the desired newline.  Use halt=$$(printf ... instead.
25994         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25995
25996 2010-09-18  Bruno Haible  <bruno@clisp.org>
25997
25998         netinet_in: Doc tweak.
25999         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26000         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26001
26002 2010-09-18  Jim Meyering  <meyering@redhat.com>
26003
26004         init.sh: correct an outdated comment
26005         * tests/init.sh (create_exe_shims_):  s/function/alias/
26006
26007         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26008         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26009         a file named "*.exe" is removed between the glob expansion and the
26010         processing of that oddly named file.
26011
26012 2010-09-17  Eric Blake  <eblake@redhat.com>
26013
26014         mirbsd: add some more support
26015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26016         in BSD family.
26017         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26018         devices as OpenBSD.
26019         * m4/host-os.m4 (mirbsd): Add MirBSD.
26020
26021         tests: fix unportable assumption on sys/wait.h
26022         * tests/test-sys_wait.c (main): Relax test.
26023         * tests/test-stdlib.c (main): Likewise.
26024
26025         init.sh: accomodate directory with no .exes
26026         * tests/init.sh: Accomodate directory containing only scripts.
26027
26028         tests: avoid compiler warning
26029         * tests/test-stdlib.c (main): Use the variable.
26030
26031         fdutimens, fdutimensat: update signature, again
26032         * lib/utimens.h (gl_futimens): Delete, and move signature...
26033         (fdutimens): ...here.
26034         (fdutimensat): Rearrange signature.
26035         (lutimensat): Rename variable for clarity.
26036         * lib/fdutimensat.c (fdutimensat): Update signature.
26037         * lib/utimens.c (fdutimens): Likewise.
26038         (gl_futimens): Delete.
26039         (utimens, lutimens): Update callers.
26040         * lib/futimens.c (futimens): Likewise.
26041         * tests/test-fdutimensat.c: Likewise.
26042         * tests/test-utimens.c: Likewise.
26043         * tests/test-futimens.h: Update comment.
26044         * NEWS: Mention this.
26045         Suggested by Paul Eggert.
26046
26047 2010-09-17  Bruno Haible  <bruno@clisp.org>
26048
26049         Take over the maintenance of some older macros from Autoconf.
26050         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26051         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26052         GNU Autoconf.
26053         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26054         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26055
26056 2010-09-17  Eric Blake  <eblake@redhat.com>
26057
26058         fdutimensat: drop atflag validation
26059         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26060         with valid fd, to close a race scenario where futimens is
26061         unsupported and FILE was replaced by a symlink.
26062         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26063         accordingly.
26064         Suggested by Paul Eggert.
26065
26066 2010-09-16  Bruno Haible  <bruno@clisp.org>
26067
26068         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26069         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26070
26071 2010-09-16  Bruno Haible  <bruno@clisp.org>
26072
26073         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26074         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26075         login_tty exists.
26076         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26077
26078 2010-09-16  Bruno Haible  <bruno@clisp.org>
26079
26080         login_tty: Make the replacement code work on BSD systems.
26081         * lib/login_tty.c: Include <sys/ioctl.h>.
26082         (login_tty): Use ioctl TIOCSCTTY when available.
26083         * modules/login_tty (Depends-on): Add sys_ioctl.
26084         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26085
26086 2010-09-16  Bruno Haible  <bruno@clisp.org>
26087
26088         login_tty: Stricter unit test.
26089         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26090         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26091         and tcgetsid() after login_tty.
26092         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26093
26094 2010-09-16  Bruno Haible  <bruno@clisp.org>
26095
26096         New module 'tcgetsid'.
26097         * lib/tcgetsid.c: New file.
26098         * m4/tcgetsid.m4: New file.
26099         * modules/tcgetsid: New file.
26100         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26101         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26102         GNULIB_TCGETSID, HAVE_TCGETSID.
26103         * lib/termios.in.h: Include <sys/types.h>.
26104         (tcgetsid): New declaration.
26105         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26106         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26107         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26108         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26109
26110 2010-09-16  Bruno Haible  <bruno@clisp.org>
26111
26112         Tests for module 'termios'.
26113         * modules/termios-c++-tests: New file.
26114         * modules/termios-tests: New file.
26115         * tests/test-termios-c++.cc: New file.
26116         * tests/test-termios.c: New file.
26117
26118         New module 'termios'.
26119         * modules/termios: New file.
26120         * lib/termios.in.h: New file.
26121         * m4/termios_h.m4: New file.
26122         * doc/posix-headers/termios.texi: Mention the new module.
26123
26124 2010-09-16  Eric Blake  <eblake@redhat.com>
26125
26126         fdutimensat: add an atflag parameter
26127         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26128         * lib/utimens.h (fdutimensat): Update prototype.
26129         * tests/test-fdutimensat.c: Adjust test to match.
26130         * NEWS: Document the change.
26131         Suggested by Paul Eggert.
26132
26133 2010-09-16  Bruno Haible  <bruno@clisp.org>
26134
26135         Fix typos in comments.
26136         * lib/striconveh.h: Fix typo in comment.
26137         * lib/login_tty.c (login_tty): Likewise.
26138
26139 2010-09-15  Bruno Haible  <bruno@clisp.org>
26140
26141         stdlib: clarify MirBSD WEXITSTATUS bug
26142         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26143         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26144
26145 2010-09-15  Eric Blake  <eblake@redhat.com>
26146
26147         stdlib: work around MirBSD WEXITSTATUS bug
26148         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26149         * modules/stdlib (Depends-on): Add sys_wait.
26150         * tests/test-sys_wait.c (main): Enhance test.
26151         * tests/test-stdlib.c (main): Likewise.
26152         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26153
26154         docs: mention MacOS issue with WEXITSTATUS(constant)
26155         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26156         issue.
26157         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26158
26159         strnlen: add tests
26160         * modules/strnlen-tests: New file.
26161         * tests/test-strnlen.c: Likewise.
26162
26163 2010-09-14  Bruno Haible  <bruno@clisp.org>
26164
26165         unistr/base: Avoid link errors when module 'libunistring' is also used.
26166         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26167         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26168         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26169         Declare also when HAVE_LIBUNISTRING is set.
26170         Reported by Pádraig Brady <P@draigbrady.com>.
26171
26172 2010-09-14  Eric Blake  <eblake@redhat.com>
26173
26174         test-rawmemchr: make more robust
26175         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26176         (Depends-on, configure.ac): Add needed prerequisites to use it.
26177         * modules/memchr-tests (Files, Depends-on, configure.ac):
26178         Likewise, to avoid implicit reliance on memchr module prereqs.
26179         * tests/test-memchr.c (main): Ensure proper masking.
26180         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26181         reads.
26182
26183         memchr: detect glibc Alpha bug
26184         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26185         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26186         Alpha.
26187         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26188         * tests/test-memchr.c (main): Enhance test.
26189         Reported by Nelson H. F. Beebe.
26190
26191 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26192
26193         fts, getcwd, glob: audit for dirfd returning -1
26194         * lib/fts.c (opendir): Remove #define; no longer used.
26195         (opendirat): New arg PDIR_FD.  All callers changed.
26196         (fts_build, _opendir2): Use new opendirat to avoid the need for
26197         dirfd, or for checking whether dirfd returns a negative value.
26198         Don't use opendir; always use openat followed by fdopendir.
26199         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26200         it.
26201         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26202         returns -1 here.
26203         * modules/fts (Depends-on): Remove dirfd.
26204         * modules/getcwd (Depends-on): Likewise.
26205
26206 2010-09-13  Eric Blake  <eblake@redhat.com>
26207
26208         float: fix broken MirBSD header
26209         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26210         * doc/posix-headers/float.texi (float.h): Document it.
26211
26212 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26213
26214         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26215         * lib/fts.c (opendirat): New arg extra_flags.
26216         (__opendir2): Use it to avoid following symlinks when opening
26217         a directory, if symlinks are not supposed to be followed.  See
26218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26219
26220         fdopendir: preserve argument fd before returning
26221         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26222         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26223         (fdopendir): Use them, arranging for FD to be open to the same
26224         directory that it was when it started.  (It might be temporarily
26225         closed while fdopendir is running, so this not thread- or
26226         signal-safe.)  Be careful to do the right thing even when file
26227         descriptors are scarce and dup fails with errno == EMFILE.  See
26228         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26229
26230 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26231
26232         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26233         * NEWS: Document change.
26234         * m4/regex.m4: Disable test for regoff_t size.
26235
26236 2010-09-13  Jim Meyering  <meyering@redhat.com>
26237
26238         fts: don't operate on an invalid file descriptor after failed dup
26239         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26240         negative file descriptor.
26241
26242 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26243
26244         savedir: add streamsavedir, deprecate fdsavedir
26245         * NEWS: Mention deprecation of fdsavedir.
26246         * lib/savedir.c (streamsavedir): New extern function, whose name
26247         ends in "savedir" to be consistent with the others.  This differs
26248         from savedirstream in that it doesn't close its argument.  The
26249         next version of GNU tar will use this instead of fdsavedir, to
26250         avoid some race conditions and conserve file descriptors.
26251         (savedirstream): Reimplement as a wrapper around streamsavedir.
26252         (fdsavedir): Add a comment deprecating this function.  As far as
26253         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26254         * lib/savedir.h (streamsavedir): New decl.
26255         (fdsavedir): Add a comment deprecating this.
26256
26257 2010-09-10  Bruno Haible  <bruno@clisp.org>
26258
26259         langinfo: Fix last commit.
26260         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26261         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26263
26264 2010-09-10  Bruno Haible  <bruno@clisp.org>
26265
26266         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26267         * lib/progreloc.c (O_EXEC): Define fallback.
26268
26269 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26270
26271         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26272         * NEWS: Document recent changes to fcntl-h.
26273         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26274         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26275         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26276         Similarly for O_SEARCH; this last was already true, but not documented.
26277         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26278         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26279         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26280         Likewise.
26281         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26282         is zero, not whether it is defined.
26283         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26284         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26285         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26286
26287 2010-09-10  Bruno Haible  <bruno@clisp.org>
26288
26289         langinfo, nl_langinfo: Fix for IRIX 5.3.
26290         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26291         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26292         HAVE_LANGINFO_YESEXPR.
26293         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26294         HAVE_LANGINFO_YESEXPR.
26295         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26296         HAVE_LANGINFO_T_FMT_AMPM is 0.
26297         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26298         HAVE_LANGINFO_YESEXPR is 0.
26299         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26300         NOEXPR.
26301         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26302         * doc/posix-functions/nl_langinfo.texi: Likewise.
26303         Reported by Eric Blake.
26304
26305 2010-09-10  Bruno Haible  <bruno@clisp.org>
26306
26307         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26308         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26309         on FreeBSD 8.0 and OpenBSD 4.6.
26310         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26311         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26312         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26313         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26314         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26315         ac_includes_default.
26316         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26317
26318 2010-09-09  Eric Blake  <eblake@redhat.com>
26319
26320         strsignal: work around NetBSD bug
26321         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26322         * lib/string.in.h (includes): Likewise.
26323         * doc/posix-functions/strsignal.texi (strsignal): Document the
26324         bug.
26325         Reported by Nelson H. F. Beebe.
26326
26327         gnulib-tool: work with NetBSD /bin/sh
26328         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26329         (func_get_description, func_get_comment, func_get_status)
26330         (func_get_notice, func_get_applicability, func_get_filelist)
26331         (func_get_dependencies, func_get_autoconf_early_snippet)
26332         (func_get_autoconf_snippet, func_get_automake_snippet)
26333         (func_get_include_directive, func_get_link_directive)
26334         (func_get_license, func_get_maintainer, func_import): Avoid
26335         shell syntax errors from parsing syntax extensions.
26336
26337 2010-09-09  Bruno Haible  <bruno@clisp.org>
26338
26339         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26340         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26341         a reliable way to determine whether the 'alias' command works.
26342
26343 2010-09-08  Jim Meyering  <meyering@redhat.com>
26344
26345         init.sh: penalize a set-x-impaired shell; don't disqualify it
26346         * tests/init.sh: Too many shells corrupt application stderr when
26347         you set -x, so we can't afford to disqualify them, since at least
26348         on Irix-6.5, that would disqualify all bourne shells.
26349         Instead, use a two-pass approach.
26350         On the first pass, try to find a shell that meets the stricter
26351         condition that set -x does not corrupt stderr.
26352         If no shell meets the stricter condition, retest each candidate
26353         shell, but without that extra condition.  Finally, when
26354         VERBOSE=yes is requested and set -x might cause trouble, simply
26355         issue a warning and refrain from enabling debug output.
26356
26357 2010-09-08  Eric Blake  <eblake@redhat.com>
26358
26359         unsetenv: fix OpenBSD bug
26360         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26361         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26362         documentation.
26363         Reported by Jim Meyering.
26364
26365         strtod: work around IRIX 6.5 bug
26366         * lib/strtod.c (strtod): Reparse number on shorter string if
26367         exponent parse was invalid.
26368         * tests/test-strtod.c (main): Add check for "0x1p 2".
26369         Reported by Tom G. Christensen.
26370
26371         getopt: optimize previous patch
26372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26373         empty variable.  Speed up awk script.
26374         Reported by Paolo Bonzini.
26375
26376 2010-09-08  Jim Meyering  <meyering@redhat.com>
26377
26378         test.sh: disqualify shells for which set -x corrupts stderr
26379         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26380         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26381         appear in stderr output.  For example, this command:
26382             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26383         prints "P=1" on those two systems:
26384
26385 2010-09-08  Bruno Haible  <bruno@clisp.org>
26386
26387         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26388         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26389         commands, because some shells ignore redirections when there is an
26390         error in the command lookup.
26391         Reported by Eric Blake.
26392
26393 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26394
26395         * lib/regex.h: Fix a mention of `regex_compile' (should be
26396         `re_compile_pattern').
26397         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26398         (re_set_registers): Correct name of parameter in comment.
26399
26400         * doc/regex.texi: Add documentation for missing syntax flags.
26401         Remove commented-out documentation of defunct syntax option
26402         RE_NO_EMPTY_ALTS.
26403         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26404         Add documentation of re_set_registers.
26405         Document trick to re-use a pattern buffer by setting fastmap manually.
26406         Update documentation of struct re_pattern_buffer per public members.
26407         Uncomment documentation of equivalence class operators and
26408         collating symbol operators, since they are now implemented,
26409         Explain leftmost-longest matching in relation to alternatives.
26410         Tidy documentation of substring matching.
26411         Remove POSIX documentation, which is done better in
26412         glibc, and refer the reader there. Keep BSD API documentation, as
26413         that is not readily available elsewhere.
26414
26415 2010-09-07  Eric Blake  <eblake@redhat.com>
26416
26417         getopt: handle POSIXLY_CORRECT set but not exported
26418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26419         export state of POSIXLY_CORRECT, due to bash set -o posix.
26420         Reported by Dustin J. Mitchell.
26421
26422 2010-09-05  Bruno Haible  <bruno@clisp.org>
26423
26424         gnulib-tool: Highlight the changed options.
26425         * gnulib-tool (func_usage): Display the --import, --add-import,
26426         --remove-import explanations in bold font.
26427
26428 2010-09-06  Karl Berry  <karl@gnu.org>
26429
26430         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26431
26432 2010-09-05  Bruno Haible  <bruno@clisp.org>
26433
26434         uniwidth/width: Update comment.
26435         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26436         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26437
26438 2010-09-05  Bruno Haible  <bruno@clisp.org>
26439
26440         isinf, isnan: Relax license.
26441         * modules/isinf (License): Change from GPL to LGPL, with consent from
26442         Ben Pfaff.
26443         * modules/isnan (License): Likewise.
26444         Requested by Ludovic Courtès.
26445
26446 2010-09-04  Bruno Haible  <bruno@clisp.org>
26447
26448         gnulib-tool: Help migration from --import to --add-import or --update.
26449         * gnulib-tool: Emit a verbose error message when --import is used
26450         without any module name.
26451
26452 2010-09-04  Bruno Haible  <bruno@clisp.org>
26453
26454         Update doc about gnulib-tool.
26455         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26456         'gnulib-tool --update' in more detail.
26457         Reported by Eric Blake.
26458
26459 2010-09-04  Bruno Haible  <bruno@clisp.org>
26460
26461         gnulib-tool: Change --import. New options --add/remove-import.
26462         * gnulib-tool: New options --add-import, --remove-import.
26463         (func_usage): Document them.
26464         (have_associative): Define always.
26465         (func_import): In import mode, don't merge the specified settings with
26466         the cached settings. Implement remove-import mode.
26467         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26468         Explain when to use them versus --import.
26469         (Simple update): Use --add-import instead of --import.
26470         * NEWS: Mention the change.
26471
26472 2010-09-04  Bruno Haible  <bruno@clisp.org>
26473
26474         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26475         separate gnulib.mk.
26476
26477 2010-09-04  Bruno Haible  <bruno@clisp.org>
26478
26479         gnulib-tool: Don't talk about CVS any more.
26480         * gnulib-tool (func_usage, func_import): Write "version control"
26481         instead of CVS.
26482
26483 2010-09-04  Jim Meyering  <meyering@redhat.com>
26484
26485         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26486         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26487         false positives (whose names may be ill-chosen) when searching
26488         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26489         would cause a false-positive.
26490
26491         avoid coreutils "make distcheck" failure
26492         Coreutils tests with an absolute build directory name that contains
26493         a space.  Not quoting this directory name caused a failure.
26494         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26495         * tests/test-vc-list-files-cvs.sh: Likewise.
26496
26497 2010-09-04  Bruno Haible  <bruno@clisp.org>
26498
26499         gnulib-tool: Avoid error when run in a package without Makefile.am.
26500         * gnulib-tool: When collecting the m4dirs in a package that does not
26501         have a Makefile.am, eliminate those directories that contain no
26502         gnulib-cache.m4. Fix expression that counts these directories.
26503
26504 2010-09-04  Bruno Haible  <bruno@clisp.org>
26505
26506         update-copyright test: Improve output when perl is missing or too old.
26507         * tests/test-update-copyright.sh: Move test of Perl version down after
26508         the test whether Perl exists. Provide an explanation relating Perl's
26509         error message to Automake's SKIP: message.
26510
26511 2010-09-04  Bruno Haible  <bruno@clisp.org>
26512
26513         Don't augment PATH in TESTS_ENVIRONMENT.
26514         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26515         set abs_aux_dir instead of augmenting PATH.
26516         * modules/vc-list-files-tests (Makefile.am): Likewise.
26517         * tests/test-update-copyright.sh: Augment PATH here.
26518         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26519         path_prepend_.
26520         * tests/test-vc-list-files-git.sh: Likewise.
26521
26522 2010-09-04  Jim Meyering  <meyering@redhat.com>
26523
26524         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26525         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26526
26527 2010-09-04  Bruno Haible  <bruno@clisp.org>
26528
26529         strdup: Fix compilation error in C++ mode.
26530         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26531         the macro.
26532
26533 2010-09-04  Bruno Haible  <bruno@clisp.org>
26534
26535         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26536         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26537         macro into a function.
26538         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26539
26540 2010-09-04  Bruno Haible  <bruno@clisp.org>
26541
26542         Set PATH_SEPARATOR the same way autoconf does.
26543         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26544         the value of PATH_SEPARATOR the same way autoconf-generated configure
26545         scripts do.
26546         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26547         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26548
26549 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26550
26551         Set PATH_SEPARATOR the same way autoconf does.
26552         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26553         the same way autoconf-generated configure scripts do.
26554         * posix-modules: Likewise.
26555
26556 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26557
26558         hash: fix safe_hasher const typo
26559         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26560         const; otherwise, there is a type error later.
26561
26562 2010-09-02  Jim Meyering  <meyering@redhat.com>
26563
26564         test-update-copyright.sh: require perl 5.8.0
26565         * tests/test-update-copyright.sh: Require 5.8.0,
26566         which Tom G. Christensen has confirmed is adequate,
26567         while 5.6.1 is not.
26568
26569 2010-09-02  Eric Blake  <eblake@redhat.com>
26570
26571         tests: init.sh improvements for re-exec'ing with zsh
26572         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26573         -vx through shell re-exec.
26574         Reported by Tom G. Christensen.
26575
26576         wctype: fix typo in previous commit
26577         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26578         Reported by Ludovic Courtès.
26579
26580 2010-09-02  Jim Meyering  <meyering@redhat.com>
26581
26582         test-update-copyright.sh: skip test if Perl is too old
26583         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26584         Reported by Tom G. Christensen.
26585
26586 2010-09-02  Bruno Haible  <bruno@clisp.org>
26587
26588         wctype: Avoid compilation error on IRIX 6.5.30.
26589         * lib/wctype.in.h (iswblank): Declare with a replacement if
26590         REPLACE_ISWBLANK is set.
26591         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26592         declared. Set REPLACE_ISWBLANK.
26593         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26594         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26595         * doc/posix-headers/wctype.texi: Likewise.
26596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26597
26598 2010-09-01  Bruno Haible  <bruno@clisp.org>
26599
26600         New module 'socketlib'.
26601         * modules/socketlib: New file.
26602         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26603         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26604         * modules/sockets (Depends-on): Add socketlib.
26605         Suggested by Sam Steingold <sds@gnu.org>.
26606
26607 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26608
26609         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26610
26611         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26612         when one needs search access to a directory but not read access.
26613         On systems where it is available, it works in some cases where
26614         O_RDONLY does not, namely on directories that are searchable but
26615         not readable, and which need only to be searchable.  If O_SEARCH
26616         is not available, fall back to the traditional method of using
26617         O_RDONLY.
26618
26619         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26620         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26621         when opening a directory that needs only to be searchable.
26622         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26623         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26624         * lib/openat-proc.c (openat_proc_name): Likewise.
26625         * lib/openat.c (openat_needs_fchdir): Likewise.
26626         * lib/save-cwd.c (save_cwd): Likewise.
26627         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26628
26629 2010-08-28  Bruno Haible  <bruno@clisp.org>
26630
26631         New module 'host-cpu-c-abi'.
26632         * modules/host-cpu-c-abi: New file.
26633         * m4/host-cpu-c-abi.m4: New file, based on part of
26634         clisp/src/m4/general.m4.
26635         Requested by Sam Steingold <sds@gnu.org>.
26636
26637 2010-08-31  Eric Blake  <eblake@redhat.com>
26638         and Jim Meyering  <meyering@redhat.com>
26639
26640         hash: factor, and guard against misbehaving hasher function
26641         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26642         of table->hasher's return value.  Also protect against a hash value
26643         so large that adding it to table->bucket results in a NULL pointer.
26644         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26645         Use it in place of open-coded check-and-abort.
26646
26647 2010-08-30  Bruno Haible  <bruno@clisp.org>
26648
26649         hash: silence spurious clang warning
26650         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26651         Reported by Eric Blake.
26652
26653 2010-08-30  Eric Blake  <eblake@redhat.com>
26654
26655         strstr, memmem, strcasestr: avoid leaked shell message
26656         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26657         FreeBSD.
26658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26659         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26660
26661         tests: silence clang warning
26662         * tests/test-malloca.c (do_allocation): Avoid dead store.
26663
26664 2010-08-29  Bruno Haible  <bruno@clisp.org>
26665
26666         gettext: Fix recent mistake.
26667         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26668
26669 2010-08-29  Bruno Haible  <bruno@clisp.org>
26670
26671         selinux-h: Offer a --without-selinux option.
26672         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26673         --without-selinux was specified, skip all tests and define
26674         HAVE_SELINUX_SELINUX_H to 0.
26675         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26676         set LIB_SELINUX to empty.
26677         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26678         gl_LIBSELINUX. If --without-selinux was specified, replace
26679         selinux/context.h.
26680         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26681
26682 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26683             Bruno Haible  <bruno@clisp.org>
26684
26685         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26686         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26687         of HAVE_REALLOC.
26688         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26689         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26690         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26691         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26692
26693 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26694             Bruno Haible  <bruno@clisp.org>
26695
26696         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26697         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26698         HAVE_CALLOC.
26699         * lib/xmalloc.c: Update accordingly.
26700         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26701         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26702         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26703
26704 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26705             Bruno Haible  <bruno@clisp.org>
26706
26707         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26708         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26709         HAVE_MALLOC.
26710         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26711         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26712         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26713
26714 2010-08-29  Bruno Haible  <bruno@clisp.org>
26715
26716         Update modules list.
26717         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26718         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26719         (String handling <string.h>): Add astrxfrm.
26720         (File system functions): Add readlinkat.
26721
26722 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26723
26724         Tests for module 'realloc-gnu'.
26725         * modules/realloc-gnu-tests: New file.
26726         * tests/test-realloc-gnu.c: New file.
26727
26728         Tests for module 'calloc-gnu'.
26729         * modules/calloc-gnu-tests: New file.
26730         * tests/test-calloc-gnu.c: New file.
26731
26732         Tests for module 'malloc-gnu'.
26733         * modules/malloc-gnu-tests: New file.
26734         * tests/test-malloc-gnu.c: New file.
26735
26736 2010-08-28  Bruno Haible  <bruno@clisp.org>
26737
26738         Rename module 'realloc' -> 'realloc-gnu'.
26739         * modules/realloc-gnu: New file, copied from modules/realloc.
26740         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26741         obsolete.
26742         * modules/mgetgroups (Depends-on): Update.
26743         * doc/posix-functions/realloc.texi: Update.
26744         * NEWS: Mention the change.
26745
26746         Rename module 'calloc' -> 'calloc-gnu'.
26747         * modules/calloc-gnu: New file, copied from modules/calloc.
26748         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26749         obsolete.
26750         * doc/posix-functions/calloc.texi: Update.
26751         * NEWS: Mention the change.
26752
26753         Rename module 'malloc' -> 'malloc-gnu'.
26754         * modules/malloc-gnu: New file, copied from modules/malloc.
26755         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26756         obsolete.
26757         * modules/argp (Depends-on): Update.
26758         * modules/regex (Depends-on): Update.
26759         * doc/posix-functions/malloc.texi: Update.
26760         * NEWS: Mention the change.
26761
26762 2010-08-28  Eric Blake  <eblake@redhat.com>
26763
26764         pread, pwrite: add missing dependency
26765         * modules/pread (Depends-on): Add extensions.
26766         * modules/pwrite (Depends-on): Likewise.
26767
26768 2010-08-28  Bruno Haible  <bruno@clisp.org>
26769
26770         unistr/u*-strchr: Fix tests dependencies.
26771         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26772         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26773         Reported by Ian Beckwith <ianb@erislabs.net>.
26774
26775 2010-08-28  Bruno Haible  <bruno@clisp.org>
26776
26777         read-file: Don't occupy too much unused memory.
26778         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26779
26780 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26781             Eric Blake  <eblake@redhat.com>
26782             Bruno Haible  <bruno@clisp.org>
26783
26784         read-file: Avoid memory reallocations with regular files.
26785         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26786         (fread_file): With regular files, use the remaining length as the
26787         initial buffer size.  Check against overflow.
26788         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26789         sys_stat.
26790
26791 2010-08-28  Bruno Haible  <bruno@clisp.org>
26792
26793         ftello: Relax license.
26794         * modules/ftello (License): Relax to LGPLv2+.
26795         Reported by Eric Blake.
26796
26797 2010-08-28  Bruno Haible  <bruno@clisp.org>
26798
26799         Avoid relocwrapper link errors due to gnulib replacement functions.
26800         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26801         function.
26802         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26803
26804 2010-08-28  Bruno Haible  <bruno@clisp.org>
26805
26806         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26807         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26808         defined.
26809         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26810         Suggested by Eric Blake.
26811
26812 2010-08-28  Bruno Haible  <bruno@clisp.org>
26813
26814         sys_socket, netdb: Ensure socklen_t gets defined.
26815         * modules/sys_socket (Depends-on): Add socklen.
26816         * modules/netdb (Depends-on): Likewise.
26817         * modules/getaddrinfo (Depends-on): Remove socklen.
26818         * modules/getsockopt (Depends-on): Likewise.
26819         * modules/setsockopt (Depends-on): Likewise.
26820         * tests/test-sys_socket.c: Check that socklen_t is defined.
26821         * tests/test-netdb.c: Likewise.
26822         * m4/socklen.m4: Update comments.
26823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26824
26825 2010-08-27  Eric Blake  <eblake@redhat.com>
26826
26827         login_tty: add missing dependency
26828         * modules/login_tty (Depends-on): Add pty.
26829
26830 2010-08-26  Eric Blake  <eblake@redhat.com>
26831
26832         lib-symbol-versions: fix m4 quoting
26833         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26834         format for AC_LINK_IFELSE.
26835
26836         glob: fix compile test
26837         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26838
26839         btowc: fix missing file
26840         * modules/btowc (Files): Also ship locale-fr.m4.
26841
26842         lseek: fix link test
26843         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26844         AC_LINK_IFELSE.
26845
26846         include_next: silence autoconf 2.68 warning
26847         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26848         AC_COMPILE_IFELSE as special.
26849         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26850         autoconf < 2.68.
26851
26852         acl: fix compilation test
26853         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26854         AC_COMPILE_IFELSE.
26855
26856 2010-08-26  Bruno Haible  <bruno@clisp.org>
26857
26858         Modernize AC_TRY_RUN invocations.
26859         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26860         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26861         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26862         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26863         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26864         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26865         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26866         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26867         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26868         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26869         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26870         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26871         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26872         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26874         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26875         gl_MBRLEN_NUL_RETVAL): Likewise.
26876         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26877         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26878         Likewise.
26879         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26880         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26881         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26882         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26883         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26884         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26885         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26886         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26887         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26888         Likewise.
26889         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26890         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26892         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26893         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26894         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26895         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26896         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26897         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26899
26900 2010-08-26  Bruno Haible  <bruno@clisp.org>
26901
26902         Modernize AC_TRY_LINK invocations.
26903         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26904         AC_TRY_LINK.
26905         * m4/argp.m4 (gl_ARGP): Likewise.
26906         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26907         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26908         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26909         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26910         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26911         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26912         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26913         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26914         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26915         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26916         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26917         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26918         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26919         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26920         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26921         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26922         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26923         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26924         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26925         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26926         Likewise.
26927         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26928         Likewise.
26929         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26930         Likewise.
26931         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26932         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26933         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26934         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26935         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26936         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26937         * m4/servent.m4 (gl_SERVENT): Likewise.
26938         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26939         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26940         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26941         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26942         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26943         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26944         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26945         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26946         * modules/tsearch-tests (configure.ac): Likewise.
26947
26948 2010-08-26  Bruno Haible  <bruno@clisp.org>
26949
26950         Modernize AC_TRY_COMPILE invocations.
26951         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26952         AC_TRY_COMPILE.
26953         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26954         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26955         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26956         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26957         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26958         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26959         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26960         * m4/lock.m4 (gl_LOCK): Likewise.
26961         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26962         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26963         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26964         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26965         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26966         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26967         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26969         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26970         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26971         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26972         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26973         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26974         extraneous semicolon.
26975
26976 2010-08-26  Jim Meyering  <meyering@redhat.com>
26977
26978         stat-time: relax license LGPL
26979         * modules/stat-time (License): Change from GPL to LGPL,
26980         with consent from all contributors, for use in libguile.
26981         Requested by Ludovic Courtès.
26982
26983 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26984
26985         poll: return immediately on POLLHUP.
26986         * lib/poll.c (poll): Always set timeout before wait_timeout is
26987         computed.
26988
26989 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26990
26991         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26992         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26993         rmdir ("dir/.//"), unlinkat.
26994
26995 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26996
26997         stdbool: avoid spurious failure with modern xlc
26998         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26999
27000 2010-08-24  Bruno Haible  <bruno@clisp.org>
27001
27002         getloadavg: simplify code
27003         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27004         gl_have_func. Update comments.
27005
27006 2010-08-24  Eric Blake  <eblake@redhat.com>
27007
27008         getloadavg: don't define SVR4 on cygwin
27009         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27010         only define SVR4 when -lkvm is required.
27011         Reported by Yaakov Selkowitz.
27012
27013 2010-08-24  Bruno Haible  <bruno@clisp.org>
27014
27015         priv-set: fix comment
27016         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27017
27018 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27019
27020         priv-set: fix comments
27021         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27022         to match code, as suggested by David Bartley in:
27023         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27024
27025 2010-08-23  Eric Blake  <eblake@redhat.com>
27026
27027         stdbool: avoid rejecting clang
27028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27029         * tests/test-stdbool.c: Enable more tests if using the system
27030         <stdbool.h> instead of the gnulib replacement.
27031         (main): Move xlc bug test to a runtime test for all compilers.
27032         Reported by Anders Kaseorg.
27033
27034         argz: fix shell quoting issue
27035         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27036         Reported by Charles Wilson.
27037
27038 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27039             Erik Faye-Lund <kusmabite@gmail.com>
27040
27041         poll, select: handle ERROR_BROKEN_PIPE.
27042         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27043         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27044         * lib/select.c (win32_compute_revents): Do not mark a pipe
27045         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27046
27047 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27048
27049         fts: allow compilation with C++
27050         * lib/fts_.h: Specify extern "C" linkage with C++.
27051
27052 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27053
27054         Fix gnulib-tool sed script de-commentation for AIX sed.
27055         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27056         sed.
27057
27058 2010-08-17  Eric Blake  <eblake@redhat.com>
27059
27060         test-stddef: test for (some) offsetof bugs
27061         * tests/test-stddef.c: Enhance test to ensure correct type of
27062         offsetof.
27063         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27064         that we are not fixing at this time.
27065
27066 2010-08-15  Bruno Haible  <bruno@clisp.org>
27067
27068         stpncpy: Allow stpncpy to be defined as a macro.
27069         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27070         if it's already correctly declared.
27071         * lib/string.in.h (stpncpy): Undefine before redefining.
27072         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27073
27074 2010-08-14  Bruno Haible  <bruno@clisp.org>
27075
27076         Rename module 'memxfrm' to 'amemxfrm'.
27077         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27078         (amemxfrm): Renamed from memxfrm.
27079         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27080         (amemxfrm): Renamed from memxfrm.
27081         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27082         * NEWS: Mention the change.
27083         * MODULES.html.sh (String handling <string.h>): Update.
27084         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27085         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27086         * lib/unicase/u16-casexfrm.c: Likewise.
27087         * lib/unicase/u32-casexfrm.c: Likewise.
27088         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27089         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27090         * lib/uninorm/u16-normxfrm.c: Likewise.
27091         * lib/uninorm/u32-normxfrm.c: Likewise.
27092         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27093         memxfrm.
27094         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27095         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27096         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27097         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27098         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27099         Suggested by Paul Eggert.
27100
27101 2010-08-14  Bruno Haible  <bruno@clisp.org>
27102
27103         Tests for module 'astrxfrm'.
27104         * modules/astrxfrm-tests: New file.
27105         * tests/test-astrxfrm.c: New file.
27106
27107         New module 'astrxfrm'.
27108         * lib/astrxfrm.h: New file.
27109         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27110         * modules/astrxfrm: New file.
27111
27112 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27113
27114         regex: Tweak doc.
27115         * doc/regex.texi (Overview): Don't mention regex.c.
27116         (GNU Regular Expression Compiling): Likewise.
27117         (Match-end-of-line Operator): Mention 'not_eol'.
27118
27119 2010-08-14  Brian Gough  <bjg@gnu.org>
27120             Bruno Haible  <bruno@clisp.org>
27121
27122         git-merge-changelog: add doc relating to use with bzr and hg.
27123         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27124
27125 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27126
27127         pthread: fix pthread.h creation for srcdir != builddir
27128         * modules/pthread (Makefile.am): Fix the rule to work also in a
27129         non-srcdir build.
27130
27131 2010-08-13  Karl Berry  <karl@gnu.org>
27132
27133         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27134         * doc/posix-*/*: force line break before @url of POSIX
27135         specifications.
27136         Suggested by Werner Lemberg.
27137
27138 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27139
27140         strtod: fix const diagnostic
27141         * lib/strtod.c (strtod): Don't assign const char * to char *,
27142         as this elicits a warning from GCC when warnings are enabled.
27143
27144 2010-08-10  Pádraig Brady <P@draigbrady.com>
27145         and Eric Blake  <eblake@redhat.com>
27146
27147         copy-acl: ignore ENOTSUP on HP-UX
27148         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27149         so that it is available for HP-UX.
27150         * lib/copy-acl.c (qcopy_acl): Use it.
27151         Reported by Patrick M. Callahan.
27152
27153 2010-08-10  Eric Blake  <eblake@redhat.com>
27154
27155         open, chown: relax license
27156         * modules/open (License): Change to LGPLv2+, with consent by all
27157         authors, for use in augeas.
27158         * modules/chown (License): Likewise.
27159         * modules/lchown (Likewise): Likewise.
27160         Requested by Adam Stokes.
27161
27162 2010-08-09  Karl Berry  <karl@gnu.org>
27163
27164         * build-aux/ar-lib: new file, import from Automake.
27165         * config/srclist.txt: autocheck for updates.
27166
27167 2010-08-09  Eric Blake  <eblake@redhat.com>
27168
27169         readlinkat: adjust client modules
27170         * modules/areadlinkat (Depends-on): Use readlinkat, not
27171         symlinkat.
27172         * modules/areadlinkat-with-size (Depends-on): Likewise.
27173
27174         mknod: be more vocal about danger of running tests as root
27175         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27176         root, since that is just asking for problems.
27177         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27178
27179         readlinkat: split into its own module
27180         * modules/symlinkat: Split readlinkat...
27181         * modules/readlinkat: ...into separate module.
27182         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27183         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27184         * lib/symlinkat.c (readlinkat): Move...
27185         * lib/readlinkat.c: ...into new file.
27186         * modules/symlinkat-tests: Split readlinkat test...
27187         * modules/readlinkat-tests: ...into separate module.
27188         * tests/test-symlinkat.c: Split...
27189         * tests/test-readlinkat.c: ...into new file.
27190         * NEWS: Document the split.
27191         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27192         * lib/unistd.in.h (readlinkat): Likewise.
27193         Suggested by Bruno Haible.
27194
27195 2010-08-08  Bruno Haible  <bruno@clisp.org>
27196
27197         memxfrm: Speed up.
27198         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27199         that usually only one call to strxfrm is necessary for each string
27200         part.
27201         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27202
27203 2010-08-07  Karl Berry  <karl@gnu.org>
27204
27205         * doc/posix-headers/limits.texi,
27206         * doc/posix-functions/malloc.texi,
27207         * doc/posix-functions/strsignal.texi: missing @item.
27208         * doc/ld-version-script.texi: spurious leading i.
27209         * doc/regex.texi (Interval Operators): no commas inside @var.
27210
27211 2010-08-01  Bruno Haible  <bruno@clisp.org>
27212
27213         Integrate the regex documentation.
27214         * doc/gnulib.texi: Define 'cn' index.
27215         (Regular expressions): New a chapter that includes regex.texi and
27216         regexprops-generic.texi.
27217         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27218         syntax.
27219
27220         Whitespace cleanup.
27221         * doc/regex.texi: Remove trailing spaces.
27222
27223         Add regex documentation.
27224         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27225         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27226         Written by Kathy A. Hargreaves and Karl Berry.
27227
27228 2010-08-01  Bruno Haible  <bruno@clisp.org>
27229
27230         link: Update documentation.
27231         * doc/posix-functions/link.texi: Update regarding Solaris.
27232
27233 2010-07-31  Bruno Haible  <bruno@clisp.org>
27234
27235         Update modules list.
27236         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27237         (String handling <string.h>): Add memcmp2, memxfrm.
27238         (Container data structures): Add xlist, xsublist, xoset.
27239         (Core language properties): Add alignof, unused-parameter.
27240         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27241         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27242         (Unibyte characters <ctype.h>): New section.
27243         (String handling <string.h>): New section.
27244         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27245         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27246         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27247         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27248         tan, tanh, tanl, y0, y1, yn.
27249         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27250         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27251         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27252         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27253         unlockpt, vdprintf, vdprintf-posix.
27254         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27255         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27256         xconcat-filename.
27257         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27258         getdtablesize, pipe2, pipe2-safer.
27259         (Security): New section.
27260         (Networking functions): Add accept4.
27261         (Signal handling): Add sigpipe.
27262         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27263         mbmemcasecoll.
27264         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27265         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27266         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27267         pipe-filter-ii.
27268         (Misc): Add argp-version-etc, login_tty, parse-duration.
27269
27270 2010-07-31  Bruno Haible  <bruno@clisp.org>
27271
27272         Improve doc in MODULES.html.
27273         * modules/linkat (Description): Add the word "function".
27274         * modules/mkfifo (Description): Likewise.
27275         * modules/mknod (Description): Likewise.
27276         * modules/remove (Description): Likewise.
27277         * modules/renameat (Description): Likewise.
27278         * modules/stat (Description): Likewise.
27279         * modules/symlink (Description): Likewise.
27280         * modules/unlink (Description): Likewise.
27281
27282 2010-07-31  Bruno Haible  <bruno@clisp.org>
27283
27284         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27285         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27286         option --enable/disable-c++ instead of --enable/disable-cxx.
27287         * NEWS: Mention the change.
27288
27289 2010-07-31  Bruno Haible  <bruno@clisp.org>
27290
27291         readlink, areadlink: Relax test a bit.
27292         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27293         alternative to ENOTDIR.
27294         * tests/test-areadlink.h (test_areadlink): Likewise.
27295         Reported by Rainer Tammer.
27296
27297 2010-07-31  Bruno Haible  <bruno@clisp.org>
27298
27299         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27300         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27301         character, perform the search using U_STRCHR.
27302         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27303         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27304         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27305         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27306         Suggested by Paolo Bonzini.
27307
27308 2010-07-31  Bruno Haible  <bruno@clisp.org>
27309
27310         unistr/u*-strstr: Fix dependencies.
27311         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27312         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27313         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27314
27315 2010-07-31  Bruno Haible  <bruno@clisp.org>
27316
27317         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27318         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27319         the beginning of the loop.
27320         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27321         cases in 'switch' statement.
27322
27323         unistr/u8-strchr: Fix several bugs.
27324         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27325         the string. When not found, return NULL, not a pointer near the end.
27326
27327         More tests for unistr/u8-strchr.
27328         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27329         that the function does not read past the first occurrence of the byte
27330         being searched.
27331         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27332         * tests/unistr/test-u16-strchr.c (main): New function.
27333         * tests/unistr/test-u32-strchr.c (main): New function.
27334
27335 2010-07-31  Bruno Haible  <bruno@clisp.org>
27336
27337         posix-modules: Ignore backup files of documentation files.
27338         * posix-modules: grep only through files named *.texi.
27339
27340 2010-07-31  Bruno Haible  <bruno@clisp.org>
27341
27342         symlinkat: Fix documentation.
27343         * doc/posix-functions/readlinkat.texi: Fix module name.
27344
27345 2010-07-31  Bruno Haible  <bruno@clisp.org>
27346
27347         fchownat: Replace also when chown has the trailing slash bug.
27348         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27349         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27350         introduced on 2010-04-10.
27351         Reported by Rainer Tammer.
27352
27353 2010-07-31  Bruno Haible  <bruno@clisp.org>
27354
27355         linkat: Work around AIX 7.1 bug.
27356         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27357         whether linkat handles trailing slash correctly. If not, replace linkat
27358         and define LINKAT_TRAILING_SLASH_BUG.
27359         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27360         check whether (fd1,file1) points to a directory if file1 or file2 ends
27361         in a slash. Code taken from lib/link.c.
27362         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27363         Reported by Rainer Tammer.
27364
27365 2010-07-31  Bruno Haible  <bruno@clisp.org>
27366
27367         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27368         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27369         This disables an xlc optimization that was causing wrong test results.
27370         Reported by Rainer Tammer.
27371
27372 2010-07-31  Bruno Haible  <bruno@clisp.org>
27373
27374         iconv: Work around AIX 6.1..7.1 bug.
27375         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27376         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27377         cross-compiling, guess no on all versions of AIX.
27378         Reported by Rainer Tammer.
27379
27380 2010-07-31  Bruno Haible  <bruno@clisp.org>
27381
27382         readlink: Relax test a bit.
27383         * tests/test-readlink.h (test_readlink): Allow different errno value
27384         when readlink is called with a file name that ends in / and refers to
27385         a file.
27386         Suggested by Eric Blake.
27387         Reported by Rainer Tammer.
27388
27389 2010-07-31  Bruno Haible  <bruno@clisp.org>
27390
27391         copysign: Does not require -lm on glibc systems.
27392         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27393         gl_COMMON_DOUBLE_MATHFUNC.
27394         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27395
27396 2010-07-31  Bruno Haible  <bruno@clisp.org>
27397
27398         duplocale: Work around AIX 7.1 bug.
27399         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27400         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27401         * lib/duplocale.c (rpl_duplocale): Update comment.
27402         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27403         Reported by Rainer Tammer.
27404
27405 2010-07-30  Bruno Haible  <bruno@clisp.org>
27406
27407         dirfd: Avoid link error on AIX 7.1.
27408         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27409         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27410         exist, set REPLACE_DIRFD.
27411         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27412         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27413         * doc/posix-functions/dirfd.texi: Update.
27414         Reported by Rainer Tammer.
27415
27416 2010-07-30  Eric Blake  <eblake@redhat.com>
27417
27418         strtod: next round of AIX fixes
27419         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27420         exponent.
27421         * tests/test-strtod.c (main): Enhance tests.
27422         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27423         Reported by Rainer Tammer.
27424
27425         futimens: fix configure check
27426         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27427         Reported by Bruno Haible.
27428
27429 2010-07-30  Bruno Haible  <bruno@clisp.org>
27430
27431         getline: Update regarding AIX.
27432         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27433         Reported by Rainer Tammer.
27434
27435 2010-07-30  Bruno Haible  <bruno@clisp.org>
27436
27437         wcwidth: Drop replacement on AIX 7.
27438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27439         AIX 7.
27440         Reported by Rainer Tammer.
27441
27442 2010-07-30  Bruno Haible  <bruno@clisp.org>
27443
27444         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27445         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27446         a 'char *'.
27447         Reported by Rainer Tammer.
27448
27449 2010-07-30  Bruno Haible  <bruno@clisp.org>
27450
27451         unlink: Update regarding AIX.
27452         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27453         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27454         Reported by Rainer Tammer.
27455
27456 2010-07-30  Bruno Haible  <bruno@clisp.org>
27457
27458         symlink: Update regarding AIX.
27459         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27460         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27461         Reported by Rainer Tammer.
27462
27463 2010-07-30  Bruno Haible  <bruno@clisp.org>
27464
27465         strndup: Update regarding AIX.
27466         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27467         AIX 7.
27468         Reported by Rainer Tammer.
27469
27470 2010-07-30  Bruno Haible  <bruno@clisp.org>
27471
27472         stat: Update regarding AIX.
27473         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27474         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27475         Reported by Rainer Tammer.
27476
27477 2010-07-30  Bruno Haible  <bruno@clisp.org>
27478
27479         truncl: Fix autoconf test.
27480         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27481         whether truncl works.
27482         Reported by Rainer Tammer.
27483
27484 2010-07-30  Bruno Haible  <bruno@clisp.org>
27485
27486         round: Update regarding AIX.
27487         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27488         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27489         Reported by Rainer Tammer.
27490
27491 2010-07-30  Bruno Haible  <bruno@clisp.org>
27492
27493         rename: Update regarding AIX.
27494         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27495         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27496         Reported by Rainer Tammer.
27497
27498 2010-07-30  Bruno Haible  <bruno@clisp.org>
27499
27500         printf.m4: Update regarding AIX.
27501         * m4/printf.m4: Update comments regarding AIX.
27502         Reported by Rainer Tammer.
27503
27504 2010-07-30  Bruno Haible  <bruno@clisp.org>
27505
27506         iconv: Update regarding AIX.
27507         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27508         AIX 7.
27509         Reported by Rainer Tammer.
27510
27511 2010-07-30  Bruno Haible  <bruno@clisp.org>
27512
27513         getopt: Update regarding AIX.
27514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27515         no on AIX.
27516         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27517         Reported by Rainer Tammer.
27518
27519 2010-07-30  Bruno Haible  <bruno@clisp.org>
27520
27521         ldexpl; Update regarding AIX.
27522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27523         on AIX 7.
27524         Reported by Rainer Tammer.
27525
27526 2010-07-30  Bruno Haible  <bruno@clisp.org>
27527
27528         frexpl: Update regarding AIX.
27529         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27530         on AIX 7.
27531         Reported by Rainer Tammer.
27532
27533 2010-07-30  Bruno Haible  <bruno@clisp.org>
27534
27535         open, fopen: Update regarding AIX.
27536         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27537         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27538         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27539         * doc/posix-functions/fopen.texi: Likewise.
27540         Reported by Rainer Tammer.
27541
27542 2010-07-30  Bruno Haible  <bruno@clisp.org>
27543
27544         chown: Update doc regarding AIX.
27545         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27546         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27547         Reported by Rainer Tammer.
27548
27549 2010-07-30  Eric Blake  <eblake@redhat.com>
27550
27551         strtod: fix bug in replacement function on AIX
27552         * lib/strtod.c (strtod): Special case broken "0x" parse in
27553         underlying strtod.
27554         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27555         * doc/posix-functions/strtod.texi (strtod): Likewise.
27556         Reported by Rainer Tammer.
27557
27558 2010-07-30  Bruno Haible  <bruno@clisp.org>
27559
27560         mbrlen: Fix cross-compilation guess for AIX.
27561         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27562         guess. Leftover from 2008-12-22.
27563
27564 2010-07-30  Bruno Haible  <bruno@clisp.org>
27565
27566         mbrtowc: Fix cross-compilation guess for AIX.
27567         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27568         guess. Leftover from 2008-12-21.
27569
27570 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27571
27572         init.sh: work around trap limitation of some shells
27573         * tests/init.sh (setup_): Move exit trap outside of shell function.
27574
27575 2010-07-29  Eric Blake  <eblake@redhat.com>
27576
27577         strtod: aid debugging
27578         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27579         understanding why strtod is rejected.
27580
27581 2010-07-28  Bruno Haible  <bruno@clisp.org>
27582
27583         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27584         * lib/unistr/u8-chr.c: Include <string.h>.
27585         * tests/unistr/test-u8-chr.c: Likewise.
27586         * tests/unistr/test-u16-chr.c: Likewise.
27587         * tests/unistr/test-u32-chr.c: Likewise.
27588         * tests/unistr/test-u8-strchr.c: Likewise.
27589         * tests/unistr/test-u16-strchr.c: Likewise.
27590         * tests/unistr/test-u32-strchr.c: Likewise.
27591         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27592         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27593         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27594         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27595
27596 2010-07-28  Bruno Haible  <bruno@clisp.org>
27597
27598         Use spaces for indentation, not tabs.
27599         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27600
27601 2010-07-27  Bruno Haible  <bruno@clisp.org>
27602
27603         mbspcasecmp: Fix function specification.
27604         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27605         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27606         Reported by Eric Blake <eblake@redhat.com>.
27607
27608 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27609
27610         timespec: use cast and not conditional, as truncation isn't possible
27611         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27612         instead of a conditional.  Comment about the situation in more detail.
27613         This undoes most of the 2009-10-29 patch.
27614
27615 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27616
27617         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27618         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27619         * lib/unistr/u8-strchr.c: Likewise.
27620         * modules/unistr/u8-chr: Depend on memchr.
27621
27622         unistr/u*-strchr: add tests
27623         * modules/unistr/u8-strchr-tests: New file.
27624         * modules/unistr/u16-strchr-tests: New file.
27625         * modules/unistr/u32-strchr-tests: New file.
27626         * tests/unistr/test-strchr.h: New file.
27627         * tests/unistr/test-u8-strchr.c: New file.
27628         * tests/unistr/test-u16-strchr.c: New file.
27629         * tests/unistr/test-u32-strchr.c: New file.
27630
27631         unistr/u*-chr: test multibyte sequences more
27632         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27633         test vector.
27634         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27635         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27636         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27637
27638         unistr/u*-chr: test multibyte sequences
27639         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27640
27641         unistr/u*-chr: prepare for multibyte tests
27642         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27643         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27644         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27645         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27646         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27647         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27648
27649 2010-07-18  Bruno Haible  <bruno@clisp.org>
27650
27651         unistr/u8-strchr: Optimize non-ASCII argument case.
27652         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27653         because the first byte often matches anyway.
27654         Reported by Pádraig Brady <P@draigbrady.com>.
27655
27656 2010-07-15  Karl Berry  <karl@gnu.org>
27657
27658         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27659
27660 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27661
27662         getcwd: on Solaris, work better if ancestors are inaccessible
27663         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27664         buffer and size, try again with a large buffer.  This works better
27665         on Solaris, since its getcwd succeeds even if the path to the root
27666         is inaccessible, and this is helpful in common cases such as .zfs
27667         hidden directories.  Problem reported by J Chapman Flack in
27668         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27669         Use system getcwd if it's declared, not merely if it's partly
27670         working; use the partly-working test only to avoid needless effort
27671         if the system getcwd fails.
27672         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27673         comment that was already obsolete and is now even more obsolete.
27674         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27675         now might call strdup.
27676
27677 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27678
27679         pthread: Add enough so that coreutils/src/sort.c compiles.
27680         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27681         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27682         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27683         Include <sys/types.h>, in case it defines pthread_t.
27684         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27685         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27686         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27687         (pthread_rwlockattr_t, pthread_spinlock_t):
27688         New typedefs, if HAVE_PTHREAD_T is not defined.
27689         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27690         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27691         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27692         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27693         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27694         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27695         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27696         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27697         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27698         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27699         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27700         New macros.
27701         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27702         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27703         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27704         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27705         (pthread_spin_unlock): New dummy functions.
27706         (pthread_create): Return EAGAIN; don't set errno.
27707         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27708         require AC_C_INLINE.
27709         * modules/pthread (Depends-on): Add sched, time.
27710         (pthread.h): Use AM_V_GEN.
27711
27712 2010-07-13  Bruno Haible  <bruno@clisp.org>
27713
27714         striconveh: Don't malloc memory if the result buffer is sufficient.
27715         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27716         buffer if its size is sufficient.
27717         Reported by Ludovic Courtès <ludo@gnu.org>.
27718
27719 2010-07-13  Bruno Haible  <bruno@clisp.org>
27720
27721         strtod: Add safety check.
27722         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27723
27724 2010-07-12  Bruno Haible  <bruno@clisp.org>
27725
27726         Unify tests that set gl_cv_func_ldexpl_no_libm.
27727         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27728         gl_FUNC_LDEXPL.
27729         (gl_FUNC_LDEXPL): Invoke it.
27730         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27731
27732 2010-07-12  Bruno Haible  <bruno@clisp.org>
27733
27734         Unify tests that set gl_cv_func_ldexp_no_libm.
27735         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27736         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27737         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27738         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27739         * modules/strtod (Files): Add m4/ldexp.m4.
27740
27741 2010-07-12  Bruno Haible  <bruno@clisp.org>
27742
27743         Unify tests that set gl_cv_func_frexpl_no_libm.
27744         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27745         gl_FUNC_FREXPL_NO_LIBM.
27746         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27748
27749 2010-07-12  Bruno Haible  <bruno@clisp.org>
27750
27751         Unify tests that set gl_cv_func_frexp_no_libm.
27752         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27753         gl_FUNC_FREXP_NO_LIBM.
27754         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27755         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27756
27757 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27758
27759         memcoll: clarify sizes versus lengths, document better, and tweak perf
27760         * lib/memcoll.c (strcoll_loop, memcoll0):
27761         Improve quality of descriptive comments.  Name variables
27762         consistently as to whether they are lengths (which do not include
27763         terminating null) versus sizes (which do).
27764         * lib/xmemcoll.c (xmemcoll0): Likewise.
27765         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27766         returned when s1size == 0; this is easier to compile and saves
27767         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27768
27769 2010-07-12  Bruno Haible  <bruno@clisp.org>
27770
27771         Tests for module '_Exit'.
27772         * modules/_Exit-tests: New file.
27773         * tests/test-_Exit.sh: New file.
27774         * tests/test-_Exit.c: New file.
27775
27776         New module '_Exit'.
27777         * lib/stdlib.in.h (__attribute__): New macro.
27778         (_Exit): New declaration.
27779         * lib/_Exit.c: New file.
27780         * m4/_Exit.m4: New file.
27781         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27782         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27783         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27784         * modules/_Exit: New file.
27785         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27786         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27787
27788 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27789
27790         strtod: make it more-accurate typically, and don't require libm
27791         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27792         Include limits.h.  Don't include string.h.
27793         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27794         (locale_isspace): New function, so that no casts are needed to
27795         check whether *s is a space.
27796         (ldexp): Provide an unused dummy if not available.
27797         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27798         (strtod): Use them.  This implementation prefers to use the
27799         underlying strtod if available, falling back on our own code
27800         only to fix known bugs.  This is more likely to produce an
27801         accurate result.  Also, it avoids the use of libm functions.
27802         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27803         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27804         was absent, but it caused a test failure with coreutils.
27805         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27806         with libm.
27807         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27808         * modules/strtod-tests (Makefile.am): Likewise.
27809
27810 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27811             Bruno Haible  <bruno@clisp.org>
27812
27813         unistr/u8-strchr: Optimize ASCII argument case.
27814         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27815
27816 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27817
27818         (x)memcoll: minor tweaks
27819         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27820         is after the type that it qualifies.
27821         (memcoll0): Likewise.
27822         * lib/memcoll.h (memcoll0): Likewise.
27823         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27824         * lib/xmemcoll.h (xmemcoll0): Likewise.
27825         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27826         differs from memcoll in that the NUL byte is part of the argument.
27827         Omit the abort-checks, as performance is a real issue here.  Plus,
27828         the checks were wrong anyway (an off-by-one error).  Omit local
27829         variable 'diff', as it's a bit clearer that way.
27830         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27831         no longer needed.
27832
27833 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27834
27835         (x)memcoll: speedup when input is known to be NUL delimited
27836         * lib/memcoll.c: Include stdlib.
27837         (memcoll0): New function.
27838         (strcoll_loop): New function, refactored for use in both memcoll
27839         and memcoll0.
27840         * lib/memcoll.h (memcoll0): Add prototype.
27841         * lib/xmemcoll.c (xmemcoll0): New function.
27842         (collate_error): New function, refactored for use in both xmemcoll
27843         and xmemcoll0.
27844         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27845         * m4/memcoll.m4: add inline invocation.
27846
27847 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27848
27849         * build-aux/bootstrap: Remove any local translations
27850         from the translation project synchronization directory,
27851         so that local only translations are not distributed.
27852
27853 2010-07-04  Bruno Haible  <bruno@clisp.org>
27854
27855         fsusage: Clarify which code applies to which platforms.
27856         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27857         platform.
27858         * lib/fsusage.c (get_fs_usage): Likewise.
27859
27860 2010-07-04  Bruno Haible  <bruno@clisp.org>
27861
27862         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27863         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27864         Reported by Martin Lambers <marlam@marlam.de>.
27865
27866 2010-07-04  Jim Meyering  <meyering@redhat.com>
27867
27868         hash: once again explicitly disallow insertion of NULL
27869         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27870         inserting a NULL pointer cannot work with these functions.
27871         Add a comment with details.
27872         This reverts part of the 2010-07-01 commit, 5bef1a35
27873         "hash: extend module to deal with non-pointer keys".
27874
27875 2010-07-01  Bruno Haible  <bruno@clisp.org>
27876
27877         stdbool: Update doc.
27878         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27879         Info from Christian Weisgerber <naddy@mips.inka.de>.
27880
27881 2010-07-01  Jim Meyering  <meyering@redhat.com>
27882
27883         hash: extend module to deal with non-pointer keys
27884         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27885         but that allows insertion of non-pointer entries.
27886         Do not disallow an ENTRY value of NULL.
27887         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27888         * lib/hash.h (hash_insert0): Declare.
27889
27890 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27891
27892         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27893         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27894         not present (i.e. with autoconf 2.59 and when using gettextize, not
27895         gnulib), require AC_GNU_SOURCE instead.
27896
27897 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27898
27899         idpriv-drop: Fix tests.
27900         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27901         not to the test-idpriv-droptemp program.
27902
27903 2010-06-29  Bruno Haible  <bruno@clisp.org>
27904
27905         string: Fix syntax error with g++ 2.96.
27906         * lib/string.in.h (__pure__): Remove definition.
27907         (_GL_ATTRIBUTE_PURE): New macro.
27908         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27909         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27910         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27911
27912 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27913
27914         unitypes: Fix bug introduced on 2010-05-18.
27915         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27916
27917 2010-06-22  Eric Blake  <eblake@redhat.com>
27918
27919         memmem: slight optimization
27920         * lib/str-two-way.h (critical_factorization): Update comments.
27921         Reduce work during factorization phase.
27922         Reported by Carlos Bueno <carlos@bueno.org>.
27923
27924 2010-06-21  Bruno Haible  <bruno@clisp.org>
27925
27926         Fix HAVE_CALLOC_POSIX misnomer.
27927         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27928         !HAVE_CALLOC_POSIX.
27929         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27930         HAVE_CALLOC_POSIX.
27931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27932         instead of HAVE_CALLOC_POSIX.
27933         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27934         HAVE_CALLOC_POSIX.
27935
27936         Use modern idiom for calloc() replacement.
27937         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27938         AC_FUNC_CALLOC.
27939         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27940         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27941         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27942         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27943         (gl_REPLACE_CALLOC): New macro.
27944
27945 2010-06-21  Bruno Haible  <bruno@clisp.org>
27946
27947         Fix HAVE_REALLOC_POSIX misnomer.
27948         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27949         !HAVE_REALLOC_POSIX.
27950         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27951         HAVE_REALLOC_POSIX.
27952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27953         instead of HAVE_REALLOC_POSIX.
27954         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27955         HAVE_REALLOC_POSIX.
27956
27957         Use modern idiom for realloc() replacement.
27958         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27959         AC_FUNC_REALLOC.
27960         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27961         Autoconf's AC_FUNC_REALLOC.
27962         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27963         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27964         (gl_REPLACE_REALLOC): New macro.
27965         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27966
27967 2010-06-21  Bruno Haible  <bruno@clisp.org>
27968
27969         Fix HAVE_MALLOC_POSIX misnomer.
27970         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27971         !HAVE_MALLOC_POSIX.
27972         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27973         HAVE_MALLOC_POSIX.
27974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27975         instead of HAVE_MALLOC_POSIX.
27976         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27977         HAVE_MALLOC_POSIX.
27978
27979         Use modern idiom for malloc() replacement.
27980         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27981         AC_FUNC_MALLOC.
27982         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27983         Autoconf's AC_FUNC_MALLOC.
27984         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27985         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27986         (gl_REPLACE_MALLOC): New macro.
27987         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27988
27989 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27990
27991         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27992         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27993         This macro takes 3 arguments, not 4.
27994
27995 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27996
27997         ipv6: fix detection under mingw
27998         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27999         in6_addr.
28000
28001 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28002
28003         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28004         that strtod() works when cross-compiling to a glibc version known
28005         to work.
28006
28007 2010-06-15  Bruno Haible  <bruno@clisp.org>
28008
28009         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28010
28011 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28012
28013         select: Correct timeout.
28014         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28015
28016 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28017
28018         git-version-gen: init shell var to avoid env var influence
28019         * build-aux/git-version-gen (v): Init shell var to empty.
28020
28021 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28022
28023         priv-set: Don't assume that priv.h exists merely because getppriv does.
28024         See Jan Andersen's bug report about AIX 5L in
28025         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28026         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28027         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28028         * lib/priv-set.h: Likewise.
28029         * tests/test-priv-set.c: Likewise.
28030
28031 2010-06-13  Bruno Haible  <bruno@clisp.org>
28032
28033         relocatable: Make it easier to test whether to install wrappers.
28034         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28035         RELOCATABLE_VIA_WRAPPER.
28036
28037 2010-06-13  Bruno Haible  <bruno@clisp.org>
28038
28039         gnulib-tool: Display specified modules and dependencies differently.
28040         * gnulib-tool (func_show_module_list): New function.
28041         (func_import, func_create_testdir): Invoke it.
28042         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28043
28044 2010-06-13  Bruno Haible  <bruno@clisp.org>
28045
28046         gnulib-tool: Align code of func_import and func_create_testdir.
28047         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28048         specified_modules.
28049
28050 2010-06-12  Jim Meyering  <meyering@redhat.com>
28051
28052         test-inttostr: avoid spurious failure on Solaris 9
28053         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28054         to accept "%ju".  Reported by Bruno Haible.
28055
28056 2010-06-11  Jim Meyering  <meyering@redhat.com>
28057
28058         test-sys_socket: mark variables as used more readably
28059         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28060         as "used" explicitly via (void) statement casts.  This is more
28061         readable than using them in an artificial return expression.
28062         Suggestion from Bruno Haible.
28063
28064 2010-06-11  Bruno Haible  <bruno@clisp.org>
28065
28066         Avoid some more warnings from "gcc -Wwrite-strings".
28067         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28068         to 'const char *'.
28069         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28070         * tests/test-c-strcasestr.c (main): Likewise.
28071         * tests/test-mbscasestr1.c (main): Likewise.
28072         * tests/test-mbscasestr2.c (main): Likewise.
28073         * tests/test-memmem.c (main): Likewise.
28074         * tests/test-strstr.c (main): Likewise.
28075         * tests/test-strcasestr.c (main): Likewise.
28076
28077 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28078
28079         init.sh: change framework_failure_ to fail with status 99, not 1
28080         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28081         automake's parallel-tests rule that this is an unexpected failure,
28082         even if the test is listed in XFAIL_TESTS.
28083
28084 2010-06-11  Jim Meyering  <meyering@redhat.com>
28085
28086         test-inttostr: avoid warnings about 4-6KB literal strings
28087         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28088         Include "macros.h", for its definition of ASSERT.
28089         (CK): s/assert/ASSERT/
28090         * modules/inttostr-tests (Files): Add macros.h.
28091
28092         init.sh: don't use $ME_ or skip_ before they are defined
28093         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28094         their first uses.  Also hoist their companions: warn_, fail_,
28095         framework_failure_, $stderr_fileno.  Prompted by a patch from
28096         Stefano Lattarini.
28097
28098         test-sys_socket: avoid set-but-not-used warnings from gcc
28099         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28100         avoid warning about set-but-not-used variables.
28101
28102         test-xvasprintf: avoid 'const' discard warnings
28103         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28104         "const" when assigning from literal strings.
28105         (test_xasprintf): Add "void" in function argument list to placate
28106         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28107
28108         tests: avoid compilation warnings in argmatch and exclude tests...
28109         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28110         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28111         Since it always exits, declare with the "noreturn" attribute.
28112         * tests/test-argmatch.c: Likewise.
28113
28114         tests: avoid 'const' discard warnings in mbsstr tests
28115         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28116         * tests/test-mbsstr2.c (main): Likewise.
28117
28118         test-verify: avoid warning from gcc's -Wmissing-declarations
28119         * tests/test-verify.c (function): Declare to be static.
28120
28121         test-inttostr.c: include <string.h> for use of strcmp
28122         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28123
28124         test-linkat: avoid failed assertion on "other" architectures
28125         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28126         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28127         sparc: https://bugs.launchpad.net/bugs/591968
28128
28129 2010-06-11  Jim Meyering  <meyering@redhat.com>
28130
28131         printf.m4: avoid autoconf's "Expanded Before Required" warning
28132         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28133         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28134         autoconf warning.
28135
28136 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28137
28138         Replacement header templates are now named with ".in", not "_".
28139         * doc/gnulib-intro.texi: Correct.
28140
28141 2010-06-10  Jim Meyering  <meyering@redhat.com>
28142
28143         inttostr-tests: depend on snprintf, not snprintf-posix
28144         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28145         snprintf-posix, to avoid this aclocal failure:
28146           missing file gnulib-tests/vasnprintf.c
28147           configure.ac:45: error: expected source file, required through \
28148           AC_LIBSOURCES, not found
28149
28150 2010-06-10  Jim Meyering  <meyering@redhat.com>
28151
28152         inttostr: add a new function, inttostr, and tests
28153         The namesake function was not available.  The existence of the
28154         template file, inttostr.c makes its addition nontrivial.
28155         * lib/anytostr.c: Rename from inttostr.c.
28156         (anytostr): Rename from inttostr.
28157         * lib/inttostr.c: New file.
28158         * modules/inttostr (Files): Add anytostr.c.
28159         (Makefile.am): Set lib_SOURCES instead of ...
28160         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28161         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28162         * lib/offtostr.c: Likewise.
28163         * lib/uinttostr.c: Likewise.
28164         * lib/umaxtostr.c: Likewise.
28165         * modules/inttostr-tests: New file.
28166         * tests/test-inttostr.c: New file.  Test these functions.
28167
28168 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28169             Bruno Haible  <bruno@clisp.org>
28170
28171         Add "Extending Gnulib" chapter to manual.
28172         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28173         chapter.
28174         (Extending Gnulib): New chapter.
28175         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28176         chapter.
28177
28178 2010-06-09  Bruno Haible  <bruno@clisp.org>
28179
28180         Avoid relocwrapper link errors due to gnulib replacement functions.
28181         * lib/areadlink.c: Use the system's malloc, realloc functions.
28182         (areadlink): Set errno to ENOMEM explicitly.
28183         * modules/areadlink (Depends-on): Remove malloc-posix.
28184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28185
28186 2010-06-09  Bruno Haible  <bruno@clisp.org>
28187
28188         Avoid relocwrapper link errors due to gnulib replacement functions.
28189         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28190         * lib/malloca.c: Likewise.
28191         * lib/relocatable.c: Likewise.
28192         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28193         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28194         * lib/setenv.c: Use the system's malloc, realloc functions.
28195         * lib/strerror.c: Use the system's sprintf function.
28196         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28197
28198 2010-06-04  Bruno Haible  <bruno@clisp.org>
28199
28200         Prefer documented low-level autoconf macro names.
28201         * m4/lib-link.m4: Use m4_translit instead of translit.
28202         * m4/environ.m4: Likewise.
28203         * m4/mathfunc.m4: Likewise.
28204         * m4/onceonly.m4: Likewise.
28205         * m4/stdint.m4: Likewise.
28206         Suggested by Eric Blake.
28207
28208 2010-06-04  Martin Lambers  <marlam@marlam.de>
28209             Bruno Haible  <bruno@clisp.org>
28210
28211         havelib: Allow library names with '+' characters.
28212         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28213         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28214
28215 2010-06-09  Bruno Haible  <bruno@clisp.org>
28216
28217         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28218         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28219         realloc failed.
28220
28221 2010-06-08  Peter Simons  <simons@cryp.to>
28222
28223         maint.mk: make the news-check rule more configurable
28224         * top/maint.mk (news-check-lines-spec): New variable.
28225         (news-check): Use "sed -n 1,10p" in place of "head".
28226
28227 2010-06-07  Jim Meyering  <meyering@redhat.com>
28228
28229         do-release-commit-and-tag: fix typo in --help
28230         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28231
28232         regex: avoid new dead-code warning with gcc-4.6.0
28233         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28234         if-block containing a while-loop.  It's been unused for at least
28235         5 years.
28236
28237 2010-06-05  Bruno Haible  <bruno@clisp.org>
28238
28239         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28240         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28241
28242 2010-06-04  Bruno Haible  <bruno@clisp.org>
28243
28244         Update to GNU gettext 0.18.1.
28245         * modules/gettext (configure.ac): Require gettext infrastructure from
28246         version 0.18.1.
28247
28248 2010-06-03  Bruno Haible  <bruno@clisp.org>
28249
28250         Don't use AC_LIBOBJ with file names in subdirectories.
28251         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28252         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28253         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28254         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28255         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28256         gl_LIBUNISTRING_LIBSOURCE.
28257         (Makefile.am): Augment lib_SOURCES here, conditionally.
28258         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28259
28260 2010-06-03  Bruno Haible  <bruno@clisp.org>
28261
28262         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28263         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28264         expansion does not end with a newline.
28265         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28266         unnecessary newline.
28267
28268 2010-06-03  Bruno Haible  <bruno@clisp.org>
28269
28270         Reduce dependencies.
28271         * tests/test-quotearg.h: New file, extracted from
28272         tests/test-quotearg.c.
28273         * tests/test-quotearg-simple.c: New file, extracted from
28274         tests/test-quotearg.c.
28275         * tests/test-quotearg.c: Don't include <ctype.h>.
28276         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28277         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28278         use_quote_double_quotes, use_quotearg_colon): Moved to
28279         tests/test-quotearg.h.
28280         (results_g, flag_results, custom_quotes, custom_results): Moved
28281         to tests/test-quotearg-simple.c.
28282         (main): Moved the part that does not depend on gettext to
28283         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28284         performed.
28285         * modules/quotearg-simple: New file.
28286         * modules/quotearg-simple-tests: New file.
28287         * modules/quotearg (Depends-on): Add quotearg-simple.
28288         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28289         (Files): Add tests/test-quotearg.h.
28290         Reported by Paolo Bonzini.
28291
28292 2010-06-03  Bruno Haible  <bruno@clisp.org>
28293
28294         Reduce dependencies.
28295         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28296
28297 2010-06-03  Bruno Haible  <bruno@clisp.org>
28298
28299         time: Undefine more broken macros.
28300         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28301         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28302         Reported by Eric Blake.
28303
28304 2010-06-03  Bruno Haible  <bruno@clisp.org>
28305
28306         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28307         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28308         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28309         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28310         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28311         Reported by Ludovic Courtès <ludo@gnu.org>.
28312
28313 2010-06-02  Eric Blake  <eblake@redhat.com>
28314
28315         time: work with mingw + pthreads-win32 library
28316         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28317         if timespec is defined only in pthread.h.
28318         * modules/time (Makefile.am): Substitute it.
28319         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28320         <pthread.h>, when needed.
28321         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28322         from the library.
28323
28324 2010-05-31  Bruno Haible  <bruno@clisp.org>
28325
28326         Avoid expanding two macros in the wrong order.
28327         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28328         gl_LIBUNISTRING if it is defined.
28329         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28330         autoconf >= 2.64.
28331         Reported by Ludovic Courtès <ludo@gnu.org>.
28332
28333 2010-05-27  Jim Meyering  <meyering@redhat.com>
28334
28335         maint.mk: also prohibit "#undef" of always-defined symbols
28336         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28337         Allow more than one space before the symbol name.
28338         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28339         the regexp uses alternation.
28340
28341 2010-05-26  Eric Blake  <eblake@redhat.com>
28342
28343         maint.mk: avoid echo -e
28344         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28345         Convert all uses of echo -* to printf.
28346         Reported by Matthias Bolte.
28347
28348 2010-05-25  Bruno Haible  <bruno@clisp.org>
28349
28350         Update to GNU gettext 0.18, part 2.
28351         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28352         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28353
28354 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28355
28356         Add missing include in test-pwrite.c.
28357         * tests/test-pwrite.c: Include string.h, for strcmp.
28358
28359 2010-05-24  Bruno Haible  <bruno@clisp.org>
28360
28361         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28362
28363 2010-05-24  Bruno Haible  <bruno@clisp.org>
28364
28365         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28366         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28367         iconveh_error argument.
28368         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28369         U_STRCONV_TO_LOCALE.
28370         * lib/unistr/u16-strcoll.c: Likewise.
28371         * lib/unistr/u32-strcoll.c: Likewise.
28372         * modules/unistr/u8-strcoll (Depends-on): Add
28373         uniconv/u8-strconv-to-enc, localcharset. Remove
28374         uniconv/u8-strconv-to-locale.
28375         (configure.ac): Bump version number.
28376         * modules/unistr/u16-strcoll (Depends-on): Add
28377         uniconv/u16-strconv-to-enc, localcharset. Remove
28378         uniconv/u16-strconv-to-locale.
28379         (configure.ac): Bump version number.
28380         * modules/unistr/u32-strcoll (Depends-on): Add
28381         uniconv/u32-strconv-to-enc, localcharset. Remove
28382         uniconv/u32-strconv-to-locale.
28383         (configure.ac): Bump version number.
28384
28385 2010-05-24  Bruno Haible  <bruno@clisp.org>
28386
28387         Avoid a test failure on NetBSD 5.0.
28388         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28389         an iconv() bug.
28390
28391 2010-05-24  Bruno Haible  <bruno@clisp.org>
28392
28393         Adjust #include directive style.
28394         * modules/regex (Includes): Recommend to write <regex.h>.
28395
28396 2010-05-24  Bruno Haible  <bruno@clisp.org>
28397
28398         regex: Don't require alloca.
28399         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28400         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28401         only inside if (0).
28402
28403 2010-05-23  Jim Meyering  <meyering@redhat.com>
28404
28405         test-renameat.c: include <sys/stat.h>
28406         * tests/test-renameat.c: Include <sys/stat.h>; required for
28407         definition of S_IS* macros.
28408
28409 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28410
28411         Update maintainer documentation for 'relocatable-prog' module.
28412         * doc/relocatable-maint.texi: Update.
28413         Comments by Bruno Haible.
28414
28415 2010-05-23  Bruno Haible  <bruno@clisp.org>
28416
28417         git-merge-changelog: Enable --split-merged-entry by default.
28418         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28419         (usage): Don't mention this option any more.
28420         Reported by Ralf Wildenhues.
28421
28422 2010-05-23  Jim Meyering  <meyering@redhat.com>
28423
28424         test-pwrite: do not leave behind a test file named "out"
28425         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28426         The trivial-looking use of init.sh is really necessary.
28427         It ensures that the temporary file, "out", is created in
28428         a temporary directory, and removed upon termination.
28429         * tests/test-pwrite.sh: Re-add file.
28430         * modules/pwrite-tests: Reference it.
28431
28432 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28433
28434         Fix output redirection buglet in init.sh.
28435         * tests/init.sh: Fix redirection of stderr.
28436
28437 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28438
28439         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28440
28441 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28442
28443         * modules/valgrind-tests: New file.
28444         * m4/valgrind-tests.m4: New file.
28445         * doc/valgrind-tests.texi: New file.
28446         * doc/gnulib.texi (Running self-tests under valgrind): New
28447         section.
28448
28449 2010-05-19  Bruno Haible  <bruno@clisp.org>
28450
28451         Clean up dead code in recent commit.
28452         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28453         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28454         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28455         Suggested by Paolo Bonzini.
28456
28457 2010-05-19  Bruno Haible  <bruno@clisp.org>
28458
28459         Avoid valgrind error reports from libunistring.
28460         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28461         * modules/libunistring (Files): Add it.
28462         * modules/libunistring-optional (Files): Likewise.
28463
28464 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28465             Bruno Haible  <bruno@clisp.org>
28466
28467         New module 'libunistring-optional'.
28468         * modules/libunistring-optional: New file.
28469         * m4/libunistring-base.m4: New file.
28470         * m4/libunistring-optional.m4: New file.
28471         * lib/unicase.in.h: Renamed from lib/unicase.h.
28472         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28473         * lib/unictype.in.h: Renamed from lib/unictype.h.
28474         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28475         * lib/uniname.in.h: Renamed from lib/uniname.h.
28476         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28477         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28478         * lib/unistr.in.h: Renamed from lib/unistr.h.
28479         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28480         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28481         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28482         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28483         gl_LIBUNISTRING. If the library was found, determine the installed
28484         version and set LIBUNISTRING_VERSION.
28485         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28486         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28487         handle a configuration option --with-included-libunistring.
28488         * modules/libunistring (Files): Add m4/absolute-header.m4.
28489         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28490         Add m4/libunistring-base.m4.
28491         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28492         (Makefile.am): Build unicase.h from unicase.in.h.
28493         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28494         Add m4/libunistring-base.m4.
28495         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28496         (Makefile.am): Build uniconv.h from uniconv.in.h.
28497         * modules/unictype/base (Files): Use unictype.in.h instead of
28498         unictype.h. Add m4/libunistring-base.m4.
28499         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28500         (Makefile.am): Build unictype.h from unictype.in.h.
28501         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28502         Add m4/libunistring-base.m4.
28503         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28504         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28505         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28506         Add m4/libunistring-base.m4.
28507         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28508         (Makefile.am): Build uniname.h from uniname.in.h.
28509         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28510         Add m4/libunistring-base.m4.
28511         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28512         (Makefile.am): Build uninorm.h from uninorm.in.h.
28513         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28514         unistdio.h. Add m4/libunistring-base.m4.
28515         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28516         (Makefile.am): Build unistdio.h from unistdio.in.h.
28517         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28518         Add m4/libunistring-base.m4.
28519         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28520         (Makefile.am): Build unistr.h from unistr.in.h.
28521         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28522         Add m4/libunistring-base.m4.
28523         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28524         (Makefile.am): Build unitypes.h from unitypes.in.h.
28525         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28526         Add m4/libunistring-base.m4.
28527         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28528         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28529         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28530         uniwidth.h. Add m4/libunistring-base.m4.
28531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28532         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28533         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28534         instead of augmenting lib_SOURCES.
28535         * modules/unicase/empty-suffix-context: Likewise.
28536         * modules/unicase/locale-language: Likewise.
28537         * modules/unicase/tolower: Likewise.
28538         * modules/unicase/totitle: Likewise.
28539         * modules/unicase/toupper: Likewise.
28540         * modules/unicase/u8-casecmp: Likewise.
28541         * modules/unicase/u8-casecoll: Likewise.
28542         * modules/unicase/u8-casefold: Likewise.
28543         * modules/unicase/u8-casexfrm: Likewise.
28544         * modules/unicase/u8-ct-casefold: Likewise.
28545         * modules/unicase/u8-ct-tolower: Likewise.
28546         * modules/unicase/u8-ct-totitle: Likewise.
28547         * modules/unicase/u8-ct-toupper: Likewise.
28548         * modules/unicase/u8-is-cased: Likewise.
28549         * modules/unicase/u8-is-casefolded: Likewise.
28550         * modules/unicase/u8-is-lowercase: Likewise.
28551         * modules/unicase/u8-is-titlecase: Likewise.
28552         * modules/unicase/u8-is-uppercase: Likewise.
28553         * modules/unicase/u8-prefix-context: Likewise.
28554         * modules/unicase/u8-suffix-context: Likewise.
28555         * modules/unicase/u8-tolower: Likewise.
28556         * modules/unicase/u8-totitle: Likewise.
28557         * modules/unicase/u8-toupper: Likewise.
28558         * modules/unicase/u16-casecmp: Likewise.
28559         * modules/unicase/u16-casecoll: Likewise.
28560         * modules/unicase/u16-casefold: Likewise.
28561         * modules/unicase/u16-casexfrm: Likewise.
28562         * modules/unicase/u16-ct-casefold: Likewise.
28563         * modules/unicase/u16-ct-tolower: Likewise.
28564         * modules/unicase/u16-ct-totitle: Likewise.
28565         * modules/unicase/u16-ct-toupper: Likewise.
28566         * modules/unicase/u16-is-cased: Likewise.
28567         * modules/unicase/u16-is-casefolded: Likewise.
28568         * modules/unicase/u16-is-lowercase: Likewise.
28569         * modules/unicase/u16-is-titlecase: Likewise.
28570         * modules/unicase/u16-is-uppercase: Likewise.
28571         * modules/unicase/u16-prefix-context: Likewise.
28572         * modules/unicase/u16-suffix-context: Likewise.
28573         * modules/unicase/u16-tolower: Likewise.
28574         * modules/unicase/u16-totitle: Likewise.
28575         * modules/unicase/u16-toupper: Likewise.
28576         * modules/unicase/u32-casecmp: Likewise.
28577         * modules/unicase/u32-casecoll: Likewise.
28578         * modules/unicase/u32-casefold: Likewise.
28579         * modules/unicase/u32-casexfrm: Likewise.
28580         * modules/unicase/u32-ct-casefold: Likewise.
28581         * modules/unicase/u32-ct-tolower: Likewise.
28582         * modules/unicase/u32-ct-totitle: Likewise.
28583         * modules/unicase/u32-ct-toupper: Likewise.
28584         * modules/unicase/u32-is-cased: Likewise.
28585         * modules/unicase/u32-is-casefolded: Likewise.
28586         * modules/unicase/u32-is-lowercase: Likewise.
28587         * modules/unicase/u32-is-titlecase: Likewise.
28588         * modules/unicase/u32-is-uppercase: Likewise.
28589         * modules/unicase/u32-prefix-context: Likewise.
28590         * modules/unicase/u32-suffix-context: Likewise.
28591         * modules/unicase/u32-tolower: Likewise.
28592         * modules/unicase/u32-totitle: Likewise.
28593         * modules/unicase/u32-toupper: Likewise.
28594         * modules/unicase/ulc-casecmp: Likewise.
28595         * modules/unicase/ulc-casecoll: Likewise.
28596         * modules/unicase/ulc-casexfrm: Likewise.
28597         * modules/uniconv/u8-conv-from-enc: Likewise.
28598         * modules/uniconv/u8-conv-to-enc: Likewise.
28599         * modules/uniconv/u8-strconv-from-enc: Likewise.
28600         * modules/uniconv/u8-strconv-from-locale: Likewise.
28601         * modules/uniconv/u8-strconv-to-enc: Likewise.
28602         * modules/uniconv/u8-strconv-to-locale: Likewise.
28603         * modules/uniconv/u16-conv-from-enc: Likewise.
28604         * modules/uniconv/u16-conv-to-enc: Likewise.
28605         * modules/uniconv/u16-strconv-from-enc: Likewise.
28606         * modules/uniconv/u16-strconv-from-locale: Likewise.
28607         * modules/uniconv/u16-strconv-to-enc: Likewise.
28608         * modules/uniconv/u16-strconv-to-locale: Likewise.
28609         * modules/uniconv/u32-conv-from-enc: Likewise.
28610         * modules/uniconv/u32-conv-to-enc: Likewise.
28611         * modules/uniconv/u32-strconv-from-enc: Likewise.
28612         * modules/uniconv/u32-strconv-from-locale: Likewise.
28613         * modules/uniconv/u32-strconv-to-enc: Likewise.
28614         * modules/uniconv/u32-strconv-to-locale: Likewise.
28615         * modules/unictype/bidicategory-byname: Likewise.
28616         * modules/unictype/bidicategory-name: Likewise.
28617         * modules/unictype/bidicategory-of: Likewise.
28618         * modules/unictype/bidicategory-test: Likewise.
28619         * modules/unictype/block-list: Likewise.
28620         * modules/unictype/block-test: Likewise.
28621         * modules/unictype/category-C: Likewise.
28622         * modules/unictype/category-Cc: Likewise.
28623         * modules/unictype/category-Cf: Likewise.
28624         * modules/unictype/category-Cn: Likewise.
28625         * modules/unictype/category-Co: Likewise.
28626         * modules/unictype/category-Cs: Likewise.
28627         * modules/unictype/category-L: Likewise.
28628         * modules/unictype/category-Ll: Likewise.
28629         * modules/unictype/category-Lm: Likewise.
28630         * modules/unictype/category-Lo: Likewise.
28631         * modules/unictype/category-Lt: Likewise.
28632         * modules/unictype/category-Lu: Likewise.
28633         * modules/unictype/category-M: Likewise.
28634         * modules/unictype/category-Mc: Likewise.
28635         * modules/unictype/category-Me: Likewise.
28636         * modules/unictype/category-Mn: Likewise.
28637         * modules/unictype/category-N: Likewise.
28638         * modules/unictype/category-Nd: Likewise.
28639         * modules/unictype/category-Nl: Likewise.
28640         * modules/unictype/category-No: Likewise.
28641         * modules/unictype/category-P: Likewise.
28642         * modules/unictype/category-Pc: Likewise.
28643         * modules/unictype/category-Pd: Likewise.
28644         * modules/unictype/category-Pe: Likewise.
28645         * modules/unictype/category-Pf: Likewise.
28646         * modules/unictype/category-Pi: Likewise.
28647         * modules/unictype/category-Po: Likewise.
28648         * modules/unictype/category-Ps: Likewise.
28649         * modules/unictype/category-S: Likewise.
28650         * modules/unictype/category-Sc: Likewise.
28651         * modules/unictype/category-Sk: Likewise.
28652         * modules/unictype/category-Sm: Likewise.
28653         * modules/unictype/category-So: Likewise.
28654         * modules/unictype/category-Z: Likewise.
28655         * modules/unictype/category-Zl: Likewise.
28656         * modules/unictype/category-Zp: Likewise.
28657         * modules/unictype/category-Zs: Likewise.
28658         * modules/unictype/category-and: Likewise.
28659         * modules/unictype/category-and-not: Likewise.
28660         * modules/unictype/category-byname: Likewise.
28661         * modules/unictype/category-name: Likewise.
28662         * modules/unictype/category-none: Likewise.
28663         * modules/unictype/category-of: Likewise.
28664         * modules/unictype/category-or: Likewise.
28665         * modules/unictype/category-test: Likewise.
28666         * modules/unictype/combining-class: Likewise.
28667         * modules/unictype/ctype-alnum: Likewise.
28668         * modules/unictype/ctype-alpha: Likewise.
28669         * modules/unictype/ctype-blank: Likewise.
28670         * modules/unictype/ctype-cntrl: Likewise.
28671         * modules/unictype/ctype-digit: Likewise.
28672         * modules/unictype/ctype-graph: Likewise.
28673         * modules/unictype/ctype-lower: Likewise.
28674         * modules/unictype/ctype-print: Likewise.
28675         * modules/unictype/ctype-punct: Likewise.
28676         * modules/unictype/ctype-space: Likewise.
28677         * modules/unictype/ctype-upper: Likewise.
28678         * modules/unictype/ctype-xdigit: Likewise.
28679         * modules/unictype/decimal-digit: Likewise.
28680         * modules/unictype/digit: Likewise.
28681         * modules/unictype/mirror: Likewise.
28682         * modules/unictype/numeric: Likewise.
28683         * modules/unictype/property-alphabetic: Likewise.
28684         * modules/unictype/property-ascii-hex-digit: Likewise.
28685         * modules/unictype/property-bidi-arabic-digit: Likewise.
28686         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28687         * modules/unictype/property-bidi-block-separator: Likewise.
28688         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28689         * modules/unictype/property-bidi-common-separator: Likewise.
28690         * modules/unictype/property-bidi-control: Likewise.
28691         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28692         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28693         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28694         * modules/unictype/property-bidi-european-digit: Likewise.
28695         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28696         * modules/unictype/property-bidi-left-to-right: Likewise.
28697         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28698         * modules/unictype/property-bidi-other-neutral: Likewise.
28699         * modules/unictype/property-bidi-pdf: Likewise.
28700         * modules/unictype/property-bidi-segment-separator: Likewise.
28701         * modules/unictype/property-bidi-whitespace: Likewise.
28702         * modules/unictype/property-byname: Likewise.
28703         * modules/unictype/property-combining: Likewise.
28704         * modules/unictype/property-composite: Likewise.
28705         * modules/unictype/property-currency-symbol: Likewise.
28706         * modules/unictype/property-dash: Likewise.
28707         * modules/unictype/property-decimal-digit: Likewise.
28708         * modules/unictype/property-default-ignorable-code-point: Likewise.
28709         * modules/unictype/property-deprecated: Likewise.
28710         * modules/unictype/property-diacritic: Likewise.
28711         * modules/unictype/property-extender: Likewise.
28712         * modules/unictype/property-format-control: Likewise.
28713         * modules/unictype/property-grapheme-base: Likewise.
28714         * modules/unictype/property-grapheme-extend: Likewise.
28715         * modules/unictype/property-grapheme-link: Likewise.
28716         * modules/unictype/property-hex-digit: Likewise.
28717         * modules/unictype/property-hyphen: Likewise.
28718         * modules/unictype/property-id-continue: Likewise.
28719         * modules/unictype/property-id-start: Likewise.
28720         * modules/unictype/property-ideographic: Likewise.
28721         * modules/unictype/property-ids-binary-operator: Likewise.
28722         * modules/unictype/property-ids-trinary-operator: Likewise.
28723         * modules/unictype/property-ignorable-control: Likewise.
28724         * modules/unictype/property-iso-control: Likewise.
28725         * modules/unictype/property-join-control: Likewise.
28726         * modules/unictype/property-left-of-pair: Likewise.
28727         * modules/unictype/property-line-separator: Likewise.
28728         * modules/unictype/property-logical-order-exception: Likewise.
28729         * modules/unictype/property-lowercase: Likewise.
28730         * modules/unictype/property-math: Likewise.
28731         * modules/unictype/property-non-break: Likewise.
28732         * modules/unictype/property-not-a-character: Likewise.
28733         * modules/unictype/property-numeric: Likewise.
28734         * modules/unictype/property-other-alphabetic: Likewise.
28735         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28736         * modules/unictype/property-other-grapheme-extend: Likewise.
28737         * modules/unictype/property-other-id-continue: Likewise.
28738         * modules/unictype/property-other-id-start: Likewise.
28739         * modules/unictype/property-other-lowercase: Likewise.
28740         * modules/unictype/property-other-math: Likewise.
28741         * modules/unictype/property-other-uppercase: Likewise.
28742         * modules/unictype/property-paired-punctuation: Likewise.
28743         * modules/unictype/property-paragraph-separator: Likewise.
28744         * modules/unictype/property-pattern-syntax: Likewise.
28745         * modules/unictype/property-pattern-white-space: Likewise.
28746         * modules/unictype/property-private-use: Likewise.
28747         * modules/unictype/property-punctuation: Likewise.
28748         * modules/unictype/property-quotation-mark: Likewise.
28749         * modules/unictype/property-radical: Likewise.
28750         * modules/unictype/property-sentence-terminal: Likewise.
28751         * modules/unictype/property-soft-dotted: Likewise.
28752         * modules/unictype/property-space: Likewise.
28753         * modules/unictype/property-terminal-punctuation: Likewise.
28754         * modules/unictype/property-test: Likewise.
28755         * modules/unictype/property-titlecase: Likewise.
28756         * modules/unictype/property-unassigned-code-value: Likewise.
28757         * modules/unictype/property-unified-ideograph: Likewise.
28758         * modules/unictype/property-uppercase: Likewise.
28759         * modules/unictype/property-variation-selector: Likewise.
28760         * modules/unictype/property-white-space: Likewise.
28761         * modules/unictype/property-xid-continue: Likewise.
28762         * modules/unictype/property-xid-start: Likewise.
28763         * modules/unictype/property-zero-width: Likewise.
28764         * modules/unictype/scripts: Likewise.
28765         * modules/unictype/syntax-c-ident: Likewise.
28766         * modules/unictype/syntax-c-whitespace: Likewise.
28767         * modules/unictype/syntax-java-ident: Likewise.
28768         * modules/unictype/syntax-java-whitespace: Likewise.
28769         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28770         * modules/unilbrk/u8-width-linebreaks: Likewise.
28771         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28772         * modules/unilbrk/u16-width-linebreaks: Likewise.
28773         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28774         * modules/unilbrk/u32-width-linebreaks: Likewise.
28775         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28776         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28777         * modules/uniname/uniname: Likewise.
28778         * modules/uninorm/canonical-decomposition: Likewise.
28779         * modules/uninorm/composition: Likewise.
28780         * modules/uninorm/decomposing-form: Likewise.
28781         * modules/uninorm/decomposition: Likewise.
28782         * modules/uninorm/filter: Likewise.
28783         * modules/uninorm/nfc: Likewise.
28784         * modules/uninorm/nfd: Likewise.
28785         * modules/uninorm/nfkc: Likewise.
28786         * modules/uninorm/nfkd: Likewise.
28787         * modules/uninorm/u8-normalize: Likewise.
28788         * modules/uninorm/u8-normcmp: Likewise.
28789         * modules/uninorm/u8-normcoll: Likewise.
28790         * modules/uninorm/u8-normxfrm: Likewise.
28791         * modules/uninorm/u16-normalize: Likewise.
28792         * modules/uninorm/u16-normcmp: Likewise.
28793         * modules/uninorm/u16-normcoll: Likewise.
28794         * modules/uninorm/u16-normxfrm: Likewise.
28795         * modules/uninorm/u32-normalize: Likewise.
28796         * modules/uninorm/u32-normcmp: Likewise.
28797         * modules/uninorm/u32-normcoll: Likewise.
28798         * modules/uninorm/u32-normxfrm: Likewise.
28799         * modules/unistdio/u8-asnprintf: Likewise.
28800         * modules/unistdio/u8-asprintf: Likewise.
28801         * modules/unistdio/u8-snprintf: Likewise.
28802         * modules/unistdio/u8-sprintf: Likewise.
28803         * modules/unistdio/u8-u8-asnprintf: Likewise.
28804         * modules/unistdio/u8-u8-asprintf: Likewise.
28805         * modules/unistdio/u8-u8-snprintf: Likewise.
28806         * modules/unistdio/u8-u8-sprintf: Likewise.
28807         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28808         * modules/unistdio/u8-u8-vasprintf: Likewise.
28809         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28810         * modules/unistdio/u8-u8-vsprintf: Likewise.
28811         * modules/unistdio/u8-vasnprintf: Likewise.
28812         * modules/unistdio/u8-vasprintf: Likewise.
28813         * modules/unistdio/u8-vsnprintf: Likewise.
28814         * modules/unistdio/u8-vsprintf: Likewise.
28815         * modules/unistdio/u16-asnprintf: Likewise.
28816         * modules/unistdio/u16-asprintf: Likewise.
28817         * modules/unistdio/u16-snprintf: Likewise.
28818         * modules/unistdio/u16-sprintf: Likewise.
28819         * modules/unistdio/u16-u16-asnprintf: Likewise.
28820         * modules/unistdio/u16-u16-asprintf: Likewise.
28821         * modules/unistdio/u16-u16-snprintf: Likewise.
28822         * modules/unistdio/u16-u16-sprintf: Likewise.
28823         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28824         * modules/unistdio/u16-u16-vasprintf: Likewise.
28825         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28826         * modules/unistdio/u16-u16-vsprintf: Likewise.
28827         * modules/unistdio/u16-vasnprintf: Likewise.
28828         * modules/unistdio/u16-vasprintf: Likewise.
28829         * modules/unistdio/u16-vsnprintf: Likewise.
28830         * modules/unistdio/u16-vsprintf: Likewise.
28831         * modules/unistdio/u32-asnprintf: Likewise.
28832         * modules/unistdio/u32-asprintf: Likewise.
28833         * modules/unistdio/u32-snprintf: Likewise.
28834         * modules/unistdio/u32-sprintf: Likewise.
28835         * modules/unistdio/u32-u32-asnprintf: Likewise.
28836         * modules/unistdio/u32-u32-asprintf: Likewise.
28837         * modules/unistdio/u32-u32-snprintf: Likewise.
28838         * modules/unistdio/u32-u32-sprintf: Likewise.
28839         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28840         * modules/unistdio/u32-u32-vasprintf: Likewise.
28841         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28842         * modules/unistdio/u32-u32-vsprintf: Likewise.
28843         * modules/unistdio/u32-vasnprintf: Likewise.
28844         * modules/unistdio/u32-vasprintf: Likewise.
28845         * modules/unistdio/u32-vsnprintf: Likewise.
28846         * modules/unistdio/u32-vsprintf: Likewise.
28847         * modules/unistdio/ulc-asnprintf: Likewise.
28848         * modules/unistdio/ulc-asprintf: Likewise.
28849         * modules/unistdio/ulc-fprintf: Likewise.
28850         * modules/unistdio/ulc-snprintf: Likewise.
28851         * modules/unistdio/ulc-sprintf: Likewise.
28852         * modules/unistdio/ulc-vasnprintf: Likewise.
28853         * modules/unistdio/ulc-vasprintf: Likewise.
28854         * modules/unistdio/ulc-vfprintf: Likewise.
28855         * modules/unistdio/ulc-vsnprintf: Likewise.
28856         * modules/unistdio/ulc-vsprintf: Likewise.
28857         * modules/unistr/u8-check: Likewise.
28858         * modules/unistr/u8-chr: Likewise.
28859         * modules/unistr/u8-cmp: Likewise.
28860         * modules/unistr/u8-cmp2: Likewise.
28861         * modules/unistr/u8-cpy: Likewise.
28862         * modules/unistr/u8-cpy-alloc: Likewise.
28863         * modules/unistr/u8-endswith: Likewise.
28864         * modules/unistr/u8-mblen: Likewise.
28865         * modules/unistr/u8-mbsnlen: Likewise.
28866         * modules/unistr/u8-mbtouc: Likewise.
28867         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28868         * modules/unistr/u8-mbtoucr: Likewise.
28869         * modules/unistr/u8-move: Likewise.
28870         * modules/unistr/u8-next: Likewise.
28871         * modules/unistr/u8-prev: Likewise.
28872         * modules/unistr/u8-set: Likewise.
28873         * modules/unistr/u8-startswith: Likewise.
28874         * modules/unistr/u8-stpcpy: Likewise.
28875         * modules/unistr/u8-stpncpy: Likewise.
28876         * modules/unistr/u8-strcat: Likewise.
28877         * modules/unistr/u8-strchr: Likewise.
28878         * modules/unistr/u8-strcmp: Likewise.
28879         * modules/unistr/u8-strcoll: Likewise.
28880         * modules/unistr/u8-strcpy: Likewise.
28881         * modules/unistr/u8-strcspn: Likewise.
28882         * modules/unistr/u8-strdup: Likewise.
28883         * modules/unistr/u8-strlen: Likewise.
28884         * modules/unistr/u8-strmblen: Likewise.
28885         * modules/unistr/u8-strmbtouc: Likewise.
28886         * modules/unistr/u8-strncat: Likewise.
28887         * modules/unistr/u8-strncmp: Likewise.
28888         * modules/unistr/u8-strncpy: Likewise.
28889         * modules/unistr/u8-strnlen: Likewise.
28890         * modules/unistr/u8-strpbrk: Likewise.
28891         * modules/unistr/u8-strrchr: Likewise.
28892         * modules/unistr/u8-strspn: Likewise.
28893         * modules/unistr/u8-strstr: Likewise.
28894         * modules/unistr/u8-strtok: Likewise.
28895         * modules/unistr/u8-to-u16: Likewise.
28896         * modules/unistr/u8-to-u32: Likewise.
28897         * modules/unistr/u8-uctomb: Likewise.
28898         * modules/unistr/u16-check: Likewise.
28899         * modules/unistr/u16-chr: Likewise.
28900         * modules/unistr/u16-cmp: Likewise.
28901         * modules/unistr/u16-cmp2: Likewise.
28902         * modules/unistr/u16-cpy: Likewise.
28903         * modules/unistr/u16-cpy-alloc: Likewise.
28904         * modules/unistr/u16-endswith: Likewise.
28905         * modules/unistr/u16-mblen: Likewise.
28906         * modules/unistr/u16-mbsnlen: Likewise.
28907         * modules/unistr/u16-mbtouc: Likewise.
28908         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28909         * modules/unistr/u16-mbtoucr: Likewise.
28910         * modules/unistr/u16-move: Likewise.
28911         * modules/unistr/u16-next: Likewise.
28912         * modules/unistr/u16-prev: Likewise.
28913         * modules/unistr/u16-set: Likewise.
28914         * modules/unistr/u16-startswith: Likewise.
28915         * modules/unistr/u16-stpcpy: Likewise.
28916         * modules/unistr/u16-stpncpy: Likewise.
28917         * modules/unistr/u16-strcat: Likewise.
28918         * modules/unistr/u16-strchr: Likewise.
28919         * modules/unistr/u16-strcmp: Likewise.
28920         * modules/unistr/u16-strcoll: Likewise.
28921         * modules/unistr/u16-strcpy: Likewise.
28922         * modules/unistr/u16-strcspn: Likewise.
28923         * modules/unistr/u16-strdup: Likewise.
28924         * modules/unistr/u16-strlen: Likewise.
28925         * modules/unistr/u16-strmblen: Likewise.
28926         * modules/unistr/u16-strmbtouc: Likewise.
28927         * modules/unistr/u16-strncat: Likewise.
28928         * modules/unistr/u16-strncmp: Likewise.
28929         * modules/unistr/u16-strncpy: Likewise.
28930         * modules/unistr/u16-strnlen: Likewise.
28931         * modules/unistr/u16-strpbrk: Likewise.
28932         * modules/unistr/u16-strrchr: Likewise.
28933         * modules/unistr/u16-strspn: Likewise.
28934         * modules/unistr/u16-strstr: Likewise.
28935         * modules/unistr/u16-strtok: Likewise.
28936         * modules/unistr/u16-to-u32: Likewise.
28937         * modules/unistr/u16-to-u8: Likewise.
28938         * modules/unistr/u16-uctomb: Likewise.
28939         * modules/unistr/u32-check: Likewise.
28940         * modules/unistr/u32-chr: Likewise.
28941         * modules/unistr/u32-cmp: Likewise.
28942         * modules/unistr/u32-cmp2: Likewise.
28943         * modules/unistr/u32-cpy: Likewise.
28944         * modules/unistr/u32-cpy-alloc: Likewise.
28945         * modules/unistr/u32-endswith: Likewise.
28946         * modules/unistr/u32-mblen: Likewise.
28947         * modules/unistr/u32-mbsnlen: Likewise.
28948         * modules/unistr/u32-mbtouc: Likewise.
28949         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28950         * modules/unistr/u32-mbtoucr: Likewise.
28951         * modules/unistr/u32-move: Likewise.
28952         * modules/unistr/u32-next: Likewise.
28953         * modules/unistr/u32-prev: Likewise.
28954         * modules/unistr/u32-set: Likewise.
28955         * modules/unistr/u32-startswith: Likewise.
28956         * modules/unistr/u32-stpcpy: Likewise.
28957         * modules/unistr/u32-stpncpy: Likewise.
28958         * modules/unistr/u32-strcat: Likewise.
28959         * modules/unistr/u32-strchr: Likewise.
28960         * modules/unistr/u32-strcmp: Likewise.
28961         * modules/unistr/u32-strcoll: Likewise.
28962         * modules/unistr/u32-strcpy: Likewise.
28963         * modules/unistr/u32-strcspn: Likewise.
28964         * modules/unistr/u32-strdup: Likewise.
28965         * modules/unistr/u32-strlen: Likewise.
28966         * modules/unistr/u32-strmblen: Likewise.
28967         * modules/unistr/u32-strmbtouc: Likewise.
28968         * modules/unistr/u32-strncat: Likewise.
28969         * modules/unistr/u32-strncmp: Likewise.
28970         * modules/unistr/u32-strncpy: Likewise.
28971         * modules/unistr/u32-strnlen: Likewise.
28972         * modules/unistr/u32-strpbrk: Likewise.
28973         * modules/unistr/u32-strrchr: Likewise.
28974         * modules/unistr/u32-strspn: Likewise.
28975         * modules/unistr/u32-strstr: Likewise.
28976         * modules/unistr/u32-strtok: Likewise.
28977         * modules/unistr/u32-to-u16: Likewise.
28978         * modules/unistr/u32-to-u8: Likewise.
28979         * modules/unistr/u32-uctomb: Likewise.
28980         * modules/uniwbrk/u8-wordbreaks: Likewise.
28981         * modules/uniwbrk/u16-wordbreaks: Likewise.
28982         * modules/uniwbrk/u32-wordbreaks: Likewise.
28983         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28984         * modules/uniwbrk/wordbreak-property: Likewise.
28985         * modules/uniwidth/u8-strwidth: Likewise.
28986         * modules/uniwidth/u8-width: Likewise.
28987         * modules/uniwidth/u16-strwidth: Likewise.
28988         * modules/uniwidth/u16-width: Likewise.
28989         * modules/uniwidth/u32-strwidth: Likewise.
28990         * modules/uniwidth/u32-width: Likewise.
28991         * modules/uniwidth/width: Likewise.
28992         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28993         with $(LIBUNISTRING).
28994         * modules/unicase/ignorable-tests: Likewise.
28995         * modules/unicase/locale-language-tests: Likewise.
28996         * modules/unicase/tolower-tests: Likewise.
28997         * modules/unicase/totitle-tests: Likewise.
28998         * modules/unicase/toupper-tests: Likewise.
28999         * modules/unicase/u8-casecmp-tests: Likewise.
29000         * modules/unicase/u8-casecoll-tests: Likewise.
29001         * modules/unicase/u8-casefold-tests: Likewise.
29002         * modules/unicase/u8-is-cased-tests: Likewise.
29003         * modules/unicase/u8-is-casefolded-tests: Likewise.
29004         * modules/unicase/u8-is-lowercase-tests: Likewise.
29005         * modules/unicase/u8-is-titlecase-tests: Likewise.
29006         * modules/unicase/u8-is-uppercase-tests: Likewise.
29007         * modules/unicase/u8-tolower-tests: Likewise.
29008         * modules/unicase/u8-totitle-tests: Likewise.
29009         * modules/unicase/u8-toupper-tests: Likewise.
29010         * modules/unicase/u16-casecmp-tests: Likewise.
29011         * modules/unicase/u16-casecoll-tests: Likewise.
29012         * modules/unicase/u16-casefold-tests: Likewise.
29013         * modules/unicase/u16-is-cased-tests: Likewise.
29014         * modules/unicase/u16-is-casefolded-tests: Likewise.
29015         * modules/unicase/u16-is-lowercase-tests: Likewise.
29016         * modules/unicase/u16-is-titlecase-tests: Likewise.
29017         * modules/unicase/u16-is-uppercase-tests: Likewise.
29018         * modules/unicase/u16-tolower-tests: Likewise.
29019         * modules/unicase/u16-totitle-tests: Likewise.
29020         * modules/unicase/u16-toupper-tests: Likewise.
29021         * modules/unicase/u32-casecmp-tests: Likewise.
29022         * modules/unicase/u32-casecoll-tests: Likewise.
29023         * modules/unicase/u32-casefold-tests: Likewise.
29024         * modules/unicase/u32-is-cased-tests: Likewise.
29025         * modules/unicase/u32-is-casefolded-tests: Likewise.
29026         * modules/unicase/u32-is-lowercase-tests: Likewise.
29027         * modules/unicase/u32-is-titlecase-tests: Likewise.
29028         * modules/unicase/u32-is-uppercase-tests: Likewise.
29029         * modules/unicase/u32-tolower-tests: Likewise.
29030         * modules/unicase/u32-totitle-tests: Likewise.
29031         * modules/unicase/u32-toupper-tests: Likewise.
29032         * modules/unicase/ulc-casecmp-tests: Likewise.
29033         * modules/unicase/ulc-casecoll-tests: Likewise.
29034         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29035         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29036         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29037         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29038         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29039         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29040         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29041         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29042         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29043         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29044         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29045         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29046         * modules/unictype/bidicategory-byname-tests: Likewise.
29047         * modules/unictype/bidicategory-name-tests: Likewise.
29048         * modules/unictype/bidicategory-of-tests: Likewise.
29049         * modules/unictype/bidicategory-test-tests: Likewise.
29050         * modules/unictype/block-list-tests: Likewise.
29051         * modules/unictype/block-of-tests: Likewise.
29052         * modules/unictype/block-test-tests: Likewise.
29053         * modules/unictype/category-C-tests: Likewise.
29054         * modules/unictype/category-Cc-tests: Likewise.
29055         * modules/unictype/category-Cf-tests: Likewise.
29056         * modules/unictype/category-Cn-tests: Likewise.
29057         * modules/unictype/category-Co-tests: Likewise.
29058         * modules/unictype/category-Cs-tests: Likewise.
29059         * modules/unictype/category-L-tests: Likewise.
29060         * modules/unictype/category-Ll-tests: Likewise.
29061         * modules/unictype/category-Lm-tests: Likewise.
29062         * modules/unictype/category-Lo-tests: Likewise.
29063         * modules/unictype/category-Lt-tests: Likewise.
29064         * modules/unictype/category-Lu-tests: Likewise.
29065         * modules/unictype/category-M-tests: Likewise.
29066         * modules/unictype/category-Mc-tests: Likewise.
29067         * modules/unictype/category-Me-tests: Likewise.
29068         * modules/unictype/category-Mn-tests: Likewise.
29069         * modules/unictype/category-N-tests: Likewise.
29070         * modules/unictype/category-Nd-tests: Likewise.
29071         * modules/unictype/category-Nl-tests: Likewise.
29072         * modules/unictype/category-No-tests: Likewise.
29073         * modules/unictype/category-P-tests: Likewise.
29074         * modules/unictype/category-Pc-tests: Likewise.
29075         * modules/unictype/category-Pd-tests: Likewise.
29076         * modules/unictype/category-Pe-tests: Likewise.
29077         * modules/unictype/category-Pf-tests: Likewise.
29078         * modules/unictype/category-Pi-tests: Likewise.
29079         * modules/unictype/category-Po-tests: Likewise.
29080         * modules/unictype/category-Ps-tests: Likewise.
29081         * modules/unictype/category-S-tests: Likewise.
29082         * modules/unictype/category-Sc-tests: Likewise.
29083         * modules/unictype/category-Sk-tests: Likewise.
29084         * modules/unictype/category-Sm-tests: Likewise.
29085         * modules/unictype/category-So-tests: Likewise.
29086         * modules/unictype/category-Z-tests: Likewise.
29087         * modules/unictype/category-Zl-tests: Likewise.
29088         * modules/unictype/category-Zp-tests: Likewise.
29089         * modules/unictype/category-Zs-tests: Likewise.
29090         * modules/unictype/category-and-not-tests: Likewise.
29091         * modules/unictype/category-and-tests: Likewise.
29092         * modules/unictype/category-byname-tests: Likewise.
29093         * modules/unictype/category-name-tests: Likewise.
29094         * modules/unictype/category-none-tests: Likewise.
29095         * modules/unictype/category-of-tests: Likewise.
29096         * modules/unictype/category-or-tests: Likewise.
29097         * modules/unictype/category-test-withtable-tests: Likewise.
29098         * modules/unictype/combining-class-tests: Likewise.
29099         * modules/unictype/ctype-alnum-tests: Likewise.
29100         * modules/unictype/ctype-alpha-tests: Likewise.
29101         * modules/unictype/ctype-blank-tests: Likewise.
29102         * modules/unictype/ctype-cntrl-tests: Likewise.
29103         * modules/unictype/ctype-digit-tests: Likewise.
29104         * modules/unictype/ctype-graph-tests: Likewise.
29105         * modules/unictype/ctype-lower-tests: Likewise.
29106         * modules/unictype/ctype-print-tests: Likewise.
29107         * modules/unictype/ctype-punct-tests: Likewise.
29108         * modules/unictype/ctype-space-tests: Likewise.
29109         * modules/unictype/ctype-upper-tests: Likewise.
29110         * modules/unictype/ctype-xdigit-tests: Likewise.
29111         * modules/unictype/decimal-digit-tests: Likewise.
29112         * modules/unictype/digit-tests: Likewise.
29113         * modules/unictype/mirror-tests: Likewise.
29114         * modules/unictype/numeric-tests: Likewise.
29115         * modules/unictype/property-alphabetic-tests: Likewise.
29116         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29117         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29118         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29119         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29120         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29121         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29122         * modules/unictype/property-bidi-control-tests: Likewise.
29123         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29124         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29125         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29126         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29127         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29128         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29129         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29130         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29131         * modules/unictype/property-bidi-pdf-tests: Likewise.
29132         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29133         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29134         * modules/unictype/property-byname-tests: Likewise.
29135         * modules/unictype/property-combining-tests: Likewise.
29136         * modules/unictype/property-composite-tests: Likewise.
29137         * modules/unictype/property-currency-symbol-tests: Likewise.
29138         * modules/unictype/property-dash-tests: Likewise.
29139         * modules/unictype/property-decimal-digit-tests: Likewise.
29140         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29141         * modules/unictype/property-deprecated-tests: Likewise.
29142         * modules/unictype/property-diacritic-tests: Likewise.
29143         * modules/unictype/property-extender-tests: Likewise.
29144         * modules/unictype/property-format-control-tests: Likewise.
29145         * modules/unictype/property-grapheme-base-tests: Likewise.
29146         * modules/unictype/property-grapheme-extend-tests: Likewise.
29147         * modules/unictype/property-grapheme-link-tests: Likewise.
29148         * modules/unictype/property-hex-digit-tests: Likewise.
29149         * modules/unictype/property-hyphen-tests: Likewise.
29150         * modules/unictype/property-id-continue-tests: Likewise.
29151         * modules/unictype/property-id-start-tests: Likewise.
29152         * modules/unictype/property-ideographic-tests: Likewise.
29153         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29154         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29155         * modules/unictype/property-ignorable-control-tests: Likewise.
29156         * modules/unictype/property-iso-control-tests: Likewise.
29157         * modules/unictype/property-join-control-tests: Likewise.
29158         * modules/unictype/property-left-of-pair-tests: Likewise.
29159         * modules/unictype/property-line-separator-tests: Likewise.
29160         * modules/unictype/property-logical-order-exception-tests: Likewise.
29161         * modules/unictype/property-lowercase-tests: Likewise.
29162         * modules/unictype/property-math-tests: Likewise.
29163         * modules/unictype/property-non-break-tests: Likewise.
29164         * modules/unictype/property-not-a-character-tests: Likewise.
29165         * modules/unictype/property-numeric-tests: Likewise.
29166         * modules/unictype/property-other-alphabetic-tests: Likewise.
29167         * modules/unictype/property-other-default-ignorable-code-point-tests:
29168         Likewise.
29169         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29170         * modules/unictype/property-other-id-continue-tests: Likewise.
29171         * modules/unictype/property-other-id-start-tests: Likewise.
29172         * modules/unictype/property-other-lowercase-tests: Likewise.
29173         * modules/unictype/property-other-math-tests: Likewise.
29174         * modules/unictype/property-other-uppercase-tests: Likewise.
29175         * modules/unictype/property-paired-punctuation-tests: Likewise.
29176         * modules/unictype/property-paragraph-separator-tests: Likewise.
29177         * modules/unictype/property-pattern-syntax-tests: Likewise.
29178         * modules/unictype/property-pattern-white-space-tests: Likewise.
29179         * modules/unictype/property-private-use-tests: Likewise.
29180         * modules/unictype/property-punctuation-tests: Likewise.
29181         * modules/unictype/property-quotation-mark-tests: Likewise.
29182         * modules/unictype/property-radical-tests: Likewise.
29183         * modules/unictype/property-sentence-terminal-tests: Likewise.
29184         * modules/unictype/property-soft-dotted-tests: Likewise.
29185         * modules/unictype/property-space-tests: Likewise.
29186         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29187         * modules/unictype/property-test-tests: Likewise.
29188         * modules/unictype/property-titlecase-tests: Likewise.
29189         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29190         * modules/unictype/property-unified-ideograph-tests: Likewise.
29191         * modules/unictype/property-uppercase-tests: Likewise.
29192         * modules/unictype/property-variation-selector-tests: Likewise.
29193         * modules/unictype/property-white-space-tests: Likewise.
29194         * modules/unictype/property-xid-continue-tests: Likewise.
29195         * modules/unictype/property-xid-start-tests: Likewise.
29196         * modules/unictype/property-zero-width-tests: Likewise.
29197         * modules/unictype/scripts-tests: Likewise.
29198         * modules/unictype/syntax-c-ident-tests: Likewise.
29199         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29200         * modules/unictype/syntax-java-ident-tests: Likewise.
29201         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29202         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29203         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29204         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29205         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29206         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29207         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29208         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29209         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29210         * modules/uniname/uniname-tests: Likewise.
29211         * modules/uninorm/canonical-decomposition-tests: Likewise.
29212         * modules/uninorm/compat-decomposition-tests: Likewise.
29213         * modules/uninorm/composition-tests: Likewise.
29214         * modules/uninorm/decomposing-form-tests: Likewise.
29215         * modules/uninorm/decomposition-tests: Likewise.
29216         * modules/uninorm/filter-tests: Likewise.
29217         * modules/uninorm/nfc-tests: Likewise.
29218         * modules/uninorm/nfd-tests: Likewise.
29219         * modules/uninorm/nfkc-tests: Likewise.
29220         * modules/uninorm/nfkd-tests: Likewise.
29221         * modules/uninorm/u8-normcmp-tests: Likewise.
29222         * modules/uninorm/u8-normcoll-tests: Likewise.
29223         * modules/uninorm/u16-normcmp-tests: Likewise.
29224         * modules/uninorm/u16-normcoll-tests: Likewise.
29225         * modules/uninorm/u32-normcmp-tests: Likewise.
29226         * modules/uninorm/u32-normcoll-tests: Likewise.
29227         * modules/unistdio/u8-asnprintf-tests: Likewise.
29228         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29229         * modules/unistdio/u8-vasprintf-tests: Likewise.
29230         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29231         * modules/unistdio/u8-vsprintf-tests: Likewise.
29232         * modules/unistdio/u16-asnprintf-tests: Likewise.
29233         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29234         * modules/unistdio/u16-vasprintf-tests: Likewise.
29235         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29236         * modules/unistdio/u16-vsprintf-tests: Likewise.
29237         * modules/unistdio/u32-asnprintf-tests: Likewise.
29238         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29239         * modules/unistdio/u32-vasprintf-tests: Likewise.
29240         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29241         * modules/unistdio/u32-vsprintf-tests: Likewise.
29242         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29243         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29244         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29245         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29246         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29247         * modules/unistr/u8-check-tests: Likewise.
29248         * modules/unistr/u8-chr-tests: Likewise.
29249         * modules/unistr/u8-cmp-tests: Likewise.
29250         * modules/unistr/u8-cmp2-tests: Likewise.
29251         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29252         * modules/unistr/u8-cpy-tests: Likewise.
29253         * modules/unistr/u8-mblen-tests: Likewise.
29254         * modules/unistr/u8-mbsnlen-tests: Likewise.
29255         * modules/unistr/u8-mbtouc-tests: Likewise.
29256         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29257         * modules/unistr/u8-mbtoucr-tests: Likewise.
29258         * modules/unistr/u8-move-tests: Likewise.
29259         * modules/unistr/u8-next-tests: Likewise.
29260         * modules/unistr/u8-prev-tests: Likewise.
29261         * modules/unistr/u8-set-tests: Likewise.
29262         * modules/unistr/u8-stpcpy-tests: Likewise.
29263         * modules/unistr/u8-stpncpy-tests: Likewise.
29264         * modules/unistr/u8-strcat-tests: Likewise.
29265         * modules/unistr/u8-strcmp-tests: Likewise.
29266         * modules/unistr/u8-strcoll-tests: Likewise.
29267         * modules/unistr/u8-strcpy-tests: Likewise.
29268         * modules/unistr/u8-strdup-tests: Likewise.
29269         * modules/unistr/u8-strlen-tests: Likewise.
29270         * modules/unistr/u8-strmblen-tests: Likewise.
29271         * modules/unistr/u8-strmbtouc-tests: Likewise.
29272         * modules/unistr/u8-strncat-tests: Likewise.
29273         * modules/unistr/u8-strncmp-tests: Likewise.
29274         * modules/unistr/u8-strncpy-tests: Likewise.
29275         * modules/unistr/u8-strnlen-tests: Likewise.
29276         * modules/unistr/u8-to-u16-tests: Likewise.
29277         * modules/unistr/u8-to-u32-tests: Likewise.
29278         * modules/unistr/u8-uctomb-tests: Likewise.
29279         * modules/unistr/u16-check-tests: Likewise.
29280         * modules/unistr/u16-chr-tests: Likewise.
29281         * modules/unistr/u16-cmp-tests: Likewise.
29282         * modules/unistr/u16-cmp2-tests: Likewise.
29283         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29284         * modules/unistr/u16-cpy-tests: Likewise.
29285         * modules/unistr/u16-mblen-tests: Likewise.
29286         * modules/unistr/u16-mbsnlen-tests: Likewise.
29287         * modules/unistr/u16-mbtouc-tests: Likewise.
29288         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29289         * modules/unistr/u16-mbtoucr-tests: Likewise.
29290         * modules/unistr/u16-move-tests: Likewise.
29291         * modules/unistr/u16-next-tests: Likewise.
29292         * modules/unistr/u16-prev-tests: Likewise.
29293         * modules/unistr/u16-set-tests: Likewise.
29294         * modules/unistr/u16-stpcpy-tests: Likewise.
29295         * modules/unistr/u16-stpncpy-tests: Likewise.
29296         * modules/unistr/u16-strcat-tests: Likewise.
29297         * modules/unistr/u16-strcmp-tests: Likewise.
29298         * modules/unistr/u16-strcoll-tests: Likewise.
29299         * modules/unistr/u16-strcpy-tests: Likewise.
29300         * modules/unistr/u16-strdup-tests: Likewise.
29301         * modules/unistr/u16-strlen-tests: Likewise.
29302         * modules/unistr/u16-strmblen-tests: Likewise.
29303         * modules/unistr/u16-strmbtouc-tests: Likewise.
29304         * modules/unistr/u16-strncat-tests: Likewise.
29305         * modules/unistr/u16-strncmp-tests: Likewise.
29306         * modules/unistr/u16-strncpy-tests: Likewise.
29307         * modules/unistr/u16-strnlen-tests: Likewise.
29308         * modules/unistr/u16-to-u32-tests: Likewise.
29309         * modules/unistr/u16-to-u8-tests: Likewise.
29310         * modules/unistr/u16-uctomb-tests: Likewise.
29311         * modules/unistr/u32-check-tests: Likewise.
29312         * modules/unistr/u32-chr-tests: Likewise.
29313         * modules/unistr/u32-cmp-tests: Likewise.
29314         * modules/unistr/u32-cmp2-tests: Likewise.
29315         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29316         * modules/unistr/u32-cpy-tests: Likewise.
29317         * modules/unistr/u32-mblen-tests: Likewise.
29318         * modules/unistr/u32-mbsnlen-tests: Likewise.
29319         * modules/unistr/u32-mbtouc-tests: Likewise.
29320         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29321         * modules/unistr/u32-mbtoucr-tests: Likewise.
29322         * modules/unistr/u32-move-tests: Likewise.
29323         * modules/unistr/u32-next-tests: Likewise.
29324         * modules/unistr/u32-prev-tests: Likewise.
29325         * modules/unistr/u32-set-tests: Likewise.
29326         * modules/unistr/u32-stpcpy-tests: Likewise.
29327         * modules/unistr/u32-stpncpy-tests: Likewise.
29328         * modules/unistr/u32-strcat-tests: Likewise.
29329         * modules/unistr/u32-strcmp-tests: Likewise.
29330         * modules/unistr/u32-strcoll-tests: Likewise.
29331         * modules/unistr/u32-strcpy-tests: Likewise.
29332         * modules/unistr/u32-strdup-tests: Likewise.
29333         * modules/unistr/u32-strlen-tests: Likewise.
29334         * modules/unistr/u32-strmblen-tests: Likewise.
29335         * modules/unistr/u32-strmbtouc-tests: Likewise.
29336         * modules/unistr/u32-strncat-tests: Likewise.
29337         * modules/unistr/u32-strncmp-tests: Likewise.
29338         * modules/unistr/u32-strncpy-tests: Likewise.
29339         * modules/unistr/u32-strnlen-tests: Likewise.
29340         * modules/unistr/u32-to-u16-tests: Likewise.
29341         * modules/unistr/u32-to-u8-tests: Likewise.
29342         * modules/unistr/u32-uctomb-tests: Likewise.
29343         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29344         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29345         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29346         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29347         * modules/uniwidth/u8-strwidth-tests: Likewise.
29348         * modules/uniwidth/u8-width-tests: Likewise.
29349         * modules/uniwidth/u16-strwidth-tests: Likewise.
29350         * modules/uniwidth/u16-width-tests: Likewise.
29351         * modules/uniwidth/u32-strwidth-tests: Likewise.
29352         * modules/uniwidth/u32-width-tests: Likewise.
29353         * modules/uniwidth/width-tests: Likewise.
29354
29355 2010-05-18  Richard Jones  <rjones@redhat.com>
29356
29357         doc: users.txt: list hivex
29358         * users.txt: Add hivex.
29359
29360 2010-05-18  Richard Jones  <rjones@redhat.com>
29361
29362         doc: users.txt: list febootstrap
29363         * users.txt: Add febootstrap.
29364
29365 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29366
29367         bootstrap: fix an error when gnulib is not used as a git submodule
29368         * build-aux/bootstrap (gnulib_path): If its length is zero then
29369         assign "gnulib" to it.
29370         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29371
29372 2010-05-16  Bruno Haible  <bruno@clisp.org>
29373
29374         Avoid autoconf warnings about AM_ICONV.
29375         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29376         2.64.
29377
29378 2010-05-16  Bruno Haible  <bruno@clisp.org>
29379
29380         absolute-header: Make the macro usable in more situations.
29381         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29382         from gl_ABSOLUTE_HEADER.
29383         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29384
29385 2010-05-16  James Youngman  <jay@gnu.org>
29386
29387         doc: update users.txt
29388         * users.txt: Add CSSC.
29389
29390 2010-05-16  Jim Meyering  <meyering@redhat.com>
29391
29392         init.sh: fix an error in the previous change; add more comments
29393         * tests/init.sh: Compare exit code in loop against 9, not 2.
29394         Patch by Bruno Haible.
29395         Make the two tests more similar by adding an empty "then" clause.
29396         Add comments.
29397
29398         init.sh: avoid unnecessary shell re-exec
29399         * tests/init.sh: Improve the re-exec-required check to first test the
29400         current shell.  If it passes the test, do not search for a shell that
29401         does pass, and do not re-exec.  This test is particularly contorted to
29402         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29403         of $(...) evokes a syntax error and causes immediate shell exit with
29404         status 2.  Bruno Haible reported that the re-exec made it impossible
29405         to single-step through any init.sh-using script.
29406
29407 2010-05-16  Bruno Haible  <bruno@clisp.org>
29408
29409         Fix collision between gnulib's and libintl's printf replacements.
29410         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29411         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29412         (printf): When using GNU C, map the __printf__ function to rpl_printf
29413         via __asm__. When not using GNU C, define rpl_printf instead of
29414         __printf__.
29415         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29416         commit.
29417         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29418         commit.
29419         * m4/asm-underscore.m4: New file.
29420         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29421         * modules/stdio (Files): Add m4/asm-underscore.m4.
29422         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29423         Reported by Ben Pfaff.
29424
29425 2010-05-16  Bruno Haible  <bruno@clisp.org>
29426
29427         verify: Avoid skipping the test on openSUSE 11.0.
29428         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29429
29430 2010-05-13  Bruno Haible  <bruno@clisp.org>
29431
29432         Avoid useless warnings from G++.
29433         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29434         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29435         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29436
29437 2010-05-11  Jim Meyering  <meyering@redhat.com>
29438
29439         maint.mk: tweak preceding change
29440         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29441         regexps tighter by anchoring at EOL, and make the new group "shy"
29442         for slightly decreased overhead.
29443
29444 2010-05-11  Eric Blake  <eblake@redhat.com>
29445
29446         maint.mk: gnulib doesn't guarantee NSIG
29447         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29448
29449 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29450
29451         test-pwrite.c: Remove unused variable declaration.
29452         * tests/test-pwrite.c (main): Remove read_buf declaration.
29453
29454         Remove useless test-pwrite.sh file.
29455         * tests/test-pwrite.sh: Delete file.
29456         * modules/pwrite-tests: Remove references.
29457         Reported by Bruno Haible.
29458
29459 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29460
29461         init.sh: fix a typo
29462         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29463
29464 2010-05-10  Jim Meyering  <meyering@redhat.com>
29465
29466         maint.mk: avoid using a temporary file in the always-defined-macros check
29467         * top/maint.mk (.re-defmac): Remove rule.
29468         (gl_trap_): Remove definition.
29469         (sc_prohibit_always-defined_macros): Rewrite not to create and
29470         depend on a temporary file.  Instead, depend on GNU grep's ability
29471         to read a list of regular expressions from stdin when given "-f -".
29472
29473 2010-05-09  Bruno Haible  <bruno@clisp.org>
29474
29475         Update to GNU gettext 0.18, part 1.
29476         * m4/gettext.m4: Update to GNU gettext 0.18.
29477         * m4/intl.m4: Likewise.
29478         * m4/po.m4: Likewise.
29479         * modules/gettext (Files): Add m4/fcntl-o.m4.
29480         (configure.ac): Require gettext infrastructure from version 0.18.
29481
29482 2010-05-09  Jim Meyering  <meyering@redhat.com>
29483
29484         init.sh: enable MALLOC_PERTURB_
29485         * tests/init.sh: Enable glibc's malloc-perturbing option.
29486
29487         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29488         With my recent change in init.sh from the two-line form:
29489             -#   : ${srcdir=.}
29490             -#   . "$srcdir/init.sh"; path_prepend_ .
29491             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29492         I noticed that using the one-line form would cause this test
29493         to fail with a false-positive, or to stop working altogether,
29494         depending on whether help-version changed or all the tests did.
29495         * top/maint.mk (_hv_regex): Remove this definition.
29496         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29497         (_hv_regex_strong): Use a stronger regex to check for conformance.
29498         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29499         Give a separate diagnostic for lack of conforming use.
29500
29501         maint.mk: prohibit definition of symbols defined by gnulib
29502         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29503         definition of symbols defined by gnulib.
29504
29505 2010-05-09  Bruno Haible  <bruno@clisp.org>
29506
29507         acl: Avoid test failure on Cygwin-hosted mingw.
29508         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29509
29510 2010-05-09  Bruno Haible  <bruno@clisp.org>
29511
29512         error: Use system's fcntl function.
29513         * lib/error.c (fcntl): Undefine.
29514
29515 2010-05-09  Jim Meyering  <meyering@redhat.com>
29516
29517         verify: adjust formatting to be more consistent
29518         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29519         argument-list '('s, and after one comma.
29520
29521 2010-05-09  Bruno Haible  <bruno@clisp.org>
29522
29523         error: More reliable output on mingw.
29524         * lib/error.c: Include <windows.h>.
29525         (is_open): New function.
29526         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29527         defined.
29528
29529 2010-05-09  Bruno Haible  <bruno@clisp.org>
29530
29531         vasnprintf: Fix syntax errors in libintl build on mingw.
29532         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29533         pad_ourselves and prec_ourselves after use.
29534
29535 2010-05-08  Bruno Haible  <bruno@clisp.org>
29536
29537         * lib/config.charset: Update comments for Cygwin 1.7.
29538         * lib/localcharset.c: Likewise.
29539
29540 2010-05-07  Jim Meyering  <meyering@redhat.com>
29541
29542         init.sh: improve comments
29543         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29544         . "${srcdir=.}/init.sh"; path_prepend_ .
29545         Add a note about path_prepend_ and the alternative of using
29546         TESTS_ENVIRONMENT.
29547
29548 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29549
29550         exclude: Unescape hashed patterns in wildcard mode.
29551         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29552         to the hash list.
29553         * tests/test-exclude8.sh: New test case.
29554         * modules/exclude-tests: Add new test.
29555
29556 2010-05-05  Eric Blake  <eblake@redhat.com>
29557
29558         verify: automate tests
29559         * modules/verify-tests: New module.
29560         * tests/test-verify.sh: New file.
29561         * tests/test-verify.c: Guard each negative test with a unique id.
29562         Also avoid warning about unused left hand of comma expressions.
29563
29564 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29565
29566         Further improvements to verify.h, suggested by Eric Blake.
29567         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29568         the GL_* versions, to avoid collision with OpenGL.
29569         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29570         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29571         than testing merely whether it's defined.
29572
29573         Modify verify.h to pacify gcc -Wredundant_decls.
29574         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29575         These use the prefix "GL_" since they're likely to be useful elsewhere.
29576         We may need to break them out into a different .h file.
29577         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29578         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29579         of verify_function__.
29580
29581 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29582
29583         Tests for module pwrite.
29584         * modules/pwrite-tests: New file.
29585         * tests/test-pwrite.sh: New file.
29586         * tests/test-pwrite.c: New file.
29587
29588         New module pwrite.
29589         * lib/unistd.in.h (pwrite): New declaration.
29590         * lib/pwrite.c: New file, from glibc with modifications.
29591         * m4/pwrite.m4: New file.
29592         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29593         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29594         REPLACE_PWRITE.
29595         * modules/pwrite: New file.
29596         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29597         REPLACE_PWRITE.
29598         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29599         * doc/posix-functions/pwrite.texi: Mention the new module.
29600
29601 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29602
29603         pread: Update documentation.
29604         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29605
29606 2010-05-04  Eric Blake  <eblake@redhat.com>
29607
29608         docs: update cygwin progress
29609         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29610         this bug.
29611         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29612         Added in cygwin 1.7.2.
29613         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29614         Likewise.
29615         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29616         Likewise.
29617         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29618         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29619         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29620         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29621         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29622         Mention nproc module.
29623         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29624         bug in cygwin 1.7.5 addition.
29625         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29626         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29627         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29628         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29629         1.7.5.
29630         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29631         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29632         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29633         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29634         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29635         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29636         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29637         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29638         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29639         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29640         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29641         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29642         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29643         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29644         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29645         Likewise.
29646         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29647         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29648         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29649         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29650         Likewise.
29651         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29652         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29653         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29654         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29655         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29656         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29657         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29658         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29659         Likewise.
29660         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29661         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29662         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29663         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29664         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29665         Likewise.
29666         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29667         Likewise.
29668         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29669         Likewise.
29670         * doc/glibc-functions/xdrrec_endofrecord.texi
29671         (xdrrec_endofrecord): Likewise.
29672         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29673         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29674         Likewise.
29675         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29676         Likewise.
29677
29678 2010-05-04  Jim Meyering  <meyering@redhat.com>
29679
29680         gendocs.sh: make its "-s FILE" option more useful
29681         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29682         $PACKAGE to reflect the probably-different basename of "FILE".
29683
29684 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29685
29686         bootstrap: don't ignore download_po_files failure
29687         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29688         failure.
29689
29690 2010-05-03  Jim Meyering  <meyering@redhat.com>
29691
29692         maint.mk: allow to pass options to gendocs.sh
29693         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29694         (gendocs_options_): New overridable variable.
29695
29696         gnu-web-doc-update: don't ignore configure or build failure
29697         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29698
29699         announce-gen: backslash-escape '@'s in --help output
29700         * build-aux/announce-gen: Fix syntax errors.
29701
29702         maint.mk, announce-gen: allow project-specific announcement mail headers
29703         * top/maint.mk (translation_project_): Define default.
29704         (announcement_Cc_, announcement_mail_headers_): Likewise.
29705         (announcement): Invoke announce-gen with new --mail-headers option.
29706         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29707
29708         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29709         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29710         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29711         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29712         line in the "err2" output file when running "make check" in verbose
29713         mode (i.e., with set -x enabled).
29714
29715 2010-05-03  Bruno Haible  <bruno@clisp.org>
29716
29717         wctob: Fix for weird platforms.
29718         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29719         argument value.
29720
29721 2010-05-03  Jim Meyering  <meyering@redhat.com>
29722
29723         maint.mk: prohibit unwarranted use of <strings.h>
29724         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29725         strings.h in a file that does not also use strcasecmp, strncasecmp,
29726         ffs or ffsll.
29727
29728         maint.mk: remove obsolete comments
29729         * top/maint.mk: Remove stale, commented-out rules.
29730
29731 2010-05-02  Bruno Haible  <bruno@clisp.org>
29732
29733         wcwidth: Declare also when it's aliased.
29734         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29735         macro.
29736
29737 2010-05-02  Bruno Haible  <bruno@clisp.org>
29738
29739         Fix regression from 2010-04-25.
29740         * gnulib-tool (func_modules_transitive_closure): Check the status of
29741         all modules, not only of the tests that are of the form foo-tests where
29742         foo is a module.
29743
29744 2010-05-02  Bruno Haible  <bruno@clisp.org>
29745
29746         wctob: Work around nasty Cygwin 1.7.2 bug.
29747         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29748         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29749
29750 2010-05-01  Bruno Haible  <bruno@clisp.org>
29751
29752         fpurge: Sharper test.
29753         * tests/test-fpurge.c (main): Add one more ftell check.
29754         * modules/fpurge-tests (Depends-on): Add ftell.
29755         Suggested by Eric Blake.
29756
29757 2010-05-01  Bruno Haible  <bruno@clisp.org>
29758
29759         ftello: Another test.
29760         * tests/test-ftello3.c: New file.
29761         * modules/ftello-tests (Files): Add it.
29762         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29763         MOSTLYCLEANFILES.
29764
29765         ftell: Another test.
29766         * tests/test-ftell3.c: New file.
29767         * modules/ftell-tests (Files): Add it.
29768         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29769         MOSTLYCLEANFILES.
29770
29771 2010-05-01  Bruno Haible  <bruno@clisp.org>
29772
29773         ftell, ftello: Work around Solaris bug.
29774         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29775         * lib/ftello.c: Include stdio-impl.h.
29776         (ftello): On Solaris, when _IOWRT is set, compute the result without
29777         looking at _IOREAD.
29778         * modules/ftello (Files): Add lib/stdio-impl.h.
29779         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29780         * doc/posix-functions/ftello.texi: Likewise.
29781         Reported by Eric Blake.
29782
29783 2010-05-01  Bruno Haible  <bruno@clisp.org>
29784
29785         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29786         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29787         the _IOWRT flag is also set.
29788
29789 2010-05-01  Bruno Haible  <bruno@clisp.org>
29790
29791         Fix doc about a HP-UX stdio bug.
29792         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29793         * doc/posix-functions/ftello.texi: Likewise.
29794
29795 2010-05-01  Bruno Haible  <bruno@clisp.org>
29796
29797         lseek test: Fix failure on Solaris.
29798         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29799         output.
29800
29801 2010-04-30  Jim Meyering  <meyering@redhat.com>
29802
29803         bootstrap: don't ignore failure to generate po*/Makevars
29804         * build-aux/bootstrap (with_gettext): Don't ignore failure
29805         to create po/Makevars or runtime-po/Makevars.
29806
29807 2010-04-29  Eric Blake  <eblake@redhat.com>
29808
29809         headers: relax license to LGPLv2+
29810         * modules/fcntl-h (License): Relax license.
29811         * modules/getopt-posix (License): Likewise.
29812         * modules/locale (License): Likewise.
29813         * modules/math (License): Likewise.
29814         * modules/pty (License): Likewise.
29815         * modules/sched (License): Likewise.
29816         * modules/search (License): Likewise.
29817         * modules/spawn (License): Likewise.
29818         * modules/stdarg (License): Likewise.
29819         * modules/sysexits (License): Likewise.
29820
29821 2010-04-29  Jim Meyering  <meyering@redhat.com>
29822
29823         inttypes: relax license to LGPLv2+
29824         * modules/inttypes (License): Relax license.
29825
29826 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29827
29828         * top/maint.mk (indent): Run twice to produce idempotent results.
29829
29830 2010-04-28  Bruno Haible  <bruno@clisp.org>
29831
29832         getdate: Generate getdate.c in the source directory.
29833         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29834         MOSTLYCLEANFILES.
29835         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29836
29837 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29838
29839         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29840         is not declared as a const *; avoid warnings in that case.
29841
29842 2010-04-28  Eric Blake  <eblake@redhat.com>
29843
29844         canonicalize-lgpl: avoid compiler warning
29845         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29846         declaration' / 'extraneous semicolon' warning with some compilers.
29847         Reported by Andreas Gruenbacher.
29848
29849 2010-04-28  Jim Meyering  <meyering@redhat.com>
29850
29851         init.sh: ensure a more reliable exit status when exiting via trap
29852         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29853         Inspired by patches from Dmitry V. Levin.
29854         Also trap on signal 3 (SIGQUIT).
29855
29856 2010-04-27  Bruno Haible  <bruno@clisp.org>
29857
29858         Update doc about utimes().
29859         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29860         'utimens' module.
29861         Reported by Andreas Gruenbacher <agruen@suse.de>.
29862
29863 2010-04-27  Eric Blake  <eblake@redhat.com>
29864
29865         full-read, full-write: relax license
29866         * modules/full-read (License): Drop to LGPLv2+.
29867         * modules/full-write (License): Likewise.
29868         * modules/safe-read (License): Likewise.
29869         * modules/safe-write (License): Likewise.
29870
29871         pthread: mention library for linking
29872         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29873
29874 2010-04-27  Jim Meyering  <meyering@redhat.com>
29875
29876         maint.mk: fix a bug introduced in last change
29877         * top/maint.mk (gl_assured_headers_): Now that all names are on
29878         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29879         is not anchored to end of word, it should be adequate.
29880
29881         maint.mk: avoid side-effect in latest syntax-check
29882         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29883         to run commands via $(shell...), and hence to incur cost only when
29884         the new rule is actually run.
29885
29886         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29887         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29888         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29889         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29890         (gl_assured_headers_, az_, AZ_): Define.
29891         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29892
29893 2010-04-26  Jim Meyering  <jim@meyering.net>
29894             Bruno Haible  <bruno@clisp.org>
29895
29896         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29897         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29898         Prompted by an exchange with Gilles Espinasse.
29899
29900 2010-04-26  Jim Meyering  <meyering@redhat.com>
29901
29902         git-version-gen: aesthetic tweak
29903         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29904         so that the command remains on a single line.
29905
29906 2010-04-26  Eric Blake  <eblake@redhat.com>
29907
29908         git-version-gen: allow use on EBCDIC hosts
29909         * build-aux/git-version-gen (dirty): Use literal rather than tying
29910         ourselves to ascii.
29911         Reported by Steve Goetze.
29912
29913 2010-04-25  Bruno Haible  <bruno@clisp.org>
29914
29915         netdb: Add support for GNULIB_POSIXCHECK.
29916         * lib/netdb.in.h: Include warn-on-use.h.
29917         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29918         functions are used when GNULIB_POSIXCHECK is defined and the
29919         getaddrinfo module is not in use.
29920         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29921         freeaddrinfo, gai_strerror, getnameinfo are declared.
29922         * modules/netdb (Depends-on): Add warn-on-use.
29923         (Makefile.am): Include warn-on-use.h in netdb.h.
29924
29925 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29926
29927         build: avoid "make check" failure without .git/ directory
29928         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29929         there is no .git/ directory.
29930
29931 2010-04-25  Bruno Haible  <bruno@clisp.org>
29932
29933         ptsname: Fix misuse of ttyname_r.
29934         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29935         of errno.
29936
29937 2010-04-25  Bruno Haible  <bruno@clisp.org>
29938
29939         ttyname_r: Make it work on Solaris 10.
29940         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29941         if the system function has the POSIX declaration. Test whether the
29942         function fails if the buffer is less than 128 bytes large.
29943         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29944         system's ttyname_r function. Provide a reasonably large buffer.
29945         * modules/ttyname_r (Depends-on): Add extensions.
29946         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29947
29948 2010-04-25  Bruno Haible  <bruno@clisp.org>
29949
29950         Use the 'extensions' module for some more functions on Solaris.
29951         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29952         module.
29953         * doc/posix-functions/ctime_r.texi: Likewise.
29954         * doc/posix-functions/getgrgid_r.texi: Likewise.
29955         * doc/posix-functions/getgrnam_r.texi: Likewise.
29956         * doc/posix-functions/getpwnam_r.texi: Likewise.
29957         * doc/posix-functions/getpwuid_r.texi: Likewise.
29958         * doc/posix-functions/readdir_r.texi: Likewise.
29959         * doc/posix-functions/sigwait.texi: Likewise.
29960         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29961         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29962
29963 2010-04-25  Bruno Haible  <bruno@clisp.org>
29964
29965         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29966         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29967         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29968         * lib/ttyname_r.c: Include <limits.h>.
29969         (ttyname_r): Define using the system's ttyname_r function, if it exists
29970         and not on Solaris.
29971         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29972         set.
29973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29974         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29975         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29976         Reported by Simon Josefsson.
29977
29978 2010-04-25  Bruno Haible  <bruno@clisp.org>
29979
29980         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29981         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29982         * doc/posix-functions/ctime_r.texi: Likewise.
29983         * doc/posix-functions/getgrgid_r.texi: Likewise.
29984         * doc/posix-functions/getgrnam_r.texi: Likewise.
29985         * doc/posix-functions/getlogin_r.texi: Likewise.
29986         * doc/posix-functions/getpwnam_r.texi: Likewise.
29987         * doc/posix-functions/getpwuid_r.texi: Likewise.
29988         * doc/posix-functions/readdir_r.texi: Likewise.
29989         * doc/posix-functions/sigwait.texi: Likewise.
29990         * doc/posix-functions/ttyname_r.texi: Likewise.
29991         Reported by Simon Josefsson.
29992
29993 2010-04-25  Bruno Haible  <bruno@clisp.org>
29994
29995         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29996         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29997         also to --create-testdir.
29998         (func_acceptable): Don't consider the status of *-tests modules here.
29999         (func_modules_transitive_closure): Consider it here, before including a
30000         test module.
30001         (func_import, func_create_testdir): Set inc_all_direct_tests,
30002         inc_all_indirect_tests.
30003         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30004         --create-testdir and --create-megatestdir.
30005
30006 2010-04-25  Bruno Haible  <bruno@clisp.org>
30007
30008         gnulib-tool: Add --without-*-tests options.
30009         * gnulib-tool (func_usage): Document the --without-*-tests options.
30010         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30011         excl_unportable_tests): New variables.
30012         Fail if they are specified with --import or --update.
30013         (func_acceptable): Respect the excl_*_tests variables.
30014         (func_import): Set the excl_*_tests variables to empty.
30015
30016 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30017             Bruno Haible  <bruno@clisp.org>
30018
30019         Work around a MacOS X 10.4 bug with openpty.
30020         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30021         * tests/test-openpty.c (main): Close the master side explicitly.
30022
30023 2010-04-25  Bruno Haible  <bruno@clisp.org>
30024
30025         strnlen: Fix a C++ test error on MacOS X and Solaris.
30026         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30027         the function is not declared.
30028         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30029         Simon Josefsson.
30030
30031 2010-04-24  Bruno Haible  <bruno@clisp.org>
30032
30033         Avoid a gcc warning.
30034         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30035         of correct type for %08lx directive.
30036         Reported by Eric Blake.
30037
30038 2010-04-24  Bruno Haible  <bruno@clisp.org>
30039
30040         vasnprintf: Correct errno value in case of out-of-memory.
30041         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30042         or sprintf. Use the errno value from SNPRINTF or sprintf.
30043         Reported by Ian Beckwith <ianb@erislabs.net>.
30044
30045 2010-04-24  Bruno Haible  <bruno@clisp.org>
30046
30047         ansi-c++-opt: Find correct compiler when cross-compiling.
30048         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30049         AC_CHECK_PROGS.
30050         Reported by Simon Josefsson.
30051
30052 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30053
30054         vc-list-files: Add support for subversion
30055         * build-aux/vc-list-files: Use "svn list" to generate the list of
30056         files controlled by subversion.
30057
30058 2010-04-23  Jim Meyering  <meyering@redhat.com>
30059
30060         vc-list-files tests: convert to use init.sh
30061         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30062         path_prepend_.
30063         Use Exit, not exit.
30064         Use skip_ rather than open coding it.
30065         Remove trap set-up and compare definitions.
30066         * tests/test-vc-list-files-git.sh: Likewise.
30067         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30068
30069 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30070
30071         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30072         backup files.
30073
30074 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30075
30076         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30077
30078 2010-04-20  Eric Blake  <eblake@redhat.com>
30079
30080         tests: be robust to ignored SIGPIPE
30081         * tests/test-select-in.sh: Consume all output.
30082         * tests/test-lseek.sh: Check correct exit status, while avoiding
30083         EPIPE.
30084
30085 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30086             Bruno Haible  <bruno@clisp.org>
30087
30088         visibility: Don't use -fvisibility if it leads to a warning.
30089         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30090         yes, don't pretend that visibility works if it leads to a warning.
30091         Reported by Mike Gran <spk121@yahoo.com>.
30092
30093 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30094
30095         * build-aux/bootstrap: Use "git -h" for testing for supported options
30096         instead of "git --help".  The short-form option only shows a summary,
30097         and doesn't layout the full man page.  Grep for the full option name
30098         in the summary, too.
30099
30100 2010-04-19  Bruno Haible  <bruno@clisp.org>
30101
30102         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30103         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30104         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30105         mention of RELOCATABLE_STRIP.
30106         Reported by Sylvain Beucler <beuc@beuc.net>.
30107
30108 2010-04-19  Bruno Haible  <bruno@clisp.org>
30109
30110         * lib/diffseq.h: Fix typo in comment.
30111         Reported by Eric Blake.
30112
30113 2010-04-19  Bruno Haible  <bruno@clisp.org>
30114
30115         ioctl: Move autoconf macro to a .m4 file.
30116         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30117         * modules/ioctl (Files): Add it.
30118         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30119         Reported by Ian Beckwith <ianb@erislabs.net>.
30120
30121 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30122             Bruno Haible  <bruno@clisp.org>
30123
30124         diffseq: Accommodate use-case with abstract arrays.
30125         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30126         is not defined.
30127         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30128         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30129
30130 2010-04-18  Bruno Haible  <bruno@clisp.org>
30131
30132         * doc/posix-headers/stdbool.texi: More precise wording.
30133
30134 2010-04-17  Jim Meyering  <meyering@redhat.com>
30135
30136         maint.mk: use gnu-style indentation in an embedded perl script
30137         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30138         Rename variable: s/two/last_two_bytes/
30139
30140 2010-04-16  Eric Blake  <eblake@redhat.com>
30141
30142         test-stdbool: skip test that fails with Solaris CC
30143         * tests/test-stdbool.c (f): Skip test that causes compilation
30144         error under buggy C++ compiler.
30145         * lib/stdbool.in.h: Document the limitation.
30146         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30147
30148         setenv: allow compilation with C++
30149         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30150         register keyword.
30151
30152         stdint: allow test to pass with C++
30153         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30154
30155         getopt: allow compilation with C++
30156         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30157         struct.
30158         * lib/getopt.c (_getopt_internal_r): Use correct type.
30159         Reported by Dagobert Michelson, via Joel E. Denny.
30160
30161 2010-04-16  Bruno Haible  <bruno@clisp.org>
30162
30163         Override netdb.h always.
30164         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30165         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30166         Reported by Ludovic Courtès <ludo@gnu.org>.
30167
30168 2010-04-15  Bruno Haible  <bruno@clisp.org>
30169
30170         openpty: Fix mistake from 2010-03-21.
30171         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30172         Reported by Simon Josefsson.
30173
30174 2010-04-15  Eric Blake  <eblake@redhat.com>
30175
30176         test-forkpty: fix expected signature
30177         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30178         Reported by Simon Josefsson.
30179
30180 2010-04-15  Jim Meyering  <meyering@redhat.com>
30181
30182         maint.mk: texinfo_suffix_re_: correct the default regexp
30183         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30184
30185         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30186         make it configurable via texinfo_suffix_re_.
30187
30188 2010-04-14  Eric Blake  <eblake@redhat.com>
30189
30190         strtok_r: relax license to LGPLv2+
30191         * modules/strtok_r (License): Relax license.
30192         Reported by Matthias Bolte.
30193
30194 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30195
30196         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30197         version 1.4.4 by default instead of requiring the libgcrypt
30198         version used during build.  This makes it possible to use the
30199         application with older but still binary compatible libgcrypt
30200         versions.
30201
30202 2010-04-13  Eric Blake  <eblake@redhat.com>
30203
30204         getopt-gnu: match recent glibc fixes and posix ruling
30205         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30206         '+' handling, when requesting extensions.
30207         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30208         'W;' handling.
30209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30210         * doc/posix-functions/getopt.texi (getopt): Document this.
30211         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30212         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30213         Likewise.
30214
30215         getopt: merge bug fixes from glibc
30216         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30217         diagnostics.  Honor '+:' correctly.  Reject ';'.
30218
30219         getopt-posix: detect MacOS bug
30220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30221         optind when missing a required argument.
30222         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30223         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30224         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30225         Likewise.
30226
30227         getopt-posix: avoid spurious failure on Solaris
30228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30229         an indicator that setting optind=1 is sufficient for reset.
30230
30231         getopt-posix: avoid spurious failure on FreeBSD
30232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30233         in POSIX mode, since the m4 test uses it.
30234
30235         gnulib-tool: silence warning on BSD sh
30236         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30237
30238 2010-04-13  Jim Meyering  <meyering@redhat.com>
30239
30240         doc: users.txt: GNU patch now uses gnulib
30241         * users.txt: Add patch.
30242
30243 2010-04-12  Jim Meyering  <meyering@redhat.com>
30244
30245         maint.mk: generate more concise timing data for syntax-check rules
30246         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30247         " done" from each line that reports a syntax-check test duration.
30248
30249 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30250
30251         git-version-gen: use "git update-index..." rather than "git status"
30252         * build-aux/git-version-gen: Use git update-index --refresh, not
30253         "git status".  With some versions of git, "git status" would fail
30254         to update the index and result in an unwarranted "-dirty" suffix.
30255
30256 2010-04-11  Jim Meyering  <meyering@redhat.com>
30257
30258         openat: correct formatting (no semantic change)
30259         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30260         Suggested by Bruno Haible.
30261
30262 2010-04-11  Bruno Haible  <bruno@clisp.org>
30263
30264         Stricter declaration checking in testdirs.
30265         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30266         If for_tests is true, augment AM_CPPFLAGS to define
30267         GNULIB_STRICT_CHECKING.
30268         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30269         GNULIB_STRICT_CHECKING is defined, verify that the function is
30270         declared.
30271
30272 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30273             Bruno Haible  <bruno@clisp.org>
30274
30275         libunistring: Improve configure output.
30276         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30277         Don't say "consider installing GNU libunistring" when checking again
30278         with libiconv.
30279
30280 2010-04-11  Bruno Haible  <bruno@clisp.org>
30281
30282         libunistring: Correct value of $LTLIBUNISTRING.
30283         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30284         correct the value of $LTLIBUNISTRING.
30285
30286 2010-04-11  Bruno Haible  <bruno@clisp.org>
30287
30288         havelib: Add static libraries to LIBS in the right order.
30289         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30290         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30291
30292 2010-04-11  Bruno Haible  <bruno@clisp.org>
30293
30294         libunistring: Detect libunistring also when it depends on libiconv.
30295         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30296         the second AC_LIB_HAVE_LINKFLAGS invocation.
30297
30298 2010-04-11  James Youngman  <jay@gnu.org>
30299
30300         close-stream: declare local scalars to be "const"
30301         * lib/close-stream.c (close_stream): Make boolean variables const
30302         to document the fact that we set but do not change them.
30303
30304 2010-04-11  Bruno Haible  <bruno@clisp.org>
30305
30306         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30307
30308 2010-04-11  Jim Meyering  <meyering@redhat.com>
30309
30310         maint.mk: don't include dist-check.mk
30311         * top/maint.mk: Remove bogus include directive.
30312
30313         maint.mk: improve empty-line-at-EOF check
30314         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30315         solution, rather than tail+Perl-based one.  The latter would read
30316         a few kilobytes from the end of each file, and did not handle empty
30317         files properly.
30318
30319         maint.mk: print the elapsed time for each syntax-check rule
30320         * top/maint.mk (sc_m_rules_): Save start time in a file.
30321         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30322         (local-check): Interpose the .z rules
30323
30324 2010-04-11  Jim Meyering  <meyering@redhat.com>
30325
30326         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30327         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30328         empty file with one that ends in an empty line.
30329
30330 2010-04-10  Bruno Haible  <bruno@clisp.org>
30331
30332         mkdir: Make it work on mingw64.
30333         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30334         * lib/mkdir.c: Update comment.
30335         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30336
30337 2010-04-10  Bruno Haible  <bruno@clisp.org>
30338
30339         Don't override improved macro from newer autoconf.
30340         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30341         autoconf >= 2.62.
30342         Reported by Joel E. Denny <jdenny@clemson.edu>.
30343
30344 2010-04-10  Jim Meyering  <meyering@redhat.com>
30345
30346         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30347         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30348
30349         maint.mk: correct a diagnostic
30350         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30351         in diagnostic; now use $prohibit.
30352
30353 2010-04-10  Bruno Haible  <address@hidden>
30354
30355         fchownat: Fix a C++ test error on Solaris 8.
30356         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30357         the function does not exist.
30358
30359 2010-04-10  Bruno Haible  <bruno@clisp.org>
30360
30361         vasnprintf: Add more tests.
30362         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30363         (test_function): Test converting an invalid wide string.
30364
30365         vasnprintf: Correct handling of unconvertible wide string arguments.
30366         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30367         VASNPRINTF.
30368         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30369         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30370         smaller than the expected maximum need for the directive. Set errno to
30371         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30372         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30374         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30375         * modules/vasnprintf (Files): Add m4/printf.m4.
30376         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30377
30378 2010-04-10  Bruno Haible  <bruno@clisp.org>
30379
30380         vasnprintf: Fix crash in %ls directive.
30381         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30382         string is passed as argument to %ls, with no precision and no width.
30383         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30384
30385 2010-04-10  Bruno Haible  <bruno@clisp.org>
30386
30387         vasnprintf: Fix multiple test failures on mingw.
30388         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30389         _snprintf, or snwprintf, not _snwprintf.
30390
30391 2010-04-10  Bruno Haible  <bruno@clisp.org>
30392
30393         write: Fix a C++ test error on mingw.
30394         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30395
30396 2010-04-10  Bruno Haible  <bruno@clisp.org>
30397
30398         vasnprintf test: Reduce code duplication.
30399         * tests/test-vasnprintf.c (test_function): New function, extracted from
30400         test_vasnprintf.
30401         (test_vasnprintf, test_asnprintf): Invoke it.
30402
30403 2010-04-10  Bruno Haible  <bruno@clisp.org>
30404
30405         strnlen: Fix warning in C++ mode on MacOS X.
30406         * lib/string.in.h (strnlen): Use the modern idiom.
30407         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30408         defining strnlen as a macro already in <config.h>.
30409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30410         REPLACE_STRNLEN.
30411         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30412         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30413
30414 2010-04-08  James Youngman  <jay@gnu.org>
30415
30416         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30417         the example.
30418
30419 2010-04-09  Jim Meyering  <meyering@redhat.com>
30420
30421         maint.mk: print better diagnostic when there is no $(_hv_file)
30422         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30423         announce that when $(_hv_file) (aka help-version) does not exist.
30424
30425         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30426         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30427         not try to interpret its random input bytes.  Jarno Rajahalme reported
30428         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30429         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30430         (mktempd_): Likewise, just in case.
30431
30432         ftruncate: add two years to projected module removal date: 2012
30433         * m4/ftruncate.m4: Adjust comments.
30434
30435         ftruncate: mark module as obsolete; even MinGW provides it, now
30436         * modules/ftruncate (Status): Obsolete.
30437         (Notice): Say that.
30438         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30439         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30440
30441 2010-04-08  Bruno Haible  <bruno@clisp.org>
30442
30443         Fix side effects from tests-related modules.
30444         * modules/dprintf-posix (Comment): New section.
30445         * modules/fprintf-posix (Comment): Likewise.
30446         * modules/obstack-printf-posix (Comment): Likewise.
30447         * modules/printf-posix (Comment): Likewise.
30448         * modules/snprintf-posix (Comment): Likewise.
30449         * modules/sprintf-posix (Comment): Likewise.
30450         * modules/vasnprintf-posix (Comment): Likewise.
30451         * modules/vasprintf-posix (Comment): Likewise.
30452         * modules/vdprintf-posix (Comment): Likewise.
30453         * modules/vfprintf-posix (Comment): Likewise.
30454         * modules/vprintf-posix (Comment): Likewise.
30455         * modules/vsnprintf-posix (Comment): Likewise.
30456         * modules/vsprintf-posix (Comment): Likewise.
30457         * modules/xprintf-posix (Comment): Likewise.
30458         * modules/xvasprintf-posix (Comment): Likewise.
30459         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30460         * modules/floorf-tests (Depends-on): Likewise.
30461         * modules/round-tests (Depends-on): Likewise.
30462         * modules/roundf-tests (Depends-on): Likewise.
30463         * modules/trunc-tests (Depends-on): Likewise.
30464         * modules/truncf-tests (Depends-on): Likewise.
30465         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30466         'fprintf-posix' module is not present.
30467         * tests/test-floorf2.c (check): Likewise.
30468         * tests/test-trunc2.c (check): Likewise.
30469         * tests/test-truncf2.c (check): Likewise.
30470         * tests/test-round2.c (equal): Likewise.
30471         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30472
30473 2010-04-07  Karl Berry  <karl@gnu.org>
30474
30475         * config/srclist.txt,
30476         * config/srclistvars.sh,
30477         * config/srclist-update: doc fixes.
30478
30479 2010-04-07  Jim Meyering  <meyering@redhat.com>
30480
30481         maint.mk: add a PATH crosschecking syntax-check rule
30482         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30483         Useful if you use a test like the one in help-version (coreutils,
30484         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30485         printed by prog --version.
30486
30487 2010-04-06  Bruno Haible  <bruno@clisp.org>
30488
30489         Fix link error on mingw.
30490         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30491         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30492
30493 2010-04-06  Bruno Haible  <bruno@clisp.org>
30494
30495         Assume rmdir exists.
30496         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30497
30498 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30499
30500         doc: update users.txt
30501         * users.txt: Add gcal.
30502
30503 2010-04-06  Jim Meyering  <meyering@redhat.com>
30504
30505         init.sh: simply unset TMPDIR rather than risking env -i
30506         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30507         although it probably works fine on all Unix-based systems, some
30508         systems (Cygwin?) cannot tolerate a totally cleared environment.
30509         Suggestion from Eric Blake.
30510
30511 2010-04-06  Jim Meyering  <meyering@redhat.com>
30512
30513         init.sh: portability fix: use env's POSIX-specified -i option not -u
30514         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30515         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30516
30517 2010-04-05  Bruno Haible  <bruno@clisp.org>
30518
30519         btowc: Work around Cygwin 1.7.2 bug.
30520         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30521         does not map NUL to 0.
30522         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30523
30524 2010-04-05  Bruno Haible  <bruno@clisp.org>
30525
30526         Make the multithread modules work on Cygwin 1.7.2.
30527         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30528         imported symbols can be declared weak, so that it returns "no" on
30529         Cygwin 1.7.2.
30530
30531 2010-04-05  Bruno Haible  <bruno@clisp.org>
30532
30533         Use the module 'strncat'.
30534         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30535
30536         Tests for module 'strncat'.
30537         * modules/strncat-tests: New file.
30538         * tests/test-strncat.c: New file.
30539
30540         New module 'strncat'.
30541         * lib/string.in.h (strncat): New declaration.
30542         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30543         * m4/strncat.m4: New file, based on m4/memchr.m4.
30544         * modules/strncat: New file.
30545         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30546         is declared.
30547         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30548         REPLACE_STRNCAT.
30549         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30550         REPLACE_STRNCAT.
30551         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30552         module.
30553         * tests/test-string-c++.cc: Check signature of strncat.
30554
30555 2010-04-05  Jim Meyering  <meyering@redhat.com>
30556
30557         xstrtoumax-tests: convert to use init.sh
30558         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30559         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30560         Use Exit, not exit.
30561         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30562
30563         xstrtoimax-tests: convert to use init.sh
30564         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30565         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30566         Use Exit, not exit.
30567         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30568
30569 2010-04-05  Bruno Haible  <bruno@clisp.org>
30570
30571         sys_socket: Avoid #define replacements in C++ mode.
30572         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30573         warning to the function if possible, rather than #defining the symbol
30574         to a dysfunctional alias.
30575
30576 2010-04-05  Bruno Haible  <bruno@clisp.org>
30577
30578         fseeko: Fix C++ test error on mingw.
30579         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30580         gl_FUNC_FSEEKO.
30581         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30582         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30583         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30584         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30585
30586 2010-04-05  Bruno Haible  <bruno@clisp.org>
30587
30588         duplocale: Improve test output.
30589         * tests/test-duplocale.c (main): Print reason for skipped test.
30590
30591 2010-04-05  Bruno Haible  <bruno@clisp.org>
30592
30593         Assume rmdir exists.
30594         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30595         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30596
30597 2010-04-05  Bruno Haible  <bruno@clisp.org>
30598
30599         Fix link error on Solaris 8 with cc.
30600         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30601
30602 2010-04-05  Bruno Haible  <bruno@clisp.org>
30603
30604         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30605         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30606
30607 2010-04-05  Bruno Haible  <bruno@clisp.org>
30608
30609         vasprintf: Update documentation.
30610         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30611
30612 2010-04-05  Bruno Haible  <bruno@clisp.org>
30613
30614         ptsname: Improve test.
30615         * tests/test-ptsname.c (main): Also try the various master names of BSD
30616         systems.
30617
30618 2010-04-05  Bruno Haible  <bruno@clisp.org>
30619
30620         memchr: Avoid a possible C++ test error.
30621         * lib/string.in.h (memchr): Provide declaration if function is missing.
30622         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30623         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30625         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30626
30627 2010-04-05  Bruno Haible  <bruno@clisp.org>
30628
30629         strtok_r: Improve idiom.
30630         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30631         AC_LIBOBJ is used.
30632
30633 2010-04-05  Bruno Haible  <bruno@clisp.org>
30634
30635         strdup: Improve idiom.
30636         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30637         AC_LIBOBJ is used.
30638         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30639         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30640         when AC_LIBOBJ is used.
30641
30642 2010-04-05  Bruno Haible  <bruno@clisp.org>
30643
30644         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30645         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30646         don't set REPLACE_MBSINIT to 1.
30647         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30648         don't set REPLACE_MBRTOWC to 1.
30649         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30650         exist, don't set REPLACE_MBSRTOWCS to 1.
30651         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30652         exist, don't set REPLACE_MBSNRTOWCS to 1.
30653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30654         don't set REPLACE_WCRTOMB to 1.
30655         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30656         exist, don't set REPLACE_WCSRTOMBS to 1.
30657         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30658         exist, don't set REPLACE_WCSNRTOMBS to 1.
30659
30660 2010-04-05  Bruno Haible  <bruno@clisp.org>
30661
30662         ldexpl: Improve idiom.
30663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30664         make sure to set HAVE_DECL_LDEXPL to 0.
30665
30666 2010-04-05  Jim Meyering  <meyering@redhat.com>
30667
30668         xstrtol-tests: convert to use init.sh
30669         * modules/xstrtol-tests (Files): Add tests/init.sh.
30670         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30671         Use Exit, not exit.
30672         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30673
30674         atexit-tests: convert to use init.sh
30675         * modules/atexit-tests (Files): Add tests/init.sh.
30676         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30677         Use Exit, not exit.
30678         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30679
30680         init.sh: fix typo
30681         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30682
30683         init.sh: make it easier for a test script to write to the tty, ...
30684         when using automake's parallel-tests mode.
30685         * tests/init.sh (stderr_fileno_): Define overridable variable.
30686         (warn_): New function, to use it.
30687         (fail_, skip_, framework_failure_): Use warn_.
30688
30689 2010-04-04  Bruno Haible  <bruno@clisp.org>
30690
30691         btowc: Avoid warning.
30692         * lib/btowc.c: Include <stdlib.h>.
30693         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30694
30695 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30696             Bruno Haible  <bruno@clisp.org>
30697
30698         wchar: Port to NetBSD 1.5.
30699         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30700         * lib/wctype.in.h (WEOF): Likewise.
30701
30702 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30703             Bruno Haible  <bruno@clisp.org>
30704
30705         Port extended stdio to NetBSD 1.5.
30706         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30707         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30708         older.
30709
30710 2010-04-04  Bruno Haible  <bruno@clisp.org>
30711
30712         string: Remove unused substitution.
30713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30714         HAVE_DECL_STRERROR.
30715         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30716
30717 2010-04-04  Bruno Haible  <bruno@clisp.org>
30718
30719         strtod: Avoid a possible C++ test error.
30720         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30721         set REPLACE_STRTOD.
30722
30723 2010-04-04  Bruno Haible  <bruno@clisp.org>
30724
30725         strerror: Update documentation.
30726         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30727
30728 2010-04-04  Bruno Haible  <bruno@clisp.org>
30729
30730         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30731         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30732         _GL_CXXALIAS_SYS_CAST.
30733
30734 2010-04-04  Bruno Haible  <bruno@clisp.org>
30735
30736         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30737         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30738         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30739         REPLACE_FREXPL to 1.
30740         * doc/posix-functions/frexpl.texi: Update documentation.
30741
30742 2010-04-04  Bruno Haible  <bruno@clisp.org>
30743
30744         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30745         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30746
30747 2010-04-04  Bruno Haible  <bruno@clisp.org>
30748
30749         Implement nanosleep for native Windows.
30750         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30751
30752 2010-04-04  Bruno Haible  <bruno@clisp.org>
30753
30754         math: Fix some C++ test errors on Solaris 8.
30755         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30756
30757 2010-04-04  Bruno Haible  <bruno@clisp.org>
30758
30759         math: Fix some C++ test errors on Cygwin.
30760         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30761         truncl): Provide declaration if the system does not have it.
30762         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30763         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30764         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30765         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30766         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30767         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30768         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30769         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30770         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30771         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30772         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30773         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30774         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30775         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30776         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30777         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30779         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30780         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30781         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30782         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30783         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30784
30785 2010-04-04  Bruno Haible  <bruno@clisp.org>
30786
30787         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30788         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30789         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30790         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30791         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30792         * m4/isinf.m4 (gl_ISINF): Likewise.
30793         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30794
30795 2010-04-04  Bruno Haible  <bruno@clisp.org>
30796
30797         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30798         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30799
30800 2010-04-04  Bruno Haible  <bruno@clisp.org>
30801
30802         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30803         * modules/tmpfile (configure.ac): Update.
30804
30805         tmpfile: Fix C++ test error on mingw.
30806         * lib/stdio.in.h (tmpfile): New declaration.
30807         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30808         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30809         * modules/tmpfile (Depends-on): Add stdio.
30810         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30811         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30812         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30813         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30814         REPLACE_TMPFILE.
30815         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30816
30817 2010-04-04  Bruno Haible  <bruno@clisp.org>
30818
30819         ioctl: Fix C++ test error on mingw.
30820         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30821         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30822         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30823
30824 2010-04-03  Bruno Haible  <bruno@clisp.org>
30825
30826         wcwidth: Fix C++ test error on mingw.
30827         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30829         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30830
30831 2010-04-03  Bruno Haible  <bruno@clisp.org>
30832
30833         nanosleep: Fix C++ test error on mingw.
30834         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30835         * lib/time.in.h (nanosleep): Use modern idiom.
30836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30837         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30838         REPLACE_NANOSLEEP to 1.
30839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30840         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30841
30842 2010-04-03  Bruno Haible  <bruno@clisp.org>
30843
30844         strptime: Fix C++ test error on mingw.
30845         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30846         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30847         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30848         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30849         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30850         not REPLACE_STRPTIME.
30851         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30852         REPLACE_STRPTIME.
30853
30854 2010-04-03  Bruno Haible  <bruno@clisp.org>
30855
30856         timegm: Fix C++ test error on mingw.
30857         * lib/time.in.h (timegm): Use modern idiom.
30858         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30859         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30860         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30861         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30862
30863 2010-04-03  Bruno Haible  <bruno@clisp.org>
30864
30865         timegm: Assume declaration if function exists.
30866         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30867         if it exists. Don't clobber ac_cv_func_timegm.
30868
30869 2010-04-03  Bruno Haible  <bruno@clisp.org>
30870
30871         time_r: Fix C++ test error on mingw.
30872         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30873         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30874         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30875         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30876         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30877
30878 2010-04-03  Bruno Haible  <bruno@clisp.org>
30879
30880         time_r: Minor updates.
30881         * modules/time_r (Description): Mention the provided functions.
30882         * lib/time_r.c: Don't include <string.h>.
30883         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30884         * doc/posix-functions/localtime_r.texi: Likewise.
30885
30886 2010-04-03  Bruno Haible  <bruno@clisp.org>
30887
30888         time: Fix regression introduced on 2010-03-08.
30889         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30890         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30891
30892 2010-04-03  Jim Meyering  <meyering@redhat.com>
30893
30894         maint.mk: don't silently disable project-specific syntax-check rules
30895         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30896         that they need to convert their project-specific syntax-check rules
30897         to use the new _sc_search_regexp.
30898
30899 2010-04-03  Bruno Haible  <bruno@clisp.org>
30900
30901         fchdir: Fix regression introduced on 2010-03-08.
30902         * lib/unistd.in.h (fchdir): Fix declaration.
30903         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30905         REPLACE_FCHDIR.
30906         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30907         REPLACE_FCHDIR.
30908
30909 2010-04-03  Bruno Haible  <bruno@clisp.org>
30910
30911         getpagesize: Fix C++ test error on mingw.
30912         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30913         system does not declare the function.
30914         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30915         declared.
30916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30917         HAVE_DECL_GETPAGESIZE.
30918         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30919
30920 2010-04-03  Bruno Haible  <bruno@clisp.org>
30921
30922         stdio: Make C++ tests work on mingw.
30923         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30924         does not declare the function.
30925
30926 2010-04-03  Bruno Haible  <bruno@clisp.org>
30927
30928         ftello: Fix C++ test error on mingw.
30929         * lib/stdio.in.h (ftello): Use modern idiom.
30930         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30931         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30932         is missing and that it needs to be replaced.
30933         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30935         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30936
30937 2010-04-03  Bruno Haible  <bruno@clisp.org>
30938
30939         fseeko: Fix C++ test error on mingw.
30940         * lib/stdio.in.h (fseeko): Use modern idiom.
30941         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30942         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30943         is missing and that it needs to be replaced.
30944         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30946         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30947
30948 2010-04-03  Bruno Haible  <bruno@clisp.org>
30949
30950         mkstemp: Fix C++ test error on mingw.
30951         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30952         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30953         function is missing and that it needs to be replaced.
30954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30955         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30956
30957 2010-04-03  Bruno Haible  <bruno@clisp.org>
30958
30959         stpncpy: Fix C++ test error on mingw.
30960         * lib/string.in.h (stpncpy): Use modern idiom.
30961         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30962         function is missing and that it needs to be replaced.
30963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30964         REPLACE_STPNCPY.
30965         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30966
30967 2010-04-03  Bruno Haible  <bruno@clisp.org>
30968
30969         sys_stat: Fix C++ test error on mingw.
30970         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30971         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30972
30973 2010-04-03  Bruno Haible  <bruno@clisp.org>
30974
30975         pty: Update doc.
30976         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30977
30978 2010-04-03  Bruno Haible  <bruno@clisp.org>
30979
30980         unistd: Fix C++ test error on mingw.
30981         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30982
30983 2010-04-03  Bruno Haible  <bruno@clisp.org>
30984
30985         Update doc regarding mingw.
30986         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30987         * doc/glibc-functions/login_tty.texi: Likewise.
30988         * doc/glibc-functions/forkpty.texi: Likewise.
30989
30990 2010-04-03  Bruno Haible  <bruno@clisp.org>
30991
30992         stdlib: Avoid compilation failure of c-strtold on mingw.
30993         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30994
30995 2010-04-03  Bruno Haible  <bruno@clisp.org>
30996
30997         locale: Make C++ tests work on Cygwin and mingw.
30998         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30999         cannot provide the function.
31000         Reported by Simon Josefsson.
31001
31002 2010-04-03  Bruno Haible  <bruno@clisp.org>
31003
31004         localename: Port to MacOS X 10.6.
31005         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31006         memory layout of the locales in MacOS X 10.6 as well.
31007         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31008
31009 2010-04-02  Bruno Haible  <bruno@clisp.org>
31010
31011         gnulib-tool: Ensure that long-running tests are executed last.
31012         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31013         running tests after the one for the other tests.
31014
31015 2010-04-02  Bruno Haible  <bruno@clisp.org>
31016
31017         gnulib-tool: Ensure the tests in the main directory are executed first.
31018         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31019         start with the current directory.
31020
31021 2010-04-02  Bruno Haible  <bruno@clisp.org>
31022
31023         Tests for module 'havelib', moved here from GNU gettext.
31024         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31025         modifications.
31026         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31027         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31028         with modifications.
31029         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31030         modifications.
31031         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31032         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31033         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31034         with modifications.
31035         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31036         with modifications.
31037         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31038         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31039         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31040         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31041         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31042         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31043         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31044         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31045         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31046         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31047         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31048         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31049         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31050         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31051         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31052         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31053         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31054         with modifications.
31055         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31056         with modifications.
31057         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31058         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31059         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31060         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31061         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31062         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31063         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31064         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31065         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31066         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31067         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31068         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31069         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31070         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31071         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31072         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31073         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31074         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31075         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31076         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31077         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31078         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31079         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31080         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31081         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31082         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31083         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31084         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31085         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31086         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31087         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31088         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31089         * tests/havelib/rpathx/rpathx.c: New file, from
31090         gettext/autoconf-lib-link.
31091         * tests/havelib/rpathx/Makefile.am: New file, from
31092         gettext/autoconf-lib-link.
31093         * tests/havelib/rpathx/configure.ac: New file, from
31094         gettext/autoconf-lib-link with modifications.
31095         * tests/havelib/rpathy/rpathy.c: New file, from
31096         gettext/autoconf-lib-link.
31097         * tests/havelib/rpathy/Makefile.am: New file, from
31098         gettext/autoconf-lib-link.
31099         * tests/havelib/rpathy/configure.ac: New file, from
31100         gettext/autoconf-lib-link with modifications.
31101         * tests/havelib/rpathz/rpathz.c: New file, from
31102         gettext/autoconf-lib-link.
31103         * tests/havelib/rpathz/Makefile.am: New file, from
31104         gettext/autoconf-lib-link.
31105         * tests/havelib/rpathz/configure.ac: New file, from
31106         gettext/autoconf-lib-link with modifications.
31107         * tests/havelib/rpathlx/usex.c: New file, from
31108         gettext/autoconf-lib-link.
31109         * tests/havelib/rpathlx/Makefile.am: New file, from
31110         gettext/autoconf-lib-link.
31111         * tests/havelib/rpathlx/configure.ac: New file, from
31112         gettext/autoconf-lib-link with modifications.
31113         * tests/havelib/rpathly/usey.c: New file, from
31114         gettext/autoconf-lib-link.
31115         * tests/havelib/rpathly/Makefile.am: New file, from
31116         gettext/autoconf-lib-link.
31117         * tests/havelib/rpathly/configure.ac: New file, from
31118         gettext/autoconf-lib-link with modifications.
31119         * tests/havelib/rpathlz/usez.c: New file, from
31120         gettext/autoconf-lib-link.
31121         * tests/havelib/rpathlz/Makefile.am: New file, from
31122         gettext/autoconf-lib-link.
31123         * tests/havelib/rpathlz/configure.ac: New file, from
31124         gettext/autoconf-lib-link with modifications.
31125         * tests/havelib/rpathlyx/usey.c: New file, from
31126         gettext/autoconf-lib-link.
31127         * tests/havelib/rpathlyx/Makefile.am: New file, from
31128         gettext/autoconf-lib-link.
31129         * tests/havelib/rpathlyx/configure.ac: New file, from
31130         gettext/autoconf-lib-link with modifications.
31131         * tests/havelib/rpathlzyx/usez.c: New file, from
31132         gettext/autoconf-lib-link.
31133         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31134         gettext/autoconf-lib-link.
31135         * tests/havelib/rpathlzyx/configure.ac: New file, from
31136         gettext/autoconf-lib-link with modifications.
31137         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31138         with modifications.
31139
31140 2010-04-02  Bruno Haible  <bruno@clisp.org>
31141
31142         gnulib-tool: Create distributed built sources also for the tests.
31143         * gnulib-tool (func_create_testdir): Also generate distributed built
31144         sources in the tests directory.
31145
31146 2010-04-02  Bruno Haible  <bruno@clisp.org>
31147
31148         gnulib-tool: Obey user's environment variables.
31149         * gnulib-tool (func_create_testdir): When creating built sources,
31150         respect the environment variables for autoconf, automake, etc. given by
31151         the user.
31152
31153 2010-04-02  Bruno Haible  <bruno@clisp.org>
31154
31155         gnulib-tool: Provide the value of --m4-base to modules.
31156         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31157         of gl_m4_base.
31158
31159 2010-04-02  Eric Blake  <eblake@redhat.com>
31160
31161         maint.mk: fix some fallout
31162         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31163         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31164
31165 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31166
31167         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31168         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31169         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31170         (sc_cast_of_x_alloc_return_value): Likewise.
31171         (sc_cast_of_alloca_return_value): Likewise.
31172         (sc_space_tab): Likewise.
31173         (sc_prohibit_atoi_atof): Likewise.
31174         (sc_prohibit_magic_number_exit): Likewise.
31175         (sc_error_exit_success): Likewise.
31176         (sc_file_system): Likewise.
31177         (sc_prohibit_have_config_h): Likewise.
31178         (sc_require_config_h): Likewise.
31179         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31180         (sc_obsolete_symbols): Likewise.
31181         (sc_changelog): Likewise.
31182         (sc_program_name): Likewise.
31183         (sc_the_the): Likewise.
31184         (sc_trailing_blank): Likewise.
31185         (sc_two_space_separator_in_usage): Likewise.
31186         (sc_useless_cpp_parens): Likewise.
31187         (sc_GPL_version): Likewise.
31188         (sc_GFDL_version): Likewise.
31189         (sc_texinfo_acronym): Likewise.
31190         (sc_prohibit_cvs_keyword): Likewise.
31191         (sc_prohibit_stat_st_blocks): Likewise.
31192         (sc_prohibit_S_IS_definition): Likewise.
31193         (sc_redundant_const): Likewise.
31194         (sc_makefile_TAB_only_indentation): Likewise.
31195         (sc_m4_quote_check): Likewise.
31196         (sc_makefile_path_separator_check): Likewise.
31197         (sc_copyright_check): Likewise.
31198         (sc_Wundef_boolean): Likewise.
31199         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31200
31201         maint.mk: match 0 or more whitespace-before-function-call '('
31202         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31203         that have zero or two-and-more spaces between the function name
31204         and the open parenthesis.
31205         (sc_error_message_warn_fatal): Likewise.
31206         (sc_error_message_uppercase): Likewise.
31207         (sc_error_message_period): Likewise.
31208
31209 2010-03-31  Eric Blake  <eblake@redhat.com>
31210
31211         maint.mk: check for [ as well as test
31212         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31213         Based on a libvirt report by Matthias Bolte.
31214
31215         gnumakefile: don't squelch _version output
31216         * top/GNUmakefile (_version): Create one-shot dependency rather
31217         than using $(shell) when version must be regenerated.
31218         (_autoreconf): Run verbosely, by default.
31219
31220         sys_time: avoid compiler warnings
31221         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31222         unconditional, fixing regression from 2010-03-29.
31223         Reported by Simon Josefsson.
31224
31225 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31226
31227         maint.mk: s/_header_without_use/_sc_header_without_use/
31228         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31229         (sc_prohibit_assert_without_use): Use the new name.
31230         (sc_prohibit_close_stream_without_use): Likewise.
31231         (sc_prohibit_getopt_without_use): Likewise.
31232         (sc_prohibit_quotearg_without_use): Likewise.
31233         (sc_prohibit_quote_without_use): Likewise.
31234         (sc_prohibit_long_options_without_use): Likewise.
31235         (sc_prohibit_inttostr_without_use): Likewise.
31236         (sc_prohibit_ignore_value_without_use): Likewise.
31237         (sc_prohibit_error_without_use): Likewise.
31238         (sc_prohibit_xalloc_without_use): Likewise.
31239         (sc_prohibit_hash_without_use): Likewise.
31240         (sc_prohibit_hash_pjw_without_use): Likewise.
31241         (sc_prohibit_safe_read_without_use): Likewise.
31242         (sc_prohibit_argmatch_without_use): Likewise.
31243         (sc_prohibit_canonicalize_without_use): Likewise.
31244         (sc_prohibit_root_dev_ino_without_use): Likewise.
31245         (sc_prohibit_openat_without_use): Likewise.
31246         (sc_prohibit_c_ctype_without_use): Likewise.
31247         (sc_prohibit_signal_without_use): Likewise.
31248         (sc_prohibit_intprops_without_use): Likewise.
31249
31250 2010-03-30  Eric Blake  <eblake@redhat.com>
31251
31252         maint: improve module indicators
31253         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31254         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31255         columns, and avoid extra macro expansion.
31256
31257         fdopendir: work around FreeBSD bug
31258         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31259         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31260         * modules/dirent (Makefile.am): Substitute it.
31261         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31262         declaration.
31263         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31264         fix.
31265         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31266
31267 2010-03-29  Bruno Haible  <bruno@clisp.org>
31268
31269         Emit #pragma system_header after the inclusion guard, not before.
31270         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31271         guard that spans the entire file, not before. This enables an
31272         optimization in GCC's preprocessor.
31273         * lib/ctype.in.h: Likewise.
31274         * lib/dirent.in.h: Likewise.
31275         * lib/errno.in.h: Likewise.
31276         * lib/float.in.h: Likewise.
31277         * lib/getopt.in.h: Likewise.
31278         * lib/iconv.in.h: Likewise.
31279         * lib/langinfo.in.h: Likewise.
31280         * lib/locale.in.h: Likewise.
31281         * lib/math.in.h: Likewise.
31282         * lib/netdb.in.h: Likewise.
31283         * lib/netinet_in.in.h: Likewise.
31284         * lib/pty.in.h: Likewise.
31285         * lib/sched.in.h: Likewise.
31286         * lib/se-selinux.in.h: Likewise.
31287         * lib/search.in.h: Likewise.
31288         * lib/spawn.in.h: Likewise.
31289         * lib/stdarg.in.h: Likewise.
31290         * lib/stdint.in.h: Likewise.
31291         * lib/string.in.h: Likewise.
31292         * lib/strings.in.h: Likewise.
31293         * lib/sys_file.in.h: Likewise.
31294         * lib/sys_ioctl.in.h: Likewise.
31295         * lib/sys_time.in.h: Likewise.
31296         * lib/sys_times.in.h: Likewise.
31297         * lib/sys_utsname.in.h: Likewise.
31298         * lib/sys_wait.in.h: Likewise.
31299         * lib/sysexits.in.h: Likewise.
31300         * lib/wctype.in.h: Likewise.
31301
31302 2010-03-28  James Youngman  <jay@gnu.org>
31303
31304         save-cwd: don't leak a file descriptor when the caller execs.
31305         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31306         saved file descriptor.
31307         * modules/save-cwd (Depends-on): Depend on cloexec.
31308
31309 2010-03-29  Bruno Haible  <bruno@clisp.org>
31310
31311         Remove vestiges of fts-lgpl module.
31312         * lib/fts_.h: Assume GNULIB_FTS is 1.
31313         * lib/fts.c: Likewise.
31314         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31315
31316 2010-03-28  Bruno Haible  <bruno@clisp.org>
31317
31318         Fix definition of tests witness macro.
31319         * gnulib-tool (func_import): Fix definition of witness macro.
31320
31321 2010-03-28  Bruno Haible  <bruno@clisp.org>
31322
31323         Fix ioctl's protoype on glibc systems.
31324         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31325         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31326         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31327         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31328         signature. If not, arrange to replace the ioctl function.
31329         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31330         REPLACE_IOCTL.
31331         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31332         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31333         Reported by Ludovic Courtès <ludo@gnu.org>.
31334
31335 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31336
31337         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31338         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31339         made it so grep -r --include=GLOB* ... did not work.
31340
31341 2010-03-26  Jim Meyering  <meyering@redhat.com>
31342             Eric Blake  <eblake@redhat.com>
31343
31344         maint.mk: prohibit use of test's -o and -a operators
31345         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31346
31347 2010-03-28  Bruno Haible  <bruno@clisp.org>
31348
31349         Remove unused GNULIB_XYZ macro definitions.
31350         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31351         invocation.
31352
31353 2010-03-28  Bruno Haible  <bruno@clisp.org>
31354
31355         Mark privileged tests modules.
31356         * modules/idpriv-drop-tests (Status): New section.
31357         * modules/idpriv-droptemp-tests (Status): New section.
31358
31359 2010-03-28  Bruno Haible  <bruno@clisp.org>
31360
31361         Split C++ tests into separate tests modules.
31362         * modules/dirent-c++-tests: New file, extracted from
31363         modules/dirent-tests.
31364         * modules/dirent-tests: Depend on it.
31365         * modules/fcntl-h-c++-tests: New file, extracted from
31366         modules/fcntl-h-tests.
31367         * modules/fcntl-h-tests: Depend on it.
31368         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31369         * modules/glob-tests: Depend on it.
31370         * modules/iconv-h-c++-tests: New file, extracted from
31371         modules/iconv-h-tests.
31372         * modules/iconv-h-tests: Depend on it.
31373         * modules/langinfo-c++-tests: New file, extracted from
31374         modules/langinfo-tests.
31375         * modules/langinfo-tests: Depend on it.
31376         * modules/locale-c++-tests: New file, extracted from
31377         modules/locale-tests.
31378         * modules/locale-tests: Depend on it.
31379         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31380         * modules/math-tests: Depend on it.
31381         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31382         * modules/pty-tests: Depend on it.
31383         * modules/search-c++-tests: New file, extracted from
31384         modules/search-tests.
31385         * modules/search-tests: Depend on it.
31386         * modules/signal-c++-tests: New file, extracted from
31387         modules/signal-tests.
31388         * modules/signal-tests: Depend on it.
31389         * modules/spawn-c++-tests: New file, extracted from
31390         modules/spawn-tests.
31391         * modules/spawn-tests: Depend on it.
31392         * modules/stdio-c++-tests: New file, extracted from
31393         modules/stdio-tests.
31394         * modules/stdio-tests: Depend on it.
31395         * modules/stdlib-c++-tests: New file, extracted from
31396         modules/stdlib-tests.
31397         * modules/stdlib-tests: Depend on it.
31398         * modules/string-c++-tests: New file, extracted from
31399         modules/string-tests.
31400         * modules/string-tests: Depend on it.
31401         * modules/sys_ioctl-c++-tests: New file, extracted from
31402         modules/sys_ioctl-tests.
31403         * modules/sys_ioctl-tests: Depend on it.
31404         * modules/sys_select-c++-tests: New file, extracted from
31405         modules/sys_select-tests.
31406         * modules/sys_select-tests: Depend on it.
31407         * modules/sys_socket-c++-tests: New file, extracted from
31408         modules/sys_socket-tests.
31409         * modules/sys_socket-tests: Depend on it.
31410         * modules/sys_stat-c++-tests: New file, extracted from
31411         modules/sys_stat-tests.
31412         * modules/sys_stat-tests: Depend on it.
31413         * modules/sys_time-c++-tests: New file, extracted from
31414         modules/sys_time-tests.
31415         * modules/sys_time-tests: Depend on it.
31416         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31417         * modules/time-tests: Depend on it.
31418         * modules/unistd-c++-tests: New file, extracted from
31419         modules/unistd-tests.
31420         * modules/unistd-tests: Depend on it.
31421         * modules/wchar-c++-tests: New file, extracted from
31422         modules/wchar-tests.
31423         * modules/wchar-tests: Depend on it.
31424         * modules/wctype-c++-tests: New file, extracted from
31425         modules/wctype-tests.
31426         * modules/wctype-tests: Depend on it.
31427         Reported by Simon Josefsson.
31428
31429 2010-03-28  Bruno Haible  <bruno@clisp.org>
31430
31431         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31432         * gnulib-tool (func_exists_module): New function, extracted from
31433         func_verify_module.
31434         (func_verify_module): Use it.
31435         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31436         'foo' only if 'foo' exists.
31437         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31438         module.
31439
31440 2010-03-28  Bruno Haible  <bruno@clisp.org>
31441
31442         gnulib-tool: Add support for special categories of tests.
31443         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31444         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31445         (func_usage): Document them.
31446         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31447         inc_unportable_tests, inc_all_tests): New variables.
31448         (func_acceptable): Consider these variables.
31449         (func_modules_transitive_closure): Make it work when the 'Status' field
31450         consists of multiple words.
31451         (func_import): Store and restore the values of inc_cxx_tests,
31452         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31453         inc_all_tests in gnulib-comp.m4.
31454         (func_create_testdir): Set inc_all_tests to true.
31455         * doc/gnulib.texi (Extra tests modules): New section.
31456         Suggested by Jim Meyering.
31457
31458 2010-03-28  Bruno Haible  <bruno@clisp.org>
31459
31460         ansi-c++-opt: Allow turning off the C++ build by default.
31461         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31462         gl_CXX_CHOICE_DEFAULT_NO is defined.
31463         Requested by Eric Blake.
31464
31465 2010-03-28  Bruno Haible  <bruno@clisp.org>
31466
31467         unistd: Avoid #define replacements in C++ mode.
31468         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31469         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31470         setsockopt, shutdown, select): In C++, attach a warning to the function
31471         if possible, rather than #defining the symbol to a dysfunctional alias.
31472         Reported by John W. Eaton <jwe@gnu.org>.
31473
31474 2010-03-28  Bruno Haible  <bruno@clisp.org>
31475
31476         Fix link errors on mingw.
31477         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31478         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31479         $(LIBSOCKET).
31480         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31481         $(LIBSOCKET).
31482
31483 2010-03-28  Bruno Haible  <bruno@clisp.org>
31484             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31485
31486         lib-ignore: Determine different options for different compilers.
31487         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31488         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31489         Add comments.
31490         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31491         * NEWS: Mention the change.
31492
31493 2010-03-27  Bruno Haible  <bruno@clisp.org>
31494
31495         Remove unused GNULIB_XYZ macro definitions.
31496         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31497         * modules/fseek (configure.ac): Likewise.
31498         * modules/ioctl (configure.ac): Likewise.
31499         * modules/open (configure.ac): Likewise.
31500         * modules/stdlib-safer (configure.ac): Likewise.
31501
31502 2010-03-27  Bruno Haible  <bruno@clisp.org>
31503
31504         Add a remark about certain modules.
31505         * modules/malloc (Comment): New section.
31506         * modules/realloc (Comment): Likewise.
31507         * modules/sigpipe (Comment): Likewise.
31508
31509 2010-03-27  Bruno Haible  <bruno@clisp.org>
31510
31511         Resolve conflict between the two kinds of module indicators.
31512         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31513         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31514         * modules/canonicalize (configure.ac): Invoke
31515         gl_MODULE_INDICATOR_FOR_TESTS.
31516         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31517         GNULIB_XYZ.
31518         * tests/test-dirent-c++.cc: Likewise.
31519         * tests/test-dirent-safer.c: Likewise.
31520         * tests/test-dup2.c: Likewise.
31521         * tests/test-fchdir.c: Likewise.
31522         * tests/test-fcntl-h-c++.cc: Likewise.
31523         * tests/test-getopt.c: Likewise.
31524         * tests/test-getopt.h: Likewise.
31525         * tests/test-langinfo-c++.cc: Likewise.
31526         * tests/test-locale-c++.cc: Likewise.
31527         * tests/test-math-c++.cc: Likewise.
31528         * tests/test-pty-c++.cc: Likewise.
31529         * tests/test-search-c++.cc: Likewise.
31530         * tests/test-signal-c++.cc: Likewise.
31531         * tests/test-spawn-c++.cc: Likewise.
31532         * tests/test-stdio-c++.cc: Likewise.
31533         * tests/test-stdlib-c++.cc: Likewise.
31534         * tests/test-string-c++.cc: Likewise.
31535         * tests/test-sys_ioctl-c++.cc: Likewise.
31536         * tests/test-sys_select-c++.cc: Likewise.
31537         * tests/test-sys_socket-c++.cc: Likewise.
31538         * tests/test-sys_stat-c++.cc: Likewise.
31539         * tests/test-sys_time-c++.cc: Likewise.
31540         * tests/test-time-c++.cc: Likewise.
31541         * tests/test-unistd-c++.cc: Likewise.
31542         * tests/test-wchar-c++.cc: Likewise.
31543         * tests/uninorm/test-u8-nfc.c: Likewise.
31544         * tests/uninorm/test-u8-nfd.c: Likewise.
31545         * tests/uninorm/test-u8-nfkc.c: Likewise.
31546         * tests/uninorm/test-u8-nfkd.c: Likewise.
31547         * tests/uninorm/test-u16-nfc.c: Likewise.
31548         * tests/uninorm/test-u16-nfd.c: Likewise.
31549         * tests/uninorm/test-u16-nfkc.c: Likewise.
31550         * tests/uninorm/test-u16-nfkd.c: Likewise.
31551         * tests/uninorm/test-u32-nfc.c: Likewise.
31552         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31553         * tests/uninorm/test-u32-nfd.c: Likewise.
31554         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31555         * tests/uninorm/test-u32-nfkc.c: Likewise.
31556         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31557         * tests/uninorm/test-u32-nfkd.c: Likewise.
31558         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31559         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31560
31561 2010-03-27  Bruno Haible  <bruno@clisp.org>
31562
31563         Distinguish two kinds of module indicators.
31564         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31565         gl_MODULE_INDICATOR.
31566         (gl_MODULE_INDICATOR): New macro.
31567         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31568         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31569         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31570         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31571         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31572         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31573         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31574         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31575         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31576         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31577         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31578         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31579         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31580         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31581         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31582         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31583         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31584         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31585         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31586         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31587         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31588         * modules/cloexec (configure.ac): Likewise.
31589         * modules/getopt-gnu (configure.ac): Likewise.
31590         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31591         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31592         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31593         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31594
31595 2010-03-27  Bruno Haible  <bruno@clisp.org>
31596
31597         New module description field 'Comment'.
31598         * gnulib-tool: New option --extract-comment.
31599         (func_usage): Document it.
31600         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31601         (func_get_comment): New function.
31602         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31603
31604 2010-03-27  Bruno Haible  <bruno@clisp.org>
31605
31606         Addendum to 2010-02-07 commit.
31607         * gnulib-tool (func_usage): Document --extract-applicability option.
31608
31609 2010-03-27  Bruno Haible  <bruno@clisp.org>
31610
31611         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31612         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31613         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31614         rather than link errors.
31615
31616 2010-03-27  Bruno Haible  <bruno@clisp.org>
31617
31618         Avoid side effects from tests-related modules on the compilation of lib.
31619         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31620         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31621         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31622         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31623         macro.
31624         (func_import): Define a witness macro. Assign it a value that depends
31625         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31626         tests-related modules.
31627         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31628         Reported by Jim Meyering.
31629
31630 2010-03-27  Bruno Haible  <bruno@clisp.org>
31631
31632         Factorize common .m4 code.
31633         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31634         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31635         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31636         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31637         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31638         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31639         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31640         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31641         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31642         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31643         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31644         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31645         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31646         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31647         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31648         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31649         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31650         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31652         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31653         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31655         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31657         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31658         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31659         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31661         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31662         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31663         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31664         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31665
31666 2010-03-27  Bruno Haible  <bruno@clisp.org>
31667
31668         Fix a compilation error on Cygwin with g++ >= 4.3.
31669         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31670         if it is undefined or if we alias it to chmod.
31671         (lstat): Don't warn about the use of this function if it is undefined
31672         or if we alias it to stat.
31673         Reported by Simon Josefsson.
31674
31675 2010-03-27  Bruno Haible  <bruno@clisp.org>
31676
31677         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31678         * modules/getlogin (configure.ac): Update.
31679
31680         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31681         * modules/getlogin_r (configure.ac): Update.
31682
31683         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31685         * modules/inet_ntop (configure.ac): Update.
31686
31687         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31688         * modules/inet_pton (configure.ac): Update.
31689
31690         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31691         * modules/mbslen (configure.ac): Update.
31692
31693         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31694         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31695         * modules/forkpty (configure.ac): Update.
31696         * modules/openpty (configure.ac): Update.
31697
31698 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31699
31700         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31701         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31702
31703 2010-03-25  Eric Blake  <eblake@redhat.com>
31704
31705         maint: use pragma consistently across replacement headers
31706         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31707         * lib/dirent.in.h (system_header): Likewise.
31708         * lib/errno.in.h (system_header): Likewise.
31709         * lib/float.in.h (system_header): Likewise.
31710         * lib/getopt.in.h (system_header): Likewise.
31711         * lib/iconv.in.h (system_header): Likewise.
31712         * lib/inttypes.in.h (system_header): Likewise.
31713         * lib/langinfo.in.h (system_header): Likewise.
31714         * lib/locale.in.h (system_header): Likewise.
31715         * lib/math.in.h (system_header): Likewise.
31716         * lib/netdb.in.h (system_header): Likewise.
31717         * lib/netinet_in.in.h (system_header): Likewise.
31718         * lib/pty.in.h (system_header): Likewise.
31719         * lib/sched.in.h (system_header): Likewise.
31720         * lib/se-selinux.in.h (system_header): Likewise.
31721         * lib/search.in.h (system_header): Likewise.
31722         * lib/spawn.in.h (system_header): Likewise.
31723         * lib/stdarg.in.h (system_header): Likewise.
31724         * lib/stdint.in.h (system_header): Likewise.
31725         * lib/string.in.h (system_header): Likewise.
31726         * lib/strings.in.h (system_header): Likewise.
31727         * lib/sys_file.in.h (system_header): Likewise.
31728         * lib/sys_ioctl.in.h (system_header): Likewise.
31729         * lib/sys_socket.in.h (system_header): Likewise.
31730         * lib/sys_times.in.h (system_header): Likewise.
31731         * lib/sys_utsname.in.h (system_header): Likewise.
31732         * lib/sys_wait.in.h (system_header): Likewise.
31733         * lib/sysexits.in.h (system_header): Likewise.
31734         * lib/unistd.in.h (system_header): Likewise.
31735         * lib/wctype.in.h (system_header): Likewise.
31736
31737         arpa/inet: fix mingw compilation warning
31738         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31739         Reported by Matthew Bolte.
31740
31741 2010-03-25  Bruno Haible  <bruno@clisp.org>
31742
31743         Avoid collision between gnulib wrapper and libintl wrapper.
31744         * lib/printf.c (printf): Don't define if a printf wrapper is already
31745         defined in intl/printf.c.
31746         Reported by Michel Boaventura <michel@michelboaventura.com>.
31747
31748 2010-03-25  Bruno Haible  <bruno@clisp.org>
31749
31750         Use ANSI C.
31751         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31752
31753 2010-03-25  Bruno Haible  <bruno@clisp.org>
31754
31755         Minor formatting changes.
31756         * lib/acosl.c: Insert space before function argument list.
31757         * lib/argz.c: Likewise.
31758         * lib/asinl.c: Likewise.
31759         * lib/expl.c: Likewise.
31760         * lib/gen-uni-tables.c: Likewise.
31761         * lib/gettext.h: Likewise.
31762         * lib/glthread/lock.h: Likewise.
31763         * lib/tanl.c: Likewise.
31764         * lib/uniname/uniname.c: Likewise.
31765         * tests/test-idpriv-drop.c: Likewise.
31766         * tests/test-idpriv-droptemp.c: Likewise.
31767         * tests/test-lock.c: Likewise.
31768         * tests/test-tls.c: Likewise.
31769         * lib/argp-help.c: Insert space before function-like macro argument
31770         list.
31771         * lib/memcmp.c: Likewise.
31772         * tests/test-base64.c: Likewise.
31773         * lib/localename.c: Insert space before sizeof's argument list.
31774         * lib/safe-alloc.h: Likewise.
31775         * lib/file-set.h: Insert space before macro argument list.
31776         * tests/test-argp.c: Likewise.
31777         * lib/argp-namefrob.h: Insert space before function parameter list.
31778         * lib/getaddrinfo.c: Likewise.
31779         * lib/netdb.in.h: Likewise.
31780         * lib/parse-duration.h: Likewise.
31781         * lib/parse-duration.c: Likewise.
31782         * lib/poll.c: Likewise.
31783         * lib/select.c: Likewise.
31784         * lib/trim.h: Likewise.
31785         * tests/test-usleep.c: Likewise.
31786         * lib/ldexpl.c: Insert space before function parameter list and before
31787         function argument list.
31788         * lib/logl.c: Likewise.
31789         * lib/sqrtl.c: Likewise.
31790         * lib/trim.c: Likewise.
31791         * lib/cosl.c: Use GNU style indentation. Insert space before function
31792         argument list.
31793         * lib/sinl.c: Likewise.
31794         * lib/tsearch.c: Insert space after 'for'.
31795         Reported by Jim Meyering.
31796
31797 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31798
31799         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31800         config header before grepping, as it's not present before
31801         autoreconf/configure are run.  Reported by Simon Josefsson.
31802
31803 2010-03-23  Bruno Haible  <bruno@clisp.org>
31804
31805         pt_chown: Make it work with automake < 1.11.
31806         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31807         Reported by Simon Josefsson.
31808
31809 2010-03-23  Bruno Haible  <bruno@clisp.org>
31810
31811         pt_chown: Don't depend on GPLed modules.
31812         * lib/pt_chown.c: Don't include idpriv.h.
31813         (main): Don't drop privileges.
31814         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31815         Reported by Simon Josefsson.
31816
31817 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31818
31819         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31820         suggestions from karl@freefriends.org (Karl Berry).
31821
31822 2010-03-22  Eric Blake  <eblake@redhat.com>
31823
31824         gethostname: further tweaks
31825         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31826         are overriding gethostname.
31827         Suggested by Bruno Haible.
31828
31829 2010-03-21  Bruno Haible  <bruno@clisp.org>
31830
31831         Fix comments.
31832         * lib/forkpty.c (rpl_forkpty): Fix comment.
31833         * lib/openpty.c (rpl_openpty): Likewise.
31834         Reported by Eric Blake.
31835
31836 2010-03-22  Eric Blake  <eblake@redhat.com>
31837
31838         gethostname: fix build on mingw
31839         * lib/unistd.in.h (includes): Work around fact that mingw
31840         <winsock2.h> re-includes <unistd.h>, by avoiding any
31841         redeclarations if we are being included by <winsock2.h>.
31842         Reported by Matthias Bolte.
31843
31844 2010-03-21  Bruno Haible  <bruno@clisp.org>
31845
31846         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31847         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31848         modifications.
31849         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31850         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31851         provide the replacement.
31852         * modules/forkpty (Depends-on): Add openpty, login_tty.
31853         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31854         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31855         * doc/glibc-functions/forkpty.texi: More supported platforms.
31856         * config/srclist.txt: Add forkpty.c (commented).
31857
31858 2010-03-21  Bruno Haible  <bruno@clisp.org>
31859
31860         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31861         (Makefile.am): Verify that PTY_LIB is defined.
31862
31863         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31864
31865 2010-03-21  Bruno Haible  <bruno@clisp.org>
31866
31867         Tests for module 'login_tty'.
31868         * modules/login_tty-tests: New file.
31869         * tests/test-login_tty.c: New file.
31870
31871         New module 'login_tty'.
31872         * lib/login_tty.c: New file.
31873         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31874         * modules/login_tty: New file.
31875         * doc/glibc-functions/login_tty.texi: Mention the new module.
31876
31877 2010-03-21  Bruno Haible  <bruno@clisp.org>
31878
31879         login_tty: Documentation.
31880         * doc/glibc-functions/login_tty.texi: New file.
31881         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31882
31883 2010-03-21  Bruno Haible  <bruno@clisp.org>
31884
31885         pty: Consistent macro naming.
31886         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31887         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31888         * modules/pty (configure.ac): Update.
31889
31890 2010-03-21  Bruno Haible  <bruno@clisp.org>
31891
31892         Tests for openpty: Make stricter.
31893         * tests/test-openpty.c (main): Add test of canonical processing and
31894         erase.
31895         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31896
31897         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31898         * lib/openpty.c (openpty): New replacement function.
31899         * lib/pty.in.h: Include <termios.h>.
31900         (openpty): Update declaration. Add comments.
31901         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31902         is not declared, arrange to provide the replacement. Check for _getpty
31903         and posix_openpt.
31904         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31905         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31906         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31907         * modules/pty-tests (test_pty_c___LDADD): New variable.
31908         * doc/glibc-functions/openpty.texi: More supported platforms.
31909
31910 2010-03-21  Bruno Haible  <bruno@clisp.org>
31911
31912         setenv: Tweaks.
31913         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31914         the test program.
31915         * doc/posix-functions/setenv.texi: Update platforms list.
31916
31917 2010-03-21  Bruno Haible  <bruno@clisp.org>
31918
31919         New module 'unlockpt'.
31920         * lib/unlockpt.c: New file, from glibc with modifications.
31921         * m4/unlockpt.m4: New file.
31922         * modules/unlockpt: New file.
31923         * lib/stdlib.in.h (unlockpt): New declaration.
31924         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31925         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31926         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31927         HAVE_UNLOCKPT.
31928         * doc/posix-functions/unlockpt.texi: Mention the new module.
31929         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31930         * config/srclist.txt: Add unlockpt.c (commented).
31931
31932 2010-03-21  Jim Meyering  <meyering@redhat.com>
31933
31934         maint.mk: prohibit inclusion of "intprops.h" without use
31935         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31936
31937 2010-03-21  Bruno Haible  <bruno@clisp.org>
31938
31939         New module 'grantpt'.
31940         * lib/grantpt.c: New file, from glibc with modifications.
31941         * m4/grantpt.m4: New file.
31942         * modules/grantpt: New file.
31943         * lib/stdlib.in.h (grantpt): New declaration.
31944         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31945         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31946         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31947         HAVE_GRANTPT.
31948         * doc/posix-functions/grantpt.texi: Mention the new module.
31949         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31950         * config/srclist.txt: Add grantpt.c (commented).
31951
31952 2010-03-21  Bruno Haible  <bruno@clisp.org>
31953
31954         New module 'pt_chown'.
31955         * lib/pt_chown.c: New file, from glibc with modifications.
31956         * lib/pty-private.h: New file, from glibc with modifications.
31957         * modules/pt_chown: New file.
31958         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31959
31960 2010-03-21  Bruno Haible  <bruno@clisp.org>
31961
31962         Tests for module 'ptsname'.
31963         * modules/ptsname-tests: New file.
31964         * tests/test-ptsname.c: New file.
31965
31966         New module 'ptsname'.
31967         * lib/ptsname.c: New file, from glibc with modifications.
31968         * m4/ptsname.m4: New file.
31969         * modules/ptsname: New file.
31970         * lib/stdlib.in.h (ptsname): New declaration.
31971         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31972         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31973         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31974         HAVE_PTSNAME.
31975         * doc/posix-functions/ptsname.texi: Mention the new module.
31976         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31977         * config/srclist.txt: Add ptsname.c (commented).
31978
31979 2010-03-21  Bruno Haible  <bruno@clisp.org>
31980
31981         Tests for module 'ttyname_r'.
31982         * modules/ttyname_r-tests: New file.
31983         * tests/test-ttyname_r.c: New file.
31984
31985         New module 'ttyname_r'.
31986         * lib/ttyname_r.c: New file.
31987         * m4/ttyname_r.m4: New file.
31988         * modules/ttyname_r: New file.
31989         * lib/unistd.in.h (ttyname_r): New declaration.
31990         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31991         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31992         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31993         HAVE_TTYNAME_R.
31994         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31995         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31996
31997 2010-03-20  Bruno Haible  <bruno@clisp.org>
31998
31999         signal: Undefine macro definitions in C++ mode.
32000         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32001         sigfillset): Undefine macro definitions from the system header in C++
32002         mode.
32003         Reported by John W. Eaton <jwe@gnu.org>.
32004
32005 2010-03-20  Bruno Haible  <bruno@clisp.org>
32006
32007         Ensure no #include statements inside extern "C" { ... }.
32008         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32009         contain #include statements.
32010         * lib/time.in.h: Likewise.
32011
32012 2010-03-20  Bruno Haible  <bruno@clisp.org>
32013
32014         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32015         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32016         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32017         Reported by John W. Eaton <jwe@gnu.org>.
32018
32019 2010-03-20  Bruno Haible  <bruno@clisp.org>
32020
32021         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32022         Reported by Jim Meyering.
32023
32024 2010-03-20  Bruno Haible  <bruno@clisp.org>
32025
32026         pipe: Set errno upon failure.
32027         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32028         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32029         errno value in error message.
32030
32031 2010-03-20  Bruno Haible  <bruno@clisp.org>
32032             Jim Meyering  <meyering@redhat.com>
32033
32034         lchown: Avoid "unused variable" warning.
32035         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32036
32037 2010-03-20  Bruno Haible  <bruno@clisp.org>
32038
32039         Work around unlink() bug on MacOS X 10.5.6.
32040         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32041         attempting to unlink a parent directory.
32042         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32043         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32044         activate for the replacement function.
32045         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32046
32047 2010-03-20  Bruno Haible  <bruno@clisp.org>
32048
32049         Fix link errors on Solaris 8.
32050         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32051         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32052
32053 2010-03-19  Jim Meyering  <meyering@redhat.com>
32054
32055         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32056         The _LIBC implementation of build_range_exp correctly honors the
32057         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32058         However, the non-_LIBC implementation would ignore that syntax-bit
32059         flag and return REG_ERANGE unconditionally.
32060         This change makes it honor that flag.
32061         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32062         Make two pointer parameters "const".
32063         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32064         (parse_bracket_exp): Update caller.
32065
32066         regex.m4: correct the reversed range endpoint ([b-a]) test
32067         * m4/regex.m4: When requiring that [b-a] evoke failure,
32068         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32069         test pass once again for x86-based systems.
32070
32071 2010-03-19  Bruno Haible  <bruno@clisp.org>
32072
32073         scandir: Fix link error on Solaris 8.
32074         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32075         macros.
32076
32077 2010-03-19  Bruno Haible  <bruno@clisp.org>
32078
32079         getusershell: Fix documentation.
32080         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32081         module.
32082         * doc/glibc-functions/setusershell.texi: Likewise.
32083
32084         getusershell: Provide declaration, missing on Solaris 9.
32085         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32086         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32087         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32088         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32090         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32091         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32092         HAVE_GETUSERSHELL.
32093         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32094
32095 2010-03-19  Bruno Haible  <bruno@clisp.org>
32096
32097         wctype: Provide iswblank function.
32098         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32099         exists and is fine.
32100         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32101         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32102         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32103         * doc/posix-functions/iswblank.texi: Update.
32104
32105 2010-03-19  Bruno Haible  <bruno@clisp.org>
32106
32107         Tests of module 'pty' in C++ mode.
32108         * modules/pty-tests: New file.
32109         * tests/test-pty-c++.cc: New file.
32110         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32111
32112 2010-03-19  Eric Blake  <eblake@redhat.com>
32113
32114         logb: fix documentation
32115         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32116         1.5 declaration bug.
32117
32118         forkpty, openpty: prefer glibc's const-safe prototype
32119         * lib/forkpty.c (rpl_forkpty): New file.
32120         * lib/openpty.c (rpl_openpty): Likewise.
32121         * modules/forkpty (Files): Distribute it.
32122         * modules/openpty (Files): Likewise.
32123         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32124         check...
32125         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32126         replacement for for non-const BSD signature.
32127         * modules/pty (Makefile.am): Substitute witnesses.
32128         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32129         * tests/test-forkpty.c: Update signature check.
32130         * tests/test-openpty.c: Likewise.
32131         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32132         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32133
32134         forkpty, openpty: split functions into new modules
32135         * modules/pty (Makefile.am): Substitute new witnesses.
32136         (Libraries): Move library detection...
32137         * modules/forkpty: ...into new module.
32138         * modules/openpty: Another new module.
32139         * modules/pty-tests: Rename and split...
32140         * modules/forkpty-tests: ...to this...
32141         * modules/openpty-tests: ...and this.
32142         * tests/test-pty.c: Rename and split...
32143         * tests/test-forkpty.c: ...to this...
32144         * tests/test-openpty.c: ...and this.
32145         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32146         (gl_PTY): Split library searching...
32147         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32148         (gl_FORKPTY, gl_OPENPTY): New macros.
32149         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32150         * NEWS: Mention the split.
32151         * MODULES.html.sh (Misc): Document the modules.
32152         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32153         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32154
32155         pty: improve replacement header
32156         * lib/pty.in.h: New file.
32157         * modules/pty (Files): Ship it.
32158         (Makefile.am): Always build replacement.
32159         * m4/pty.m4: Rename...
32160         * m4/pty_h.m4: ...to this.
32161         (gl_PTY): Modernize setting of witness macros; update check of
32162         forkpty to take proper advantage of cache.
32163         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32164
32165         getopt: avoid compiler warning
32166         * lib/getopt.c (attribute_hidden): Remove unused macro.
32167
32168 2010-03-18  Bruno Haible  <bruno@clisp.org>
32169
32170         Fix link errors on Solaris 8.
32171         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32172         * modules/search-tests (test_search_c___LDADD): Likewise.
32173         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32174         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32175         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32176         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32177         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32178         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32179         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32180
32181 2010-03-18  Bruno Haible  <bruno@clisp.org>
32182
32183         Fix bug introduced on 2010-03-14.
32184         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32185         (gl_SPAWN_H): Require it.
32186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32187         Reported by Simon Josefsson.
32188
32189 2010-03-18  Bruno Haible  <bruno@clisp.org>
32190
32191         Fix typo introduced on 2009-12-31.
32192         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32193         posix_spawn_file_actions_adddup2.
32194
32195 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32196         and Eric Blake  <eblake@redhat.com>
32197
32198         test-vc-list-files-git: make more robust
32199         * tests/test-vc-list-files-git.sh: Unset problematic environment
32200         variables.  Chain commands together.
32201
32202 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32203
32204         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32205         `AC_CHECK_DECL' invocation.
32206
32207 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32208
32209         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32210         appears before executable statements. Suggested by Petr Sumbera
32211         <Petr.Sumbera@Sun.COM>.
32212
32213 2010-03-14  Bruno Haible  <bruno@clisp.org>
32214
32215         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32216         portability problems. Instead use a simpler test.
32217         (main): Check that invalid arguments are rejected only on Linux.
32218
32219 2010-03-14  Bruno Haible  <bruno@clisp.org>
32220
32221         Fix bug introduced on 2009-12-31.
32222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32223         gl_PREREQ_SYS_H_WINSOCK2 always.
32224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32225         SYS_SOCKET_H variable.
32226         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32227         Update comments.
32228         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32229         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32230         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32231         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32232         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32233
32234 2010-03-14  Bruno Haible  <bruno@clisp.org>
32235
32236         Fix values returned by sinl, cosl.
32237         * lib/trigl.h: Add specification comments.
32238         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32239         that combines the values from the precomputed table with the values of
32240         the Chebyshev polynomials.
32241
32242 2010-03-14  Bruno Haible  <bruno@clisp.org>
32243
32244         Fix compilation error when modules 'posix_spawn[p]' are not used.
32245         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32246         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32247
32248 2010-03-14  Bruno Haible  <bruno@clisp.org>
32249
32250         Fix compilation error on mingw when module 'time_r' is not used.
32251         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32252         is 1.
32253         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32254         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32255         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32256         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32257
32258 2010-03-14  Bruno Haible  <bruno@clisp.org>
32259
32260         Fix compilation error with Sun C.
32261         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32262         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32263         instead of GCC specific ULONG_LONG_MAX.
32264         * lib/xstrtoll.c: Likewise.
32265         * lib/xstrtoull.c: Likewise.
32266
32267 2010-03-13  Bruno Haible  <bruno@clisp.org>
32268
32269         Allow the user to disable C++ code and tests.
32270         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32271         (gl_PROG_ANSI_CXX): Require it.
32272
32273 2010-03-13  Bruno Haible  <bruno@clisp.org>
32274
32275         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32276         cases.
32277
32278 2010-03-13  Bruno Haible  <bruno@clisp.org>
32279
32280         Test that gnulib does not break the standard C++ headers.
32281         * tests/test-locale-c++2.cc: New file.
32282         * modules/locale-tests (Files): Add it.
32283         (Makefile.am): Compile it for test-locale-c++.
32284         * tests/test-math-c++2.cc: New file.
32285         * modules/math-tests (Files): Add it.
32286         (Makefile.am): Compile it for test-math-c++.
32287         * tests/test-signal-c++2.cc: New file.
32288         * modules/signal-tests (Files): Add it.
32289         (Makefile.am): Compile it for test-signal-c++.
32290         * tests/test-stdio-c++2.cc: New file.
32291         * modules/stdio-tests (Files): Add it.
32292         (Makefile.am): Compile it for test-stdio-c++.
32293         * tests/test-stdlib-c++2.cc: New file.
32294         * modules/stdlib-tests (Files): Add it.
32295         (Makefile.am): Compile it for test-stdlib-c++.
32296         * tests/test-string-c++2.cc: New file.
32297         * modules/string-tests (Files): Add it.
32298         (Makefile.am): Compile it for test-string-c++.
32299         * tests/test-time-c++2.cc: New file.
32300         * modules/time-tests (Files): Add it.
32301         (Makefile.am): Compile it for test-time-c++.
32302         Reported by John W. Eaton <jwe@gnu.org>.
32303
32304 2010-03-13  Bruno Haible  <bruno@clisp.org>
32305
32306         * gnulib-tool (func_usage): Clarify which options are available for
32307         --create-testdir and --create-megatestdir.
32308
32309 2010-03-13  Bruno Haible  <bruno@clisp.org>
32310
32311         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32312         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32313         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32314         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32315         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32316         when appropriate.
32317         Reported by Jim Meyering.
32318
32319 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32320
32321         * gnulib-tool (func_import): Explain origin of code.
32322
32323 2010-03-12  Bruno Haible  <bruno@clisp.org>
32324
32325         Fix problem with automake's definition of CXXLINK.
32326         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32327         Reported by Simon Josefsson and Ludovic Courtès.
32328
32329 2010-03-12  Bruno Haible  <bruno@clisp.org>
32330
32331         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32332         stable releases.
32333
32334 2010-03-11  Bruno Haible  <bruno@clisp.org>
32335
32336         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32337         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32338         whether the system provides one variant or multiple variants of the
32339         function.
32340         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32341         C++ compilers.
32342         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32343         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32344         Reported by Jim Meyering.
32345
32346 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32347
32348         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32349
32350 2010-03-08  Bruno Haible  <bruno@clisp.org>
32351
32352         gnulib-tool: Add support for --libtool in --create-testdir.
32353         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32354         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32355
32356 2010-03-08  Eric Blake  <eblake@redhat.com>
32357
32358         gnulib-tool.texi: mention possibility of git submodule
32359         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32360         submodules.
32361         * doc/.gitignore: Ignore another generated file.
32362
32363 2010-03-08  Karl Berry  <karl@gnu.org>
32364
32365         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32366         of committing gnulib files while skipping others.
32367
32368 2010-03-07  Bruno Haible  <bruno@clisp.org>
32369
32370         Tests of module 'wctype' in C++ mode.
32371         * tests/test-wctype-c++.cc: New file.
32372         * modules/wctype-tests (Files): Add it and tests/signature.h.
32373         (Depends-on): Add ansi-c++-opt.
32374         (Makefile.am): Arrange to compile and run test-wctype-c++.
32375
32376         Tests of module 'wchar' in C++ mode.
32377         * tests/test-wchar-c++.cc: New file.
32378         * modules/wchar-tests (Files): Add it and tests/signature.h.
32379         (Depends-on): Add ansi-c++-opt.
32380         (Makefile.am): Arrange to compile and run test-wchar-c++.
32381         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32382         gl_MODULE_INDICATOR.
32383
32384         Tests of module 'unistd' in C++ mode.
32385         * tests/test-unistd-c++.cc: New file.
32386         * modules/unistd-tests (Files): Add it and tests/signature.h.
32387         (Depends-on): Add ansi-c++-opt.
32388         (Makefile.am): Arrange to compile and run test-unistd-c++.
32389         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32390         gl_MODULE_INDICATOR.
32391
32392         Tests of module 'time' in C++ mode.
32393         * tests/test-time-c++.cc: New file.
32394         * modules/time-tests (Files): Add it and tests/signature.h.
32395         (Depends-on): Add ansi-c++-opt.
32396         (Makefile.am): Arrange to compile and run test-time-c++.
32397         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32398
32399         Tests of module 'sys_time' in C++ mode.
32400         * tests/test-sys_time-c++.cc: New file.
32401         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32402         (Depends-on): Add ansi-c++-opt.
32403         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32404         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32405         gl_MODULE_INDICATOR.
32406
32407         Tests of module 'sys_stat' in C++ mode.
32408         * tests/test-sys_stat-c++.cc: New file.
32409         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32410         (Depends-on): Add ansi-c++-opt.
32411         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32412         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32413         gl_MODULE_INDICATOR.
32414
32415         Tests of module 'sys_socket' in C++ mode.
32416         * tests/test-sys_socket-c++.cc: New file.
32417         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32418         (Depends-on): Add ansi-c++-opt.
32419         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32420         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32421         gl_MODULE_INDICATOR.
32422
32423         Tests of module 'sys_select' in C++ mode.
32424         * tests/test-sys_select-c++.cc: New file.
32425         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32426         (Depends-on): Add ansi-c++-opt.
32427         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32428         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32429         gl_MODULE_INDICATOR.
32430
32431         Tests of module 'sys_ioctl' in C++ mode.
32432         * tests/test-sys_ioctl-c++.cc: New file.
32433         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32434         (Depends-on): Add ansi-c++-opt.
32435         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32436         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32437         gl_MODULE_INDICATOR.
32438
32439         Tests of module 'string' in C++ mode.
32440         * tests/test-string-c++.cc: New file.
32441         * modules/string-tests (Files): Add it and tests/signature.h.
32442         (Depends-on): Add ansi-c++-opt.
32443         (Makefile.am): Arrange to compile and run test-string-c++.
32444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32445         gl_MODULE_INDICATOR.
32446
32447         Tests of module 'stdlib' in C++ mode.
32448         * tests/test-stdlib-c++.cc: New file.
32449         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32450         (Depends-on): Add ansi-c++-opt.
32451         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32452         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32453         gl_MODULE_INDICATOR.
32454
32455         Tests of module 'stdio' in C++ mode.
32456         * tests/test-stdio-c++.cc: New file.
32457         * modules/stdio-tests (Files): Add it and tests/signature.h.
32458         (Depends-on): Add ansi-c++-opt.
32459         (Makefile.am): Arrange to compile and run test-stdio-c++.
32460         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32461         gl_MODULE_INDICATOR.
32462
32463         Tests of module 'spawn' in C++ mode.
32464         * tests/test-spawn-c++.cc: New file.
32465         * modules/spawn-tests (Files): Add it and tests/signature.h.
32466         (Depends-on): Add ansi-c++-opt.
32467         (Makefile.am): Arrange to compile and run test-spawn-c++.
32468         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32469         gl_MODULE_INDICATOR.
32470
32471         Tests of module 'signal' in C++ mode.
32472         * tests/test-signal-c++.cc: New file.
32473         * modules/signal-tests (Files): Add it and tests/signature.h.
32474         (Depends-on): Add ansi-c++-opt.
32475         (Makefile.am): Arrange to compile and run test-signal-c++.
32476         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32477         gl_MODULE_INDICATOR.
32478
32479         Tests of module 'search' in C++ mode.
32480         * tests/test-search-c++.cc: New file.
32481         * modules/search-tests (Files): Add it and tests/signature.h.
32482         (Depends-on): Add ansi-c++-opt.
32483         (Makefile.am): Arrange to compile and run test-search-c++.
32484         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32485         gl_MODULE_INDICATOR.
32486
32487         Tests of module 'math' in C++ mode.
32488         * tests/test-math-c++.cc: New file.
32489         * modules/math-tests (Files): Add it and tests/signature.h.
32490         (Depends-on): Add ansi-c++-opt.
32491         (Makefile.am): Arrange to compile and run test-math-c++.
32492         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32493
32494         Tests of module 'locale' in C++ mode.
32495         * tests/test-locale-c++.cc: New file.
32496         * modules/locale-tests (Files): Add it and tests/signature.h.
32497         (Depends-on): Add ansi-c++-opt.
32498         (Makefile.am): Arrange to compile and run test-locale-c++.
32499         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32500         gl_MODULE_INDICATOR.
32501
32502         Tests of module 'langinfo' in C++ mode.
32503         * tests/test-langinfo-c++.cc: New file.
32504         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32505         (Depends-on): Add ansi-c++-opt.
32506         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32507         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32508         gl_MODULE_INDICATOR.
32509
32510         Tests of module 'iconv-h' in C++ mode.
32511         * tests/test-iconv-h-c++.cc: New file.
32512         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32513         (Depends-on): Add ansi-c++-opt.
32514         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32515
32516         Tests of module 'glob' in C++ mode.
32517         * tests/test-glob-c++.cc: New file.
32518         * modules/glob-tests (Files): Add it.
32519         (Depends-on): Add ansi-c++-opt.
32520         (Makefile.am): Arrange to compile and run test-glob-c++.
32521
32522         Tests of module 'fcntl-h' in C++ mode.
32523         * tests/test-fcntl-h-c++.cc: New file.
32524         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32525         (Depends-on): Add ansi-c++-opt.
32526         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32527         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32528         gl_MODULE_INDICATOR.
32529
32530         Tests of module 'dirent' in C++ mode.
32531         * tests/test-dirent-c++.cc: New file.
32532         * modules/dirent-tests (Files): Add it and tests/signature.h.
32533         (Depends-on): Add ansi-c++-opt.
32534         (Makefile.am): Arrange to compile and run test-dirent-c++.
32535         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32536         gl_MODULE_INDICATOR.
32537
32538         New module 'ansi-c++-opt'.
32539         * modules/ansi-c++-opt: New file.
32540         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32541
32542         Document C++ namespace mode.
32543         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32544
32545         wctype: Avoid #define replacements in C++ mode.
32546         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32547         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32548         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32549         In C++, define a namespaced alias symbol.
32550         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32551         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32552         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32553         rule.
32554
32555         wchar: Avoid #define replacements in C++ mode.
32556         * lib/wchar.in.h: Include c++defs.h.
32557         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32558         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32559         symbol.
32560         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32561         * modules/wchar (Depends-on): Add c++defs.
32562         (Makefile.am): Update wchar.h rule.
32563
32564         unistd: Avoid #define replacements in C++ mode.
32565         * lib/unistd.in.h: Include c++defs.h.
32566         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32567         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32568         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32569         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32570         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32571         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32572         symbol.
32573         (environ): Update.
32574         * modules/unistd (Depends-on): Add c++defs.
32575         (Makefile.am): Update unistd.h rule.
32576
32577         time: Avoid #define replacements in C++ mode.
32578         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32579         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32580         define a namespaced alias symbol.
32581         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32582         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32583         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32584         * modules/time (Depends-on): Add c++defs, warn-on-use.
32585         (Makefile.am): Update time.h rule.
32586         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32587         * modules/nanosleep (configure.ac): Likewise.
32588         * modules/strptime (configure.ac): Likewise.
32589         * modules/timegm (configure.ac): Likewise.
32590
32591         sys_time: Avoid #define replacements in C++ mode.
32592         * lib/sys_time.in.h: Include c++defs.h.
32593         (gettimeofday): In C++, define a namespaced alias symbol.
32594         * modules/sys_time (Depends-on): Add c++defs.
32595         (Makefile.am): Update sys/time.h rule.
32596
32597         sys_stat: Avoid #define replacements in C++ mode.
32598         * lib/sys_stat.in.h: Include c++defs.h.
32599         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32600         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32601         namespaced alias symbol.
32602         In C++, define a namespaced alias symbol.
32603         * modules/sys_stat (Depends-on): Add c++defs.
32604         (Makefile.am): Update sys/stat.h rule.
32605
32606         sys_socket: Avoid #define replacements in C++ mode.
32607         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32608         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32609         definitions also when the system has a <sys/socket.h>.
32610         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32611         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32612         In C++, define a namespaced alias symbol.
32613         * modules/sys_socket (Depends-on): Add c++defs.
32614         (Makefile.am): Update sys/socket.h rule.
32615
32616         sys_select: Avoid #define replacements in C++ mode.
32617         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32618         definitions also when the system has a <sys/select.h>.
32619         (select): In C++, define a namespaced alias symbol.
32620         * modules/sys_select (Depends-on): Add c++defs.
32621         (Makefile.am): Update sys/select.h rule.
32622
32623         sys_ioctl: Avoid #define replacements in C++ mode.
32624         * lib/sys_ioctl.in.h: Include c++defs.h.
32625         (ioctl): In C++, define a namespaced alias symbol.
32626         * modules/sys_ioctl (Depends-on): Add c++defs.
32627         (Makefile.am): Update sys/ioctl.h rule.
32628
32629         string: Avoid #define replacements in C++ mode.
32630         * lib/string.in.h: Include c++defs.h.
32631         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32632         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32633         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32634         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32635         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32636         * modules/string (Depends-on): Add c++defs.
32637         (Makefile.am): Update string.h rule.
32638
32639         stdlib: Avoid #define replacements in C++ mode.
32640         * lib/stdlib.in.h: Include c++defs.h.
32641         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32642         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32643         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32644         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32645         symbol.
32646         * modules/stdlib (Depends-on): Add c++defs.
32647         (Makefile.am): Update stdlib.h rule.
32648
32649         stdio: Avoid #define replacements in C++ mode.
32650         * lib/stdio.in.h: Include c++defs.h.
32651         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32652         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32653         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32654         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32655         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32656         namespaced alias symbol.
32657         * modules/stdio (Depends-on): Add c++defs.
32658         (Makefile.am): Update stdio.h rule.
32659
32660         spawn: Avoid #define replacements in C++ mode.
32661         * lib/spawn.in.h: Include c++defs.h.
32662         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32663         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32664         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32665         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32666         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32667         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32668         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32669         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32670         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32671         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32672         In C++, define a namespaced alias symbol.
32673         * modules/spawn (Depends-on): Add c++defs.
32674         (Makefile.am): Update spawn.h rule.
32675
32676         signal: Avoid #define replacements in C++ mode.
32677         * lib/signal.in.h: Include c++defs.h.
32678         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32679         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32680         namespaced alias symbol.
32681         * modules/signal (Depends-on): Add c++defs.
32682         (Makefile.am): Update signal.h rule.
32683
32684         search: Avoid #define replacements in C++ mode.
32685         * lib/search.in.h: Include c++defs.h.
32686         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32687         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32688         symbol.
32689         * modules/search (Depends-on): Add c++defs.
32690         (Makefile.am): Update search.h rule.
32691
32692         math: Avoid #define replacements in C++ mode.
32693         * lib/math.in.h: Include c++defs.h.
32694         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32695         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32696         trunc, truncl): In C++, define a namespaced alias symbol.
32697         * modules/math (Depends-on): Add c++defs.
32698         (Makefile.am): Update math.h rule.
32699
32700         locale: Avoid #define replacements in C++ mode.
32701         * lib/locale.in.h: Include c++defs.h.
32702         (duplocale): In C++, define a namespaced alias symbol.
32703         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32704         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32705         * modules/locale (Depends-on): Add c++defs.
32706         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32707
32708         langinfo: Avoid #define replacements in C++ mode.
32709         * lib/langinfo.in.h: Include c++defs.h.
32710         (nl_langinfo): In C++, define a namespaced alias symbol.
32711         * modules/langinfo (Depends-on): Add c++defs.
32712         (Makefile.am): Update langinfo.h rule.
32713
32714         iconv-h: Avoid #define replacements in C++ mode.
32715         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32716         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32717         symbol.
32718         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32719         whenever iconv is present.
32720         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32721         (Makefile.am): Update iconv.h rule.
32722
32723         glob: Avoid #define replacements in C++ mode.
32724         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32725         (_gl_glob_errfunc_fn): New type.
32726         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32727         symbol.
32728         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32729         (Makefile.am): Update glob.h rule.
32730
32731         fcntl-h: Avoid #define replacements in C++ mode.
32732         * lib/fcntl.in.h: Include c++defs.h.
32733         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32734         * modules/fcntl-h (Depends-on): Add c++defs.
32735         (Makefile.am): Update fcntl.h rule.
32736
32737         dirent: Avoid #define replacements in C++ mode.
32738         * lib/dirent.in.h: Include c++defs.h.
32739         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32740         namespaced alias symbol.
32741         (dirfd): Update declaration.
32742         * modules/dirent (Depends-on): Add c++defs.
32743         (Makefile.am): Update dirent.h rule.
32744
32745         ctype: Make it usable in C++ code.
32746         * lib/ctype.in.h: Include c++defs.h.
32747         (isblank): Declare as extern "C".
32748         * modules/ctype (Depends-on): Add c++defs.
32749         (Makefile.am): Update ctype.h rule.
32750
32751         New module 'c++defs'.
32752         * modules/c++defs: New file.
32753         * build-aux/c++defs.h: New file.
32754         Reported by John W. Eaton <jwe@gnu.org>.
32755
32756 2010-03-07  Bruno Haible  <bruno@clisp.org>
32757
32758         logb: Provide missing declaration for Cygwin.
32759         * lib/math.in.h (logb): New declaration.
32760         * m4/logb.m4: New file.
32761         * modules/logb (Files): Add m4/logb.m4.
32762         (Depends-on): Add math.
32763         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32764         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32766         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32767         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32768
32769 2010-03-07  Bruno Haible  <bruno@clisp.org>
32770
32771         Fix test-cond link error.
32772         * tests/test-cond.c: Include <stdio.h>.
32773
32774 2010-03-07  Bruno Haible  <bruno@clisp.org>
32775
32776         Fix test-dirent-safer link error.
32777         * modules/dirent-safer-tests (Makefile.am): Define
32778         test_dirent_safer_LDADD.
32779
32780 2010-03-07  Bruno Haible  <bruno@clisp.org>
32781
32782         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32783         among default module list.
32784
32785 2010-03-07  Bruno Haible  <bruno@clisp.org>
32786
32787         Fix link error on platforms with GNU libiconv.
32788         * modules/unistr/u8-strcoll-tests (Makefile): Define
32789         test_u8_strcoll_LDADD.
32790         * modules/unistr/u16-strcoll-tests (Makefile): Define
32791         test_u16_strcoll_LDADD.
32792         * modules/unistr/u32-strcoll-tests (Makefile): Define
32793         test_u32_strcoll_LDADD.
32794
32795 2010-03-07  Bruno Haible  <bruno@clisp.org>
32796
32797         Use POSIX declarations for socket functions.
32798         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32799         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32800         rpl_sendto): Change declaration to match POSIX.
32801         * lib/connect.c (rpl_connect): Likewise.
32802         * lib/accept.c (rpl_accept): Likewise.
32803         * lib/bind.c (rpl_bind): Likewise.
32804         * lib/getpeername.c (rpl_getpeername): Likewise.
32805         * lib/getsockname.c (rpl_getsockname): Likewise.
32806         * lib/recv.c (rpl_recv): Likewise.
32807         * lib/send.c (rpl_send): Likewise.
32808         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32809         * lib/sendto.c (rpl_sendto): Likewise.
32810
32811 2010-03-06  Bruno Haible  <bruno@clisp.org>
32812
32813         Clarify access, euidaccess, faccessat.
32814         * doc/posix-functions/faccessat.texi: Mention security problem under
32815         "Other problems", not "Portability problems".
32816         * doc/posix-functions/access.texi: Likewise. Mention a related security
32817         problem.
32818         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32819         * lib/euidaccess.c: Add comments about platforms.
32820         * lib/unistd.in.h (access, euidaccess): Add warnings.
32821
32822 2010-03-07  Bruno Haible  <bruno@clisp.org>
32823
32824         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32825         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32826         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32827         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32828         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32829         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32830         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32831         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32832         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32834         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32835         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32836         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32837         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32838         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32839         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32840         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32841         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32842         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32843         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32844         Likewise.
32845         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32846         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32847         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32848         Likewise.
32849         * tests/test-spawn.c (main): Make it work when
32850         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32851
32852 2010-03-07  Bruno Haible  <bruno@clisp.org>
32853
32854         Fix incorrect Makefile.am generation in German locale.
32855         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32856         Execute sed command with character range in C locale.
32857
32858 2010-03-06  Bruno Haible  <bruno@clisp.org>
32859
32860         Tests for module 'iconv-h'.
32861         * modules/iconv-h-tests: New file.
32862         * tests/test-iconv-h.c: New file.
32863
32864         New module 'iconv-h'.
32865         * modules/iconv-h: New file.
32866         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32867         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32868         (configure.ac): Remove gl_ICONV_H.
32869         (Makefile.am): Remove rule for iconv.h.
32870
32871 2010-03-06  Bruno Haible  <bruno@clisp.org>
32872
32873         More consistent naming of *.m4 files.
32874         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32875         * modules/wctype (Files): Update.
32876
32877         More consistent naming of *.m4 files.
32878         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32879         * modules/wchar (Files): Update.
32880
32881 2010-03-06  Jim Meyering  <meyering@redhat.com>
32882
32883         euidaccess: relax license to LGPLv2+
32884         * modules/euidaccess (License): Relax to LGPLv2+.
32885
32886 2010-03-06  Bruno Haible  <bruno@clisp.org>
32887
32888         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32889         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32890         (Makefile.am): Augment lib_SOURCES instead.
32891
32892 2010-03-04  Jim Meyering  <meyering@redhat.com>
32893
32894         utime: remove obsolete module
32895         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32896         unnecessary for years, and has been marked as obsolete for 10 months.
32897         * modules/utime: Remove file.
32898         * lib/utime.c: Remove file.
32899         * m4/utime.m4: Remove file.
32900         * m4/utimes-null.m4: Remove file.
32901         * doc/posix-functions/utime.texi (utime): Remove reference to
32902         the module.  Move the sole "fixed by gnulib" item into the
32903         "problems not fixed by Gnulib" list.
32904         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32905
32906 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32907
32908         * modules/exit (License): Relax license to LGPLv2+.
32909         (Status): Mark as obsolete.
32910         * NEWS: Mention deprecated 'exit' module.
32911         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32912         of now obsolete 'exit'.
32913
32914 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32915
32916         fts-lgpl: remove unused module
32917         * modules/fts-lgpl: Remove.
32918         * MODULES.html.sh (func_all_modules): Adjust.
32919         * check-module (find_included_lib_files): Adjust.
32920         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32921
32922 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32923
32924         copy-acl: enhance Solaris ACL error handling
32925         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32926         * lib/set-mode-acl.c (qset_acl): Likewise.
32927
32928 2010-03-02  Bruno Haible  <bruno@clisp.org>
32929
32930         spawn: Don't override the system defined values on FreeBSD 8.
32931         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32932         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32933         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32934         if HAVE_POSIX_SPAWN is 1.
32935         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32936
32937 2010-03-01  Bruno Haible  <bruno@clisp.org>
32938
32939         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32940         regarding Automake.
32941
32942 2010-02-25  Bruno Haible  <bruno@clisp.org>
32943
32944         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32945         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32946         setting, not afterwards.
32947         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32948
32949 2010-02-24  Eric Blake  <eblake@redhat.com>
32950
32951         bootstrap, git-version-gen: use timestamp
32952         * build-aux/git-version-gen (scriptversion): Force UTC.
32953         * build-aux/bootstrap (scriptversion): New variable.
32954
32955         bootstrap: allow older git
32956         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32957         older than 1.6.4.  Requested by the libvirt project.
32958
32959 2010-02-23  Eric Blake  <eblake@redhat.com>
32960
32961         warn-on-use: work with old autoconf
32962         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32963         AS_VAR semantics of autoconf 2.60.
32964         Reported by Bruno Haible.
32965
32966         bootstrap: improve some comments
32967         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32968         clarification comments.
32969
32970         gettimeofday: provide correct function
32971         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32972         when replacement is declared, otherwise provide gettimeofday.
32973         Reported by Michael Goffioul.
32974
32975 2010-02-23  Jim Meyering  <meyering@redhat.com>
32976
32977         lib-ignore: relax license to "unlimited", not LGPLv2+
32978         * modules/lib-ignore (License): Relax to "unlimited".
32979
32980 2010-02-23  Jim Meyering  <meyering@redhat.com>
32981
32982         lib-ignore: relax license to LGPLv2+
32983         * modules/lib-ignore (License): Relax to LGPLv2+.
32984
32985 2010-02-22  Eric Blake  <eblake@redhat.com>
32986
32987         lseek: avoid bash 3.2 broken pipe bug
32988         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32989         warning from bash 3.2.
32990         Reported by Ben Pfaff, with analysis from Bruno Haible.
32991
32992         bootstrap: support non-FSF copyright holder
32993         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32994         bootstrap.conf override of COPYRIGHT_HOLDER.
32995         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32996
32997         bootstrap: interoperate with gettext 0.14.1
32998         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32999
33000         bootstrap: allow for alternate submodule location
33001         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33002         hardcoding submodule location.
33003         (gnulib_mk): Allow direct use of Makefile.am.
33004
33005         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33006         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33007         rather than reconfiguring where the submodule points.
33008
33009         gettimeofday: restore support for platforms that lack function
33010         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33011         replacement if function is missing.
33012         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33013         * modules/sys_time (Makefile.am): Substitute it.
33014         * lib/sys_time.in.h (gettimeofday): Check it.
33015         Reported by Michael Goffioul.
33016
33017 2010-02-21  Bruno Haible  <bruno@clisp.org>
33018
33019         * lib/stdio.in.h (obstack_printf): Fix typo.
33020
33021 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33022
33023         vc-list-files: use bzr ls's -R option
33024         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33025         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33026
33027 2010-02-21  Jim Meyering  <meyering@redhat.com>
33028
33029         init.sh: fix EXEEXT shims to work also for names like test-prog
33030         * tests/init.sh: Re-exec a better shell, when needed.
33031         If the current shell lacks support for posix $(...), an init.sh-using
33032         test will now try to find a shell that supports that.  If EXEEXT is
33033         nonempty, we also require support for hyphen-in-alias-name and shell
33034         substitutions like ${var#glob}.  Failure to find such a shell results
33035         in a skipped test.
33036
33037 2010-02-21  Bruno Haible  <bruno@clisp.org>
33038
33039         Really work around around "broken pipe" error message from bash 3.2.
33040         * gnulib-tool (func_reset_sigpipe): Remove function.
33041         (echo): In bash 3.2, define to a function that uses printf.
33042         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33043
33044 2010-02-20  Bruno Haible  <bruno@clisp.org>
33045
33046         Restore support for automake 1.9.6 with autoconf 2.61.
33047         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33048         Reported by James Youngman <jay@gnu.org>.
33049
33050 2010-02-20  Bruno Haible  <bruno@clisp.org>
33051
33052         Improve *printf warning condition.
33053         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33054         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33055         and the function is overridden due to SIGPIPE emulation.
33056
33057 2010-02-20  Bruno Haible  <bruno@clisp.org>
33058
33059         * lib/stdio.in.h: Tweak comments.
33060
33061 2010-02-19  Bruno Haible  <bruno@clisp.org>
33062
33063         Make it easier to find modules. New gnulib-tool option '--find'.
33064         * gnulib-tool: New option --find.
33065         (func_usage): Document it.
33066         (func_sanitize_modulelist): New function, extracted from
33067         func_all_modules.
33068         (func_all_modules): Invoke it.
33069         * doc/gnulib-tool.texi (Which modules?): New node.
33070
33071 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33072
33073         * lib/sys_select.in.h: Provide select replacement even if
33074         sys/select.h exists on a system, for Interix.
33075
33076 2010-02-18  Jim Meyering  <meyering@redhat.com>
33077
33078         init.sh: don't use $(...) just yet
33079         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33080         to accommodate e.g., Solaris' /bin/sh.
33081
33082 2010-02-17  Bruno Haible  <bruno@clisp.org>
33083
33084         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33085         Reported by Ludovic Courtès <ludo@gnu.org>.
33086
33087 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33088
33089         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33090         linking with -lintl.
33091
33092 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33093
33094         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33095         if not provided by the system's netdb.h.  Reported by
33096         ludo@gnu.org (Ludovic Courtès).
33097
33098 2010-02-15  Jim Meyering  <meyering@redhat.com>
33099
33100         init.sh: improve portability and efficiency
33101         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33102         "dummy" in a for loop.
33103         Use '!', not '^' to select the complement of a character set used
33104         in a "case" statement.
33105         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33106         Suggestions from Eric Blake.
33107
33108         init.sh: automatically accommodate programs with the .exe suffix
33109         Automatically arrange for an invocation of "prog" to execute the
33110         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33111         may use the simpler "prog", yet still work when built on a system
33112         that requires specifying the added suffix.
33113         Do this by constructing a function named "prog" that invokes
33114         "prog.exe" for each .exe file in selected directories.
33115         * tests/init.sh (find_exe_basenames_): New function.
33116         (create_exe_shim_functions_): New function.
33117         (path_prepend_): Use it.
33118
33119         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33120         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33121         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33122
33123 2010-02-14  Jim Meyering  <meyering@redhat.com>
33124
33125         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33126         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33127         (sc_prohibit_hash_pjw_without_use): New rule.
33128
33129         maint.mk: allow the default upload destination dir to be overridden
33130         * top/maint.mk (upload_dest_dir_): Define with a default that
33131         preserves the status quo.
33132         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33133         Reported by Peter Simons.
33134
33135         maint.mk: prohibit inclusion of "hash.h" without_use
33136         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33137
33138 2010-02-10  Jim Meyering  <meyering@redhat.com>
33139
33140         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33141         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33142
33143 2010-02-09  Eric Blake  <ebb9@byu.net>
33144         and Bruno Haible  <bruno@clisp.org>
33145
33146         obstack-printf-posix: ensure declaration
33147         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33148         extracted from gl_FUNC_OBSTACK_PRINTF.
33149         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33150         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33151         Likewise.
33152         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33153         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33154         0.
33155
33156 2010-02-08  Bruno Haible  <bruno@clisp.org>
33157
33158         gnulib-tool: Fix typo in 2010-02-07 commit.
33159         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33160         Reported by Eric Blake.
33161
33162 2010-02-07  Bruno Haible  <bruno@clisp.org>
33163
33164         gnulib-tool: Fix up caching patches.
33165         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33166         option --no-cache. Use associative arrays when supported by the shell.
33167         (sed_comments): New variable.
33168         (modcache): Renamed from do_cache.
33169         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33170         abbreviate unnecessarily.
33171         (have_associative): New variable.
33172         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33173         way also for ksh and zsh.
33174         (func_init_sed_convert_to_cache_statements): New function, extracted
33175         from func_cache_lookup_module. Add support for associative arrays.
33176         Don't set the c_MODULE_cached variable here. Ignore all lines before
33177         the first field header. Remove only the final newline, not all trailing
33178         newlines. Support empty fields correctly. Limit the use of 'eval' to
33179         assignments.
33180         (func_get_description, func_get_status, func_get_notice,
33181         func_get_applicability, func_get_filelist, func_get_dependencies,
33182         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33183         func_get_automake_snippet, func_get_include_directive,
33184         func_get_link_directive, func_get_license, func_get_maintainer):
33185         Update documentation. List the unoptimized code first. Add support for
33186         associative arrays. Limit the use of 'eval' to assignments.
33187         (func_get_applicability): Undo stylistic pessimisations.
33188         (func_get_automake_snippet, func_get_include_directive): Reduce code
33189         duplication.
33190         (func_modules_transitive_closure, func_modules_add_dummy,
33191         func_modules_notice, func_modules_to_filelist, func_add_file,
33192         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33193         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33194         func_create_testdir, func_create_megatestdir): Update documentation.
33195
33196 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33197
33198         * gnulib-tool (func_cache_lookup_module): Store the module name
33199         belonging to the cache variable; error out if two different
33200         module names map to the same cache variable name.
33201
33202 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33203
33204         gnulib-tool: Make caching optional.
33205         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33206         Update matching short versions of --no-changelog.
33207         (func_usage): Update.
33208         (sed_extract_cache_prog): Renamed from ...
33209         (sed_extract_prog): ... this; revert to old extraction script.
33210         (func_get_description, func_get_status)
33211         (func_get_notice, func_get_applicability, func_get_filelist)
33212         (func_get_dependencies, func_get_autoconf_early_snippet)
33213         (func_get_autoconf_snippet, func_get_automake_snippet)
33214         (func_get_include_directive, func_get_link_directive)
33215         (func_get_license, func_get_maintainer): If $do_cache is false,
33216         use old, non-caching extraction scripts.
33217         Suggestion by Bruno Haible.
33218
33219 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33220
33221         gnulib-tool: cache module metainformation.
33222         * gnulib-tool (sed_extract_prog): Match newline before each
33223         header, and rewrite header to a shell variable suffix.
33224         (func_cache_var, func_cache_lookup_module): New functions,
33225         to turn a module name into a cache variable prefix, and to
33226         look up and cache module metainformation.
33227         (func_get_description, func_get_status)
33228         (func_get_notice, func_get_applicability, func_get_filelist)
33229         (func_get_dependencies, func_get_autoconf_early_snippet)
33230         (func_get_autoconf_snippet, func_get_automake_snippet)
33231         (func_get_include_directive, func_get_link_directive)
33232         (func_get_license, func_get_maintainer): Use
33233         func_cache_lookup_module.
33234
33235 2010-02-07  Bruno Haible  <bruno@clisp.org>
33236
33237         fnctl: Fix missing dependency.
33238         * modules/fcntl (Depends-on): Add getdtablesize.
33239         Reported by John W. Eaton <jwe@gnu.org>.
33240
33241 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33242
33243         Argp: fix recognition of short alias options.
33244
33245         * lib/argp-parse.c (convert_options): Fix improper use of
33246         `|' between character values.
33247         * tests/test-argp.c (group1_option): New alias option
33248         --read (-r).
33249         (group1_parser): Special handling for 'r'.
33250         (test15): New test case.
33251         (test_fun): Add test15.
33252         * tests/test-argp-2.sh: Update expected --help and --usage
33253         outputs.
33254
33255 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33256
33257         * tests/test-argp.c: Fix indentation.
33258
33259 2010-02-04  Eric Blake  <ebb9@byu.net>
33260
33261         gettimeofday: expose type of second argument
33262         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33263         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33264         * tests/test-gettimeofday.c: Use it to silence warning.
33265         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33266         the issue.
33267
33268 2010-02-03  Jim Meyering  <meyering@redhat.com>
33269
33270         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33271         * lib/regcomp.c (TYPE_SIGNED): Define.
33272         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33273
33274         regcomp.c: avoid a new -Wshadow warning
33275         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33276
33277 2010-02-01  Jim Meyering  <meyering@redhat.com>
33278
33279         removing useless parentheses in cpp #define directives
33280         For motivation, see commit c0221df4, "define STREQ(a,b)
33281         consistently, removing useless parentheses"
33282         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33283         * lib/mountlist.c (MNT_IGNORE): Likewise.
33284         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33285
33286 2010-02-01  Eric Blake  <ebb9@byu.net>
33287
33288         sys_time: use link-warning
33289         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33290         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33291         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33292         * modules/sys_time (Depends-on): Add warn-on-use.
33293         (Makefile.am): Always build replacement.
33294         (configure.ac): Update substitutions.
33295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33296         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33297         bother with SYS_TIME_H.
33298         * modules/gettimeofday (configure.ac): Declare indicator.
33299         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33300         in use.
33301
33302         closein-tests: silence compiler warning
33303         * tests/test-closein.c (main): Ignore fread result.
33304         * modules/closein-tests (Depends-on): Add ignore-value.
33305
33306         tests: silence warning about system return
33307         * tests/test-areadlink-with-size.c (main): Ignore system result.
33308         * tests/test-areadlink.c (main): Likewise.
33309         * tests/test-areadlinkat-with-size.c (main): Likewise.
33310         * tests/test-areadlinkat.c (main): Likewise.
33311         * tests/test-canonicalize-lgpl.c (main): Likewise.
33312         * tests/test-canonicalize.c (main): Likewise.
33313         * tests/test-chown.c (main): Likewise.
33314         * tests/test-fchownat.c (main): Likewise.
33315         * tests/test-fdutimensat.c (main): Likewise.
33316         * tests/test-fstatat.c (main): Likewise.
33317         * tests/test-futimens.c (main): Likewise.
33318         * tests/test-lchown.c (main): Likewise.
33319         * tests/test-link.c (main): Likewise.
33320         * tests/test-linkat.c (main): Likewise.
33321         * tests/test-lstat.c (main): Likewise.
33322         * tests/test-mkdir.c (main): Likewise.
33323         * tests/test-mkdirat.c (main): Likewise.
33324         * tests/test-mkfifo.c (main): Likewise.
33325         * tests/test-mkfifoat.c (main): Likewise.
33326         * tests/test-mknod.c (main): Likewise.
33327         * tests/test-readlink.c (main): Likewise.
33328         * tests/test-remove.c (main): Likewise.
33329         * tests/test-rename.c (main): Likewise.
33330         * tests/test-renameat.c (main): Likewise.
33331         * tests/test-rmdir.c (main): Likewise.
33332         * tests/test-symlink.c (main): Likewise.
33333         * tests/test-symlinkat.c (main): Likewise.
33334         * tests/test-unlink.c (main): Likewise.
33335         * tests/test-unlinkat.c (main): Likewise.
33336         * tests/test-utimens.c (main): Likewise.
33337         * tests/test-utimensat.c (main): Likewise.
33338         * modules/areadlink-tests (Depends-on): Add ignore-value.
33339         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33340         * modules/areadlinkat-tests (Depends-on): Likewise.
33341         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33342         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33343         * modules/canonicalize-tests (Depends-on): Likewise.
33344         * modules/chown-tests (Depends-on): Likewise.
33345         * modules/fdutimensat-tests (Depends-on): Likewise.
33346         * modules/futimens-tests (Depends-on): Likewise.
33347         * modules/lchown-tests (Depends-on): Likewise.
33348         * modules/link-tests (Depends-on): Likewise.
33349         * modules/linkat-tests (Depends-on): Likewise.
33350         * modules/lstat-tests (Depends-on): Likewise.
33351         * modules/mkdir-tests (Depends-on): Likewise.
33352         * modules/mkfifo-tests (Depends-on): Likewise.
33353         * modules/mkfifoat-tests (Depends-on): Likewise.
33354         * modules/mknod-tests (Depends-on): Likewise.
33355         * modules/openat-tests (Depends-on): Likewise.
33356         * modules/readlink-tests (Depends-on): Likewise.
33357         * modules/remove-tests (Depends-on): Likewise.
33358         * modules/rename-tests (Depends-on): Likewise.
33359         * modules/renameat-tests (Depends-on): Likewise.
33360         * modules/rmdir-tests (Depends-on): Likewise.
33361         * modules/symlink-tests (Depends-on): Likewise.
33362         * modules/symlinkat-tests (Depends-on): Likewise.
33363         * modules/unlink-tests (Depends-on): Likewise.
33364         * modules/utimens-tests (Depends-on): Likewise.
33365         * modules/utimensat-tests (Depends-on): Likewise.
33366
33367 2010-01-31  Bruno Haible  <bruno@clisp.org>
33368
33369         Perform the same test for many <math.h> functions.
33370         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33371         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33372         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33373         of gl_MATHFUNC.
33374         * modules/acos (configure.ac): Likewise.
33375         * modules/asin (configure.ac): Likewise.
33376         * modules/atan (configure.ac): Likewise.
33377         * modules/atan2 (configure.ac): Likewise.
33378         * modules/cbrt (configure.ac): Likewise.
33379         * modules/copysign (configure.ac): Likewise.
33380         * modules/cos (configure.ac): Likewise.
33381         * modules/cosh (configure.ac): Likewise.
33382         * modules/erf (configure.ac): Likewise.
33383         * modules/erfc (configure.ac): Likewise.
33384         * modules/exp (configure.ac): Likewise.
33385         * modules/fmod (configure.ac): Likewise.
33386         * modules/hypot (configure.ac): Likewise.
33387         * modules/j0 (configure.ac): Likewise.
33388         * modules/j1 (configure.ac): Likewise.
33389         * modules/jn (configure.ac): Likewise.
33390         * modules/lgamma (configure.ac): Likewise.
33391         * modules/log (configure.ac): Likewise.
33392         * modules/log10 (configure.ac): Likewise.
33393         * modules/log1p (configure.ac): Likewise.
33394         * modules/pow (configure.ac): Likewise.
33395         * modules/remainder (configure.ac): Likewise.
33396         * modules/sin (configure.ac): Likewise.
33397         * modules/sinh (configure.ac): Likewise.
33398         * modules/tan (configure.ac): Likewise.
33399         * modules/tanh (configure.ac): Likewise.
33400         * modules/y0 (configure.ac): Likewise.
33401         * modules/y1 (configure.ac): Likewise.
33402         * modules/yn (configure.ac): Likewise.
33403         Suggested by Paolo Bonzini.
33404
33405 2010-01-31  Bruno Haible  <bruno@clisp.org>
33406
33407         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33408
33409 2010-01-31  Bruno Haible  <bruno@clisp.org>
33410
33411         Work around getdelim() bug on FreeBSD 8.0.
33412         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33413         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33414         not work.
33415         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33416         is 1.
33417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33418         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33419         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33420         a non-zero size.
33421         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33422
33423 2010-01-31  Bruno Haible  <bruno@clisp.org>
33424
33425         Work around getline() bug on FreeBSD 8.0.
33426         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33427         and a non-zero size.
33428         * tests/test-getline.c (main): Likewise.
33429         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33430         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33431
33432 2010-01-28  Eric Blake  <ebb9@byu.net>
33433
33434         regex: fix build failure
33435         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33436         platforms.
33437
33438 2010-01-28  Jim Meyering  <meyering@redhat.com>
33439
33440         regex: do not ignore memory allocation failure
33441         * lib/regex_internal.c (create_cd_newstate): Detect
33442         re_node_set_init_copy failure.   Extracted from glibc commit
33443         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33444
33445         regex: sync more white-space changes from libc
33446         * lib/regex_internal.c: White-space only changes.
33447         * lib/regexec.c: Likewise.
33448
33449         regex: add many uses of __attribute_warn_unused_result__
33450         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33451         * lib/regexec.c: Likewise.
33452         Extracted from a messy glibc commit.
33453
33454         regcomp.c: spelling and merge-artifact from glibc
33455         * lib/regcomp.c: Merge remainder of glibc's
33456         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33457
33458         regcomp.c: sync white-space changes from glibc
33459         * lib/regcomp.c: Merge to accommodate white space
33460         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33461
33462         regcomp.c: do not ignore internal return values
33463         * lib/regcomp.c: Do not ignore internal return values.
33464         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33465         but without its white-space changes and spelling fixes.
33466
33467         regex_internal.h: define __attribute_warn_unused_result__
33468         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33469
33470         maint: add a syntax-check rule to check for vulnerable Makefile.in
33471         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33472
33473 2010-01-27  Jim Meyering  <meyering@redhat.com>
33474
33475         ncftpput-ftp: clean up spaces
33476         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33477         Remove trailing blanks.
33478
33479 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33480
33481         * build-aux/git-version-gen: Fix copyright statement.
33482         * build-aux/gnupload: Likewise.
33483         * tests/test-arcfour.c: Likewise.
33484         * tests/test-arctwo.c: Likewise.
33485         * tests/test-count-one-bits.c: Likewise.
33486         * tests/test-crc.c: Likewise.
33487         * tests/test-des.c: Likewise.
33488         * tests/test-gc-arcfour.c: Likewise.
33489         * tests/test-gc-arctwo.c: Likewise.
33490         * tests/test-gc-des.c: Likewise.
33491         * tests/test-gc-hmac-md5.c: Likewise.
33492         * tests/test-gc-hmac-sha1.c: Likewise.
33493         * tests/test-gc-md2.c: Likewise.
33494         * tests/test-gc-md4.c: Likewise.
33495         * tests/test-gc-md5.c: Likewise.
33496         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33497         * tests/test-gc-rijndael.c: Likewise.
33498         * tests/test-gc-sha1.c: Likewise.
33499         * tests/test-gc.c: Likewise.
33500         * tests/test-gethostname.c: Likewise.
33501         * tests/test-gettimeofday.c: Likewise.
33502         * tests/test-hash.c: Likewise.
33503         * tests/test-hmac-md5.c: Likewise.
33504         * tests/test-hmac-sha1.c: Likewise.
33505         * tests/test-md2.c: Likewise.
33506         * tests/test-md4.c: Likewise.
33507         * tests/test-md5.c: Likewise.
33508         * tests/test-memchr.c: Likewise.
33509         * tests/test-memchr2.c: Likewise.
33510         * tests/test-memcmp.c: Likewise.
33511         * tests/test-memmem.c: Likewise.
33512         * tests/test-memrchr.c: Likewise.
33513         * tests/test-rawmemchr.c: Likewise.
33514         * tests/test-read-file.c: Likewise.
33515         * tests/test-rijndael.c: Likewise.
33516         * tests/test-sockets.c: Likewise.
33517         * tests/test-strchrnul.c: Likewise.
33518         * tests/test-strstr.c: Likewise.
33519         * tests/test-strtod.c: Likewise.
33520         * build-aux/ncftpput-ftp: Likewise.
33521
33522 2010-01-26  Eric Blake  <ebb9@byu.net>
33523
33524         ignore-value: update recommended header name
33525         * modules/ignore-value (Include): Only use <> for headers that
33526         exist in glibc.
33527
33528 2010-01-26  Jim Meyering  <meyering@redhat.com>
33529
33530         test-userspec.c: avoid compiler warnings
33531         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33532         and "initialization discards qualifiers..." warnings.
33533         Put the first "uid" in its own scope, and make char* members "const".
33534
33535 2010-01-25  Bruno Haible  <bruno@clisp.org>
33536
33537         gnulib-tool: Make warning diagnostics consistent.
33538         * gnulib-tool (func_warning): New function.
33539         Use it everywhere where gnulib-tool produces output to stderr and it is
33540         not a fatal error.
33541
33542 2010-01-25  Bruno Haible  <bruno@clisp.org>
33543
33544         Fix test dependencies.
33545         * modules/xstrtol-tests (Depends-on): Add inttypes.
33546         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33547
33548 2010-01-25 Pádraig Brady <P@draigBrady.com>
33549
33550         syntax-check: detect incorrect boolean macro values in config.h
33551         * modules/maintainer-makefile (configure.ac): Parameterize the location
33552         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33553         The logic is from Eric Blake and the location indicated by Jim Meyering.
33554         Note the more natural CONFIG_HEADER name is prohibited by automake
33555         for backwards compatibility reasons.
33556         * top/maint.mk (sc_Wundef_boolean): New rule.
33557
33558 2010-01-25  Jim Meyering  <meyering@redhat.com>
33559
33560         bootstrap: detect MacOS 10.6's shasum, too
33561         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33562         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33563
33564 2010-01-23  Jim Meyering  <meyering@redhat.com>
33565
33566         xstrtoll: new module
33567         * modules/xstrtoll: New file.
33568         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33569         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33570         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33571         ./configure fails if you use this module and lack "long long".
33572         * modules/xstrtoll-tests: New module.
33573         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33574         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33575         new init.sh-based test framework.
33576
33577 2010-01-24  Bruno Haible  <bruno@clisp.org>
33578
33579         Tests for module 'yn'.
33580         * modules/yn-tests: New file.
33581         * tests/test-yn.c: New file.
33582
33583         Tests for module 'y1'.
33584         * modules/y1-tests: New file.
33585         * tests/test-y1.c: New file.
33586
33587         Tests for module 'y0'.
33588         * modules/y0-tests: New file.
33589         * tests/test-y0.c: New file.
33590
33591         Tests for module 'tanh'.
33592         * modules/tanh-tests: New file.
33593         * tests/test-tanh.c: New file.
33594
33595         Tests for module 'tan'.
33596         * modules/tan-tests: New file.
33597         * tests/test-tan.c: New file.
33598
33599         Tests for module 'sqrt'.
33600         * modules/sqrt-tests: New file.
33601         * tests/test-sqrt.c: New file.
33602
33603         Tests for module 'sinh'.
33604         * modules/sinh-tests: New file.
33605         * tests/test-sinh.c: New file.
33606
33607         Tests for module 'sin'.
33608         * modules/sin-tests: New file.
33609         * tests/test-sin.c: New file.
33610
33611         Tests for module 'rint'.
33612         * modules/rint-tests: New file.
33613         * tests/test-rint.c: New file.
33614
33615         Tests for module 'remainder'.
33616         * modules/remainder-tests: New file.
33617         * tests/test-remainder.c: New file.
33618
33619         Tests for module 'pow'.
33620         * modules/pow-tests: New file.
33621         * tests/test-pow.c: New file.
33622
33623         Tests for module 'nextafter'.
33624         * modules/nextafter-tests: New file.
33625         * tests/test-nextafter.c: New file.
33626
33627         Tests for module 'modf'.
33628         * modules/modf-tests: New file.
33629         * tests/test-modf.c: New file.
33630
33631         Tests for module 'logb'.
33632         * modules/logb-tests: New file.
33633         * tests/test-logb.c: New file.
33634
33635         Tests for module 'log1p'.
33636         * modules/log1p-tests: New file.
33637         * tests/test-log1p.c: New file.
33638
33639         Tests for module 'log10'.
33640         * modules/log10-tests: New file.
33641         * tests/test-log10.c: New file.
33642
33643         Tests for module 'log'.
33644         * modules/log-tests: New file.
33645         * tests/test-log.c: New file.
33646
33647         Tests for module 'lgamma'.
33648         * modules/lgamma-tests: New file.
33649         * tests/test-lgamma.c: New file.
33650
33651         Tests for module 'ldexp'.
33652         * modules/ldexp-tests: New file.
33653         * tests/test-ldexp.c: New file.
33654
33655         Tests for module 'jn'.
33656         * modules/jn-tests: New file.
33657         * tests/test-jn.c: New file.
33658
33659         Tests for module 'j1'.
33660         * modules/j1-tests: New file.
33661         * tests/test-j1.c: New file.
33662
33663         Tests for module 'j0'.
33664         * modules/j0-tests: New file.
33665         * tests/test-j0.c: New file.
33666
33667         Tests for module 'hypot'.
33668         * modules/hypot-tests: New file.
33669         * tests/test-hypot.c: New file.
33670
33671         Tests for module 'fmod'.
33672         * modules/fmod-tests: New file.
33673         * tests/test-fmod.c: New file.
33674
33675         Tests for module 'fabs'.
33676         * modules/fabs-tests: New file.
33677         * tests/test-fabs.c: New file.
33678
33679         Tests for module 'exp'.
33680         * modules/exp-tests: New file.
33681         * tests/test-exp.c: New file.
33682
33683         Tests for module 'erfc'.
33684         * modules/erfc-tests: New file.
33685         * tests/test-erfc.c: New file.
33686
33687         Tests for module 'erf'.
33688         * modules/erf-tests: New file.
33689         * tests/test-erf.c: New file.
33690
33691         Tests for module 'cosh'.
33692         * modules/cosh-tests: New file.
33693         * tests/test-cosh.c: New file.
33694
33695         Tests for module 'cos'.
33696         * modules/cos-tests: New file.
33697         * tests/test-cos.c: New file.
33698
33699         Tests for module 'copysign'.
33700         * modules/copysign-tests: New file.
33701         * tests/test-copysign.c: New file.
33702
33703         Tests for module 'cbrt'.
33704         * modules/cbrt-tests: New file.
33705         * tests/test-cbrt.c: New file.
33706
33707         Tests for module 'atan2'.
33708         * modules/atan2-tests: New file.
33709         * tests/test-atan2.c: New file.
33710
33711         Tests for module 'atan'.
33712         * modules/atan-tests: New file.
33713         * tests/test-atan.c: New file.
33714
33715         Tests for module 'asin'.
33716         * modules/asin-tests: New file.
33717         * tests/test-asin.c: New file.
33718
33719         Tests for module 'acos'.
33720         * modules/acos-tests: New file.
33721         * tests/test-acos.c: New file.
33722
33723 2010-01-24  Bruno Haible  <bruno@clisp.org>
33724
33725         Fix tests for common <math.h> functions.
33726         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33727         code snippet that references the function pointer, rather than merely
33728         calling the function. Substitute the FUNC_LIBM variable.
33729         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33730         * modules/acos (configure.ac): Likewise.
33731         * modules/asin (configure.ac): Likewise.
33732         * modules/atan (configure.ac): Likewise.
33733         * modules/atan2 (configure.ac): Likewise.
33734         * modules/cbrt (configure.ac): Likewise.
33735         * modules/copysign (configure.ac): Likewise.
33736         * modules/cos (configure.ac): Likewise.
33737         * modules/cosh (configure.ac): Likewise.
33738         * modules/erf (configure.ac): Likewise.
33739         * modules/erfc (configure.ac): Likewise.
33740         * modules/exp (configure.ac): Likewise.
33741         * modules/fabs (configure.ac): Likewise.
33742         * modules/fmod (configure.ac): Likewise.
33743         * modules/hypot (configure.ac): Likewise.
33744         * modules/j0 (configure.ac): Likewise.
33745         * modules/j1 (configure.ac): Likewise.
33746         * modules/jn (configure.ac): Likewise.
33747         * modules/ldexp (configure.ac): Likewise.
33748         * modules/lgamma (configure.ac): Likewise.
33749         * modules/log (configure.ac): Likewise.
33750         * modules/log10 (configure.ac): Likewise.
33751         * modules/log1p (configure.ac): Likewise.
33752         * modules/logb (configure.ac): Likewise.
33753         * modules/modf (configure.ac): Likewise.
33754         * modules/nextafter (configure.ac): Likewise.
33755         * modules/pow (configure.ac): Likewise.
33756         * modules/remainder (configure.ac): Likewise.
33757         * modules/rint (configure.ac): Likewise.
33758         * modules/sin (configure.ac): Likewise.
33759         * modules/sinh (configure.ac): Likewise.
33760         * modules/tan (configure.ac): Likewise.
33761         * modules/tanh (configure.ac): Likewise.
33762         * modules/y0 (configure.ac): Likewise.
33763         * modules/y1 (configure.ac): Likewise.
33764         * modules/yn (configure.ac): Likewise.
33765
33766 2010-01-24  Bruno Haible  <bruno@clisp.org>
33767
33768         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33769         * tests/test-acosl.c (x): New variable.
33770         (main): Store argument in x and fetch it from x.
33771         * tests/test-asinl.c (x): New variable.
33772         (main): Store argument in x and fetch it from x.
33773         * tests/test-atanl.c (x): New variable.
33774         (main): Store argument in x and fetch it from x.
33775         * tests/test-cosl.c (x): New variable.
33776         (main): Store argument in x and fetch it from x.
33777         * tests/test-expl.c (x): New variable.
33778         (main): Store argument in x and fetch it from x.
33779         * tests/test-logl.c (x): New variable.
33780         (main): Store argument in x and fetch it from x.
33781         * tests/test-sinl.c (x): New variable.
33782         (main): Store argument in x and fetch it from x.
33783         * tests/test-sqrtl.c (x): New variable.
33784         (main): Store argument in x and fetch it from x.
33785         * tests/test-tanl.c (x): New variable.
33786         (main): Store argument in x and fetch it from x.
33787
33788 2010-01-24  Bruno Haible  <bruno@clisp.org>
33789
33790         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33791         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33792         assignments to the initial TESTS_ENVIRONMENT.
33793         * doc/gnulib.texi (Unit test modules): Document it.
33794         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33795         TESTS_ENVIRONMENT.
33796         * modules/btowc-tests (Makefile.am): Likewise.
33797         * modules/c-stack-tests (Makefile.am): Likewise.
33798         * modules/c-strcase-tests (Makefile.am): Likewise.
33799         * modules/copy-file-tests (Makefile.am): Likewise.
33800         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33801         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33802         * modules/mbrtowc-tests (Makefile.am): Likewise.
33803         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33804         * modules/mbscasestr-tests (Makefile.am): Likewise.
33805         * modules/mbschr-tests (Makefile.am): Likewise.
33806         * modules/mbscspn-tests (Makefile.am): Likewise.
33807         * modules/mbsinit-tests (Makefile.am): Likewise.
33808         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33809         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33810         * modules/mbspbrk-tests (Makefile.am): Likewise.
33811         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33812         * modules/mbsrchr-tests (Makefile.am): Likewise.
33813         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33814         * modules/mbsspn-tests (Makefile.am): Likewise.
33815         * modules/mbsstr-tests (Makefile.am): Likewise.
33816         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33817         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33818         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33819         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33820         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33821         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33822         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33823         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33824         * modules/wcrtomb-tests (Makefile.am): Likewise.
33825         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33826         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33827         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33828         assignments from TESTS_ENVIRONMENT.
33829         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33830         augmentation.
33831         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33832         * modules/atexit-tests (Makefile.am): Likewise.
33833         * modules/binary-io-tests (Makefile.am): Likewise.
33834         * modules/closein-tests (Makefile.am): Likewise.
33835         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33836         * modules/exclude-tests (Makefile.am): Likewise.
33837         * modules/fflush-tests (Makefile.am): Likewise.
33838         * modules/fpending-tests (Makefile.am): Likewise.
33839         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33840         * modules/freadahead-tests (Makefile.am): Likewise.
33841         * modules/freadptr-tests (Makefile.am): Likewise.
33842         * modules/freadseek-tests (Makefile.am): Likewise.
33843         * modules/fseek-tests (Makefile.am): Likewise.
33844         * modules/fseeko-tests (Makefile.am): Likewise.
33845         * modules/ftell-tests (Makefile.am): Likewise.
33846         * modules/ftello-tests (Makefile.am): Likewise.
33847         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33848         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33849         * modules/lseek-tests (Makefile.am): Likewise.
33850         * modules/parse-duration-tests (Makefile.am): Likewise.
33851         * modules/perror-tests (Makefile.am): Likewise.
33852         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33853         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33854         * modules/pipe-tests (Makefile.am): Likewise.
33855         * modules/pread-tests (Makefile.am): Likewise.
33856         * modules/printf-posix-tests (Makefile.am): Likewise.
33857         * modules/select-tests (Makefile.am): Likewise.
33858         * modules/sigpipe-tests (Makefile.am): Likewise.
33859         * modules/tsearch-tests (Makefile.am): Likewise.
33860         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33861         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33862         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33863         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33864         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33865         * modules/version-etc-tests (Makefile.am): Likewise.
33866         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33867         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33868         * modules/xalloc-die-tests (Makefile.am): Likewise.
33869         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33870         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33871         * modules/xstrtol-tests (Makefile.am): Likewise.
33872         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33873         * modules/yesno-tests (Makefile.am): Likewise.
33874         Suggested by Jim Meyering.
33875
33876 2010-01-24  Bruno Haible  <bruno@clisp.org>
33877
33878         More documentation.
33879         * doc/gnulib.texi (Writing modules): New chapter.
33880         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33881         the new chapter.
33882
33883 2010-01-24  Jim Meyering  <meyering@redhat.com>
33884
33885         maint.mk: do not prepend "./" after filtering
33886         * top/maint.mk (_prepend_srcdir_prefix): New variable
33887         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33888         "./" when $(srcdir) is ".".
33889
33890         define STREQ(a,b) consistently, removing useless parentheses
33891         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33892         since the only risk is that "a" or "b" contains an unparenthesized
33893         comma, but if either did that, STREQ would have 3 or more arguments.
33894         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33895         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33896         * lib/hash-triple.c (STREQ): Likewise.
33897         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33898         * lib/getugroups.c (STREQ): Likewise.
33899
33900 2010-01-23  Jim Meyering  <meyering@redhat.com>
33901
33902         maint.mk: fix syntax-check in a non-srcdir build directory
33903         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33904         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33905
33906 2010-01-22  Jim Meyering  <meyering@redhat.com>
33907
33908         userspec: add unit tests
33909         * tests/test-userspec.c: New file.
33910         * modules/userspec-tests: Likewise.
33911
33912 2010-01-21  Jim Meyering  <meyering@redhat.com>
33913
33914         maint.mk: handle source file names containing "." robustly
33915         * top/maint.mk (_dot_escaped_srcdir): Define.
33916         (VC_LIST): Use it in LHS of sed substitution.
33917
33918 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33919
33920         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33921         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33922         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33923         from a non-srcdir build.
33924
33925 2010-01-20  Eric Blake  <ebb9@byu.net>
33926
33927         warn-on-use: use instead of link-warning
33928         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33929         * modules/unistd (Depends-on, Makefile.am): Likewise.
33930         * modules/arpa_inet (Depends-on): Replace link-warning with
33931         warn-on-use.
33932         (Makefile.am): Update rules accordingly.
33933         * modules/ctype (Depends-on, Makefile.am): Likewise.
33934         * modules/dirent (Depends-on, Makefile.am): Likewise.
33935         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33936         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33937         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33938         * modules/locale (Depends-on, Makefile.am): Likewise.
33939         * modules/math (Depends-on, Makefile.am): Likewise.
33940         * modules/search (Depends-on, Makefile.am): Likewise.
33941         * modules/signal (Depends-on, Makefile.am): Likewise.
33942         * modules/spawn (Depends-on, Makefile.am): Likewise.
33943         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33944         * modules/string (Depends-on, Makefile.am): Likewise.
33945         * modules/strings (Depends-on, Makefile.am): Likewise.
33946         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33947         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33948         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33949         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33950         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33951         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33952         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33953         * modules/wchar (Depends-on, Makefile.am): Likewise.
33954         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33955         should be poisoned.
33956         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33957         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33958         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33959         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33960         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33961         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33962         * m4/math_h.m4 (gl_MATH_H): Likewise.
33963         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33964         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33965         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33966         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33967         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33968         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33969         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33970         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33971         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33972         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33973         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33975         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33976         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33977         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33978         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33979         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33980         GL_LINK_WARNING.
33981         * lib/ctype.in.h: Likewise.
33982         * lib/dirent.in.h: Likewise.
33983         * lib/fcntl.in.h: Likewise.
33984         * lib/inttypes.in.h: Likewise.
33985         * lib/langinfo.in.h: Likewise.
33986         * lib/locale.in.h: Likewise.
33987         * lib/math.in.h: Likewise.
33988         * lib/search.in.h: Likewise.
33989         * lib/signal.in.h: Likewise.
33990         * lib/spawn.in.h: Likewise.
33991         * lib/stdio.in.h: Likewise.
33992         * lib/stdlib.in.h: Likewise.
33993         * lib/string.in.h: Likewise.
33994         * lib/strings.in.h: Likewise.
33995         * lib/sys_file.in.h: Likewise.
33996         * lib/sys_ioctl.in.h: Likewise.
33997         * lib/sys_select.in.h: Likewise.
33998         * lib/sys_socket.in.h: Likewise.
33999         * lib/sys_stat.in.h: Likewise.
34000         * lib/sys_times.in.h: Likewise.
34001         * lib/sys_utsname.in.h: Likewise.
34002         * lib/unistd.in.h: Likewise.
34003         * lib/wchar.in.h: Likewise.
34004
34005 2010-01-20  Bruno Haible  <bruno@clisp.org>
34006
34007         Avoid duplicate -lm.
34008         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34009         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34011         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34012         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34013         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34014         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34015         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34016         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34017         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34018         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34019         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34020         Reported by Paolo Bonzini.
34021
34022 2010-01-19  Bruno Haible  <bruno@clisp.org>
34023
34024         langinfo, nl_langinfo: Relicense under LGPLv2+.
34025         * modules/langinfo (License): Change to LGPLv2+.
34026         * modules/nl_langinfo (License): Likewise.
34027         Patch by David Lutterkort <lutter@redhat.com>.
34028
34029 2010-01-19  Bruno Haible  <bruno@clisp.org>
34030
34031         Avoid compilation error with cc on OSF/1 5.1.
34032         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34033         statement, not before.
34034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34035
34036 2010-01-18  Bruno Haible  <bruno@clisp.org>
34037
34038         Avoid a link error due to the __printf__ symbol.
34039         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34040         and 2.6.x.
34041         (__format__, __printf__): Remove definitions.
34042         * lib/argp-fmtstream.h: Likewise.
34043         * lib/argp.h: Likewise.
34044         * lib/error.h: Likewise.
34045         * lib/vasnprintf.h: Likewise.
34046         * lib/xprintf.h: Likewise.
34047         * lib/xvasprintf.h: Likewise.
34048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34049
34050 2010-01-18  Bruno Haible  <bruno@clisp.org>
34051
34052         Tests for module 'tanl'.
34053         * modules/tanl-tests: New file.
34054         * tests/test-tanl.c: New file.
34055
34056         Tests for module 'sqrtl'.
34057         * modules/sqrtl-tests: New file.
34058         * tests/test-sqrtl.c: New file.
34059
34060         Tests for module 'sinl'.
34061         * modules/sinl-tests: New file.
34062         * tests/test-sinl.c: New file.
34063
34064         Tests for module 'logl'.
34065         * modules/logl-tests: New file.
34066         * tests/test-logl.c: New file.
34067
34068         Tests for module 'expl'.
34069         * modules/expl-tests: New file.
34070         * tests/test-expl.c: New file.
34071
34072         Tests for module 'cosl'.
34073         * modules/cosl-tests: New file.
34074         * tests/test-cosl.c: New file.
34075
34076         Tests for module 'atanl'.
34077         * modules/atanl-tests: New file.
34078         * tests/test-atanl.c: New file.
34079
34080         Tests for module 'asinl'.
34081         * modules/asinl-tests: New file.
34082         * tests/test-asinl.c: New file.
34083
34084         Tests for module 'acosl'.
34085         * modules/acosl-tests: New file.
34086         * tests/test-acosl.c: New file.
34087
34088         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34089         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34090         tanl): Use the standard gnulib idiom.
34091         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34092         * lib/sinl.c: Likewise.
34093         * lib/tanl.c: Don't include trigl.c.
34094         (kernel_tanl): Make static.
34095         * lib/sincosl.c: Include trigl.h first.
34096         * lib/trigl.c: Likewise.
34097         * m4/acosl.m4: New file.
34098         * m4/asinl.m4: New file.
34099         * m4/atanl.m4: New file.
34100         * m4/cosl.m4: New file.
34101         * m4/expl.m4: New file.
34102         * m4/logl.m4: New file.
34103         * m4/sinl.m4: New file.
34104         * m4/sqrtl.m4: New file.
34105         * m4/tanl.m4: New file.
34106         * m4/mathl.m4: Remove file.
34107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34108         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34109         Don't initialize GNULIB_MATHL.
34110         * modules/acosl: New file.
34111         * modules/asinl: New file.
34112         * modules/atanl: New file.
34113         * modules/cosl: New file.
34114         * modules/expl: New file.
34115         * modules/logl: New file.
34116         * modules/sinl: New file.
34117         * modules/sqrtl: New file.
34118         * modules/tanl: New file.
34119         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34120         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34121         substitute GNULIB_MATHL.
34122         * modules/mathl: Rewritten.
34123         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34124         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34125         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34126         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34127         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34128         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34129         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34130         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34131         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34132
34133 2010-01-18  Bruno Haible  <bruno@clisp.org>
34134
34135         sqrt: Make gl_FUNC_SQRT requirable.
34136         * m4/sqrt.m4: New file.
34137         * modules/sqrt (Files): Add it.
34138         (configure.ac): Invoke gl_FUNC_SQRT.
34139
34140 2010-01-18  Bruno Haible  <bruno@clisp.org>
34141
34142         New modules for common <math.h> functions.
34143         * m4/mathfunc.m4: New file.
34144         * modules/acos: New file.
34145         * modules/asin: New file.
34146         * modules/atan: New file.
34147         * modules/atan2: New file.
34148         * modules/cbrt: New file.
34149         * modules/copysign: New file.
34150         * modules/cos: New file.
34151         * modules/cosh: New file.
34152         * modules/erf: New file.
34153         * modules/erfc: New file.
34154         * modules/exp: New file.
34155         * modules/fabs: New file.
34156         * modules/fmod: New file.
34157         * modules/hypot: New file.
34158         * modules/j0: New file.
34159         * modules/j1: New file.
34160         * modules/jn: New file.
34161         * modules/ldexp: New file.
34162         * modules/lgamma: New file.
34163         * modules/log: New file.
34164         * modules/log10: New file.
34165         * modules/log1p: New file.
34166         * modules/logb: New file.
34167         * modules/modf: New file.
34168         * modules/nextafter: New file.
34169         * modules/pow: New file.
34170         * modules/remainder: New file.
34171         * modules/rint: New file.
34172         * modules/sin: New file.
34173         * modules/sinh: New file.
34174         * modules/sqrt: New file.
34175         * modules/tan: New file.
34176         * modules/tanh: New file.
34177         * modules/y0: New file.
34178         * modules/y1: New file.
34179         * modules/yn: New file.
34180         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34181         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34182         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34183         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34184         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34185         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34186         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34187         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34188         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34189         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34190         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34191         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34192         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34193         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34194         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34195         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34196         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34197         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34198         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34199         * doc/posix-functions/log.texi: Mention the 'log' module.
34200         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34201         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34202         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34203         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34204         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34205         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34206         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34207         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34208         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34209         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34210         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34211         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34212         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34213         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34214         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34215         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34216
34217 2010-01-18  Jim Meyering  <meyering@redhat.com>
34218
34219         ignore-value: relax license to LGPLv2+
34220         * modules/ignore-value (License): Relax to LGPLv2+.
34221
34222         getdate: don't leak when TZ contains two or more '"'s
34223         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34224         double quote in TZ after the first one.
34225
34226         readtokens: do not leak internal token_lengths buffer
34227         * lib/readtokens.c (readtokens): Free the local, lengths,
34228         when the supplied "token_lengths" parameter is NULL.
34229
34230 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34231
34232         Fix a couple of missing LIBTHREAD link failures on AIX.
34233         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34234         $(LIBTHREAD).
34235         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34236
34237         Link test-poll against INET_PTON_LIB.
34238         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34239         for inet_pton on Solaris 10.
34240
34241 2010-01-17  Bruno Haible  <bruno@clisp.org>
34242
34243         unistdio/*-sprintf: Fix typo in module description.
34244         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34245         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34246         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34247         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34248         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34249         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34250         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34252
34253 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34254
34255         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34256         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34257         variables in shell case patterns, for AIX and HP-UX ksh.
34258
34259         Split large sed scripts, for HP-UX sed.
34260         * modules/stdio: Split sed scripts around 50 sed commands,
34261         to avoid HP-UX limit of 99 commands, in the near future.
34262         * modules/string: Likewise.
34263         * modules/unistd: Likewise.
34264
34265         gnulib-tool: avoid writing in the current directory.
34266         * gnulib-tool (func_emit_lib_Makefile_am)
34267         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34268         not in the current directory, so concurrent gnulib-tool
34269         instances do not interfere.
34270
34271 2010-01-16  Jim Meyering  <meyering@redhat.com>
34272
34273         doc: update users.txt
34274         * users.txt: Add grep.
34275         (diffutils, gzip): Update URLs.
34276
34277 2010-01-12  Bruno Haible  <bruno@clisp.org>
34278
34279         posix_spawn: Avoid test failure on Cygwin.
34280         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34281         characters.
34282         Reported by Simon Josefsson.
34283
34284 2010-01-12  Bruno Haible  <bruno@clisp.org>
34285
34286         * tests/test-cond.c (main): When skipping the test, show the reason.
34287
34288 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34289
34290         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34291
34292 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34293
34294         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34295         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34296
34297 2010-01-12  Eric Blake  <ebb9@byu.net>
34298
34299         build: guarantee AS_VAR_IF
34300         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34301         (gl_AS_VAR_IF): Move...
34302         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34303         Reported by Simon Josefsson.
34304
34305 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34306
34307         * lib/stdio.in.h: Fix typo.
34308
34309 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34310
34311         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34312         libgpg-error.
34313
34314 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34315
34316         * tests/test-xalloc-die.sh: Use $EXEEXT.
34317
34318 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34319             Bruno Haible  <bruno@clisp.org>
34320
34321         getlogin, getlogin_r: Avoid test failure.
34322         * tests/test-getlogin.c: Include <stdio.h>.
34323         (main): Skip the test when the function fails because stdin is not a
34324         tty.
34325         * tests/test-getlogin_r.c: Include <stdio.h>.
34326         (main): Skip the test when the function fails because stdin is not a
34327         tty.
34328
34329 2010-01-11  Eric Blake  <ebb9@byu.net>
34330
34331         tests: avoid more large file warnings
34332         * tests/test-fflush.c: Avoid warning about ftell use.
34333         * tests/test-fseek.c: Avoid warning about fseek use.
34334
34335 2010-01-10  Bruno Haible  <bruno@clisp.org>
34336
34337         nproc: Work better on Linux when /proc and /sys are not mounted.
34338         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34339         as lower bound when, on glibc/Linux systems,
34340         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34341         Suggested by Pádraig Brady <P@draigbrady.com>.
34342         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34343
34344         nproc: Refactor.
34345         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34346         extracted from num_processors.
34347         (num_processors): Call it.
34348
34349 2010-01-11  Jim Meyering  <meyering@redhat.com>
34350
34351         utimecmp: avoid new warning from upcoming gcc-4.5.0
34352         * lib/utimecmp.c (BILLION): Define using #define rather than an
34353         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34354
34355 2010-01-11  Eric Blake  <ebb9@byu.net>
34356
34357         math: add portability warnings for classification macros
34358         * modules/math (Depends-on): Add warn-on-use.
34359         (Makefile.am): Provide new substitutions.
34360         * m4/math_h.m4 (gl_MATH_H): Require inline.
34361         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34362         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34363         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34364         implement warnings.
34365
34366         unistd: warn on use of environ without module
34367         * modules/unistd (Depends-on): Add warn-on-use.
34368         (Makefile.am): Provide new substitutions.
34369         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34370         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34371
34372         stdio: warn on suspicious uses
34373         * modules/stdio (Depends-on): Add warn-on-use.
34374         (Makefile.am): Provide new substitutions.
34375         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34376         fseeko.
34377         * lib/stdio.in.h (gets): Always warn on use.
34378         (fseek, ftell): Adjust when warnings are issued, and honor
34379         _GL_NO_LARGE_FILES as a way to silence the warning.
34380         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34381         any warning about large file offsets.
34382         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34383         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34384         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34385         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34386         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34387         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34388         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34389         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34390
34391         warn-on-use: new module
34392         * modules/warn-on-use: New file.
34393         * build-aux/warn-on-use.h: Likewise.
34394         * m4/warn-on-use.m4: Likewise.
34395         * MODULES.html.sh (Support for building): Mention it.
34396
34397 2010-01-10  Bruno Haible  <bruno@clisp.org>
34398
34399         Tests for module 'unistr/u32-strdup'.
34400         * modules/unistr/u32-strdup-tests: New file.
34401         * tests/unistr/test-u32-strdup.c: New file.
34402
34403         Tests for module 'unistr/u16-strdup'.
34404         * modules/unistr/u16-strdup-tests: New file.
34405         * tests/unistr/test-u16-strdup.c: New file.
34406
34407         Tests for module 'unistr/u8-strdup'.
34408         * modules/unistr/u8-strdup-tests: New file.
34409         * tests/unistr/test-u8-strdup.c: New file.
34410         * tests/unistr/test-strdup.h: New file.
34411
34412         Tests for module 'unistr/u32-strncmp'.
34413         * modules/unistr/u32-strncmp-tests: New file.
34414         * tests/unistr/test-u32-strncmp.c: New file.
34415
34416         Tests for module 'unistr/u16-strncmp'.
34417         * modules/unistr/u16-strncmp-tests: New file.
34418         * tests/unistr/test-u16-strncmp.c: New file.
34419
34420         Tests for module 'unistr/u8-strncmp'.
34421         * modules/unistr/u8-strncmp-tests: New file.
34422         * tests/unistr/test-u8-strncmp.c: New file.
34423         * tests/unistr/test-strncmp.h: New file.
34424
34425         Tests for module 'unistr/u32-strcoll'.
34426         * modules/unistr/u32-strcoll-tests: New file.
34427         * tests/unistr/test-u32-strcoll.c: New file.
34428
34429         Tests for module 'unistr/u16-strcoll'.
34430         * modules/unistr/u16-strcoll-tests: New file.
34431         * tests/unistr/test-u16-strcoll.c: New file.
34432
34433         Tests for module 'unistr/u8-strcoll'.
34434         * modules/unistr/u8-strcoll-tests: New file.
34435         * tests/unistr/test-u8-strcoll.c: New file.
34436
34437         Tests for module 'unistr/u32-strcmp'.
34438         * modules/unistr/u32-strcmp-tests: New file.
34439         * tests/unistr/test-u32-strcmp.c: New file.
34440         * tests/unistr/test-u32-strcmp.h: New file.
34441
34442         Tests for module 'unistr/u16-strcmp'.
34443         * modules/unistr/u16-strcmp-tests: New file.
34444         * tests/unistr/test-u16-strcmp.c: New file.
34445         * tests/unistr/test-u16-strcmp.h: New file.
34446
34447         Tests for module 'unistr/u8-strcmp'.
34448         * modules/unistr/u8-strcmp-tests: New file.
34449         * tests/unistr/test-u8-strcmp.c: New file.
34450         * tests/unistr/test-u8-strcmp.h: New file.
34451         * tests/unistr/test-strcmp.h: New file.
34452
34453         Tests for module 'unistr/u32-strncat'.
34454         * modules/unistr/u32-strncat-tests: New file.
34455         * tests/unistr/test-u32-strncat.c: New file.
34456
34457         Tests for module 'unistr/u16-strncat'.
34458         * modules/unistr/u16-strncat-tests: New file.
34459         * tests/unistr/test-u16-strncat.c: New file.
34460
34461         Tests for module 'unistr/u8-strncat'.
34462         * modules/unistr/u8-strncat-tests: New file.
34463         * tests/unistr/test-u8-strncat.c: New file.
34464         * tests/unistr/test-strncat.h: New file.
34465
34466         Tests for module 'unistr/u32-strcat'.
34467         * modules/unistr/u32-strcat-tests: New file.
34468         * tests/unistr/test-u32-strcat.c: New file.
34469
34470         Tests for module 'unistr/u16-strcat'.
34471         * modules/unistr/u16-strcat-tests: New file.
34472         * tests/unistr/test-u16-strcat.c: New file.
34473
34474         Tests for module 'unistr/u8-strcat'.
34475         * modules/unistr/u8-strcat-tests: New file.
34476         * tests/unistr/test-u8-strcat.c: New file.
34477         * tests/unistr/test-strcat.h: New file.
34478
34479         Tests for module 'unistr/u32-stpncpy'.
34480         * modules/unistr/u32-stpncpy-tests: New file.
34481         * tests/unistr/test-u32-stpncpy.c: New file.
34482
34483         Tests for module 'unistr/u16-stpncpy'.
34484         * modules/unistr/u16-stpncpy-tests: New file.
34485         * tests/unistr/test-u16-stpncpy.c: New file.
34486
34487         Tests for module 'unistr/u8-stpncpy'.
34488         * modules/unistr/u8-stpncpy-tests: New file.
34489         * tests/unistr/test-u8-stpncpy.c: New file.
34490         * tests/unistr/test-stpncpy.h: New file.
34491
34492         Tests for module 'unistr/u32-strncpy'.
34493         * modules/unistr/u32-strncpy-tests: New file.
34494         * tests/unistr/test-u32-strncpy.c: New file.
34495
34496         Tests for module 'unistr/u16-strncpy'.
34497         * modules/unistr/u16-strncpy-tests: New file.
34498         * tests/unistr/test-u16-strncpy.c: New file.
34499
34500         Tests for module 'unistr/u8-strncpy'.
34501         * modules/unistr/u8-strncpy-tests: New file.
34502         * tests/unistr/test-u8-strncpy.c: New file.
34503         * tests/unistr/test-strncpy.h: New file.
34504
34505         Tests for module 'unistr/u32-stpcpy'.
34506         * modules/unistr/u32-stpcpy-tests: New file.
34507         * tests/unistr/test-u32-stpcpy.c: New file.
34508
34509         Tests for module 'unistr/u16-stpcpy'.
34510         * modules/unistr/u16-stpcpy-tests: New file.
34511         * tests/unistr/test-u16-stpcpy.c: New file.
34512
34513         Tests for module 'unistr/u8-stpcpy'.
34514         * modules/unistr/u8-stpcpy-tests: New file.
34515         * tests/unistr/test-u8-stpcpy.c: New file.
34516         * tests/unistr/test-stpcpy.h: New file.
34517
34518         Tests for module 'unistr/u32-strcpy'.
34519         * modules/unistr/u32-strcpy-tests: New file.
34520         * tests/unistr/test-u32-strcpy.c: New file.
34521
34522         Tests for module 'unistr/u16-strcpy'.
34523         * modules/unistr/u16-strcpy-tests: New file.
34524         * tests/unistr/test-u16-strcpy.c: New file.
34525
34526         Tests for module 'unistr/u8-strcpy'.
34527         * modules/unistr/u8-strcpy-tests: New file.
34528         * tests/unistr/test-u8-strcpy.c: New file.
34529         * tests/unistr/test-strcpy.h: New file.
34530
34531         Tests for module 'unistr/u32-strnlen'.
34532         * modules/unistr/u32-strnlen-tests: New file.
34533         * tests/unistr/test-u32-strnlen.c: New file.
34534
34535         Tests for module 'unistr/u16-strnlen'.
34536         * modules/unistr/u16-strnlen-tests: New file.
34537         * tests/unistr/test-u16-strnlen.c: New file.
34538
34539         Tests for module 'unistr/u8-strnlen'.
34540         * modules/unistr/u8-strnlen-tests: New file.
34541         * tests/unistr/test-u8-strnlen.c: New file.
34542         * tests/unistr/test-strnlen.h: New file.
34543
34544         Tests for module 'unistr/u32-strlen'.
34545         * modules/unistr/u32-strlen-tests: New file.
34546         * tests/unistr/test-u32-strlen.c: New file.
34547
34548         Tests for module 'unistr/u16-strlen'.
34549         * modules/unistr/u16-strlen-tests: New file.
34550         * tests/unistr/test-u16-strlen.c: New file.
34551
34552         Tests for module 'unistr/u8-strlen'.
34553         * modules/unistr/u8-strlen-tests: New file.
34554         * tests/unistr/test-u8-strlen.c: New file.
34555
34556         Tests for module 'unistr/u32-prev'.
34557         * modules/unistr/u32-prev-tests: New file.
34558         * tests/unistr/test-u32-prev.c: New file.
34559
34560         Tests for module 'unistr/u16-prev'.
34561         * modules/unistr/u16-prev-tests: New file.
34562         * tests/unistr/test-u16-prev.c: New file.
34563
34564         Tests for module 'unistr/u8-prev'.
34565         * modules/unistr/u8-prev-tests: New file.
34566         * tests/unistr/test-u8-prev.c: New file.
34567
34568         Tests for module 'unistr/u32-next'.
34569         * modules/unistr/u32-next-tests: New file.
34570         * tests/unistr/test-u32-next.c: New file.
34571
34572         Tests for module 'unistr/u16-next'.
34573         * modules/unistr/u16-next-tests: New file.
34574         * tests/unistr/test-u16-next.c: New file.
34575
34576         Tests for module 'unistr/u8-next'.
34577         * modules/unistr/u8-next-tests: New file.
34578         * tests/unistr/test-u8-next.c: New file.
34579
34580         Tests for module 'unistr/u32-strmbtouc'.
34581         * modules/unistr/u32-strmbtouc-tests: New file.
34582         * tests/unistr/test-u32-strmbtouc.c: New file.
34583
34584         Tests for module 'unistr/u16-strmbtouc'.
34585         * modules/unistr/u16-strmbtouc-tests: New file.
34586         * tests/unistr/test-u16-strmbtouc.c: New file.
34587
34588         Tests for module 'unistr/u8-strmbtouc'.
34589         * modules/unistr/u8-strmbtouc-tests: New file.
34590         * tests/unistr/test-u8-strmbtouc.c: New file.
34591
34592         Tests for module 'unistr/u32-strmblen'.
34593         * modules/unistr/u32-strmblen-tests: New file.
34594         * tests/unistr/test-u32-strmblen.c: New file.
34595
34596         Tests for module 'unistr/u16-strmblen'.
34597         * modules/unistr/u16-strmblen-tests: New file.
34598         * tests/unistr/test-u16-strmblen.c: New file.
34599
34600         Tests for module 'unistr/u8-strmblen'.
34601         * modules/unistr/u8-strmblen-tests: New file.
34602         * tests/unistr/test-u8-strmblen.c: New file.
34603
34604         Tests for module 'unistr/u32-cpy-alloc'.
34605         * modules/unistr/u32-cpy-alloc-tests: New file.
34606         * tests/unistr/test-u32-cpy-alloc.c: New file.
34607
34608         Tests for module 'unistr/u16-cpy-alloc'.
34609         * modules/unistr/u16-cpy-alloc-tests: New file.
34610         * tests/unistr/test-u16-cpy-alloc.c: New file.
34611
34612         Tests for module 'unistr/u8-cpy-alloc'.
34613         * modules/unistr/u8-cpy-alloc-tests: New file.
34614         * tests/unistr/test-u8-cpy-alloc.c: New file.
34615         * tests/unistr/test-cpy-alloc.h: New file.
34616
34617         Tests for module 'unistr/u32-mbsnlen'.
34618         * modules/unistr/u32-mbsnlen-tests: New file.
34619         * tests/unistr/test-u32-mbsnlen.c: New file.
34620
34621         Tests for module 'unistr/u16-mbsnlen'.
34622         * modules/unistr/u16-mbsnlen-tests: New file.
34623         * tests/unistr/test-u16-mbsnlen.c: New file.
34624
34625         Tests for module 'unistr/u8-mbsnlen'.
34626         * modules/unistr/u8-mbsnlen-tests: New file.
34627         * tests/unistr/test-u8-mbsnlen.c: New file.
34628
34629         Tests for module 'unistr/u32-chr'.
34630         * modules/unistr/u32-chr-tests: New file.
34631         * tests/unistr/test-u32-chr.c: New file.
34632
34633         Tests for module 'unistr/u16-chr'.
34634         * modules/unistr/u16-chr-tests: New file.
34635         * tests/unistr/test-u16-chr.c: New file.
34636
34637         Tests for module 'unistr/u8-chr'.
34638         * modules/unistr/u8-chr-tests: New file.
34639         * tests/unistr/test-u8-chr.c: New file.
34640         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34641
34642         Tests for module 'unistr/u32-cmp2'.
34643         * modules/unistr/u32-cmp2-tests: New file.
34644         * tests/unistr/test-u32-cmp2.c: New file.
34645
34646         Tests for module 'unistr/u16-cmp2'.
34647         * modules/unistr/u16-cmp2-tests: New file.
34648         * tests/unistr/test-u16-cmp2.c: New file.
34649
34650         Tests for module 'unistr/u8-cmp2'.
34651         * modules/unistr/u8-cmp2-tests: New file.
34652         * tests/unistr/test-u8-cmp2.c: New file.
34653         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34654
34655         Tests for module 'unistr/u32-cmp'.
34656         * modules/unistr/u32-cmp-tests: New file.
34657         * tests/unistr/test-u32-cmp.c: New file.
34658
34659         Tests for module 'unistr/u16-cmp'.
34660         * modules/unistr/u16-cmp-tests: New file.
34661         * tests/unistr/test-u16-cmp.c: New file.
34662
34663         Tests for module 'unistr/u8-cmp'.
34664         * modules/unistr/u8-cmp-tests: New file.
34665         * tests/unistr/test-u8-cmp.c: New file.
34666         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34667
34668         Tests for module 'unistr/u32-set'.
34669         * modules/unistr/u32-set-tests: New file.
34670         * tests/unistr/test-u32-set.c: New file.
34671
34672         Tests for module 'unistr/u16-set'.
34673         * modules/unistr/u16-set-tests: New file.
34674         * tests/unistr/test-u16-set.c: New file.
34675
34676         Tests for module 'unistr/u8-set'.
34677         * modules/unistr/u8-set-tests: New file.
34678         * tests/unistr/test-u8-set.c: New file.
34679         * tests/unistr/test-set.h: New file.
34680
34681         Tests for module 'unistr/u32-move'.
34682         * modules/unistr/u32-move-tests: New file.
34683         * tests/unistr/test-u32-move.c: New file.
34684
34685         Tests for module 'unistr/u16-move'.
34686         * modules/unistr/u16-move-tests: New file.
34687         * tests/unistr/test-u16-move.c: New file.
34688
34689         Tests for module 'unistr/u8-move'.
34690         * modules/unistr/u8-move-tests: New file.
34691         * tests/unistr/test-u8-move.c: New file.
34692         * tests/unistr/test-move.h: New file.
34693
34694         Tests for module 'unistr/u32-cpy'.
34695         * modules/unistr/u32-cpy-tests: New file.
34696         * tests/unistr/test-u32-cpy.c: New file.
34697
34698         Tests for module 'unistr/u16-cpy'.
34699         * modules/unistr/u16-cpy-tests: New file.
34700         * tests/unistr/test-u16-cpy.c: New file.
34701
34702         Tests for module 'unistr/u8-cpy'.
34703         * modules/unistr/u8-cpy-tests: New file.
34704         * tests/unistr/test-u8-cpy.c: New file.
34705         * tests/unistr/test-cpy.h: New file.
34706
34707 2010-01-09  Bruno Haible  <bruno@clisp.org>
34708
34709         Tests for module 'unistr/u32-uctomb'.
34710         * modules/unistr/u32-uctomb-tests: New file.
34711         * tests/unistr/test-u32-uctomb.c: New file.
34712
34713         Tests for module 'unistr/u16-uctomb'.
34714         * modules/unistr/u16-uctomb-tests: New file.
34715         * tests/unistr/test-u16-uctomb.c: New file.
34716
34717         Tests for module 'unistr/u8-uctomb'.
34718         * modules/unistr/u8-uctomb-tests: New file.
34719         * tests/unistr/test-u8-uctomb.c: New file.
34720
34721         Tests for module 'unistr/u32-mbtoucr'.
34722         * modules/unistr/u32-mbtoucr-tests: New file.
34723         * tests/unistr/test-u32-mbtoucr.c: New file.
34724
34725         Tests for module 'unistr/u16-mbtoucr'.
34726         * modules/unistr/u16-mbtoucr-tests: New file.
34727         * tests/unistr/test-u16-mbtoucr.c: New file.
34728
34729         Tests for module 'unistr/u8-mbtoucr'.
34730         * modules/unistr/u8-mbtoucr-tests: New file.
34731         * tests/unistr/test-u8-mbtoucr.c: New file.
34732
34733         Tests for module 'unistr/u32-mbtouc'.
34734         * modules/unistr/u32-mbtouc-tests: New file.
34735         * tests/unistr/test-u32-mbtouc.c: New file.
34736
34737         Tests for module 'unistr/u16-mbtouc'.
34738         * modules/unistr/u16-mbtouc-tests: New file.
34739         * tests/unistr/test-u16-mbtouc.c: New file.
34740
34741         Tests for module 'unistr/u8-mbtouc'.
34742         * modules/unistr/u8-mbtouc-tests: New file.
34743         * tests/unistr/test-u8-mbtouc.c: New file.
34744
34745         Tests for module 'unistr/u32-mbtouc-unsafe'.
34746         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34747         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34748         * tests/unistr/test-u32-mbtouc.h: New file.
34749
34750         Tests for module 'unistr/u16-mbtouc-unsafe'.
34751         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34752         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34753         * tests/unistr/test-u16-mbtouc.h: New file.
34754
34755         Tests for module 'unistr/u8-mbtouc-unsafe'.
34756         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34757         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34758         * tests/unistr/test-u8-mbtouc.h: New file.
34759
34760         Tests for module 'unistr/u32-mblen'.
34761         * modules/unistr/u32-mblen-tests: New file.
34762         * tests/unistr/test-u32-mblen.c: New file.
34763
34764         Tests for module 'unistr/u16-mblen'.
34765         * modules/unistr/u16-mblen-tests: New file.
34766         * tests/unistr/test-u16-mblen.c: New file.
34767
34768         Tests for module 'unistr/u8-mblen'.
34769         * modules/unistr/u8-mblen-tests: New file.
34770         * tests/unistr/test-u8-mblen.c: New file.
34771
34772         Tests for module 'unistr/u32-to-u16'.
34773         * modules/unistr/u32-to-u16-tests: New file.
34774         * tests/unistr/test-u32-to-u16.c: New file.
34775
34776         Tests for module 'unistr/u32-to-u8'.
34777         * modules/unistr/u32-to-u8-tests: New file.
34778         * tests/unistr/test-u32-to-u8.c: New file.
34779
34780         Tests for module 'unistr/u16-to-u32'.
34781         * modules/unistr/u16-to-u32-tests: New file.
34782         * tests/unistr/test-u16-to-u32.c: New file.
34783
34784         Tests for module 'unistr/u16-to-u8'.
34785         * modules/unistr/u16-to-u8-tests: New file.
34786         * tests/unistr/test-u16-to-u8.c: New file.
34787
34788         Tests for module 'unistr/u8-to-u32'.
34789         * modules/unistr/u8-to-u32-tests: New file.
34790         * tests/unistr/test-u8-to-u32.c: New file.
34791
34792         Tests for module 'unistr/u8-to-u16'.
34793         * modules/unistr/u8-to-u16-tests: New file.
34794         * tests/unistr/test-u8-to-u16.c: New file.
34795
34796         Tests for module 'unistr/u32-check'.
34797         * modules/unistr/u32-check-tests: New file.
34798         * tests/unistr/test-u32-check.c: New file.
34799
34800         Tests for module 'unistr/u16-check'.
34801         * modules/unistr/u16-check-tests: New file.
34802         * tests/unistr/test-u16-check.c: New file.
34803
34804         Tests for module 'unistr/u8-check'.
34805         * modules/unistr/u8-check-tests: New file.
34806         * tests/unistr/test-u8-check.c: New file.
34807
34808         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34809         (category_equals): New function.
34810         (main): Add more tests.
34811         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34812
34813         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34814
34815 2010-01-10  Bruno Haible  <bruno@clisp.org>
34816
34817         unistr/u*-strcoll: Try harder to distinguish different strings.
34818         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34819         compare s1 and s2 to see if they are different.
34820
34821 2010-01-10  Bruno Haible  <bruno@clisp.org>
34822
34823         unistr/u*-stpncpy: Fix the return value.
34824         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34825         description of the return value consistent with stpncpy in glibc.
34826         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34827         written non-NUL unit.
34828
34829 2010-01-10  Bruno Haible  <bruno@clisp.org>
34830
34831         unistr/u*-next: Add missing dependencies.
34832         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34833         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34834         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34835
34836 2010-01-10  Bruno Haible  <bruno@clisp.org>
34837
34838         unistr/u8-mbsnlen: Fix return value for incomplete character.
34839         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34840         u8_mblen.
34841         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34842         Remove unistr/u8-mblen.
34843         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34844         u16_mblen.
34845         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34846         Remove unistr/u16-mblen.
34847
34848 2010-01-10  Bruno Haible  <bruno@clisp.org>
34849
34850         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34851         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34852         Reported by Brian Gough <bjg@gnu.org> and
34853         Chris Clayton <chris2553@googlemail.com> via
34854         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34855
34856 2010-01-09  Bruno Haible  <bruno@clisp.org>
34857
34858         unistr/u16-to-u32: Reject invalid input.
34859         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34860         u16_mbtouc.
34861         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34862         Remove unistr/u16-mbtouc.
34863
34864         unistr/u16-to-u8: Reject invalid input.
34865         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34866         u16_mbtouc.
34867         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34868         Remove unistr/u16-mbtouc.
34869
34870         unistr/u8-to-u32: Reject invalid input.
34871         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34872         u8_mbtouc.
34873         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34874         Remove unistr/u8-mbtouc.
34875
34876         unistr/u8-to-u16: Reject invalid input.
34877         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34878         u8_mbtouc.
34879         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34880         Remove unistr/u8-mbtouc.
34881
34882 2010-01-09  Bruno Haible  <bruno@clisp.org>
34883
34884         Tests for module 'getlogin'.
34885         * modules/getlogin-tests: New file.
34886         * tests/test-getlogin.c: New file.
34887
34888         New module 'getlogin'.
34889         * lib/unistd.in.h (getlogin): New declaration.
34890         * lib/getlogin.c: New file.
34891         * m4/getlogin.m4: New file.
34892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34893         HAVE_GETLOGIN.
34894         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34895         HAVE_GETLOGIN.
34896         * modules/getlogin: New file.
34897         * doc/posix-functions/getlogin.texi: Mention the new module.
34898         Reported by John W. Eaton <jwe@gnu.org>.
34899
34900 2010-01-09  Bruno Haible  <bruno@clisp.org>
34901
34902         getlogin_r: Support for native Windows.
34903         * lib/getlogin_r.c: Include <windows.h>
34904         (getlogin_r): Implement for native Windows.
34905         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34906         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34907         via John W. Eaton <jwe@gnu.org>.
34908
34909 2010-01-09  Bruno Haible  <bruno@clisp.org>
34910
34911         getlogin_r: Small fixes.
34912         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34913         succeeds.
34914         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34915         before testing whether getlogin_r is declared. No need to set
34916         HAVE_DECL_GETLOGIN_R to 1.
34917         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34918
34919 2010-01-09  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/unistd.in.h (getlogin_r): Add comment.
34922
34923 2010-01-09  Bruno Haible  <bruno@clisp.org>
34924
34925         Tests for module 'getlogin_r'.
34926         * modules/getlogin_r-tests: New file.
34927         * tests/test-getlogin_r.c: New file.
34928
34929 2010-01-09  Jim Meyering  <meyering@redhat.com>
34930
34931         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34932         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34933         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34934
34935 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34936
34937         * lib/dup2.c (rpl_dup2): Improve comment.
34938
34939 2010-01-08  Eric Blake  <ebb9@byu.net>
34940
34941         maint.mk: allow packages to add makefile @@ exceptions
34942         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34943         (sc_makefile_check): Rename...
34944         (sc_makefile_at_at_check): ...to this, and use hook.
34945
34946         dup2: work around mingw bug
34947         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34948         Reported by Simon Josefsson.
34949
34950 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34951
34952         glob: Fix C++ compilation.
34953         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34954         C++.
34955
34956 2010-01-07  Bruno Haible  <bruno@clisp.org>
34957
34958         Fix indentation of wctype.in.h, broken since 2007-01-06.
34959         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34960
34961 2010-01-07  Bruno Haible  <bruno@clisp.org>
34962
34963         mbslen: Avoid collision with system function.
34964         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34965         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34966         * m4/mbslen.m4: New file.
34967         * modules/mbslen (Files): Add it.
34968         (configure.ac): Invoke gl_MBSLEN.
34969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34970         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34971         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34972         via Ian Beckwith <ianb@erislabs.net>.
34973
34974 2010-01-07  Bruno Haible  <bruno@clisp.org>
34975
34976         dirent: Document the last fix.
34977         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34978
34979 2010-01-07  Bruno Haible  <bruno@clisp.org>
34980
34981         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34982         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34983         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34984         va_list are defined.
34985         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34986         Reported by Eric Blake.
34987
34988 2010-01-07  Bruno Haible  <bruno@clisp.org>
34989
34990         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34991         * modules/xlist (Depends-on): Add 'list',
34992         * modules/xoset (Depends-on): Add 'oset'.
34993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34994
34995 2010-01-07  Bruno Haible  <bruno@clisp.org>
34996
34997         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34998         * doc/posix-functions/strncasecmp.texi: Likewise.
34999
35000 2010-01-07  Bruno Haible  <bruno@clisp.org>
35001
35002         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35003
35004 2010-01-07  John W. Eaton  <jwe@octave.org>
35005
35006         wctype: allow C++ use
35007         * lib/wctype.in.h: Add extern "C" block for C++.
35008
35009 2010-01-06  Eric Blake  <ebb9@byu.net>
35010
35011         maint.mk: detect incorrect GFDL usage
35012         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35013
35014 2010-01-06  Jim Meyering  <meyering@redhat.com>
35015         and Eric Blake  <ebb9@byu.net>
35016
35017         maint.mk: ignore multi-line copyright in NEWS
35018         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35019
35020 2010-01-06  Eric Blake  <ebb9@byu.net>
35021
35022         select: add missing dependency
35023         * modules/select-tests (Depends-on): Move sockets dependency...
35024         * modules/select (Depends-on): ...here.
35025         Reported by Ian Beckwith.
35026
35027         doc: regenerate INSTALL
35028         * doc/INSTALL: Reflect recent autoconf update.
35029         * doc/INSTALL.ISO: Likewise.
35030         * doc/INSTALL.UTF-8: Likewise.
35031
35032         pread: fix compilation on glibc
35033         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35034         Reported by Ralf Wildenhues.
35035
35036         dirent: fix test failure
35037         * lib/dirent.in.h (includes): Guarantee ino_t.
35038         Reported by Ralf Wildenhues.
35039
35040 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35041
35042         linkat, renameat: avoid bad free
35043         * lib/at-func2.c (at_func2): Fix typo.
35044         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35045
35046 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35047
35048         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35049         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35050         to avoid failure of symlink test later.
35051
35052 2010-01-06  Eric Blake  <ebb9@byu.net>
35053
35054         stdio, unistd: guarantee ssize_t
35055         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35056         2008 are exposed when needed.
35057         * lib/stdio.in.h (includes): Likewise.
35058         Reported by Ralf Wildenhues.
35059
35060 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35061
35062         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35063         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35064         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35065
35066 2010-01-06  Jim Meyering  <meyering@redhat.com>
35067
35068         readtokens: this module *does* require xalloc.h
35069         It uses only functions that were omitted by the old syntax-check rule.
35070         * lib/readtokens.c: Include "xalloc.h" once again.
35071         * modules/readtokens (Depends-on): Add xalloc.
35072         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35073
35074 2010-01-05  Eric Blake  <ebb9@byu.net>
35075
35076         maint: support 'make announcement' from a VPATH build
35077         * top/maint.mk (announcement): Look for correct NEWS file.
35078
35079 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35080
35081         utimens (fdutimens): ignore a negative FD, per contract
35082         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35083         when we have a valid file descriptor.  Otherwise, using a brand
35084         new glibc (with just-patched futimens that now fails with EBADF)
35085         would cause this function to fail with ENOSYS.
35086         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35087         See also http://bugzilla.redhat.com/552320.
35088
35089 2010-01-05  Eric Blake  <ebb9@byu.net>
35090
35091         strcase: document what it provides
35092         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35093         gnulib module.
35094         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35095         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35096
35097 2010-01-05  Jim Meyering  <meyering@redhat.com>
35098
35099         maint: remove useless inclusions of "xalloc.h"
35100         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35101         * lib/readtokens.c: Likewise.
35102         * lib/same.c: Likewise.
35103         * modules/getloadavg (Depends-on): Remove xalloc.
35104         * modules/readtokens: Likewise.
35105         * modules/same: Likewise.
35106
35107         maint.mk: include 4 more function names in alloca.h-checking regexp
35108         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35109         regexp.  Before, we would give a false-positive (saying alloca.h
35110         is included unnecessarily) when the only uses involved omitted symbols.
35111
35112         xalloc.h: use consistent formatting
35113         * lib/xalloc.h: Move declarations to start in the first column.
35114
35115 2010-01-05  Eric Blake  <ebb9@byu.net>
35116
35117         mkdir: avoid xalloc
35118         * lib/mkdir.c (includes): Drop unused header.
35119         Reported by John W. Eaton.
35120
35121 2010-01-04  Jim Meyering  <meyering@redhat.com>
35122
35123         nl_langinfo: avoid configure-time syntax error
35124         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35125         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35126         the empty string.  Don't let that provoke a shell syntax error.
35127
35128         regcomp, regexec, fnmatch: avoid array bounds read error
35129         * lib/regcomp.c (build_equiv_class): From glibc:
35130         Use only the low 24 bits of a findidx return value as an index
35131         into the weights array.  Patch by Ulrich Drepper:
35132         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35133         * lib/regexec.c (check_node_accept_bytes): Likewise.
35134         * lib/fnmatch_loop.c (FCT): Likewise.
35135
35136         regcomp: skip collseq lookup when there are no rules
35137         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35138         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35139
35140         regcomp: recognize ill-formed { } expressions
35141         * lib/regcomp.c (parse_dup_op): From glibc:
35142         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35143
35144         regcomp: fix typo in comment
35145         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35146         s/satisfy/satisfies/.
35147
35148         regcomp: sync from glibc: remove dead store
35149         * lib/regcomp.c (duplicate_node_closure): Remove useless
35150         search_duplicated_node call and dead store.
35151
35152         regcomp: sync from glibc; always use nl_langinfo
35153         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35154         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35155         * modules/regex (Depends-on): Add nl_langinfo.
35156
35157 2010-01-04  Eric Blake  <ebb9@byu.net>
35158
35159         fdopendir: fix configure test
35160         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35161
35162 2010-01-01  Bruno Haible  <bruno@clisp.org>
35163
35164         wchar: Remove unused configure check.
35165         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35166
35167 2010-01-01  Eric Blake  <ebb9@byu.net>
35168
35169         headers: make check of system header explicit
35170         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35171         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35172         ourselves.
35173         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35174         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35175         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35176         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35177         internals.
35178         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35179         missing.
35180         Suggested by Bruno Haible.
35181
35182 2010-01-01  Jim Meyering  <meyering@redhat.com>
35183
35184         ChangeLog: tweak to eliminate unnecessary copyright line
35185         * ChangeLog: Remove a copyright line that was mistakenly updated
35186         by today's update-copyright run.  Reported by Eric Blake.
35187
35188         test-update-copyright: don't let envvar setting cause test failure
35189         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35190
35191 2010-01-01  Bruno Haible  <bruno@clisp.org>
35192
35193         localename: Avoid gcc warning.
35194         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35195         function if it is not used.
35196
35197 2010-01-01  Jim Meyering  <meyering@redhat.com>
35198
35199         update nearly all FSF copyright year lists to include 2010
35200         Use the same procedure as for 2009, outlined in
35201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35202
35203         version-etc: set COPYRIGHT_YEAR to 2010
35204         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35205
35206 2009-12-31  Eric Blake  <ebb9@byu.net>
35207
35208         doc: correct availability of cygwin 1.5.x getopt
35209         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35210         variables.
35211         * doc/posix-functions/opterr.texi (opterr): Likewise.
35212         * doc/posix-functions/optind.texi (optind): Likewise.
35213         * doc/posix-functions/optopt.texi (optopt): Likewise.
35214         * doc/posix-functions/tzname.texi (tzname): Likewise.
35215
35216         openat: update maintainer
35217         * modules/openat (Maintainer): Add myself.
35218
35219         utimens: avoid shadowing warning
35220         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35221         buffers into one, to avoid shadowing, as well as avoiding a
35222         redundant stat.
35223         Reported by Jim Meyering.
35224
35225         test-dup2: avoid compiler warning
35226         * tests/test-dup2.c (is_inheritable): Only define if used.
35227
35228 2010-01-01  Bruno Haible  <bruno@clisp.org>
35229
35230         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35231         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35232         defined, use wctomb instead of wcrtomb.
35233
35234 2010-01-01  Bruno Haible  <bruno@clisp.org>
35235
35236         iconv: Reject native Solaris iconv.
35237         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35238         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35239
35240 2009-12-31  Bruno Haible  <bruno@clisp.org>
35241
35242         * tests/test-signal.c (main): Remove test of 'SIG'.
35243
35244 2009-12-31  Bruno Haible  <bruno@clisp.org>
35245
35246         spawn: Fix incomplete fix.
35247         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35248         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35249         warnings for GNULIB_POSIXCHECK again.
35250         Reported by Eric Blake.
35251
35252 2009-12-31  Bruno Haible  <bruno@clisp.org>
35253
35254         Avoid namespace pollution on glibc systems.
35255         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35256         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35257         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35258         glibc systems.
35259
35260 2009-12-31  Bruno Haible  <bruno@clisp.org>
35261
35262         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35263         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35264         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35265         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35266         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35267         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35268         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35269
35270 2009-12-31  Bruno Haible  <bruno@clisp.org>
35271
35272         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35273         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35274         afterwards.
35275
35276 2009-12-31  Bruno Haible  <bruno@clisp.org>
35277
35278         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35279         SYS_UTSNAME_H.
35280
35281 2009-12-31  Bruno Haible  <bruno@clisp.org>
35282
35283         spawn: Fix misapplied patch.
35284         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35285         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35286         warnings for GNULIB_POSIXCHECK.
35287
35288 2009-12-31  Bruno Haible  <bruno@clisp.org>
35289
35290         times: Update after sys_times changed.
35291         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35292         * modules/times (Files): Add it.
35293         (configure.ac): Invoke gl_FUNC_TIMES.
35294
35295 2009-12-31  Bruno Haible  <bruno@clisp.org>
35296
35297         Use AC_C_INLINE where necessary.
35298         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35299         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35300         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35301         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35302         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35303         * m4/mbiter.m4 (gl_MBITER): Likewise.
35304         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35305         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35306         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35307         * modules/u64 (configure.ac): Likewise.
35308
35309 2009-12-31  Bruno Haible  <bruno@clisp.org>
35310
35311         Use AC_C_INLINE instead of module 'inline' where possible.
35312         * modules/inline (Description): Clarify purpose.
35313         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35314         * modules/count-one-bits (Depends-on): Remove inline.
35315         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35316         * modules/openat (Depends-on): Remove inline.
35317         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35318         instead of depending on module 'inline'.
35319         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35320         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35321         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35322         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35323         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35324         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35325         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35326         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35327         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35328         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35329         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35330         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35331         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35332         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35333         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35334         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35335         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35336         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35337         Likewise.
35338         * modules/unictype/property-ascii-hex-digit (Depends-on,
35339         configure.ac): Likewise.
35340         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35341         configure.ac): Likewise.
35342         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35343         configure.ac): Likewise.
35344         * modules/unictype/property-bidi-block-separator (Depends-on,
35345         configure.ac): Likewise.
35346         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35347         configure.ac): Likewise.
35348         * modules/unictype/property-bidi-common-separator (Depends-on,
35349         configure.ac): Likewise.
35350         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35351         Likewise.
35352         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35353         configure.ac): Likewise.
35354         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35355         configure.ac): Likewise.
35356         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35357         configure.ac): Likewise.
35358         * modules/unictype/property-bidi-european-digit (Depends-on,
35359         configure.ac): Likewise.
35360         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35361         configure.ac): Likewise.
35362         * modules/unictype/property-bidi-left-to-right (Depends-on,
35363         configure.ac): Likewise.
35364         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35365         configure.ac): Likewise.
35366         * modules/unictype/property-bidi-other-neutral (Depends-on,
35367         configure.ac): Likewise.
35368         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35369         Likewise.
35370         * modules/unictype/property-bidi-segment-separator (Depends-on,
35371         configure.ac): Likewise.
35372         * modules/unictype/property-bidi-whitespace (Depends-on,
35373         configure.ac): Likewise.
35374         * modules/unictype/property-combining (Depends-on, configure.ac):
35375         Likewise.
35376         * modules/unictype/property-composite (Depends-on, configure.ac):
35377         Likewise.
35378         * modules/unictype/property-currency-symbol (Depends-on,
35379         configure.ac): Likewise.
35380         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35381         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35382         Likewise.
35383         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35384         configure.ac): Likewise.
35385         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35386         Likewise.
35387         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35388         Likewise.
35389         * modules/unictype/property-extender (Depends-on, configure.ac):
35390         Likewise.
35391         * modules/unictype/property-format-control (Depends-on, configure.ac):
35392         Likewise.
35393         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35394         Likewise.
35395         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35396         Likewise.
35397         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35398         Likewise.
35399         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35400         Likewise.
35401         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35402         Likewise.
35403         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35404         Likewise.
35405         * modules/unictype/property-id-start (Depends-on, configure.ac):
35406         Likewise.
35407         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35408         Likewise.
35409         * modules/unictype/property-ids-binary-operator (Depends-on,
35410         configure.ac): Likewise.
35411         * modules/unictype/property-ids-trinary-operator (Depends-on,
35412         configure.ac): Likewise.
35413         * modules/unictype/property-ignorable-control (Depends-on,
35414         configure.ac): Likewise.
35415         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35416         Likewise.
35417         * modules/unictype/property-join-control (Depends-on, configure.ac):
35418         Likewise.
35419         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35420         Likewise.
35421         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35422         Likewise.
35423         * modules/unictype/property-logical-order-exception (Depends-on,
35424         configure.ac): Likewise.
35425         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35426         Likewise.
35427         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35428         * modules/unictype/property-non-break (Depends-on, configure.ac):
35429         Likewise.
35430         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35431         Likewise.
35432         * modules/unictype/property-numeric (Depends-on, configure.ac):
35433         Likewise.
35434         * modules/unictype/property-other-alphabetic (Depends-on,
35435         configure.ac): Likewise.
35436         * modules/unictype/property-other-default-ignorable-code-point
35437         (Depends-on, configure.ac): Likewise.
35438         * modules/unictype/property-other-grapheme-extend (Depends-on,
35439         configure.ac): Likewise.
35440         * modules/unictype/property-other-id-continue (Depends-on,
35441         configure.ac): Likewise.
35442         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35443         Likewise.
35444         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35445         Likewise.
35446         * modules/unictype/property-other-math (Depends-on, configure.ac):
35447         Likewise.
35448         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35449         Likewise.
35450         * modules/unictype/property-paired-punctuation (Depends-on,
35451         configure.ac): Likewise.
35452         * modules/unictype/property-paragraph-separator (Depends-on,
35453         configure.ac): Likewise.
35454         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35455         Likewise.
35456         * modules/unictype/property-pattern-white-space (Depends-on,
35457         configure.ac): Likewise.
35458         * modules/unictype/property-private-use (Depends-on, configure.ac):
35459         Likewise.
35460         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35461         Likewise.
35462         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35463         Likewise.
35464         * modules/unictype/property-radical (Depends-on, configure.ac):
35465         Likewise.
35466         * modules/unictype/property-sentence-terminal (Depends-on,
35467         configure.ac): Likewise.
35468         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35469         Likewise.
35470         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35471         * modules/unictype/property-terminal-punctuation (Depends-on,
35472         configure.ac): Likewise.
35473         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35474         Likewise.
35475         * modules/unictype/property-unassigned-code-value (Depends-on,
35476         configure.ac): Likewise.
35477         * modules/unictype/property-unified-ideograph (Depends-on,
35478         configure.ac): Likewise.
35479         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35480         Likewise.
35481         * modules/unictype/property-variation-selector (Depends-on,
35482         configure.ac): Likewise.
35483         * modules/unictype/property-white-space (Depends-on, configure.ac):
35484         Likewise.
35485         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35486         Likewise.
35487         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35488         Likewise.
35489         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35490         Likewise.
35491         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35492         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35493         Likewise.
35494
35495 2009-12-31  Bruno Haible  <bruno@clisp.org>
35496
35497         Remove unnecessary AC_C_INLINE invocation.
35498         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35499         since 2009-08-21.
35500
35501 2009-12-31  Jim Meyering  <meyering@redhat.com>
35502
35503         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35504         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35505         With this change, we can all remove the gpg_key_ID = ... definition
35506         from our respective cfg.mk files.
35507
35508         maint.mk: create announcement template in ~/, not in /tmp
35509         * top/maint.mk (emit_upload_commands): Adjust.
35510         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35511         Remove temporary file, .ci-msg.
35512
35513 2009-12-31  Eric Blake  <ebb9@byu.net>
35514
35515         link-warning: always build headers with link warnings
35516         * modules/arpa_inet (Makefile.am): Always build replacement
35517         header.
35518         * modules/ctype (Makefile.am): Likewise.
35519         * modules/dirent (Makefile.am): Likewise.
35520         * modules/inttypes (Makefile.am): Likewise.
35521         * modules/langinfo (Makefile.am): Likewise.
35522         * modules/locale (Makefile.am): Likewise.
35523         * modules/spawn (Makefile.am): Likewise.
35524         * modules/sys_file (Makefile.am): Likewise.
35525         * modules/sys_ioctl (Makefile.am): Likewise.
35526         * modules/sys_select (Makefile.am): Likewise.
35527         * modules/sys_socket (Makefile.am): Likewise.
35528         * modules/sys_times (Makefile.am): Likewise.
35529         * modules/sys_utsname (Makefile.am): Likewise.
35530         * modules/sys_wait (Makefile.am): Likewise.
35531         * modules/wchar (Makefile.am): Likewise.
35532         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35533         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35534         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35535         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35536         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35537         Likewise.
35538         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35539         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35540         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35541         Likewise.
35542         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35543         Likewise.
35544         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35546         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35548         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35549         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35550         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35551         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35552         (gl_WCHAR_H_DEFAULTS): Likewise.
35553
35554 2009-12-31  Eric Blake  <ebb9@byu.net>
35555
35556         signal, spawn: use link warnings
35557         * lib/signal.in.h (sigset_t): Make unconditional.
35558         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35559         (sigpending, sigprocmask, sigaction): Add link warnings.
35560         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35561         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35562         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35563         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35564         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35565         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35566         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35567         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35568         (posix_spawn_file_actions_destroy)
35569         (posix_spawn_file_actions_addopen)
35570         (posix_spawn_file_actions_addclose)
35571         (posix_spawn_file_actions_adddup2): Likewise.
35572         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35573         * tests/test-signal.c (main): Enhance test.
35574
35575         spawn: improve wrapper support
35576         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35577         (gl_SPAWN_H_DEFAULTS): New defaults.
35578         * modules/spawn (Makefile.am): Substitute them.
35579         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35580         Only declare if missing or broken.
35581
35582         sys_times, sys_utsname: use include_next
35583         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35584         header.
35585         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35586         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35587         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35588         * modules/sys_times (Depends-on): Add include_next.
35589         (Makefile.am): Substitute additional values.
35590         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35591         * lib/sys_times.in.h (includes): Include native header, if
35592         available.
35593         * lib/sys_utsname.in.h (includes): Likewise.
35594         * tests/test-sys_times.c (main): Enhance test.
35595
35596         fdutimensat: revert prior patch
35597         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35598         utimens.h.
35599         Reported by Bruno Haible.
35600
35601 2009-12-30  Eric Blake  <ebb9@byu.net>
35602
35603         sys_wait: drop link-warning dependency
35604         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35605         link-warning efforts.
35606         * lib/sys_wait.in.h: Likewise.
35607
35608         fdutimensat: remove bogus dependency
35609         * modules/fdutimensat (Depends-on): Drop inline.
35610
35611         unistd: fix typo
35612         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35613
35614 2009-12-30  Bruno Haible  <bruno@clisp.org>
35615
35616         Fix compilation error with Solaris cc.
35617         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35618         * lib/unicase/u16-is-invariant.c: Likewise.
35619         * lib/unicase/u32-is-invariant.c: Likewise.
35620         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35621
35622 2009-12-30  Bruno Haible  <bruno@clisp.org>
35623
35624         Fix test crash.
35625         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35626         locales.
35627         Reported by Simon Josefsson <simon@josefsson.org>.
35628
35629 2009-12-30  Bruno Haible  <bruno@clisp.org>
35630
35631         Fix compilation error on most platforms.
35632         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35633         Reported by Simon Josefsson <simon@josefsson.org>
35634         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35635
35636 2009-12-30  Eric Blake  <ebb9@byu.net>
35637
35638         futimens, utimensat: work around ntfs-3g bug
35639         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35640         a ctime bug is present, and expand workaround to cover ntfs-3g.
35641         * lib/utimens.c (fdutimens, lutimens): Likewise.
35642         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35643         (validate_timespec): Adjust return value.
35644         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35645         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35646         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35647
35648 2009-12-29  Eric Blake  <ebb9@byu.net>
35649
35650         link-warning: make usage consistent
35651         * modules/ctype (Depends-on): Add link-warning.
35652         (Makefile.am): Update rules accordingly.
35653         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35654         * modules/locale (Depends-on, Makefile.am): Likewise.
35655         * modules/sys_file (Makefile.am): Likewise.
35656         * modules/getopt-posix (Makefile.am): Delete unused link warning
35657         efforts.
35658         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35659         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35660         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35661         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35662
35663         stdio: remove unused variables
35664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35665         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35666         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35667
35668         tests: test more substitute headers
35669         * modules/ctype-tests: New file.
35670         * modules/dirent-tests: Likewise.
35671         * modules/spawn-tests: Likewise.
35672         * modules/sys_file-tests: Likewise.
35673         * modules/sys_ioctl-tests: Likewise.
35674         * modules/sys_wait-tests: Likewise.
35675         * tests/test-ctype.c: Likewise.
35676         * tests/test-dirent.c: Likewise.
35677         * tests/test-spawn.c: Likewise.
35678         * tests/test-sys_file.c: Likewise.
35679         * tests/test-sys_ioctl.c: Likewise.
35680         * tests/test-sys_wait.c: Likewise.
35681         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35682         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35683         whether or not flock is in use.
35684
35685         tests: remove License section from module
35686         * modules/arpa_inet-tests: Remove unneeded section.
35687         * modules/byteswap-tests: Likewise.
35688         * modules/ceilf-tests: Likewise.
35689         * modules/ceill-tests: Likewise.
35690         * modules/crypto/des-tests: Likewise.
35691         * modules/crypto/gc-arcfour-tests: Likewise.
35692         * modules/crypto/gc-arctwo-tests: Likewise.
35693         * modules/crypto/gc-des-tests: Likewise.
35694         * modules/crypto/gc-hmac-md5-tests: Likewise.
35695         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35696         * modules/crypto/gc-md2-tests: Likewise.
35697         * modules/crypto/gc-md4-tests: Likewise.
35698         * modules/crypto/gc-md5-tests: Likewise.
35699         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35700         * modules/crypto/gc-rijndael-tests: Likewise.
35701         * modules/crypto/gc-sha1-tests: Likewise.
35702         * modules/crypto/gc-tests: Likewise.
35703         * modules/crypto/md2-tests: Likewise.
35704         * modules/crypto/md4-tests: Likewise.
35705         * modules/fcntl-h-tests: Likewise.
35706         * modules/floorf-tests: Likewise.
35707         * modules/floorl-tests: Likewise.
35708         * modules/frexp-nolibm-tests: Likewise.
35709         * modules/frexp-tests: Likewise.
35710         * modules/frexpl-nolibm-tests: Likewise.
35711         * modules/frexpl-tests: Likewise.
35712         * modules/getaddrinfo-tests: Likewise.
35713         * modules/inttypes-tests: Likewise.
35714         * modules/isfinite-tests: Likewise.
35715         * modules/isinf-tests: Likewise.
35716         * modules/ldexpl-tests: Likewise.
35717         * modules/locale-tests: Likewise.
35718         * modules/math-tests: Likewise.
35719         * modules/netdb-tests: Likewise.
35720         * modules/netinet_in-tests: Likewise.
35721         * modules/printf-frexp-tests: Likewise.
35722         * modules/printf-frexpl-tests: Likewise.
35723         * modules/priv-set-tests: Likewise.
35724         * modules/random_r-tests: Likewise.
35725         * modules/round-tests: Likewise.
35726         * modules/roundf-tests: Likewise.
35727         * modules/roundl-tests: Likewise.
35728         * modules/search-tests: Likewise.
35729         * modules/select-tests: Likewise.
35730         * modules/signal-tests: Likewise.
35731         * modules/stdbool-tests: Likewise.
35732         * modules/stddef-tests: Likewise.
35733         * modules/stdint-tests: Likewise.
35734         * modules/stdio-tests: Likewise.
35735         * modules/stdlib-tests: Likewise.
35736         * modules/string-tests: Likewise.
35737         * modules/strings-tests: Likewise.
35738         * modules/sys_select-tests: Likewise.
35739         * modules/sys_socket-tests: Likewise.
35740         * modules/sys_stat-tests: Likewise.
35741         * modules/sys_time-tests: Likewise.
35742         * modules/sys_utsname-tests: Likewise.
35743         * modules/sysexits-tests: Likewise.
35744         * modules/time-tests: Likewise.
35745         * modules/trunc-tests: Likewise.
35746         * modules/truncf-tests: Likewise.
35747         * modules/truncl-tests: Likewise.
35748         * modules/tsearch-tests: Likewise.
35749         * modules/unistd-tests: Likewise.
35750         * modules/wchar-tests: Likewise.
35751         * modules/wctype-tests: Likewise.
35752
35753         tests: fix license on several tests
35754         * tests/test-des.c: Update to GPLv3+.
35755         * tests/test-flock.c: Likewise.
35756         * tests/test-fsync.c: Likewise.
35757         * tests/test-futimens.h: Likewise.
35758         * tests/test-gc-arcfour.c: Likewise.
35759         * tests/test-gc-arctwo.c: Likewise.
35760         * tests/test-gc-des.c: Likewise.
35761         * tests/test-gc-hmac-md5.c: Likewise.
35762         * tests/test-gc-hmac-sha1.c: Likewise.
35763         * tests/test-gc-md2.c: Likewise.
35764         * tests/test-gc-md4.c: Likewise.
35765         * tests/test-gc-md5.c: Likewise.
35766         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35767         * tests/test-gc-rijndael.c: Likewise.
35768         * tests/test-gc-sha1.c: Likewise.
35769         * tests/test-gc.c: Likewise.
35770         * tests/test-getcwd.c: Likewise.
35771         * tests/test-link.c: Likewise.
35772         * tests/test-link.h: Likewise.
35773         * tests/test-lutimens.h: Likewise.
35774         * tests/test-md2.c: Likewise.
35775         * tests/test-md4.c: Likewise.
35776         * tests/test-mkdir.h: Likewise.
35777         * tests/test-rename.c: Likewise.
35778         * tests/test-rename.h: Likewise.
35779         * tests/test-safe-alloc.c: Likewise.
35780         * tests/test-utimens-common.h: Likewise.
35781         * tests/test-utimens.h: Likewise.
35782
35783         maint: sync license texts
35784         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35785         * doc/gpl-3.0.texi: Revert copyright year update.
35786         * doc/lgpl-3.0.texi: Likewise.
35787
35788 2009-12-29  Jim Meyering  <meyering@redhat.com>
35789
35790         update nearly all FSF copyright year lists to include 2009
35791         The files named by the following are exempted:
35792             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35793               test -f "$dst" && { echo "$dst"; continue; }
35794               test -d "$dst" || continue
35795               echo "$dst"/$(basename "$src")
35796             done > exempt
35797             git ls-files tests/unictype >> exempt
35798         In the remaining files, convert to all-interval notation if
35799         - there is already at least one year interval like 2000-2003
35800         - the file is maintained by me
35801         - the file is in lib/uni*/, where that style already prevails
35802         Otherwise, use update-copyright's default.
35803
35804 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35805         and Eric Blake  <ebb9@byu.net>
35806
35807         tests: don't require debug system() to pass
35808         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35809         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35810         * tests/test-unlink.h (test_unlink_func): Likewise.
35811         * tests/test-fstatat.c (main): ...into callers.
35812         * tests/test-lstat.c (main): Likewise.
35813         * tests/test-rmdir.c (main): Likewise.
35814         * tests/test-unlink.c (main): Likewise.
35815         * tests/test-unlinkat.c (main): Likewise.
35816         * tests/test-areadlink-with-size.c (main): Don't require a
35817         debug-only system call to pass, aiding cross-testing to mingw.
35818         * tests/test-areadlink.c (main): Likewise.
35819         * tests/test-areadlinkat-with-size.c (main): Likewise.
35820         * tests/test-areadlinkat.c (main): Likewise.
35821         * tests/test-canonicalize-lgpl.c (main): Likewise.
35822         * tests/test-canonicalize.c (main): Likewise.
35823         * tests/test-chown.c (main): Likewise.
35824         * tests/test-fchownat.c (main): Likewise.
35825         * tests/test-lchown.c (main): Likewise.
35826         * tests/test-fdutimensat.c (main): Likewise.
35827         * tests/test-futimens.c (main): Likewise.
35828         * tests/test-link.c (main): Likewise.
35829         * tests/test-linkat.c (main): Likewise.
35830         * tests/test-mkdir.c (main): Likewise.
35831         * tests/test-mkdirat.c (main): Likewise.
35832         * tests/test-mkfifo.c (main): Likewise.
35833         * tests/test-mkfifoat.c (main): Likewise.
35834         * tests/test-mknod.c (main): Likewise.
35835         * tests/test-readlink.c (main): Likewise.
35836         * tests/test-remove.c (main): Likewise.
35837         * tests/test-rename.c (main): Likewise.
35838         * tests/test-renameat.c (main): Likewise.
35839         * tests/test-symlink.c (main): Likewise.
35840         * tests/test-symlinkat.c (main): Likewise.
35841         * tests/test-utimens.c (main): Likewise.
35842         * tests/test-utimensat.c (main): Likewise.
35843
35844 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35845
35846         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35847         on $(UNUSED_PARAMETER_H) to avoid build failure.
35848
35849 2009-12-28  Jim Meyering  <meyering@redhat.com>
35850
35851         update-copyright: you may specify a max. line length other than 72
35852         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35853
35854         maint: use consistent FSF copyright line syntax
35855         * lib/posixtm.c: Add missing comma in FSF copyright line.
35856         * lib/posixtm.h: Likewise.
35857         * lib/getugroups.c: Add missing ", Inc.".
35858
35859         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35860         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35861         FSF copyright line.  Remove trailing blanks.
35862
35863 2009-12-28  Eric Blake  <ebb9@byu.net>
35864
35865         test-dup2: reduce dependencies
35866         * modules/cloexec (Configure.ac): Set witness.
35867         * modules/dup2-tests (Depends-on): Drop cloexec.
35868         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35869         not present.
35870         Suggested by Bruno Haible.
35871
35872 2009-12-26  Bruno Haible  <bruno@clisp.org>
35873
35874         Remove an unneeded dependency.
35875         * modules/fseterr (Depends-on): Remove dup2.
35876
35877 2009-12-26  Eric Blake  <ebb9@byu.net>
35878
35879         tests: use macros.h in more places
35880         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35881         (ASSERT_STREAM): Provide default of stderr.
35882         * tests/test-dirent-safer.c: Include macros.h, using alternate
35883         stream for assertions.
35884         * tests/test-dup-safer.c: Likewise.
35885         * tests/test-freopen-safer.c: Likewise.
35886         * tests/test-getopt.c: Likewise.
35887         * tests/test-openat-safer.c: Likewise.
35888         * tests/test-pipe.c: Likewise.
35889         * tests/test-popen-safer.c: Likewise.
35890         * modules/dirent-safer-tests (Files): Include macros.h.
35891         * modules/unistd-safer-tests (Files): Likewise.
35892         * modules/freopen-safer-tests (Files): Likewise.
35893         * modules/getopt-posix-tests (Files): Likewise.
35894         * modules/openat-safer-tests (Files): Likewise.
35895         * modules/pipe-tests (Files): Likewise.
35896
35897 2009-12-26  Bruno Haible  <bruno@clisp.org>
35898
35899         javacomp: Portability fix.
35900         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35901         that it also works on Solaris.
35902
35903 2009-12-26  Bruno Haible  <bruno@clisp.org>
35904
35905         localename: Fix storage allocation of gl_locale_name_thread's result.
35906         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35907         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35908         all platforms that have 'uselocale'.
35909         (gl_locale_name_thread_unsafe): New function, extracted from
35910         gl_locale_name_thread.
35911         (gl_locale_name_thread): Call struniq on all platforms that have
35912         'uselocale'.
35913         * tests/test-localename.c (test_locale_name_thread): Check that the
35914         resulting strings are permanently allocated.
35915         * modules/localename-tests (Depends-on): Add strdup.
35916
35917 2009-12-26  Bruno Haible  <bruno@clisp.org>
35918
35919         * tests/test-localename.c (categories): Fill in the strings.
35920
35921 2009-12-26  Jim Meyering  <meyering@redhat.com>
35922
35923         isdir: complete the removal of m4/isdir.m4
35924         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35925
35926         isdir: clean up, since at least grep still uses it
35927         * lib/isdir.c: Include "isdir.h".
35928         (S_ISDIR): Remove now-unneeded definition.
35929         * modules/isdir (Files): Add lib/isdir.h.
35930         * lib/isdir.h: New file, with declaration.
35931         * m4/isdir.m4: Remove file -- unneeded.
35932
35933 2009-12-25  Bruno Haible  <bruno@clisp.org>
35934
35935         selinux-h: Make generated .h files standalone.
35936         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35937         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35938         * lib/se-selinux.in.h: Likewise.
35939         * modules/selinux-h (Depends-on): Add unused-parameter.
35940         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35941         selinux/selinux.h and selinux/context.h.
35942         Suggested by Eric Blake.
35943
35944 2009-12-25  Bruno Haible  <bruno@clisp.org>
35945
35946         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35947         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35948         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35949         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35950         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35951
35952 2009-12-24  Bruno Haible  <bruno@clisp.org>
35953
35954         openat: Fix warning.
35955         * lib/openat-proc.c: Include <unistd.h>.
35956
35957 2009-12-24  Bruno Haible  <bruno@clisp.org>
35958
35959         New module 'unused-parameter'.
35960         * build-aux/unused-parameter.h: New file, extracted from earlier
35961         gnulib-common.m4.
35962         * modules/unused-parameter: New file.
35963         * lib/unistr.h: Include unused-parameter.h.
35964         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35965         _GL_UNUSED.
35966         * modules/unistr/base (Depends-on): Add unused-parameter.
35967
35968 2009-12-24  Bruno Haible  <bruno@clisp.org>
35969
35970         Add missing dependencies to 'extensions' module.
35971         * m4/extensions.m4: Add comment.
35972         * modules/accept4 (Depends-on): Add extensions.
35973         * modules/dup3 (Depends-on): Likewise.
35974         * modules/fcntl (Depends-on): Likewise.
35975         * modules/futimens (Depends-on): Likewise.
35976         * modules/mknod (Depends-on): Likewise.
35977         * modules/pipe2 (Depends-on): Likewise.
35978         * modules/stat-time (Depends-on): Likewise.
35979         * modules/strcasestr-simple (Depends-on): Likewise.
35980         * modules/strsignal (Depends-on): Likewise.
35981         * modules/utimensat (Depends-on): Likewise.
35982         * modules/localcharset (Depends-on): Likewise. Needed because of
35983         gl_FCNTL_O_FLAGS.
35984         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35985         AC_TYPE_MBSTATE_T.
35986         * modules/wcsnrtombs (Depends-on): Likewise.
35987         * modules/wcsrtombs (Depends-on): Likewise.
35988
35989 2009-12-24  Bruno Haible  <bruno@clisp.org>
35990
35991         binary-io: Avoid gcc warning due to SET_BINARY.
35992         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35993         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35994
35995 2009-12-24  Bruno Haible  <bruno@clisp.org>
35996
35997         Avoid future namespace pollution on glibc systems.
35998         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35999         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36000         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36001         glibc systems.
36002
36003 2009-12-24  Bruno Haible  <bruno@clisp.org>
36004
36005         Refactor common macros used in tests.
36006         * tests/macros.h: New file.
36007         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36008         and/or <stdlib.h>, if appropriate.
36009         (ASSERT, SIZEOF): Remove macros.
36010         * tests/test-areadlink-with-size.c: Likewise.
36011         * tests/test-areadlinkat.c: Likewise.
36012         * tests/test-areadlinkat-with-size.c: Likewise.
36013         * tests/test-argmatch.c: Likewise.
36014         * tests/test-argv-iter.c: Likewise.
36015         * tests/test-array-mergesort.c: Likewise.
36016         * tests/test-array_list.c: Likewise.
36017         * tests/test-array_oset.c: Likewise.
36018         * tests/test-avltree_list.c: Likewise.
36019         * tests/test-avltree_oset.c: Likewise.
36020         * tests/test-avltreehash_list.c: Likewise.
36021         * tests/test-base64.c: Likewise.
36022         * tests/test-binary-io.c: Likewise.
36023         * tests/test-bitrotate.c: Likewise.
36024         * tests/test-btowc.c: Likewise.
36025         * tests/test-byteswap.c: Likewise.
36026         * tests/test-c-ctype.c: Likewise.
36027         * tests/test-c-stack.c: Likewise.
36028         * tests/test-c-strcasecmp.c: Likewise.
36029         * tests/test-c-strcasestr.c: Likewise.
36030         * tests/test-c-strncasecmp.c: Likewise.
36031         * tests/test-c-strstr.c: Likewise.
36032         * tests/test-canonicalize-lgpl.c: Likewise.
36033         * tests/test-canonicalize.c: Likewise.
36034         * tests/test-carray_list.c: Likewise.
36035         * tests/test-ceilf1.c: Likewise.
36036         * tests/test-ceilf2.c: Likewise.
36037         * tests/test-ceill.c: Likewise.
36038         * tests/test-chown.c: Likewise.
36039         * tests/test-cloexec.c: Likewise.
36040         * tests/test-copy-acl.c: Likewise.
36041         * tests/test-copy-file.c: Likewise.
36042         * tests/test-count-one-bits.c: Likewise.
36043         * tests/test-dprintf-posix.c: Likewise.
36044         * tests/test-dup2.c: Likewise.
36045         * tests/test-dup3.c: Likewise.
36046         * tests/test-duplocale.c: Likewise.
36047         * tests/test-fbufmode.c: Likewise.
36048         * tests/test-fchdir.c: Likewise.
36049         * tests/test-fchownat.c: Likewise.
36050         * tests/test-fcntl-safer.c: Likewise.
36051         * tests/test-fcntl.c: Likewise.
36052         * tests/test-fdopendir.c: Likewise.
36053         * tests/test-fdutimensat.c: Likewise.
36054         * tests/test-fflush2.c: Likewise.
36055         * tests/test-file-has-acl.c: Likewise.
36056         * tests/test-filevercmp.c: Likewise.
36057         * tests/test-flock.c: Likewise.
36058         * tests/test-floorf1.c: Likewise.
36059         * tests/test-floorf2.c: Likewise.
36060         * tests/test-floorl.c: Likewise.
36061         * tests/test-fnmatch.c: Likewise.
36062         * tests/test-fopen.h: Likewise.
36063         * tests/test-fpending.c: Likewise.
36064         * tests/test-fprintf-posix.c: Likewise.
36065         * tests/test-fpurge.c: Likewise.
36066         * tests/test-freadable.c: Likewise.
36067         * tests/test-freadahead.c: Likewise.
36068         * tests/test-freading.c: Likewise.
36069         * tests/test-freadptr.c: Likewise.
36070         * tests/test-freadptr2.c: Likewise.
36071         * tests/test-freadseek.c: Likewise.
36072         * tests/test-freopen.c: Likewise.
36073         * tests/test-frexp.c: Likewise.
36074         * tests/test-frexpl.c: Likewise.
36075         * tests/test-fseek.c: Likewise.
36076         * tests/test-fseeko.c: Likewise.
36077         * tests/test-fstatat.c: Likewise.
36078         * tests/test-fstrcmp.c: Likewise.
36079         * tests/test-fsync.c: Likewise.
36080         * tests/test-ftell.c: Likewise.
36081         * tests/test-ftello.c: Likewise.
36082         * tests/test-func.c: Likewise.
36083         * tests/test-futimens.c: Likewise.
36084         * tests/test-fwritable.c: Likewise.
36085         * tests/test-fwriting.c: Likewise.
36086         * tests/test-getcwd.c: Likewise.
36087         * tests/test-getdate.c: Likewise.
36088         * tests/test-getdelim.c: Likewise.
36089         * tests/test-getdtablesize.c: Likewise.
36090         * tests/test-getgroups.c: Likewise.
36091         * tests/test-getline.c: Likewise.
36092         * tests/test-getndelim2.c: Likewise.
36093         * tests/test-glob.c: Likewise.
36094         * tests/test-hash.c: Likewise.
36095         * tests/test-i-ring.c: Likewise.
36096         * tests/test-iconv-utf.c: Likewise.
36097         * tests/test-iconv.c: Likewise.
36098         * tests/test-idpriv-drop.c: Likewise.
36099         * tests/test-idpriv-droptemp.c: Likewise.
36100         * tests/test-inet_ntop.c: Likewise.
36101         * tests/test-inet_pton.c: Likewise.
36102         * tests/test-isblank.c: Likewise.
36103         * tests/test-isfinite.c: Likewise.
36104         * tests/test-isinf.c: Likewise.
36105         * tests/test-isnan.c: Likewise.
36106         * tests/test-isnand.h: Likewise.
36107         * tests/test-isnanf.h: Likewise.
36108         * tests/test-isnanl.h: Likewise.
36109         * tests/test-lchown.c: Likewise.
36110         * tests/test-ldexpl.c: Likewise.
36111         * tests/test-link.c: Likewise.
36112         * tests/test-linkat.c: Likewise.
36113         * tests/test-linked_list.c: Likewise.
36114         * tests/test-linkedhash_list.c: Likewise.
36115         * tests/test-localename.c: Likewise.
36116         * tests/test-lseek.c: Likewise.
36117         * tests/test-lstat.c: Likewise.
36118         * tests/test-mbmemcasecmp.c: Likewise.
36119         * tests/test-mbmemcasecoll.c: Likewise.
36120         * tests/test-mbrtowc.c: Likewise.
36121         * tests/test-mbscasecmp.c: Likewise.
36122         * tests/test-mbscasestr1.c: Likewise.
36123         * tests/test-mbscasestr2.c: Likewise.
36124         * tests/test-mbscasestr3.c: Likewise.
36125         * tests/test-mbscasestr4.c: Likewise.
36126         * tests/test-mbschr.c: Likewise.
36127         * tests/test-mbscspn.c: Likewise.
36128         * tests/test-mbsinit.c: Likewise.
36129         * tests/test-mbsncasecmp.c: Likewise.
36130         * tests/test-mbsnrtowcs.c: Likewise.
36131         * tests/test-mbspbrk.c: Likewise.
36132         * tests/test-mbspcasecmp.c: Likewise.
36133         * tests/test-mbsrchr.c: Likewise.
36134         * tests/test-mbsrtowcs.c: Likewise.
36135         * tests/test-mbsspn.c: Likewise.
36136         * tests/test-mbsstr1.c: Likewise.
36137         * tests/test-mbsstr2.c: Likewise.
36138         * tests/test-mbsstr3.c: Likewise.
36139         * tests/test-memchr.c: Likewise.
36140         * tests/test-memchr2.c: Likewise.
36141         * tests/test-memcmp.c: Likewise.
36142         * tests/test-memmem.c: Likewise.
36143         * tests/test-memrchr.c: Likewise.
36144         * tests/test-mkdir.c: Likewise.
36145         * tests/test-mkdirat.c: Likewise.
36146         * tests/test-mkfifo.c: Likewise.
36147         * tests/test-mkfifoat.c: Likewise.
36148         * tests/test-mknod.c: Likewise.
36149         * tests/test-nanosleep.c: Likewise.
36150         * tests/test-nl_langinfo.c: Likewise.
36151         * tests/test-obstack-printf.c: Likewise.
36152         * tests/test-open.c: Likewise.
36153         * tests/test-openat.c: Likewise.
36154         * tests/test-pipe-filter-gi1.c: Likewise.
36155         * tests/test-pipe-filter-gi2-main.c: Likewise.
36156         * tests/test-pipe-filter-ii1.c: Likewise.
36157         * tests/test-pipe-filter-ii2-main.c: Likewise.
36158         * tests/test-pipe2.c: Likewise.
36159         * tests/test-popen.h: Likewise.
36160         * tests/test-posixtm.c: Likewise.
36161         * tests/test-pread.c: Likewise.
36162         * tests/test-printf-frexp.c: Likewise.
36163         * tests/test-printf-frexpl.c: Likewise.
36164         * tests/test-printf-posix.c: Likewise.
36165         * tests/test-priv-set.c: Likewise.
36166         * tests/test-quotearg.c: Likewise.
36167         * tests/test-random_r.c: Likewise.
36168         * tests/test-rawmemchr.c: Likewise.
36169         * tests/test-rbtree_list.c: Likewise.
36170         * tests/test-rbtree_oset.c: Likewise.
36171         * tests/test-rbtreehash_list.c: Likewise.
36172         * tests/test-readlink.c: Likewise.
36173         * tests/test-remove.c: Likewise.
36174         * tests/test-rename.c: Likewise.
36175         * tests/test-renameat.c: Likewise.
36176         * tests/test-rmdir.c: Likewise.
36177         * tests/test-round1.c: Likewise.
36178         * tests/test-roundf1.c: Likewise.
36179         * tests/test-roundl.c: Likewise.
36180         * tests/test-safe-alloc.c: Likewise.
36181         * tests/test-sameacls.c: Likewise.
36182         * tests/test-set-mode-acl.c: Likewise.
36183         * tests/test-setenv.c: Likewise.
36184         * tests/test-sigaction.c: Likewise.
36185         * tests/test-signbit.c: Likewise.
36186         * tests/test-sleep.c: Likewise.
36187         * tests/test-snprintf-posix.c: Likewise.
36188         * tests/test-snprintf.c: Likewise.
36189         * tests/test-sprintf-posix.c: Likewise.
36190         * tests/test-stat-time.c: Likewise.
36191         * tests/test-stat.c: Likewise.
36192         * tests/test-strcasestr.c: Likewise.
36193         * tests/test-strchrnul.c: Likewise.
36194         * tests/test-strerror.c: Likewise.
36195         * tests/test-striconv.c: Likewise.
36196         * tests/test-striconveh.c: Likewise.
36197         * tests/test-striconveha.c: Likewise.
36198         * tests/test-strsignal.c: Likewise.
36199         * tests/test-strstr.c: Likewise.
36200         * tests/test-strtod.c: Likewise.
36201         * tests/test-strverscmp.c: Likewise.
36202         * tests/test-symlink.c: Likewise.
36203         * tests/test-symlinkat.c: Likewise.
36204         * tests/test-trunc1.c: Likewise.
36205         * tests/test-trunc2.c: Likewise.
36206         * tests/test-truncf1.c: Likewise.
36207         * tests/test-truncf2.c: Likewise.
36208         * tests/test-truncl.c: Likewise.
36209         * tests/test-uname.c: Likewise.
36210         * tests/test-unlink.c: Likewise.
36211         * tests/test-unlinkat.c: Likewise.
36212         * tests/test-unsetenv.c: Likewise.
36213         * tests/test-usleep.c: Likewise.
36214         * tests/test-utimens.c: Likewise.
36215         * tests/test-utimensat.c: Likewise.
36216         * tests/test-vasnprintf-posix.c: Likewise.
36217         * tests/test-vasnprintf-posix2.c: Likewise.
36218         * tests/test-vasnprintf.c: Likewise.
36219         * tests/test-vasprintf-posix.c: Likewise.
36220         * tests/test-vasprintf.c: Likewise.
36221         * tests/test-vdprintf-posix.c: Likewise.
36222         * tests/test-vfprintf-posix.c: Likewise.
36223         * tests/test-vprintf-posix.c: Likewise.
36224         * tests/test-vsnprintf-posix.c: Likewise.
36225         * tests/test-vsnprintf.c: Likewise.
36226         * tests/test-vsprintf-posix.c: Likewise.
36227         * tests/test-wcrtomb.c: Likewise.
36228         * tests/test-wcsnrtombs.c: Likewise.
36229         * tests/test-wcsrtombs.c: Likewise.
36230         * tests/test-wctype.c: Likewise.
36231         * tests/test-wcwidth.c: Likewise.
36232         * tests/test-xfprintf-posix.c: Likewise.
36233         * tests/test-xmemdup0.c: Likewise.
36234         * tests/test-xprintf-posix.c: Likewise.
36235         * tests/test-xvasprintf.c: Likewise.
36236         * tests/unicase/test-locale-language.c: Likewise.
36237         * tests/unicase/test-mapping-part1.h: Likewise.
36238         * tests/unicase/test-predicate-part1.h: Likewise.
36239         * tests/unicase/test-u8-casecmp.c: Likewise.
36240         * tests/unicase/test-u8-casecoll.c: Likewise.
36241         * tests/unicase/test-u8-casefold.c: Likewise.
36242         * tests/unicase/test-u8-is-cased.c: Likewise.
36243         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36244         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36245         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36246         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36247         * tests/unicase/test-u8-tolower.c: Likewise.
36248         * tests/unicase/test-u8-totitle.c: Likewise.
36249         * tests/unicase/test-u8-toupper.c: Likewise.
36250         * tests/unicase/test-u16-casecmp.c: Likewise.
36251         * tests/unicase/test-u16-casecoll.c: Likewise.
36252         * tests/unicase/test-u16-casefold.c: Likewise.
36253         * tests/unicase/test-u16-is-cased.c: Likewise.
36254         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36255         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36256         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36257         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36258         * tests/unicase/test-u16-tolower.c: Likewise.
36259         * tests/unicase/test-u16-totitle.c: Likewise.
36260         * tests/unicase/test-u16-toupper.c: Likewise.
36261         * tests/unicase/test-u32-casecmp.c: Likewise.
36262         * tests/unicase/test-u32-casecoll.c: Likewise.
36263         * tests/unicase/test-u32-casefold.c: Likewise.
36264         * tests/unicase/test-u32-is-cased.c: Likewise.
36265         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36266         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36267         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36268         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36269         * tests/unicase/test-u32-tolower.c: Likewise.
36270         * tests/unicase/test-u32-totitle.c: Likewise.
36271         * tests/unicase/test-u32-toupper.c: Likewise.
36272         * tests/unicase/test-ulc-casecmp.c: Likewise.
36273         * tests/unicase/test-ulc-casecoll.c: Likewise.
36274         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36275         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36276         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36277         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36278         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36279         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36280         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36281         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36282         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36283         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36284         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36285         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36286         * tests/unictype/test-bidi_byname.c: Likewise.
36287         * tests/unictype/test-bidi_name.c: Likewise.
36288         * tests/unictype/test-bidi_of.c: Likewise.
36289         * tests/unictype/test-bidi_test.c: Likewise.
36290         * tests/unictype/test-block_list.c: Likewise.
36291         * tests/unictype/test-block_of.c: Likewise.
36292         * tests/unictype/test-block_test.c: Likewise.
36293         * tests/unictype/test-categ_and.c: Likewise.
36294         * tests/unictype/test-categ_and_not.c: Likewise.
36295         * tests/unictype/test-categ_byname.c: Likewise.
36296         * tests/unictype/test-categ_name.c: Likewise.
36297         * tests/unictype/test-categ_none.c: Likewise.
36298         * tests/unictype/test-categ_of.c: Likewise.
36299         * tests/unictype/test-categ_or.c: Likewise.
36300         * tests/unictype/test-categ_test_withtable.c: Likewise.
36301         * tests/unictype/test-combining.c: Likewise.
36302         * tests/unictype/test-decdigit.c: Likewise.
36303         * tests/unictype/test-digit.c: Likewise.
36304         * tests/unictype/test-mirror.c: Likewise.
36305         * tests/unictype/test-numeric.c: Likewise.
36306         * tests/unictype/test-pr_byname.c: Likewise.
36307         * tests/unictype/test-pr_test.c: Likewise.
36308         * tests/unictype/test-predicate-part1.h: Likewise.
36309         * tests/unictype/test-scripts.c: Likewise.
36310         * tests/unictype/test-sy_c_ident.c: Likewise.
36311         * tests/unictype/test-sy_java_ident.c: Likewise.
36312         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36313         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36314         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36315         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36316         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36317         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36318         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36319         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36320         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36321         * tests/uninorm/test-compat-decomposition.c: Likewise.
36322         * tests/uninorm/test-composition.c: Likewise.
36323         * tests/uninorm/test-decomposing-form.c: Likewise.
36324         * tests/uninorm/test-decomposition.c: Likewise.
36325         * tests/uninorm/test-u8-nfc.c: Likewise.
36326         * tests/uninorm/test-u8-nfd.c: Likewise.
36327         * tests/uninorm/test-u8-nfkc.c: Likewise.
36328         * tests/uninorm/test-u8-nfkd.c: Likewise.
36329         * tests/uninorm/test-u8-normcmp.c: Likewise.
36330         * tests/uninorm/test-u8-normcoll.c: Likewise.
36331         * tests/uninorm/test-u16-nfc.c: Likewise.
36332         * tests/uninorm/test-u16-nfd.c: Likewise.
36333         * tests/uninorm/test-u16-nfkc.c: Likewise.
36334         * tests/uninorm/test-u16-nfkd.c: Likewise.
36335         * tests/uninorm/test-u16-normcmp.c: Likewise.
36336         * tests/uninorm/test-u16-normcoll.c: Likewise.
36337         * tests/uninorm/test-u32-nfc.c: Likewise.
36338         * tests/uninorm/test-u32-nfd.c: Likewise.
36339         * tests/uninorm/test-u32-nfkc.c: Likewise.
36340         * tests/uninorm/test-u32-nfkd.c: Likewise.
36341         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36342         * tests/uninorm/test-u32-normcmp.c: Likewise.
36343         * tests/uninorm/test-u32-normcoll.c: Likewise.
36344         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36345         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36346         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36347         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36348         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36349         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36350         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36351         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36352         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36353         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36354         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36355         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36356         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36357         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36358         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36359         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36360         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36361         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36362         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36363         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36364         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36365         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36366         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36367         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36368         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36369         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36370         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36371         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36372         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36373         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36374         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36375         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36376         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36377         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36378         * tests/uniwidth/test-u8-width.c: Likewise.
36379         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36380         * tests/uniwidth/test-u16-width.c: Likewise.
36381         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36382         * tests/uniwidth/test-u32-width.c: Likewise.
36383         * tests/uniwidth/test-uc_width.c: Likewise.
36384         * tests/uniwidth/test-uc_width2.c: Likewise.
36385         * modules/acl-tests (Files): Add tests/macros.h.
36386         * modules/areadlink-tests (Files): Likewise.
36387         * modules/areadlink-with-size-tests (Files): Likewise.
36388         * modules/areadlinkat-tests (Files): Likewise.
36389         * modules/areadlinkat-with-size-tests (Files): Likewise.
36390         * modules/argmatch-tests (Files): Likewise.
36391         * modules/argv-iter-tests (Files): Likewise.
36392         * modules/array-list-tests (Files): Likewise.
36393         * modules/array-mergesort-tests (Files): Likewise.
36394         * modules/array-oset-tests (Files): Likewise.
36395         * modules/avltree-list-tests (Files): Likewise.
36396         * modules/avltree-oset-tests (Files): Likewise.
36397         * modules/avltreehash-list-tests (Files): Likewise.
36398         * modules/base64-tests (Files): Likewise.
36399         * modules/binary-io-tests (Files): Likewise.
36400         * modules/bitrotate-tests (Files): Likewise.
36401         * modules/btowc-tests (Files): Likewise.
36402         * modules/byteswap-tests (Files): Likewise.
36403         * modules/c-ctype-tests (Files): Likewise.
36404         * modules/c-stack-tests (Files): Likewise.
36405         * modules/c-strcase-tests (Files): Likewise.
36406         * modules/c-strcasestr-tests (Files): Likewise.
36407         * modules/c-strstr-tests (Files): Likewise.
36408         * modules/canonicalize-lgpl-tests (Files): Likewise.
36409         * modules/canonicalize-tests (Files): Likewise.
36410         * modules/carray-list-tests (Files): Likewise.
36411         * modules/ceilf-tests (Files): Likewise.
36412         * modules/ceill-tests (Files): Likewise.
36413         * modules/chown-tests (Files): Likewise.
36414         * modules/cloexec-tests (Files): Likewise.
36415         * modules/copy-file-tests (Files): Likewise.
36416         * modules/count-one-bits-tests (Files): Likewise.
36417         * modules/dprintf-posix-tests (Files): Likewise.
36418         * modules/dup2-tests (Files): Likewise.
36419         * modules/dup3-tests (Files): Likewise.
36420         * modules/duplocale-tests (Files): Likewise.
36421         * modules/fbufmode-tests (Files): Likewise.
36422         * modules/fchdir-tests (Files): Likewise.
36423         * modules/fcntl-safer-tests (Files): Likewise.
36424         * modules/fcntl-tests (Files): Likewise.
36425         * modules/fdopendir-tests (Files): Likewise.
36426         * modules/fdutimensat-tests (Files): Likewise.
36427         * modules/fflush-tests (Files): Likewise.
36428         * modules/filevercmp-tests (Files): Likewise.
36429         * modules/flock-tests (Files): Likewise.
36430         * modules/floorf-tests (Files): Likewise.
36431         * modules/floorl-tests (Files): Likewise.
36432         * modules/fnmatch-tests (Files): Likewise.
36433         * modules/fopen-safer-tests (Files): Likewise.
36434         * modules/fopen-tests (Files): Likewise.
36435         * modules/fpending-tests (Files): Likewise.
36436         * modules/fprintf-posix-tests (Files): Likewise.
36437         * modules/fpurge-tests (Files): Likewise.
36438         * modules/freadable-tests (Files): Likewise.
36439         * modules/freadahead-tests (Files): Likewise.
36440         * modules/freading-tests (Files): Likewise.
36441         * modules/freadptr-tests (Files): Likewise.
36442         * modules/freadseek-tests (Files): Likewise.
36443         * modules/freopen-tests (Files): Likewise.
36444         * modules/frexp-nolibm-tests (Files): Likewise.
36445         * modules/frexp-tests (Files): Likewise.
36446         * modules/frexpl-nolibm-tests (Files): Likewise.
36447         * modules/frexpl-tests (Files): Likewise.
36448         * modules/fseek-tests (Files): Likewise.
36449         * modules/fseeko-tests (Files): Likewise.
36450         * modules/fstrcmp-tests (Files): Likewise.
36451         * modules/fsync-tests (Files): Likewise.
36452         * modules/ftell-tests (Files): Likewise.
36453         * modules/ftello-tests (Files): Likewise.
36454         * modules/func-tests (Files): Likewise.
36455         * modules/futimens-tests (Files): Likewise.
36456         * modules/fwritable-tests (Files): Likewise.
36457         * modules/fwriting-tests (Files): Likewise.
36458         * modules/getcwd-tests (Files): Likewise.
36459         * modules/getdate-tests (Files): Likewise.
36460         * modules/getdelim-tests (Files): Likewise.
36461         * modules/getdtablesize-tests (Files): Likewise.
36462         * modules/getgroups-tests (Files): Likewise.
36463         * modules/getline-tests (Files): Likewise.
36464         * modules/getndelim2-tests (Files): Likewise.
36465         * modules/glob-tests (Files): Likewise.
36466         * modules/hash-tests (Files): Likewise.
36467         * modules/i-ring-tests (Files): Likewise.
36468         * modules/iconv-tests (Files): Likewise.
36469         * modules/iconv_open-utf-tests (Files): Likewise.
36470         * modules/idpriv-drop-tests (Files): Likewise.
36471         * modules/idpriv-droptemp-tests (Files): Likewise.
36472         * modules/inet_ntop-tests (Files): Likewise.
36473         * modules/inet_pton-tests (Files): Likewise.
36474         * modules/isblank-tests (Files): Likewise.
36475         * modules/isfinite-tests (Files): Likewise.
36476         * modules/isinf-tests (Files): Likewise.
36477         * modules/isnan-tests (Files): Likewise.
36478         * modules/isnand-nolibm-tests (Files): Likewise.
36479         * modules/isnand-tests (Files): Likewise.
36480         * modules/isnanf-nolibm-tests (Files): Likewise.
36481         * modules/isnanf-tests (Files): Likewise.
36482         * modules/isnanl-nolibm-tests (Files): Likewise.
36483         * modules/isnanl-tests (Files): Likewise.
36484         * modules/lchown-tests (Files): Likewise.
36485         * modules/ldexpl-tests (Files): Likewise.
36486         * modules/link-tests (Files): Likewise.
36487         * modules/linkat-tests (Files): Likewise.
36488         * modules/linked-list-tests (Files): Likewise.
36489         * modules/linkedhash-list-tests (Files): Likewise.
36490         * modules/localename-tests (Files): Likewise.
36491         * modules/lseek-tests (Files): Likewise.
36492         * modules/lstat-tests (Files): Likewise.
36493         * modules/mbmemcasecmp-tests (Files): Likewise.
36494         * modules/mbmemcasecoll-tests (Files): Likewise.
36495         * modules/mbrtowc-tests (Files): Likewise.
36496         * modules/mbscasecmp-tests (Files): Likewise.
36497         * modules/mbscasestr-tests (Files): Likewise.
36498         * modules/mbschr-tests (Files): Likewise.
36499         * modules/mbscspn-tests (Files): Likewise.
36500         * modules/mbsinit-tests (Files): Likewise.
36501         * modules/mbsncasecmp-tests (Files): Likewise.
36502         * modules/mbsnrtowcs-tests (Files): Likewise.
36503         * modules/mbspbrk-tests (Files): Likewise.
36504         * modules/mbspcasecmp-tests (Files): Likewise.
36505         * modules/mbsrchr-tests (Files): Likewise.
36506         * modules/mbsrtowcs-tests (Files): Likewise.
36507         * modules/mbsspn-tests (Files): Likewise.
36508         * modules/mbsstr-tests (Files): Likewise.
36509         * modules/memchr-tests (Files): Likewise.
36510         * modules/memchr2-tests (Files): Likewise.
36511         * modules/memcmp-tests (Files): Likewise.
36512         * modules/memmem-tests (Files): Likewise.
36513         * modules/memrchr-tests (Files): Likewise.
36514         * modules/mkdir-tests (Files): Likewise.
36515         * modules/mkfifo-tests (Files): Likewise.
36516         * modules/mkfifoat-tests (Files): Likewise.
36517         * modules/mknod-tests (Files): Likewise.
36518         * modules/nanosleep-tests (Files): Likewise.
36519         * modules/nl_langinfo-tests (Files): Likewise.
36520         * modules/obstack-printf-tests (Files): Likewise.
36521         * modules/open-tests (Files): Likewise.
36522         * modules/openat-tests (Files): Likewise.
36523         * modules/pipe-filter-gi-tests (Files): Likewise.
36524         * modules/pipe-filter-ii-tests (Files): Likewise.
36525         * modules/pipe2-tests (Files): Likewise.
36526         * modules/popen-safer-tests (Files): Likewise.
36527         * modules/popen-tests (Files): Likewise.
36528         * modules/posixtm-tests (Files): Likewise.
36529         * modules/pread-tests (Files): Likewise.
36530         * modules/printf-frexp-tests (Files): Likewise.
36531         * modules/printf-frexpl-tests (Files): Likewise.
36532         * modules/printf-posix-tests (Files): Likewise.
36533         * modules/priv-set-tests (Files): Likewise.
36534         * modules/quotearg-tests (Files): Likewise.
36535         * modules/random_r-tests (Files): Likewise.
36536         * modules/rawmemchr-tests (Files): Likewise.
36537         * modules/rbtree-list-tests (Files): Likewise.
36538         * modules/rbtree-oset-tests (Files): Likewise.
36539         * modules/rbtreehash-list-tests (Files): Likewise.
36540         * modules/readlink-tests (Files): Likewise.
36541         * modules/remove-tests (Files): Likewise.
36542         * modules/rename-tests (Files): Likewise.
36543         * modules/renameat-tests (Files): Likewise.
36544         * modules/rmdir-tests (Files): Likewise.
36545         * modules/round-tests (Files): Likewise.
36546         * modules/roundf-tests (Files): Likewise.
36547         * modules/roundl-tests (Files): Likewise.
36548         * modules/safe-alloc-tests (Files): Likewise.
36549         * modules/setenv-tests (Files): Likewise.
36550         * modules/sigaction-tests (Files): Likewise.
36551         * modules/signbit-tests (Files): Likewise.
36552         * modules/sleep-tests (Files): Likewise.
36553         * modules/snprintf-posix-tests (Files): Likewise.
36554         * modules/snprintf-tests (Files): Likewise.
36555         * modules/sprintf-posix-tests (Files): Likewise.
36556         * modules/stat-tests (Files): Likewise.
36557         * modules/stat-time-tests (Files): Likewise.
36558         * modules/strcasestr-tests (Files): Likewise.
36559         * modules/strchrnul-tests (Files): Likewise.
36560         * modules/strerror-tests (Files): Likewise.
36561         * modules/striconv-tests (Files): Likewise.
36562         * modules/striconveh-tests (Files): Likewise.
36563         * modules/striconveha-tests (Files): Likewise.
36564         * modules/strsignal-tests (Files): Likewise.
36565         * modules/strstr-tests (Files): Likewise.
36566         * modules/strtod-tests (Files): Likewise.
36567         * modules/strverscmp-tests (Files): Likewise.
36568         * modules/symlink-tests (Files): Likewise.
36569         * modules/symlinkat-tests (Files): Likewise.
36570         * modules/trunc-tests (Files): Likewise.
36571         * modules/truncf-tests (Files): Likewise.
36572         * modules/truncl-tests (Files): Likewise.
36573         * modules/uname-tests (Files): Likewise.
36574         * modules/unicase/cased-tests (Files): Likewise.
36575         * modules/unicase/ignorable-tests (Files): Likewise.
36576         * modules/unicase/locale-language-tests (Files): Likewise.
36577         * modules/unicase/tolower-tests (Files): Likewise.
36578         * modules/unicase/totitle-tests (Files): Likewise.
36579         * modules/unicase/toupper-tests (Files): Likewise.
36580         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36581         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36582         * modules/unicase/u8-casefold-tests (Files): Likewise.
36583         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36584         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36585         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36586         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36587         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36588         * modules/unicase/u8-tolower-tests (Files): Likewise.
36589         * modules/unicase/u8-totitle-tests (Files): Likewise.
36590         * modules/unicase/u8-toupper-tests (Files): Likewise.
36591         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36592         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36593         * modules/unicase/u16-casefold-tests (Files): Likewise.
36594         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36595         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36596         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36597         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36598         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36599         * modules/unicase/u16-tolower-tests (Files): Likewise.
36600         * modules/unicase/u16-totitle-tests (Files): Likewise.
36601         * modules/unicase/u16-toupper-tests (Files): Likewise.
36602         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36603         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36604         * modules/unicase/u32-casefold-tests (Files): Likewise.
36605         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36606         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36607         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36608         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36609         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36610         * modules/unicase/u32-tolower-tests (Files): Likewise.
36611         * modules/unicase/u32-totitle-tests (Files): Likewise.
36612         * modules/unicase/u32-toupper-tests (Files): Likewise.
36613         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36614         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36615         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36616         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36617         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36618         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36619         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36620         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36621         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36622         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36623         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36624         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36625         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36626         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36627         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36628         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36629         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36630         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36631         * modules/unictype/block-list-tests (Files): Likewise.
36632         * modules/unictype/block-of-tests (Files): Likewise.
36633         * modules/unictype/block-test-tests (Files): Likewise.
36634         * modules/unictype/category-C-tests (Files): Likewise.
36635         * modules/unictype/category-Cc-tests (Files): Likewise.
36636         * modules/unictype/category-Cf-tests (Files): Likewise.
36637         * modules/unictype/category-Cn-tests (Files): Likewise.
36638         * modules/unictype/category-Co-tests (Files): Likewise.
36639         * modules/unictype/category-Cs-tests (Files): Likewise.
36640         * modules/unictype/category-L-tests (Files): Likewise.
36641         * modules/unictype/category-Ll-tests (Files): Likewise.
36642         * modules/unictype/category-Lm-tests (Files): Likewise.
36643         * modules/unictype/category-Lo-tests (Files): Likewise.
36644         * modules/unictype/category-Lt-tests (Files): Likewise.
36645         * modules/unictype/category-Lu-tests (Files): Likewise.
36646         * modules/unictype/category-M-tests (Files): Likewise.
36647         * modules/unictype/category-Mc-tests (Files): Likewise.
36648         * modules/unictype/category-Me-tests (Files): Likewise.
36649         * modules/unictype/category-Mn-tests (Files): Likewise.
36650         * modules/unictype/category-N-tests (Files): Likewise.
36651         * modules/unictype/category-Nd-tests (Files): Likewise.
36652         * modules/unictype/category-Nl-tests (Files): Likewise.
36653         * modules/unictype/category-No-tests (Files): Likewise.
36654         * modules/unictype/category-P-tests (Files): Likewise.
36655         * modules/unictype/category-Pc-tests (Files): Likewise.
36656         * modules/unictype/category-Pd-tests (Files): Likewise.
36657         * modules/unictype/category-Pe-tests (Files): Likewise.
36658         * modules/unictype/category-Pf-tests (Files): Likewise.
36659         * modules/unictype/category-Pi-tests (Files): Likewise.
36660         * modules/unictype/category-Po-tests (Files): Likewise.
36661         * modules/unictype/category-Ps-tests (Files): Likewise.
36662         * modules/unictype/category-S-tests (Files): Likewise.
36663         * modules/unictype/category-Sc-tests (Files): Likewise.
36664         * modules/unictype/category-Sk-tests (Files): Likewise.
36665         * modules/unictype/category-Sm-tests (Files): Likewise.
36666         * modules/unictype/category-So-tests (Files): Likewise.
36667         * modules/unictype/category-Z-tests (Files): Likewise.
36668         * modules/unictype/category-Zl-tests (Files): Likewise.
36669         * modules/unictype/category-Zp-tests (Files): Likewise.
36670         * modules/unictype/category-Zs-tests (Files): Likewise.
36671         * modules/unictype/category-and-not-tests (Files): Likewise.
36672         * modules/unictype/category-and-tests (Files): Likewise.
36673         * modules/unictype/category-byname-tests (Files): Likewise.
36674         * modules/unictype/category-name-tests (Files): Likewise.
36675         * modules/unictype/category-none-tests (Files): Likewise.
36676         * modules/unictype/category-of-tests (Files): Likewise.
36677         * modules/unictype/category-or-tests (Files): Likewise.
36678         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36679         * modules/unictype/combining-class-tests (Files): Likewise.
36680         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36681         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36682         * modules/unictype/ctype-blank-tests (Files): Likewise.
36683         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36684         * modules/unictype/ctype-digit-tests (Files): Likewise.
36685         * modules/unictype/ctype-graph-tests (Files): Likewise.
36686         * modules/unictype/ctype-lower-tests (Files): Likewise.
36687         * modules/unictype/ctype-print-tests (Files): Likewise.
36688         * modules/unictype/ctype-punct-tests (Files): Likewise.
36689         * modules/unictype/ctype-space-tests (Files): Likewise.
36690         * modules/unictype/ctype-upper-tests (Files): Likewise.
36691         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36692         * modules/unictype/decimal-digit-tests (Files): Likewise.
36693         * modules/unictype/digit-tests (Files): Likewise.
36694         * modules/unictype/mirror-tests (Files): Likewise.
36695         * modules/unictype/numeric-tests (Files): Likewise.
36696         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36697         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36698         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36699         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36700         Likewise.
36701         * modules/unictype/property-bidi-block-separator-tests (Files):
36702         Likewise.
36703         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36704         Likewise.
36705         * modules/unictype/property-bidi-common-separator-tests (Files):
36706         Likewise.
36707         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36708         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36709         Likewise.
36710         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36711         Likewise.
36712         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36713         Likewise.
36714         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36715         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36716         Likewise.
36717         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36718         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36719         Likewise.
36720         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36721         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36722         * modules/unictype/property-bidi-segment-separator-tests (Files):
36723         Likewise.
36724         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36725         * modules/unictype/property-byname-tests (Files): Likewise.
36726         * modules/unictype/property-combining-tests (Files): Likewise.
36727         * modules/unictype/property-composite-tests (Files): Likewise.
36728         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36729         * modules/unictype/property-dash-tests (Files): Likewise.
36730         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36731         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36732         Likewise.
36733         * modules/unictype/property-deprecated-tests (Files): Likewise.
36734         * modules/unictype/property-diacritic-tests (Files): Likewise.
36735         * modules/unictype/property-extender-tests (Files): Likewise.
36736         * modules/unictype/property-format-control-tests (Files): Likewise.
36737         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36738         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36739         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36740         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36741         * modules/unictype/property-hyphen-tests (Files): Likewise.
36742         * modules/unictype/property-id-continue-tests (Files): Likewise.
36743         * modules/unictype/property-id-start-tests (Files): Likewise.
36744         * modules/unictype/property-ideographic-tests (Files): Likewise.
36745         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36746         * modules/unictype/property-ids-trinary-operator-tests (Files):
36747         Likewise.
36748         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36749         * modules/unictype/property-iso-control-tests (Files): Likewise.
36750         * modules/unictype/property-join-control-tests (Files): Likewise.
36751         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36752         * modules/unictype/property-line-separator-tests (Files): Likewise.
36753         * modules/unictype/property-logical-order-exception-tests (Files):
36754         Likewise.
36755         * modules/unictype/property-lowercase-tests (Files): Likewise.
36756         * modules/unictype/property-math-tests (Files): Likewise.
36757         * modules/unictype/property-non-break-tests (Files): Likewise.
36758         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36759         * modules/unictype/property-numeric-tests (Files): Likewise.
36760         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36761         * modules/unictype/property-other-default-ignorable-code-point-tests
36762         (Files): Likewise.
36763         * modules/unictype/property-other-grapheme-extend-tests (Files):
36764         Likewise.
36765         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36766         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36767         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36768         * modules/unictype/property-other-math-tests (Files): Likewise.
36769         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36770         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36771         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36772         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36773         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36774         * modules/unictype/property-private-use-tests (Files): Likewise.
36775         * modules/unictype/property-punctuation-tests (Files): Likewise.
36776         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36777         * modules/unictype/property-radical-tests (Files): Likewise.
36778         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36779         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36780         * modules/unictype/property-space-tests (Files): Likewise.
36781         * modules/unictype/property-terminal-punctuation-tests (Files):
36782         Likewise.
36783         * modules/unictype/property-test-tests (Files): Likewise.
36784         * modules/unictype/property-titlecase-tests (Files): Likewise.
36785         * modules/unictype/property-unassigned-code-value-tests (Files):
36786         Likewise.
36787         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36788         * modules/unictype/property-uppercase-tests (Files): Likewise.
36789         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36790         * modules/unictype/property-white-space-tests (Files): Likewise.
36791         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36792         * modules/unictype/property-xid-start-tests (Files): Likewise.
36793         * modules/unictype/property-zero-width-tests (Files): Likewise.
36794         * modules/unictype/scripts-tests (Files): Likewise.
36795         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36796         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36797         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36798         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36799         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36800         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36801         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36802         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36803         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36804         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36805         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36806         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36807         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36808         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36809         * modules/uninorm/composition-tests (Files): Likewise.
36810         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36811         * modules/uninorm/decomposition-tests (Files): Likewise.
36812         * modules/uninorm/filter-tests (Files): Likewise.
36813         * modules/uninorm/nfc-tests (Files): Likewise.
36814         * modules/uninorm/nfd-tests (Files): Likewise.
36815         * modules/uninorm/nfkc-tests (Files): Likewise.
36816         * modules/uninorm/nfkd-tests (Files): Likewise.
36817         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36818         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36819         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36820         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36821         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36822         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36823         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36824         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36825         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36826         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36827         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36828         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36829         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36830         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36831         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36832         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36833         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36834         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36835         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36836         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36837         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36838         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36839         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36840         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36841         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36842         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36843         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36844         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36845         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36846         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36847         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36848         * modules/uniwidth/u8-width-tests (Files): Likewise.
36849         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36850         * modules/uniwidth/u16-width-tests (Files): Likewise.
36851         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36852         * modules/uniwidth/u32-width-tests (Files): Likewise.
36853         * modules/uniwidth/width-tests (Files): Likewise.
36854         * modules/unlink-tests (Files): Likewise.
36855         * modules/unsetenv-tests (Files): Likewise.
36856         * modules/usleep-tests (Files): Likewise.
36857         * modules/utimens-tests (Files): Likewise.
36858         * modules/utimensat-tests (Files): Likewise.
36859         * modules/vasnprintf-posix-tests (Files): Likewise.
36860         * modules/vasnprintf-tests (Files): Likewise.
36861         * modules/vasprintf-posix-tests (Files): Likewise.
36862         * modules/vasprintf-tests (Files): Likewise.
36863         * modules/vdprintf-posix-tests (Files): Likewise.
36864         * modules/vfprintf-posix-tests (Files): Likewise.
36865         * modules/vprintf-posix-tests (Files): Likewise.
36866         * modules/vsnprintf-posix-tests (Files): Likewise.
36867         * modules/vsnprintf-tests (Files): Likewise.
36868         * modules/vsprintf-posix-tests (Files): Likewise.
36869         * modules/wcrtomb-tests (Files): Likewise.
36870         * modules/wcsnrtombs-tests (Files): Likewise.
36871         * modules/wcsrtombs-tests (Files): Likewise.
36872         * modules/wctype-tests (Files): Likewise.
36873         * modules/wcwidth-tests (Files): Likewise.
36874         * modules/xmemdup0-tests (Files): Likewise.
36875         * modules/xprintf-posix-tests (Files): Likewise.
36876         * modules/xvasprintf-tests (Files): Likewise.
36877
36878 2009-12-24  Eric Blake  <ebb9@byu.net>
36879
36880         test-nanosleep: fix typo
36881         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36882         patch.
36883         Reported by Bruno Haible.
36884
36885 2009-12-24  Bruno Haible  <bruno@clisp.org>
36886
36887         Reduce namespace pollution on glibc systems.
36888         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36889         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36890         systems.
36891         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36892         <getopt.h> on glibc systems.
36893         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36894         systems.
36895         * lib/fcntl.c: Include <unistd.h> here instead.
36896
36897 2009-12-24  Bruno Haible  <bruno@clisp.org>
36898
36899         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36900
36901 2009-12-24  Eric Blake  <ebb9@byu.net>
36902
36903         tests: add signature checks
36904         * tests/signature.h (SIGNATURE_CHECK): New file.
36905         * modules/atexit-tests (Files): Use it.
36906         * modules/btowc-tests (Files): Likewise.
36907         * modules/canonicalize-lgpl-tests (Files): Likewise.
36908         * modules/ceilf-tests (Files): Likewise.
36909         * modules/ceill-tests (Files): Likewise.
36910         * modules/chown-tests (Files): Likewise.
36911         * modules/dprintf-posix-tests (Files): Likewise.
36912         * modules/dup2-tests (Files): Likewise.
36913         * modules/dup3-tests (Files): Likewise.
36914         * modules/duplocale-tests (Files): Likewise.
36915         * modules/fchdir-tests (Files): Likewise.
36916         * modules/fcntl-tests (Files): Likewise.
36917         * modules/fdopendir-tests (Files): Likewise.
36918         * modules/fflush-tests (Files): Likewise.
36919         * modules/flock-tests (Files): Likewise.
36920         * modules/floorf-tests (Files): Likewise.
36921         * modules/floorl-tests (Files): Likewise.
36922         * modules/fnmatch-tests (Files): Likewise.
36923         * modules/fopen-tests (Files): Likewise.
36924         * modules/fprintf-posix-tests (Files): Likewise.
36925         * modules/freopen-tests (Files): Likewise.
36926         * modules/frexp-nolibm-tests (Files): Likewise.
36927         * modules/frexp-tests (Files): Likewise.
36928         * modules/frexpl-nolibm-tests (Files): Likewise.
36929         * modules/frexpl-tests (Files): Likewise.
36930         * modules/fseek-tests (Files): Likewise.
36931         * modules/fseeko-tests (Files): Likewise.
36932         * modules/fsync-tests (Files): Likewise.
36933         * modules/ftell-tests (Files): Likewise.
36934         * modules/ftello-tests (Files): Likewise.
36935         * modules/futimens-tests (Files): Likewise.
36936         * modules/getaddrinfo-tests (Files): Likewise.
36937         * modules/getcwd-tests (Files): Likewise.
36938         * modules/getdelim-tests (Files): Likewise.
36939         * modules/getdtablesize-tests (Files): Likewise.
36940         * modules/getgroups-tests (Files): Likewise.
36941         * modules/gethostname-tests (Files): Likewise.
36942         * modules/getline-tests (Files): Likewise.
36943         * modules/getopt-posix-tests (Files): Likewise.
36944         * modules/gettimeofday-tests (Files): Likewise.
36945         * modules/glob-tests (Files): Likewise.
36946         * modules/iconv-tests (Files): Likewise.
36947         * modules/inet_ntop-tests (Files): Likewise.
36948         * modules/inet_pton-tests (Files): Likewise.
36949         * modules/isblank-tests (Files): Likewise.
36950         * modules/lchown-tests (Files): Likewise.
36951         * modules/ldexpl-tests (Files): Likewise.
36952         * modules/link-tests (Files): Likewise.
36953         * modules/linkat-tests (Files): Likewise.
36954         * modules/lseek-tests (Files): Likewise.
36955         * modules/lstat-tests (Files): Likewise.
36956         * modules/mbrtowc-tests (Files): Likewise.
36957         * modules/mbsinit-tests (Files): Likewise.
36958         * modules/mbsnrtowcs-tests (Files): Likewise.
36959         * modules/mbsrtowcs-tests (Files): Likewise.
36960         * modules/memchr-tests (Files): Likewise.
36961         * modules/memcmp-tests (Files): Likewise.
36962         * modules/memmem-tests (Files): Likewise.
36963         * modules/memrchr-tests (Files): Likewise.
36964         * modules/mkdir-tests (Files): Likewise.
36965         * modules/mkfifo-tests (Files): Likewise.
36966         * modules/mkfifoat-tests (Files): Likewise.
36967         * modules/mknod-tests (Files): Likewise.
36968         * modules/nanosleep-tests (Files): Likewise.
36969         * modules/nl_langinfo-tests (Files): Likewise.
36970         * modules/obstack-printf-tests (Files): Likewise.
36971         * modules/open-tests (Files): Likewise.
36972         * modules/openat-tests (Files): Likewise.
36973         * modules/perror-tests (Files): Likewise.
36974         * modules/pipe2-tests (Files): Likewise.
36975         * modules/poll-tests (Files): Likewise.
36976         * modules/popen-tests (Files): Likewise.
36977         * modules/posix_spawn-tests (Files): Likewise.
36978         * modules/posix_spawnp-tests (Files): Likewise.
36979         * modules/pread-tests (Files): Likewise.
36980         * modules/printf-posix-tests (Files): Likewise.
36981         * modules/pty-tests (Files): Likewise.
36982         * modules/random_r-tests (Files): Likewise.
36983         * modules/rawmemchr-tests (Files): Likewise.
36984         * modules/readlink-tests (Files): Likewise.
36985         * modules/remove-tests (Files): Likewise.
36986         * modules/rename-tests (Files): Likewise.
36987         * modules/renameat-tests (Files): Likewise.
36988         * modules/rmdir-tests (Files): Likewise.
36989         * modules/round-tests (Files): Likewise.
36990         * modules/roundf-tests (Files): Likewise.
36991         * modules/roundl-tests (Files): Likewise.
36992         * modules/select-tests (Files): Likewise.
36993         * modules/setenv-tests (Files): Likewise.
36994         * modules/sigaction-tests (Files): Likewise.
36995         * modules/sleep-tests (Files): Likewise.
36996         * modules/snprintf-posix-tests (Files): Likewise.
36997         * modules/snprintf-tests (Files): Likewise.
36998         * modules/sprintf-posix-tests (Files): Likewise.
36999         * modules/stat-tests (Files): Likewise.
37000         * modules/strcasestr-tests (Files): Likewise.
37001         * modules/strchrnul-tests (Files): Likewise.
37002         * modules/strerror-tests (Files): Likewise.
37003         * modules/strsignal-tests (Files): Likewise.
37004         * modules/strstr-tests (Files): Likewise.
37005         * modules/strtod-tests (Files): Likewise.
37006         * modules/strverscmp-tests (Files): Likewise.
37007         * modules/symlink-tests (Files): Likewise.
37008         * modules/symlinkat-tests (Files): Likewise.
37009         * modules/times-tests (Files): Likewise.
37010         * modules/trunc-tests (Files): Likewise.
37011         * modules/truncf-tests (Files): Likewise.
37012         * modules/truncl-tests (Files): Likewise.
37013         * modules/tsearch-tests (Files): Likewise.
37014         * modules/uname-tests (Files): Likewise.
37015         * modules/unlink-tests (Files): Likewise.
37016         * modules/unsetenv-tests (Files): Likewise.
37017         * modules/usleep-tests (Files): Likewise.
37018         * modules/utimensat-tests (Files): Likewise.
37019         * modules/vasprintf-tests (Files): Likewise.
37020         * modules/vdprintf-posix-tests (Files): Likewise.
37021         * modules/vfprintf-posix-tests (Files): Likewise.
37022         * modules/vprintf-posix-tests (Files): Likewise.
37023         * modules/vsnprintf-posix-tests (Files): Likewise.
37024         * modules/vsnprintf-tests (Files): Likewise.
37025         * modules/vsprintf-posix-tests (Files): Likewise.
37026         * modules/wcrtomb-tests (Files): Likewise.
37027         * modules/wcsnrtombs-tests (Files): Likewise.
37028         * modules/wcsrtombs-tests (Files): Likewise.
37029         * modules/wcwidth-tests (Files): Likewise.
37030         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37031         * tests/test-isinf.c (isinf): Likewise.
37032         * tests/test-isnan.c (isnan): Likewise.
37033         * tests/test-signbit.c (signbit): Likewise.
37034         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37035         declaration, either as macro or with correct signature.
37036         (select): Ensure function under test is declared with correct
37037         signature in correct header.
37038         * tests/test-atexit.c (atexit): Likewise.
37039         * tests/test-btowc.c (btowc): Likewise.
37040         * tests/test-canonicalize-lgpl.c (realpath)
37041         (canonicalize_file_name): Likewise.
37042         * tests/test-ceilf1.c (ceilf): Likewise.
37043         * tests/test-ceill.c (ceill): Likewise.
37044         * tests/test-chown.c (chown): Likewise.
37045         * tests/test-dprintf-posix.c (dprintf): Likewise.
37046         * tests/test-dup2.c (dup2): Likewise.
37047         * tests/test-dup3.c (dup3): Likewise.
37048         * tests/test-duplocale.c (duplocale): Likewise.
37049         * tests/test-fchdir.c (fchdir): Likewise.
37050         * tests/test-fchownat.c (fchownat): Likewise.
37051         * tests/test-fcntl.c (fcntl): Likewise.
37052         * tests/test-fdopendir.c (fdopendir): Likewise.
37053         * tests/test-fflush.c (fflush): Likewise.
37054         * tests/test-flock.c (flock): Likewise.
37055         * tests/test-floorf1.c (floorf): Likewise.
37056         * tests/test-floorl.c (floorl): Likewise.
37057         * tests/test-fnmatch.c (fnmatch): Likewise.
37058         * tests/test-fopen.c (fopen): Likewise.
37059         * tests/test-fprintf-posix.c (fprintf): Likewise.
37060         * tests/test-freopen.c (freopen): Likewise.
37061         * tests/test-frexp.c (frexp): Likewise.
37062         * tests/test-frexpl.c (frexpl): Likewise.
37063         * tests/test-fseek.c (fseek): Likewise.
37064         * tests/test-fseeko.c (fseeko): Likewise.
37065         * tests/test-fstatat.c (fstatat): Likewise.
37066         * tests/test-fsync.c (fsync): Likewise.
37067         * tests/test-ftell.c (ftell): Likewise.
37068         * tests/test-ftello.c (ftello): Likewise.
37069         * tests/test-futimens.c (futimens): Likewise.
37070         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37071         (gai_strerror): Likewise.
37072         * tests/test-getcwd.c (getcwd): Likewise.
37073         * tests/test-getdelim.c (getdelim): Likewise.
37074         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37075         * tests/test-getgroups.c (getgroups): Likewise.
37076         * tests/test-gethostname.c (gethostname): Likewise.
37077         * tests/test-getline.c (getline): Likewise.
37078         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37079         Likewise.
37080         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37081         * tests/test-glob.c (glob, globfree): Likewise.
37082         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37083         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37084         * tests/test-inet_pton.c (inet_pton): Likewise.
37085         * tests/test-isblank.c (isblank): Likewise.
37086         * tests/test-lchown.c (lchown): Likewise.
37087         * tests/test-ldexpl.c (ldexpl): Likewise.
37088         * tests/test-link.c (link): Likewise.
37089         * tests/test-linkat.c (linkat): Likewise.
37090         * tests/test-lseek.c (lseek): Likewise.
37091         * tests/test-lstat.c (lstat): Likewise.
37092         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37093         * tests/test-mbsinit.c (mbsinit): Likewise.
37094         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37095         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37096         * tests/test-memchr.c (memchr): Likewise.
37097         * tests/test-memcmp.c (memcmp): Likewise.
37098         * tests/test-memmem.c (memmem): Likewise.
37099         * tests/test-memrchr.c (memrchr): Likewise.
37100         * tests/test-mkdir.c (mkdir): Likewise.
37101         * tests/test-mkdirat.c (mkdirat): Likewise.
37102         * tests/test-mkfifo.c (mkfifo): Likewise.
37103         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37104         * tests/test-mknod.c (mknod): Likewise.
37105         * tests/test-nanosleep.c (nanosleep): Likewise.
37106         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37107         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37108         Likewise.
37109         * tests/test-open.c (open): Likewise.
37110         * tests/test-openat.c (openat): Likewise.
37111         * tests/test-perror.c (perror): Likewise.
37112         * tests/test-pipe2.c (pipe2): Likewise.
37113         * tests/test-poll.c (poll): Likewise.
37114         * tests/test-popen.c (popen, pclose): Likewise.
37115         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37116         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37117         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37118         (posix_spawn_file_actions_destroy)
37119         (posix_spawn_file_actions_addclose)
37120         (posix_spawn_file_actions_addopen)
37121         (posix_spawn_file_actions_adddup2): Likewise.
37122         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37123         * tests/test-pread.c (pread): Likewise.
37124         * tests/test-printf-posix.c (printf): Likewise.
37125         * tests/test-pty.c (openpty, forkpty): Likewise.
37126         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37127         (random_r): Likewise.
37128         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37129         * tests/test-readlink.c (readlink): Likewise.
37130         * tests/test-remove.c (remove): Likewise.
37131         * tests/test-rename.c (rename): Likewise.
37132         * tests/test-renameat.c (renameat): Likewise.
37133         * tests/test-rmdir.c (rmdir): Likewise.
37134         * tests/test-round1.c (round): Likewise.
37135         * tests/test-roundf1.c (roundf): Likewise.
37136         * tests/test-roundl.c (roundl): Likewise.
37137         * tests/test-setenv.c (setenv): Likewise.
37138         * tests/test-sigaction.c (sigaction): Likewise.
37139         * tests/test-sleep.c (sleep): Likewise.
37140         * tests/test-snprintf.c (snprintf): Likewise.
37141         * tests/test-sprintf-posix.c (sprintf): Likewise.
37142         * tests/test-stat.c (stat): Likewise.
37143         * tests/test-stpncpy.c (stpncpy): Likewise.
37144         * tests/test-strcasestr.c (strcasestr): Likewise.
37145         * tests/test-strchrnul.c (strchrnul): Likewise.
37146         * tests/test-strerror.c (strerror): Likewise.
37147         * tests/test-strsignal.c (strsignal): Likewise.
37148         * tests/test-strstr.c (strstr): Likewise.
37149         * tests/test-strtod.c (strtod): Likewise.
37150         * tests/test-strverscmp.c (strverscmp): Likewise.
37151         * tests/test-symlink.c (symlink): Likewise.
37152         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37153         * tests/test-times.c (times): Likewise.
37154         * tests/test-trunc1.c (trunc): Likewise.
37155         * tests/test-truncf1.c (truncf): Likewise.
37156         * tests/test-truncl.c (truncl): Likewise.
37157         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37158         Likewise.
37159         * tests/test-uname.c (uname): Likewise.
37160         * tests/test-unlink.c (unlink): Likewise.
37161         * tests/test-unlinkat.c (unlinkat): Likewise.
37162         * tests/test-unsetenv.c (unsetenv): Likewise.
37163         * tests/test-usleep.c (usleep): Likewise.
37164         * tests/test-utimensat.c (utimensat): Likewise.
37165         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37166         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37167         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37168         * tests/test-vprintf-posix.c (vprintf): Likewise.
37169         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37170         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37171         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37172         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37173         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37174         * tests/test-wcwidth.c (wcwidth): Likewise.
37175
37176         build: pull in conditional headers during GNULIB_POSIXCHECK
37177         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37178         definitions from any conditionally-included headers.
37179         * lib/stdlib.in.h (includes): Likewise.
37180         * lib/unistd.in.h (includes): Likewise.
37181
37182 2009-12-24  Bruno Haible  <bruno@clisp.org>
37183
37184         * tests/test-argv-iter.c: Include header file being tested immediately
37185         after config.h.
37186         * tests/test-base64.c: Likewise.
37187         * tests/test-flock.c: Likewise.
37188         * tests/test-fsync.c: Likewise.
37189         * tests/test-getdate.c: Likewise.
37190         * tests/test-getndelim2.c: Likewise.
37191         * tests/test-isfinite.c: Likewise.
37192         * tests/test-isinf.c: Likewise.
37193         * tests/test-strerror.c: Likewise.
37194         * tests/test-strsignal.c: Likewise.
37195
37196 2009-12-23  Eric Blake  <ebb9@byu.net>
37197
37198         unistd: work around cygwin bug
37199         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37200         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37201         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37202
37203 2009-12-23  Bruno Haible  <bruno@clisp.org>
37204
37205         localename: More tests.
37206         * tests/test-localename.c (SIZEOF): New macro.
37207         (categories): New variable.
37208         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37209         test_locale_name_default): Add test w.r.t. thread locale.
37210         (test_locale_name_thread): New function.
37211         (main): Invoke it.
37212
37213         localename: Make aware of thread locale.
37214         * lib/localename.h (gl_locale_name_thread): New declaration.
37215         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37216         behaviour with respect to thread locale.
37217         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37218         <langinfo.h>, glthread/lock.h.
37219         (SIZE_BITS): New macro.
37220         (string_hash): New function.
37221         (struct hash_node): New type.
37222         (HASH_TABLE_SIZE): New macro.
37223         (struniq_hash_table, struniq_lock): New variables.
37224         (struniq): New function.
37225         (gl_locale_name_thread): New function.
37226         (gl_locale_name): Invoke it.
37227         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37228         * modules/localename (Depends-on): Add lock.
37229         Reported by Mike Gran <spk121@yahoo.com>.
37230
37231 2009-12-23  Eric Blake  <ebb9@byu.net>
37232
37233         va-args: new module
37234         * modules/va-args: New file.
37235         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37236         * MODULES.html.sh (Core language properties): Mention it.
37237
37238         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37239         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37240         named alias for __attribute__((__unused__)).
37241         * lib/chown.c: Update client.
37242         * lib/fchmodat.c: Likewise.
37243         * lib/fts.c: Likewise.
37244         * lib/getdate.y: Likewise.
37245         * lib/getgroups.c: Likewise.
37246         * lib/getopt.c: Likewise.
37247         * lib/getugroups.c: Likewise.
37248         * lib/mkdir.c: Likewise.
37249         * lib/mkfifo.c: Likewise.
37250         * lib/mkfifoat.c: Likewise.
37251         * lib/mknod.c: Likewise.
37252         * lib/mknodat.c: Likewise.
37253         * lib/readlink.c: Likewise.
37254         * lib/se-context.in.h: Likewise.
37255         * lib/se-selinux.in.h: Likewise.
37256         * lib/sockets.c: Likewise.
37257         * lib/symlink.c: Likewise.
37258         * lib/symlinkat.c: Likewise.
37259         * lib/unicodeio.c: Likewise.
37260         * lib/unistr.h: Likewise.
37261         * tests/test-areadlink.c: Likewise.
37262         * tests/test-areadlinkat.c: Likewise.
37263         * tests/test-filenamecat.c: Likewise.
37264         * tests/test-fseeko.c: Likewise.
37265         * tests/test-ftello.c: Likewise.
37266         * tests/test-getdate.c: Likewise.
37267         * tests/test-getgroups.c: Likewise.
37268         * tests/test-gethostname.c: Likewise.
37269         * tests/test-quotearg.c: Likewise.
37270         * tests/test-version-etc.c: Likewise.
37271         * tests/test-xalloc-die.c: Likewise.
37272         * tests/test-xfprintf-posix.c: Likewise.
37273         * tests/test-xprintf-posix.c: Likewise.
37274         * tests/test-xvasprintf.c: Likewise.
37275
37276         tests: avoid compiler warnings
37277         * tests/test-fcntl.c (main): Delete unused parameters.
37278         * tests/test-freopen-safer.c (main): Likewise.
37279         * tests/test-xalloc-die.c (main): Mark unused parameters.
37280         * tests/test-fseeko.c (main): Likewise.
37281         * tests/test-ftello.c (main): Likewise.
37282         * tests/test-nanosleep.c (main): Avoid declaration warning.
37283         * tests/test-sleep.c (main): Likewise.
37284         * tests/test-unsetenv.c (main): Silence warning about string
37285         literal.
37286         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37287
37288 2009-12-23  Bruno Haible  <bruno@clisp.org>
37289
37290         * tests/test-localename.c (test_locale_name): New function, extracted
37291         from main. Also test mixed situations.
37292         (test_locale_name_posix, test_locale_name_environ,
37293         test_locale_name_default): New functions.
37294         (main): Invoke them all.
37295         * modules/localename-tests (configure.ac): Test for newlocale.
37296
37297 2009-12-23  Bruno Haible  <bruno@clisp.org>
37298
37299         unistd: Ensure getcwd gets declared before being overridden.
37300         * lib/unistd.in.h: Conditionally include <io.h>.
37301
37302 2009-12-22  Bruno Haible  <bruno@clisp.org>
37303
37304         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37305         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37306         (gl_WCHAR_H): Invoke it.
37307         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37308         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37309         Reported by Karl Berry <karl@freefriends.org>.
37310
37311 2009-12-22  Eric Blake  <ebb9@byu.net>
37312
37313         math, unistd: avoid redundant includes
37314         * lib/math.in.h (isnan): No need to re-include <math.h>.
37315         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37316
37317         getsubopt: work around cygwin bug
37318         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37319         avoid conflicting with system getsubopt.
37320         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37321         bug.
37322
37323         getopt: synchronize from glibc
37324         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37325         parameter order.  Adjust all callers.
37326         (_getopt_internal_r, main): Adjust quoting in error messages.
37327         Drop considerations for outdated POSIX 1003.2 error message.
37328         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37329         callers.
37330         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37331
37332         test-getopt: test stderr behavior
37333         * modules/getopt-posix-tests (Depends-on): Add dup2.
37334         * tests/test-getopt.c (ASSERT): Avoid stderr.
37335         (main): Move stderr to a temporary file.
37336         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37337         Instead, add parameter to inform caller if output occurred.
37338         (test_getopt): Adjust all existing tests to expect silence, and
37339         add new tests of leading ":".
37340         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37341         glibc shortcomings with leading "-:" or "+:" in optstring.
37342         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37343         Likewise.
37344         * doc/posix-functions/getopt.texi (getopt): Likewise.
37345
37346         test-getopt: enhance test
37347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37348         supports optind=0.
37349         * tests/test-getopt.c (OPTIND_MIN): Move...
37350         * tests/test-getopt.h (OPTIND_MIN): ...here.
37351         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37352         Require that optind=0 works, since modern BSD supports it in
37353         addition to optreset, and since coreutils expects it.
37354         (test_getopt_long_only): New test.
37355         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37356         glibc shortcomings with 'W;', and enforcement of optind=0.
37357         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37358         Likewise.
37359
37360 2009-12-21  Bruno Haible  <bruno@clisp.org>
37361
37362         localename: Improvements for MacOS X and Cygwin.
37363         * lib/localename.h (gl_locale_name_environ): New declaration.
37364         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37365         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37366         (gl_locale_name_posix): Invoke it.
37367         (gl_locale_name_default): Add comments. Use Windows native API also on
37368         Cygwin.
37369
37370 2009-12-21  Bruno Haible  <bruno@clisp.org>
37371
37372         Update list of Win32 locale ids.
37373         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37374         (LANG_SAMI): Renamed from LANG_SAAMI.
37375         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37376         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37377         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37378         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37379         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37380         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37381         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37382         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37383         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37384         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37385         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37386         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37387         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37388         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37389         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37390         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37391         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37392         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37393         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37394         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37395         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37396         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37397         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37398         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37399         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37400         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37401         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37402         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37403         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37404         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37405         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37406         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37407         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37408         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37409         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37410         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37411         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37412         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37413         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37414         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37415         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37416         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37417         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37418         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37419         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37420         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37421         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37422         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37423         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37424         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37425         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37426         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37427         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37428         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37429         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37430         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37431         Add more languages and countries for Sami, Sorbian. Add more countries
37432         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37433         for Pashto. Change country for Syriac, Tswana.
37434
37435 2009-12-21  Eric Blake  <ebb9@byu.net>
37436
37437         test-utimens: avoid spurious failure
37438         * tests/test-chown.h (nap): Factor...
37439         * tests/nap.h: ...into new file.
37440         * tests/test-lchown.h (nap): Avoid duplication.
37441         * tests/test-utimens-common.h (nap): Use shared implementation,
37442         necessary on file systems with 1-second resolution.
37443         * modules/chown-tests (Files): Include new file.
37444         * modules/fdutimensat-tests (Files): Likewise.
37445         * modules/futimens-tests (Files): Likewise.
37446         * modules/lchown-tests (Files): Likewise.
37447         * modules/openat-tests (Files): Likewise.
37448         * modules/utimens-tests (Files): Likewise.
37449         * modules/utimensat-tests (Files): Likewise.
37450
37451 2009-12-19  Eric Blake  <ebb9@byu.net>
37452
37453         futimens, utimensat: work around Linux bug
37454         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37455         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37456         * lib/utimensat.c (rpl_utimensat): Work around it.
37457         * lib/futimens.c (rpl_futimens): Adjust comment.
37458
37459         utimens: work around Linux ctime bug
37460         * lib/utimens.c (detect_ctime_bug): New helper function.
37461         (update_timespec): Differentiate between workaround needed for
37462         this bug vs. what is needed for systems that lack utimensat.
37463         (fdutimens, lutimens): Work around bug.
37464
37465         utimens: check for ctime update
37466         * tests/test-utimens-common.h (check_ctime): Define.
37467         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37468         * tests/test-futimens.h (test_futimens): Likewise.
37469         * tests/test-lutimens.h (test_lutimens): Likewise.
37470         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37471         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37472
37473 2009-12-19  Bruno Haible  <bruno@clisp.org>
37474
37475         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37476         * tests/test-dprintf-posix2.sh: New file.
37477         * tests/test-dprintf-posix2.c: New file.
37478         * modules/dprintf-posix-tests (Files): Add them.
37479         (configure.ac): Check for getrlimit and setrlimit.
37480         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37481
37482 2009-12-19  Bruno Haible  <bruno@clisp.org>
37483
37484         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37485         * tests/test-fprintf-posix3.sh: New file.
37486         * tests/test-fprintf-posix3.c: New file.
37487         * modules/fprintf-posix-tests (Files): Add them.
37488         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37489
37490 2009-12-19  Eric Blake  <ebb9@byu.net>
37491
37492         dirfd: fix prototype
37493         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37494         * lib/dirfd.c (dirfd): Likewise.
37495
37496         canonicalize: reduce memory usage
37497         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37498         allocation to size.
37499         Reported by Solar Designer <solar@openwall.com>.
37500
37501 2009-12-19  Bruno Haible  <bruno@clisp.org>
37502
37503         New module attribute 'Applicability'.
37504         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37505         * gnulib-tool: New option --extract-applicability.
37506         (func_usage): Document it.
37507         (sed_extract_prog): Recognize it.
37508         (func_get_applicability): New function.
37509         (func_import): Generalize handling of 'link-warning' module.
37510         * modules/link-warning (Applicability): New section.
37511         * modules/arg-nonnull (Applicability): New section.
37512         Repoted by Simon Josefsson <simon@josefsson.org>.
37513
37514 2009-12-19  Bruno Haible  <bruno@clisp.org>
37515
37516         fflush: tweak
37517         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37518         * lib/fseeko.c (rpl_fseeko): Likewise.
37519
37520 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37521
37522         * lib/gl_list.h: Fix typo in comment.
37523
37524 2009-12-16  Eric Blake  <ebb9@byu.net>
37525
37526         fcntl: use to simplify other modules
37527         * modules/cloexec (Depends-on): Add fcntl.
37528         * modules/fchdir (Depends-on): Likewise.
37529         * modules/fd-safer-flag (Depends-on): Likewise.
37530         * modules/unistd-safer (Depends-on): Likewise.
37531         * modules/dup3 (configure.ac): Set module indicator.
37532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37533         missing.
37534         * lib/fchdir.c (_gl_register_dup): Fix comment.
37535         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37536         * lib/dup-safer.c (dup_safer): Likewise.
37537         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37538         * lib/dup3.c (dup3): Likewise.
37539         * tests/test-fchdir.c (main): Enhance test.
37540         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37541
37542         fcntl: port portions of fcntl to mingw
37543         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37544         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37545         replacement for mingw.
37546         * modules/fcntl (Description): Update.
37547         (Depends-on): Add dup2.
37548         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37549         * modules/fcntl-h (Makefile.am): Substitute it.
37550         * lib/fcntl.in.h (fcntl): Update declaration.
37551         (F_DUPFD, F_GETFD): New macros, when needed.
37552         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37553         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37554         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37555         we now guarantee.
37556
37557         fcntl: work around cygwin bug in F_DUPFD
37558         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37559         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37560         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37561         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37562         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37563
37564         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37565         * modules/fcntl (Files): List new files.
37566         (configure.ac): Run a test.
37567         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37568         * lib/fcntl.c (rpl_fcntl): Likewise.
37569         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37570         (gl_FCNTL_H): Always replace fcntl.h.
37571         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37572         * lib/fcntl.in.h (fcntl): Declare replacement.
37573         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37574         needed, plus a witness.
37575         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37576         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37577         * tests/test-fcntl.c: New file.
37578         * modules/fcntl-tests: Likewise.
37579
37580         binary-io: avoid potential compilation warning
37581         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37582         directives.
37583
37584         fflush: avoid compilation error on NetBSD
37585         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37586         between off_t and fpos_t, since the latter is sometimes a struct.
37587         * lib/fseeko.c (rpl_fseeko): Likewise.
37588         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37589
37590 2009-12-15  Eric Blake  <ebb9@byu.net>
37591
37592         fcntl-h, stdio, sys_ioctl: fix declarations
37593         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37594         function must not take arguments.
37595         * lib/sys_ioctl.in.h (ioctl): Likewise.
37596         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37597         (open): Add a link warning.
37598
37599 2009-12-15  Jim Meyering  <meyering@redhat.com>
37600
37601         areadlink, areadlink-with-size: relax license to LGPLv2+
37602         * modules/areadlink (License): Relax to LGPLv2+.
37603         * modules/areadlink-with-size (License): Likewise.
37604
37605 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37606             Bruno Haible  <bruno@clisp.org>
37607
37608         *printf: Fix memory leak.
37609         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37610         * lib/vfprintf.c (vfprintf): Likewise.
37611         * lib/dprintf.c (dprintf): Likewise.
37612         * lib/vdprintf.c (vdprintf): Likewise.
37613
37614 2009-12-14  Eric Blake  <ebb9@byu.net>
37615
37616         accept4: adjust module dependencies
37617         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37618
37619         utimens: one more try at avoiding compiler warning
37620         * lib/utimens.c (lutimens): Lower scope of result.
37621
37622 2009-12-13  Bruno Haible  <bruno@clisp.org>
37623
37624         Move the malloc checking from module 'list' to new module 'xlist'.
37625         * modules/xlist: New file.
37626         * lib/gl_xlist.h: New file.
37627         * lib/gl_xlist.c: New file.
37628         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37629         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37630         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37631         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37632         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37633         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37634         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37635         gl_sortedlist_nx_add): New declarations.
37636         (struct gl_list_implementation): Rename and change methods accordingly.
37637         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37638         (gl_list_nx_create): Renamed from gl_list_create.
37639         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37640         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37641         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37642         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37643         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37644         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37645         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37646         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37647         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37648         gl_list_create_empty.
37649         (gl_list_nx_create): Renamed from gl_list_create.
37650         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37651         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37652         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37653         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37654         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37655         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37656         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37657         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37658         * lib/gl_array_list.c: Don't include xalloc.h.
37659         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37660         NULL upon out-of-memory.
37661         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37662         out-of-memory.
37663         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37664         Change return type to 'int'.
37665         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37666         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37667         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37668         upon out-of-memory.
37669         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37670         upon out-of-memory.
37671         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37672         upon out-of-memory.
37673         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37674         upon out-of-memory.
37675         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37676         out-of-memory.
37677         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37678         Update.
37679         (gl_array_list_implementation): Update.
37680         * lib/gl_carray_list.c: Don't include xalloc.h.
37681         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37682         Return NULL upon out-of-memory.
37683         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37684         out-of-memory.
37685         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37686         Change return type to 'int'.
37687         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37688         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37689         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37690         upon out-of-memory.
37691         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37692         upon out-of-memory.
37693         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37694         out-of-memory.
37695         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37696         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37697         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37698         Update.
37699         (gl_carray_list_implementation): Update.
37700         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37701         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37702         gl_linked_create_empty. Return NULL upon out-of-memory.
37703         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37704         out-of-memory.
37705         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37706         Change return type to 'int'. Return -1 upon out-of-memory.
37707         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37708         out-of-memory.
37709         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37710         upon out-of-memory.
37711         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37712         upon out-of-memory.
37713         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37714         NULL upon out-of-memory.
37715         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37716         upon out-of-memory.
37717         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37718         out-of-memory.
37719         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37720         Update.
37721         * lib/gl_linked_list.c: Don't include xalloc.h.
37722         (gl_linked_list_implementation): Update.
37723         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37724         (add_to_bucket): Change return type to 'int'.
37725         (gl_linkedhash_list_implementation): Update.
37726         * lib/gl_anytree_list1.h (free_subtree): New function.
37727         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37728         gl_tree_create_empty. Return NULL upon out-of-memory.
37729         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37730         Change return type to 'int'. Return -1 upon out-of-memory.
37731         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37732         out-of-memory.
37733         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37734         (gl_tree_remove_node): New function, moved here from
37735         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37736         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37737         Update.
37738         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37739         malloc, not xmalloc. Return NULL upon out-of-memory.
37740         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37741         out-of-memory.
37742         (gl_tree_remove_node_from_tree): New function, extracted from
37743         gl_tree_remove_node.
37744         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37745         upon out-of-memory.
37746         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37747         out-of-memory.
37748         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37749         upon out-of-memory.
37750         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37751         upon out-of-memory.
37752         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37753         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37754         not xmalloc. Return NULL upon out-of-memory.
37755         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37756         out-of-memory.
37757         (gl_tree_remove_node_from_tree): New function, extracted from
37758         gl_tree_remove_node.
37759         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37760         upon out-of-memory.
37761         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37762         out-of-memory.
37763         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37764         upon out-of-memory.
37765         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37766         upon out-of-memory.
37767         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37768         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37769         gl_anytree_list1.h before gl_anyavltree_list2.h.
37770         (gl_avltree_list_implementation): Update.
37771         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37772         gl_anytree_list1.h before gl_anyavltree_list2.h.
37773         (gl_rbtree_list_implementation): Update.
37774         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37775         Change return type to 'int'. Return -1 upon out-of-memory. Use
37776         __builtin_expect.
37777         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37778         (gl_avltreehash_list_implementation): Update.
37779         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37780         (gl_rbtreehash_list_implementation): Update.
37781         * modules/array-list (Depends-on): Remove xalloc.
37782         * modules/carray-list (Depends-on): Likewise.
37783         * modules/linked-list (Depends-on): Likewise.
37784         * modules/linkedhash-list (Depends-on): Likewise.
37785         * modules/avltree-list (Depends-on): Likewise.
37786         * modules/rbtree-list (Depends-on): Likewise.
37787         * modules/avltreehash-list (Depends-on): Likewise.
37788         * modules/rbtreehash-list (Depends-on): Likewise.
37789
37790         * modules/xsublist: New file.
37791         * lib/gl_xsublist.h: New file.
37792         * lib/gl_xsublist.c: New file.
37793         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37794         (gl_sublist_nx_create): New declaration.
37795         * lib/gl_sublist.c: Don't include xalloc.h.
37796         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37797         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37798         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37799         Change return type to 'int'. Return -1 upon out-of-memory.
37800         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37801         upon out-of-memory.
37802         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37803         NULL upon out-of-memory.
37804         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37805         upon out-of-memory.
37806         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37807         NULL upon out-of-memory.
37808         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37809         NULL upon out-of-memory.
37810         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37811         upon out-of-memory.
37812         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37813         (gl_sublist_list_implementation): Update.
37814         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37815         upon out-of-memory.
37816         * modules/sublist (Depends-on): Remove xalloc.
37817
37818         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37819         * tests/test-carray_list.c: Likewise.
37820         * tests/test-linked_list.c: Likewise.
37821         * tests/test-linkedhash_list.c: Likewise.
37822         * tests/test-avltree_list.c: Likewise.
37823         * tests/test-rbtree_list.c: Likewise.
37824         * tests/test-avltreehash_list.c: Likewise.
37825         * tests/test-rbtreehash_list.c: Likewise.
37826         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37827         * modules/carray-list-tests (Makefile.am): Likewise.
37828         * modules/linked-list-tests (Makefile.am): Likewise.
37829         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37830         * modules/avltree-list-tests (Makefile.am): Likewise.
37831         * modules/rbtree-list-tests (Makefile.am): Likewise.
37832         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37833         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37834
37835         * NEWS: Mention the changes.
37836
37837         * lib/clean-temp.c: Include gl_xlist.h.
37838         * modules/clean-temp (Depends-on): Add xlist.
37839
37840         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37841         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37842
37843         * tests/test-array_oset.c: Include gl_xlist.h.
37844         * modules/array-oset-tests (Depends-on): Add xlist.
37845
37846         Reported by José E. Marchesi <jemarch@gnu.org>.
37847
37848 2009-12-13  Bruno Haible  <bruno@clisp.org>
37849
37850         Move the malloc checking from module 'oset' to new module 'xoset'.
37851         * modules/xoset: New file.
37852         * lib/gl_xoset.h: New file.
37853         * lib/gl_xoset.c: New file.
37854         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37855         declarations.
37856         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37857         (struct gl_oset_implementation): Rename and change methods accordingly.
37858         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37859         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37860         'int'. Mark as __warn_unused_result__.
37861         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37862         gl_oset_create_empty.
37863         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37864         'int'.
37865         * lib/gl_array_oset.c: Don't include xalloc.h.
37866         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37867         malloc, not xmalloc.
37868         (grow): Change return type to 'int'. Don't call xalloc_die.
37869         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37870         to 'int'.
37871         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37872         'int'.
37873         (gl_array_oset_implementation): Update.
37874         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37875         gl_tree_create_empty.
37876         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37877         'int'.
37878         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37879         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37880         xmalloc.
37881         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37882         not xmalloc.
37883         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37884         xmalloc.
37885         (gl_avltree_oset_implementation): Update.
37886         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37887         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37888         xmalloc.
37889         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37890         not xmalloc.
37891         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37892         xmalloc.
37893         (gl_rbtree_oset_implementation): Update.
37894         * modules/array-oset (Depends-on): Remove xalloc.
37895         * modules/avltree-oset (Depends-on): Likewise.
37896         * modules/rbtree-oset (Depends-on): Likewise.
37897         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37898         * tests/test-avltree_oset.c: Likewise.
37899         * tests/test-rbtree_oset.c: Likewise.
37900         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37901         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37902         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37903         * NEWS: Mention the change.
37904
37905 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37906
37907         maint.mk: allow a project to override release-prep commands
37908         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37909         commands into a new rule.
37910         (release-prep): New rule.
37911         (release-prep-hook): New overridable variable.
37912
37913 2009-12-13  Bruno Haible  <bruno@clisp.org>
37914
37915         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37916
37917 2009-12-13  Jim Meyering  <meyering@redhat.com>
37918
37919         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37920         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37921
37922 2009-12-12  Bruno Haible  <bruno@clisp.org>
37923
37924         duplocale: Tweak.
37925         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37926
37927 2009-12-12  Karl Berry  <karl@gnu.org>
37928
37929         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37930
37931 2009-12-12  Bruno Haible  <bruno@clisp.org>
37932
37933         * m4/po.m4: Undo incorrect untabification.
37934
37935 2009-12-12  Bruno Haible  <bruno@clisp.org>
37936
37937         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37938         * modules/c-strtod (Depends-on): Add locale.
37939         * modules/c-strtold (Depends-on): Likewise.
37940
37941 2009-12-12  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37944
37945 2009-12-11  Eric Blake  <ebb9@byu.net>
37946
37947         setenv: relax requirement in light of POSIX ruling
37948         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37949         not NULL.
37950         * tests/test-setenv.c (main): Relax test.
37951         * tests/test-unsetenv.c (main): Likewise.
37952         * doc/posix-functions/setenv.texi (setenv): Document this.
37953         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37954
37955 2009-12-11  Bruno Haible  <bruno@clisp.org>
37956
37957         New module 'fd-safer-flag'.
37958         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37959         * lib/dup-safer.c (dup_safer_flag): Remove function.
37960         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37961         * lib/fd-safer.c (fd_safer_flag): Remove function.
37962         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37963         * modules/cloexec (configure.ac): Drop indicator macro.
37964         * modules/fd-safer-flag: New file.
37965         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37966         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37967         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37968
37969 2009-12-11  Bruno Haible  <bruno@clisp.org>
37970
37971         Tests for module 'nl_langinfo'.
37972         * modules/nl_langinfo-tests: New file.
37973         * tests/test-nl_langinfo.sh: New file.
37974         * tests/test-nl_langinfo.c: New file.
37975
37976         New module 'nl_langinfo'.
37977         * lib/nl_langinfo.c: New file.
37978         * m4/nl_langinfo.m4: New file.
37979         * modules/nl_langinfo: New file.
37980         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37981
37982 2009-12-11  Bruno Haible  <bruno@clisp.org>
37983
37984         Tests for module 'langinfo'.
37985         * modules/langinfo-tests: New file.
37986         * tests/test-langinfo.c: New file.
37987
37988         New module 'langinfo'.
37989         * lib/langinfo.in.h: New file.
37990         * m4/langinfo_h.m4: New file.
37991         * modules/langinfo: New file.
37992         * doc/posix-headers/langinfo.texi: Mention the new module.
37993
37994 2009-12-11  Bruno Haible  <bruno@clisp.org>
37995
37996         * lib/config.charset: Untabify.
37997
37998 2009-12-11  Bruno Haible  <bruno@clisp.org>
37999
38000         * modules/unistd-safer (configure.ac): Drop indicator macro.
38001
38002 2009-12-11  Bruno Haible  <bruno@clisp.org>
38003
38004         Move pipe2-safer code to its own file.
38005         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38006         * lib/pipe-safer.c (pipe2_safer): Remove function.
38007         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38008         (Makefile.am): Add it to lib_SOURCES.
38009
38010 2009-12-10  Bruno Haible  <bruno@clisp.org>
38011
38012         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38013
38014 2009-12-10  Bruno Haible  <bruno@clisp.org>
38015
38016         Declare which arguments expect non-NULL values, for GCC and clang.
38017         * build-aux/arg-nonnull.h: New file.
38018         * modules/arg-nonnull: New file.
38019         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38020         (inet_ntop, inet_pton): Use it.
38021         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38022         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38023         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38024         (open, openat): Use it.
38025         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38026         (fnmatch): Use it.
38027         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38028         (getopt, getopt_long, getopt_long_only): Use it.
38029         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38030         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38031         Use it.
38032         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38033         (iconv_open): Use it.
38034         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38035         (strtoimax, strtoumax): Use it.
38036         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38037         (duplocale): Use it.
38038         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38039         (frexp, frexpl): Use it.
38040         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38041         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38042         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38043         (tsearch, tfind, tdelete, twalk): Use it.
38044         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38045         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38046         sigpending): Use it.
38047         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38048         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38049         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38050         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38051         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38052         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38053         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38054         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38055         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38056         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38057         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38058         Use it.
38059         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38060         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38061         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38062         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38063         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38064         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38065         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38066         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38067         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38068         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38069         strtoull, unsetenv): Use it.
38070         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38071         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38072         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38073         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38074         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38075         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38076         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38077         (strcasecmp, strncasecmp): Use it.
38078         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38079         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38080         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38081         rpl_setsockopt): Use it.
38082         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38083         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38084         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38085         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38086         (gettimeofday): Use it.
38087         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38088         (times): Use it.
38089         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38090         (uname): Use it.
38091         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38092         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38093         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38094         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38095         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38096         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38097         unlinkat, write): Use it.
38098         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38099         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38100         * lib/argv-iter.h: Include arg-nonnull.h.
38101         (_ATTRIBUTE_NONNULL_): Remove macro.
38102         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38103         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38104         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38105         optimization.
38106         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38107         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38108         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38109         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38110         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38111         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38112         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38113         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38114         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38115         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38116         * modules/dirent (Depends-on): Add arg-nonnull.
38117         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38118         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38119         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38120         * modules/fnmatch (Depends-on): Add arg-nonnull.
38121         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38122         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38123         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38124         * modules/glob (Depends-on): Add arg-nonnull.
38125         (Makefile.am): Insert arg-nonnull.h into glob.h.
38126         * modules/iconv_open (Depends-on): Add arg-nonnull.
38127         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38128         * modules/inttypes (Depends-on): Add arg-nonnull.
38129         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38130         * modules/locale (Depends-on): Add arg-nonnull.
38131         (Makefile.am): Insert arg-nonnull.h into locale.h.
38132         * modules/math (Depends-on): Add arg-nonnull.
38133         (Makefile.am): Insert arg-nonnull.h into math.h.
38134         * modules/netdb (Depends-on): Add arg-nonnull.
38135         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38136         * modules/search (Depends-on): Add arg-nonnull.
38137         (Makefile.am): Insert arg-nonnull.h into search.h.
38138         * modules/signal (Depends-on): Add arg-nonnull.
38139         (Makefile.am): Insert arg-nonnull.h into signal.h.
38140         * modules/spawn (Depends-on): Add arg-nonnull.
38141         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38142         * modules/stdio (Depends-on): Add arg-nonnull.
38143         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38144         * modules/stdlib (Depends-on): Add arg-nonnull.
38145         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38146         * modules/string (Depends-on): Add arg-nonnull.
38147         (Makefile.am): Insert arg-nonnull.h into string.h.
38148         * modules/strings (Depends-on): Add arg-nonnull.
38149         (Makefile.am): Insert arg-nonnull.h into strings.h.
38150         * modules/sys_socket (Depends-on): Add arg-nonnull.
38151         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38152         * modules/sys_stat (Depends-on): Add arg-nonnull.
38153         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38154         * modules/sys_time (Depends-on): Add arg-nonnull.
38155         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38156         * modules/sys_times (Depends-on): Add arg-nonnull.
38157         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38158         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38159         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38160         * modules/time (Depends-on): Add arg-nonnull.
38161         (Makefile.am): Insert arg-nonnull.h into time.h.
38162         * modules/unistd (Depends-on): Add arg-nonnull.
38163         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38164         * modules/wchar (Depends-on): Add arg-nonnull.
38165         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38166         * modules/argv-iter (Depends-on): Add arg-nonnull.
38167         * tests/test-canonicalize.c (null_ptr): New function.
38168         (main): Use it.
38169         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38170         (main): Use it.
38171         * tests/test-memmem.c (null_ptr): New function.
38172         (main): Use it.
38173         Reported by Jim Meyering.
38174
38175 2009-12-10  Bruno Haible  <bruno@clisp.org>
38176
38177         Use spaces for indentation, not tabs.
38178         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38179         * m4/*.m4: Untabify.
38180         * build-aux/*.h: Untabify.
38181         * tests/**/*.[hc]: Untabify.
38182         * README: New section "Indent with spaces, not TABs", based on
38183         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38184         * NEWS: Mention the change.
38185
38186 2009-12-10  Bruno Haible  <bruno@clisp.org>
38187
38188         pty test: Fix link error.
38189         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38190         test_pty_LDADD.
38191
38192 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38193
38194         * modules/pty: New file.
38195         * modules/pty-tests: New file.
38196         * m4/pty.m4: New file.
38197         * tests/test-pty.c: New file.
38198         * doc/glibc-headers/pty.texi: Modified.
38199         * doc/glibc-functions/forkpty.texi: Modified.
38200         * doc/glibc-functions/openpty.texi: Modified.
38201
38202 2009-12-10  Bruno Haible  <bruno@clisp.org>
38203
38204         Avoid syntax error in C++ mode.
38205         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38206
38207 2009-12-10  Bruno Haible  <bruno@clisp.org>
38208
38209         Use sed with option -e.
38210         * gnulib-tool (func_version, func_emit_copyright_notice,
38211         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38212         option -e to sed.
38213         * modules/link-warning (Makefile.am): Likewise.
38214
38215 2009-12-10  Jim Meyering  <meyering@redhat.com>
38216
38217         mgetgroups: do not write bytes beyond end of malloc'd buffer
38218         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38219         username, we call getgroups with a one-element-shorter buffer,
38220         but still told it the length was original, max_n_groups.
38221
38222 2009-12-09  Eric Blake  <ebb9@byu.net>
38223
38224         cloexec: relax license
38225         * modules/cloexec (Maintainer): Add myself.
38226         (License): Use LGPL, not GPL.
38227
38228         link-warning: optimize generation
38229         * modules/link-warning (Makefile.am): Reduce process usage.
38230
38231 2009-12-09  Bruno Haible  <bruno@clisp.org>
38232
38233         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38234         workaround was added on 2009-11-17.
38235
38236 2009-12-09  Jim Meyering  <meyering@redhat.com>
38237             Bruno Haible  <bruno@clisp.org>
38238
38239         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38240         * modules/link-warning (Makefile.am): Make the comment-removing sed
38241         command more robust in the face of bootstrap-prepended comment lines.
38242
38243 2009-12-09  Bruno Haible  <bruno@clisp.org>
38244
38245         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38246         most one group.
38247
38248 2009-12-09  Simon Josefsson <simon@josefsson.org>
38249             Bruno Haible  <bruno@clisp.org>
38250
38251         * build-aux/link-warning.h: Add copyright notice.
38252         * modules/link-warning (Makefile.am): Generate link-warning.h from
38253         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38254         * NEWS: Mention change in link-warning module.
38255         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38256         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38257         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38258         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38259         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38260         * modules/math (Makefile.am): Add dependency to math.h.
38261         * modules/search (Makefile.am): Add dependency to search.h.
38262         * modules/signal (Makefile.am): Add dependency to signal.h.
38263         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38264         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38265         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38266         * modules/string (Makefile.am): Add dependency to string.h.
38267         * modules/strings (Makefile.am): Add dependency to strings.h.
38268         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38269         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38270         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38271         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38272         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38273         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38274         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38275         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38276         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38277
38278 2009-12-09  Bruno Haible  <bruno@clisp.org>
38279
38280         fchdir: Optimize away rpl_fstat when possible.
38281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38282         REPLACE_OPEN_DIRECTORY.
38283         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38284
38285 2009-12-09  Bruno Haible  <bruno@clisp.org>
38286
38287         * lib/fchdir.c: Update comment.
38288
38289 2009-12-09  Bruno Haible  <bruno@clisp.org>
38290
38291         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38292
38293 2009-12-08  Eric Blake  <ebb9@byu.net>
38294
38295         fchdir: avoid memory leak on re-registration.
38296         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38297
38298 2009-12-08  Jim Meyering  <meyering@redhat.com>
38299
38300         init.sh: avoid Solaris 10 /bin/sh portability problem
38301         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38302         sourced script:
38303           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38304           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38305           bar
38306         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38307         and two tests used that idiom.
38308         * tests/init.sh: Update suggested usage comments.
38309         (path_prepend_): New function, to be used in place
38310         of the --src-path=DIR option.
38311         (setup_): Move PATH-prepending code into path_prepend_.
38312         * tests/test-pread.sh: Adapt to new usage.
38313         * tests/test-xalloc-die.sh: Likewise.
38314
38315 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38316
38317         * doc/gnulib.texi (Glibc pty.h): Add.
38318         * doc/glibc-functions/forkpty.texi: Add.
38319         * doc/glibc-functions/openpty.texi: Add.
38320         Suggested by Bruno Haible.
38321
38322 2009-12-08  Eric Blake  <ebb9@byu.net>
38323
38324         fchdir: fix logic bugs
38325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38326         * tests/test-fchdir.c (main): Enhance test.
38327         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38328         is in use.
38329
38330         dup2: fix logic bugs
38331         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38332         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38333         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38334         exists.
38335         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38336
38337 2009-12-07  Eric Blake  <ebb9@byu.net>
38338
38339         unlink: fix m4 detection
38340         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38341
38342         unistd-safer: add unit test
38343         * modules/unistd-safer-tests: New file.
38344         * tests/test-dup-safer.c: Likewise.
38345         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38346         * tests/test-dup2.c (setmode): Likewise.
38347         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38348
38349         cloexec: preserve text vs. binary across dup_cloexec
38350         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38351         mode.
38352         * modules/dup2-tests (Depends-on): Add binary-io.
38353         * modules/cloexec-tests (Depends-on): Likewise.
38354         * tests/test-dup2.c (setmode, is_mode): New helpers.
38355         (main): Add tests that translation mode is preserved.
38356         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38357         Reported by Bruno Haible.
38358
38359         mgetgroups: reduce duplicate listings
38360         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38361         resulting array.
38362         * tests/test-chown.h (test_chown): Simplify client.
38363         * tests/test-lchown.h (test_lchown): Likewise.
38364
38365 2009-12-06  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38368         value.
38369
38370 2009-12-06  Bruno Haible  <bruno@clisp.org>
38371
38372         * lib/progname.c: Include stdio.h, stdlib.h.
38373         (set_program_name): Reject a NULL argument.
38374
38375 2009-12-05  Eric Blake  <ebb9@byu.net>
38376
38377         pipe2-safer: new module
38378         * modules/pipe2-safer: New file.
38379         * lib/unistd-safer.h (pipe2_safer): New prototype.
38380         * lib/unistd--.h (pipe2): New wrapper.
38381         * lib/pipe-safer.c (pipe2_safer): New function.
38382         * modules/pipe (Depends-on): Add pipe2-safer.
38383         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38384
38385         stdlib-safer: preserve cloexec flag for mkostemp[s]
38386         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38387         fd_safer_flag.
38388
38389         unistd-safer: allow preservation of cloexec status via flag
38390         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38391         prototypes.
38392         * lib/dup-safer.c (dup_safer_flag): New function.
38393         * lib/fd-safer.c (fd_safer_flag): Likewise.
38394         * modules/cloexec (configure.ac): Set witness.
38395
38396         test-dup2: enhance test
38397         * modules/dup2-tests (Depends-on): Add cloexec.
38398         * tests/test-dup2.c (main): Enhance test.
38399
38400         cloexec: add dup_cloexec
38401         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38402         header and comments.
38403         * lib/cloexec.c (set_cloexec_flag): Add comments.
38404         (dup_cloexec): New function, with mingw implementation borrowed
38405         from...
38406         * lib/w32spawn.h (dup_noinherit): ...here.
38407         * modules/execute (Depends-on): Add cloexec.
38408         * modules/pipe (Depends-on): Likewise.
38409         * modules/cloexec (Depends-on): Add dup2.
38410         * modules/cloexec-tests (Files): New file.
38411         * tests/test-cloexec.c: Likewise.
38412
38413         test-xalloc-die: fix test for mingw
38414         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38415         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38416         directory and .exe suffix off argv[0] output.
38417
38418         test-fseeko: fix test for mingw
38419         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38420         than undefining fseek, so test will pass on mingw.
38421
38422 2009-12-05  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/progname.h (set_program_name): Clarify specification.
38425         * lib/progname.c (set_program_name): Likewise.
38426         Reported by Jim Meyering.
38427
38428 2009-12-05  Jim Meyering  <meyering@redhat.com>
38429
38430         maint.mk: backslash-escape parens in default regexp
38431         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38432         backslash-escape the literal parentheses.
38433
38434         maint.mk: news-date-check: use grep -E
38435         * top/maint.mk (today): Define a Make variable, not a...
38436         (news-date-check): ...shell variable.
38437         (news-date-regexp): Use the Make variable.
38438         Use grep's -E option.  Change the failing diagnostic to mention
38439         the variable, $(news-date-regexp).
38440
38441 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38442
38443         maintainer-makefile: allow customization of NEWS entry format
38444         * top/maint.mk (news-date-regexp): New overridable variable.
38445         (news-date-check): Use it.
38446
38447 2009-12-04  Eric Blake  <ebb9@byu.net>
38448
38449         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38450         * lib/mgetgroups.h (xgetgroups): New prototype.
38451         * lib/mgetgroups.c (xgetgroups): New wrapper.
38452         (mgetgroups): Handle ENOSYS.
38453         * modules/mgetgroups (Depends-on): Add realloc.
38454         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38455
38456         mgetgroups: avoid argument promotion issues with -1
38457         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38458         for invalid gid_t.
38459         * tests/test-chown.h (getegid, test_chown): Likewise.
38460         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38461
38462 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38463
38464         exclude: Fix header file problems.
38465         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38466
38467 2009-12-01  Jim Meyering  <meyering@redhat.com>
38468
38469         fts: fts_open: do not let an empty string cause immediate failure
38470         This is required in support of GNU rm, for which the command
38471         "rm A '' B" must process and remove both A and B, in spite of
38472         the empty string argument.
38473         * lib/fts.c (fts_open): Do not let the presence of an empty string
38474         cause fts_open to fail immediately.  Most fts-using tools must be
38475         able to process all arguments, in order, and can be expected to
38476         diagnose such arguments themselves.
38477
38478 2009-11-30  Eric Blake  <ebb9@byu.net>
38479
38480         utimens: fix compilation error
38481         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38482         Declare variable at right scope.
38483
38484 2009-11-29  Jim Meyering  <meyering@redhat.com>
38485
38486         bootstrap: handle perl-5.11's changed --version output
38487         * build-aux/bootstrap (get_version): Handle perl separately,
38488         since perl-5.11's --version output is different.
38489
38490 2009-11-28  Jim Meyering  <meyering@redhat.com>
38491
38492         userspec: depend on the inttostr module, too
38493         * modules/userspec (Depends-on): Add inttostr.
38494
38495         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38496         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38497         number of MAXUID when it evaluates to (uid_t) -1.
38498         Likewise for group ID.  Reported by Matt McCutchen in
38499         <http://savannah.gnu.org/bugs/?28113>
38500
38501         userspec: reformat to use spaces, not TABs
38502         * lib/userspec.c: Expand TABs to spaces.
38503         Add Emacs' "indent-tabs-mode: nil" hint.
38504
38505 2009-11-27  Eric Blake  <ebb9@byu.net>
38506
38507         getopt-gnu: flush out another BSD bug
38508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38509         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38510         flush out BSD bug.
38511         * tests/test-getopt.h (test_getopt): End lists with NULL.
38512         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38513         (test_getopt_long_posix): Enhance test.
38514         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38515         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38516         getopt-gnu.
38517         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38518         Likewise.
38519
38520 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38521
38522         * modules/idpriv-droptemp-tests (Notice): Fix text.
38523
38524 2009-11-27  Jim Meyering  <meyering@redhat.com>
38525
38526         test-xalloc-die: avoid spurious failure due to libtool argv difference
38527         In a libtool-enabled project, this test would fail due to a difference
38528         in the emitted program name, e.g.,
38529         -test-xalloc-die: memory exhausted
38530         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38531         Use program to avoid that.
38532         * modules/xalloc-die-tests (Depends-on): Add progname.
38533         * tests/test-xalloc-die.c: Include progname.h".
38534         (program_name): Remove decl.
38535         (main): Call set_program_name.
38536         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38537
38538 2009-11-26  Richard Jones  <rjones@redhat.com>
38539
38540         w32sock: leave win32 error in place.
38541         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38542
38543 2009-11-26  Eric Blake  <ebb9@byu.net>
38544
38545         init.sh: suggest to use skip_ and fail_ functions in comments
38546         * tests/init.sh: Add a sentence.
38547
38548 2009-11-25  Bruno Haible  <bruno@clisp.org>
38549
38550         init.sh: add documentation in comments
38551         * tests/init.sh: Add some developer and user documentation.
38552
38553 2009-11-26  Jim Meyering  <meyering@redhat.com>
38554
38555         init.sh: accommodate even those who specify bogus srcdir manually
38556         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38557         configure-time tests to be sanitized, so that there is no need to
38558         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38559         (with no double quotes) suffices.  However, since tests may be
38560         invoked manually, and since you may explicitly set srcdir to the
38561         name of a directory containing spaces, do quote its uses here.
38562         * tests/test-pread.sh: Likewise.
38563         Suggested by Bruno Haible.
38564
38565         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38566         * tests/test-pread.sh: Write no data into the pipe, because
38567         test-pread actually reads none.  This avoids a diagnostic,
38568         "bash: echo: write error: Broken pipe", that arises in the unusual
38569         event something is ignoring SIGPIPE, and might be interpreted
38570         as some sort of failure.  Reported by Bruno Haible.
38571
38572 2009-11-25  Jim Meyering  <meyering@redhat.com>
38573
38574         test-pread: cover failure with ESPIPE and EINVAL
38575         * tests/test-pread.c (main): Test for failure, too.
38576         * tests/test-pread.sh: Invoke with stdin on a pipe.
38577         Suggested by Eric Blake.
38578
38579         pread: improvement and fix
38580         * modules/pread (Depends-on): Depend on lseek, for portability to
38581         e.g., mingw.  Suggested by Eric Blake.
38582         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38583
38584         unistd.in.h: correct declaration of pread
38585         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38586         Reported by Richard W.M. Jones.
38587
38588         test-pread.sh: distribute the test script
38589         * modules/pread-tests (Files): Include test-pread.sh.
38590
38591         test-pread.sh: clean up
38592         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38593         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38594         That is unnecessary, since it's always ".".
38595         Suggestion from Eric Blake.
38596
38597         test-pread.sh: make executable
38598         * tests/test-pread.sh: Set executable bit.
38599         Reported by Eric Blake.
38600
38601         correct typo in test-pread.sh
38602         * tests/test-pread.sh: Add #! line.
38603
38604         test pread
38605         * tests/test-pread.c: New file.
38606         * tests/test-pread.sh: Likewise.
38607         * modules/pread-tests: Likewise.
38608
38609         pread: new module
38610         * modules/pread: New file.
38611         * lib/unistd.in.h (pread): Define/declare.
38612         * lib/pread.c (pread): New file.
38613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38614         * modules/unistd (Makefile.am): Substitute witnesses.
38615         * doc/posix-functions/pread.texi (pread): Update.
38616         * MODULES.html.sh: Add pread.
38617
38618 2009-11-25  Jim Meyering  <meyering@redhat.com>
38619
38620         tests/init.sh: new file to be used via most *.sh tests
38621         * tests/init.sh: New file.
38622
38623 2009-11-25  Eric Blake  <ebb9@byu.net>
38624
38625         utimens: work around older Linux failure with symlinks
38626         * lib/utimens.c (lutimensat_works_really): New variable.
38627         (fdutimens, lutimens): Use it to manage kernels that support
38628         nanosecond times on files, but not on symlinks.
38629         Reported by Ondřej Vašík.
38630
38631         utimes: fix configure grammar
38632         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38633
38634 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38635
38636         regex: Fix fastmap for multibyte character ranges.
38637         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38638         characters when a multibyte character range is included.
38639
38640 2009-11-22  Andy Wingo  <wingo@pobox.com>
38641
38642         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38643         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38644
38645 2009-11-24  Bruno Haible  <bruno@clisp.org>
38646
38647         doc: Most *_l functions exist in MacOS X 10.5.
38648         * doc/posix-functions/duplocale.texi: Update platforms list.
38649         * doc/posix-functions/freelocale.texi: Likewise.
38650         * doc/posix-functions/newlocale.texi: Likewise.
38651         * doc/posix-functions/uselocale.texi: Likewise.
38652         * doc/posix-functions/isalnum_l.texi: Likewise.
38653         * doc/posix-functions/isalpha_l.texi: Likewise.
38654         * doc/posix-functions/isblank_l.texi: Likewise.
38655         * doc/posix-functions/iscntrl_l.texi: Likewise.
38656         * doc/posix-functions/isdigit_l.texi: Likewise.
38657         * doc/posix-functions/isgraph_l.texi: Likewise.
38658         * doc/posix-functions/islower_l.texi: Likewise.
38659         * doc/posix-functions/isprint_l.texi: Likewise.
38660         * doc/posix-functions/ispunct_l.texi: Likewise.
38661         * doc/posix-functions/isspace_l.texi: Likewise.
38662         * doc/posix-functions/isupper_l.texi: Likewise.
38663         * doc/posix-functions/iswalnum_l.texi: Likewise.
38664         * doc/posix-functions/iswalpha_l.texi: Likewise.
38665         * doc/posix-functions/iswblank_l.texi: Likewise.
38666         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38667         * doc/posix-functions/iswctype_l.texi: Likewise.
38668         * doc/posix-functions/iswdigit_l.texi: Likewise.
38669         * doc/posix-functions/iswgraph_l.texi: Likewise.
38670         * doc/posix-functions/iswlower_l.texi: Likewise.
38671         * doc/posix-functions/iswprint_l.texi: Likewise.
38672         * doc/posix-functions/iswpunct_l.texi: Likewise.
38673         * doc/posix-functions/iswspace_l.texi: Likewise.
38674         * doc/posix-functions/iswupper_l.texi: Likewise.
38675         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38676         * doc/posix-functions/isxdigit_l.texi: Likewise.
38677         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38678         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38679         * doc/posix-functions/strcoll_l.texi: Likewise.
38680         * doc/posix-functions/strfmon_l.texi: Likewise.
38681         * doc/posix-functions/strftime_l.texi: Likewise.
38682         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38683         * doc/posix-functions/strxfrm_l.texi: Likewise.
38684         * doc/posix-functions/tolower_l.texi: Likewise.
38685         * doc/posix-functions/toupper_l.texi: Likewise.
38686         * doc/posix-functions/towctrans_l.texi: Likewise.
38687         * doc/posix-functions/towlower_l.texi: Likewise.
38688         * doc/posix-functions/towupper_l.texi: Likewise.
38689         * doc/posix-functions/wcscoll_l.texi: Likewise.
38690         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38691         * doc/posix-functions/wctrans_l.texi: Likewise.
38692         * doc/posix-functions/wctype_l.texi: Likewise.
38693         * doc/glibc-functions/strptime_l.texi: Likewise.
38694         * doc/glibc-functions/strtod_l.texi: Likewise.
38695         * doc/glibc-functions/strtof_l.texi: Likewise.
38696         * doc/glibc-functions/strtol_l.texi: Likewise.
38697         * doc/glibc-functions/strtold_l.texi: Likewise.
38698         * doc/glibc-functions/strtoll_l.texi: Likewise.
38699         * doc/glibc-functions/strtoul_l.texi: Likewise.
38700         * doc/glibc-functions/strtoull_l.texi: Likewise.
38701         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38702         * doc/glibc-functions/wcstod_l.texi: Likewise.
38703         * doc/glibc-functions/wcstof_l.texi: Likewise.
38704         * doc/glibc-functions/wcstol_l.texi: Likewise.
38705         * doc/glibc-functions/wcstold_l.texi: Likewise.
38706         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38707         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38708         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38709
38710 2009-11-24  Bruno Haible  <bruno@clisp.org>
38711
38712         duplocale: Fix logic bug.
38713         * lib/duplocale.c: Don't include <langinfo.h>.
38714         (_NL_LOCALE_NAME): Remove macro.
38715         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38716         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38717
38718 2009-11-23  Jim Meyering  <meyering@redhat.com>
38719
38720         test-update-copyright: don't hard-code /usr/bin/perl
38721         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38722         perl to print the current year.  Gilles Espinasse reported that
38723         the replaced use of perl was hard-coded as /usr/bin/perl.
38724
38725 2009-11-23  Bruno Haible  <bruno@clisp.org>
38726
38727         duplocale: Add support for glibc 2.3.x.
38728         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38729
38730 2009-11-22  Bruno Haible  <bruno@clisp.org>
38731
38732         vasnprintf: Tiny optimization.
38733         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38734         MacOS X.
38735
38736 2009-11-22  Bruno Haible  <bruno@clisp.org>
38737
38738         Tests for module 'duplocale'.
38739         * modules/duplocale-tests: New file.
38740         * tests/test-duplocale.c: New file.
38741
38742         New module 'duplocale'.
38743         * m4/duplocale.m4: New file.
38744         * lib/locale.in.h (duplocale): New declaration.
38745         * lib/duplocale.c: New file.
38746         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38747         gl_LOCALE_H_DEFAULTS): New macros.
38748         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38749         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38750         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38751         REPLACE_DUPLOCALE.
38752         * modules/duplocale: New file.
38753         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38754
38755 2009-11-22  Bruno Haible  <bruno@clisp.org>
38756
38757         * modules/locale-tests (configure.ac): Test for newlocale function.
38758         * tests/test-locale.c: When the system has extended locale functions,
38759         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38760
38761         locale: Make locale_t available when possible.
38762         * lib/locale.in.h: Include <xlocale.h> when it exists.
38763         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38764         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38765         * modules/locale (Depends-on): Add extensions.
38766         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38767         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38768
38769 2009-11-22  Bruno Haible  <bruno@clisp.org>
38770
38771         Add comments.
38772         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38773         invocation.
38774         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38775         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38776         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38777
38778 2009-11-22  Bruno Haible  <bruno@clisp.org>
38779
38780         error: account for the possibility of freopen (stdout).
38781         * lib/error.c: Include <unistd.h>.
38782         (flush_stdout): New function, extracted from error and error_at_line.
38783         Determine stdout's fd dynamically.
38784         (error, error_at_line): Invoke flush_stdout.
38785         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38786         * modules/error (Depends-on): Add unistd.
38787
38788 2009-11-22  Bruno Haible  <bruno@clisp.org>
38789
38790         diffseq: Add comment.
38791         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38792
38793 2009-11-22  Jim Meyering  <meyering@redhat.com>
38794
38795         c-stack: avoid defining an unused static function
38796         * lib/c-stack.c (find_stack_direction): Do not define this function
38797         when it will not be used.
38798
38799         diffseq: avoid spurious gcc warnings
38800         * lib/diffseq.h (IF_LINT2): Define.
38801         (compareseq): Use it to initialize two members of "part".
38802         This avoids two used-uninitialized warnings.
38803
38804 2009-11-21  Jim Meyering  <meyering@redhat.com>
38805
38806         c-stack: avoid "ignoring return value of `write'" warning
38807         * lib/c-stack.c: Include "ignore-value.h".
38808         (die): Explicitly ignore each write return value.
38809         * modules/c-stack (Depends-on): Add ignore-value.
38810
38811 2009-11-21  Bruno Haible  <bruno@clisp.org>
38812
38813         diffseq: reduce scope of variable 'best'.
38814         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38815         variable, earlier used for two different purposes.
38816
38817 2009-11-21  Jim Meyering  <meyering@redhat.com>
38818
38819         diffseq: remove useless assignment to "best"
38820         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38821         assignment.  At that point "best" is already guaranteed to be zero.
38822
38823 2009-11-20  Eric Blake  <ebb9@byu.net>
38824
38825         build: mention ftp redirector in release announcements
38826         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38827         values that used to come from cfg.mk; mention FTP redirect URL.
38828         * build-aux/announce-gen: Mention the mirror list.
38829         Suggested by Karl Berry.
38830
38831         nanosleep: improve port to mingw
38832         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38833         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38834         LIB_NANOSLEEP, but only when needed.
38835         * modules/select (Link): Document LIBSOCKET.
38836         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38837         enough.
38838
38839         nanosleep: work around cygwin bug
38840         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38841         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38842         bug.
38843         (getnow): Delete, not needed.
38844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38845         LIB_CLOCK_GETTIME.
38846         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38847         clock-time, gettime.
38848         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38849         bug.
38850         * modules/nanosleep-tests: New test.
38851         * tests/test-nanosleep.c: New file.
38852
38853         sleep: work around cygwin bug
38854         * lib/sleep.c (rpl_sleep): Work around the bug.
38855         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38856         (gl_PREREQ_SLEEP): Delete unused macro.
38857         * modules/sleep (Depends-on): Add verify.
38858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38859         * modules/unistd (Makefile.am): Substitute witness.
38860         * lib/unistd.in.h (sleep): Update prototype.
38861         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38862         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38863         * modules/sleep-tests (Depends-on): Check for alarm.
38864
38865 2009-11-20  Jim Meyering  <meyering@redhat.com>
38866
38867         maint.mk: improve sc_prohibit_magic_number_exit
38868         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38869         so it does not match uses like System.exit(1).
38870         Add comments showing how to correct all offenders.
38871
38872 2009-11-19  Eric Blake  <ebb9@byu.net>
38873
38874         xalloc-die-tests: add missing library
38875         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38876
38877         test-xvasprintf: silence compiler warnings
38878         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38879         empty string from gcc.
38880
38881 2009-11-19  Jim Meyering  <meyering@redhat.com>
38882
38883         xfreopen: new module, from coreutils
38884         * modules/xfreopen: New module.
38885         * lib/xfreopen.c: New file.
38886         * lib/xfreopen.h: New file.
38887         * MODULES.html.sh (File stream based Input/Output"): Add it.
38888
38889 2009-11-19  Eric Blake  <ebb9@byu.net>
38890
38891         manywarnings: depend on warnings
38892         * modules/manywarnings (Depends-on): Add warnings.
38893
38894         build: avoid compiler warnings
38895         * lib/select.c (rpl_select): Delete unused variable.
38896         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38897
38898 2009-11-18  Eric Blake  <ebb9@byu.net>
38899
38900         tests: avoid false negative with --with-packager
38901         * tests/test-version-etc.sh: Discard packager information.
38902         * tests/test-argp-version-etc-1.sh: Likewise.
38903         Reported by Mike Frysinger.
38904
38905         utimens: fix regression on Solaris
38906         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38907         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38908         can only change fd timestamps via futimesat.  Instead, use an
38909         additional witness macro to avoid BSD bug.
38910         Reported by Jim Meyering.
38911
38912 2009-11-17  Eric Blake  <ebb9@byu.net>
38913
38914         usleep: use it to simplify tests
38915         * modules/stat-time-tests (Depends-on): Add usleep.
38916         (configure.ac): Drop usleep check.
38917         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38918         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38919         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38920         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38921         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38922         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38923         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38924         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38925         Likewise.
38926         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38927         * tests/test-lchown.h (nap): Likewise.
38928         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38929         * tests/test-stat-time.c (nap): Likewise.
38930         * tests/test-utimens-common.h (nap): Update comments.
38931
38932         usleep: new module
38933         * modules/usleep: New file.
38934         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38935         * lib/usleep.c (usleep): Likewise.
38936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38937         * modules/unistd (Makefile.am): Substitute witnesses.
38938         * lib/unistd.in.h (usleep): Add declaration.
38939         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38940         * MODULES.html.sh (Date and time): Likewise.
38941         * modules/usleep-tests (Depends-on): New test.
38942         * tests/test-usleep.c: New file.
38943
38944         chown: work around OpenBSD bug
38945         * lib/chown.c (rpl_chown): Work around the bug.
38946         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38947         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38948         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38949         * modules/chown (Depends-on): Add stdbool.
38950         * modules/lchown (Depends-on): Likewise.
38951         * doc/posix-functions/chown.texi (chown): Document the bug.
38952         * doc/posix-functions/lchown.texi (lchown): Likewise.
38953         * tests/test-lchown.h (test_chown): Relax test.
38954
38955         mkstemp: avoid conflict with C++ keyword template
38956         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38957         * lib/mkostemp.c (mkostemp): Likewise.
38958         * lib/mkostemps.c (mkostemps): Likewise.
38959         * lib/mkstemp.c (mkstemp): Likewise.
38960         * lib/mkstemps.c (mkstemps): Likewise.
38961
38962         xalloc-die-tests: optimize
38963         * tests/test-xalloc-die.sh: Reduce number of processes.
38964
38965 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38966
38967         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38968         patch from ludo@gnu.org (Ludovic Courtès).
38969
38970 2009-11-17  Jim Meyering  <meyering@redhat.com>
38971
38972         version-etc: use proper license string
38973         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38974         * modules/version-etc-fsf: Likewise.
38975
38976 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38977
38978         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38979         printed to stdout.  Deal with EOL differences.
38980
38981 2009-11-17  Eric Blake  <ebb9@byu.net>
38982
38983         unsetenv: work around Solaris bug
38984         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38985         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38986         Reported by Jim Meyering.
38987
38988         vasnprintf: avoid compiler warnings
38989         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38990         variables.
38991         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38992
38993 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38994
38995         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38996         settings since xalloc-die is no longer the self test,
38997         xalloc-die.sh is.
38998
38999 2009-11-17  Jim Meyering  <meyering@redhat.com>
39000
39001         test-xalloc-die.sh: make the code agree with the commit log
39002         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39003         at the end, just in case you happen to have a test-xalloc-die
39004         program in some other PATH directory.
39005
39006         test-xalloc-die.sh: fix a portability bug
39007         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39008         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39009         Otherwise, argv[0] (as often seen in diagnostics) would be too
39010         system-dependent, sometimes with, and sometimes without the leading "./".
39011
39012         version-etc-fsf: relax license to LGPLv3+
39013         * modules/version-etc-fsf (License): Relax license.
39014
39015 2009-11-16  Eric Blake  <ebb9@byu.net>
39016
39017         xalloc-die-tests: avoid printing null pointer
39018         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39019         shell script.
39020         * tests/test-xalloc-die.c (program_name): Declare.
39021         * tests/test-xalloc-die.sh (tmpfiles): New file.
39022
39023         setenv, unsetenv: work around various bugs
39024         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39025         (setenv) [HAVE_SETENV]: Work around bugs.
39026         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39027         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39028         for bugs.
39029         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39030         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39032         * modules/stdlib (Makefile.am): Update substitutions.
39033         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39034         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39035         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39036         * modules/setenv-tests: New test.
39037         * modules/unsetenv-tests: Likewise.
39038         * tests/test-setenv.c: New file.
39039         * tests/test-unsetenv.c: Likewise.
39040
39041 2009-11-16  Jim Meyering  <meyering@redhat.com>
39042
39043         version-etc: relax license to LGPLv3+
39044         * modules/version-etc (License): Relax license.
39045
39046         better AC_REQUIRE expanded-before-required-warning avoidance
39047         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39048         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39049         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39050         which is no longer needed.
39051
39052 2009-11-16  Eric Blake  <ebb9@byu.net>
39053
39054         test-freading: clean up temporary file
39055         * tests/test-freading.c (main): Remove file on success, and use
39056         ASSERT more liberally.
39057         Reported by Jim Meyering.
39058
39059 2009-11-16  Jim Meyering  <meyering@redhat.com>
39060
39061         avoid new AC_REQUIRE expanded-before-required warnings
39062         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39063         merely using it.
39064         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39065         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39066
39067 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39068
39069         * tests/test-xalloc-die.c: New file.
39070         * modules/xalloc-die-tests: New file.
39071         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39072         XFAIL_TESTS so it can be appended by modules.
39073
39074 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39075
39076         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39077         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39078
39079 2009-11-14  Eric Blake  <ebb9@byu.net>
39080
39081         fnmatch: avoid compiler warning
39082         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39083         to silence compiler warning about mismatch signedness in ?:.
39084         Reported by Robert Millan.
39085
39086         intprops: add double-inclusion guard
39087         * lib/intprops.h: Allow idempotent includes.
39088         Suggested by Bruce Korb.
39089
39090         openat: detect Solaris fchownat bug
39091         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39092         penalizing glibc chownat when only lchownat is broken.
39093         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39094         trailing slash bugs.
39095         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39096         * modules/openat-tests (Files): Include more files.
39097         (Depends-on): Add mgetgroups, sleep, stat-time.
39098         (configure.ac): Add additional checks.
39099         (Makefile.am): Build new test.
39100         * tests/test-fchownat.c: New file.
39101
39102         lchown: detect Solaris and FreeBSD bug
39103         * lib/lchown.c (rpl_lchown): Work around bug.
39104         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39106         * modules/unistd (Makefile.am): Populate it.
39107         * lib/unistd.in.h (lchown): Update declaration.
39108         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39109         * modules/lchown-tests: New file.
39110         * tests/test-lchown.h (test_lchown): Likewise.
39111         * tests/test-lchown.c (main): Likewise.
39112
39113         chown: detect Solaris and FreeBSD bug
39114         * lib/chown.c (rpl_chown): Work around bug.
39115         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39116         (gl_PREREQ_CHOWN): Delete.
39117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39118         * modules/unistd (Makefile.am): Populate it.
39119         * lib/unistd.in.h (chown): Update declaration.
39120         * lib/lchown.c (chown): Update client.
39121         * modules/lchown (Depends-on): Add lstat.
39122         * doc/posix-functions/chown.texi (chown): Document the bug.
39123         * doc/posix-functions/getgroups.texi (getgroups): Document
39124         getgroups pitfall.
39125         * modules/chown-tests: New file.
39126         * tests/test-chown.h (test_chown): Likewise.
39127         * tests/test-chown.c (main): Likewise.
39128
39129 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39130
39131         gnulib-tool: correctly detect absence of m4 directories
39132         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39133
39134 2009-11-14  Jim Meyering  <meyering@redhat.com>
39135
39136         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39137         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39138
39139 2009-11-14  John W. Eaton  <jwe@gnu.org>
39140
39141         strftime.h: wrap funtion declaration in extern "C" block
39142         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39143
39144 2009-11-13  Eric Blake  <ebb9@byu.net>
39145
39146         getgroups: avoid compiler warning
39147         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39148
39149         getgroups: work around FreeBSD bug
39150         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39151         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39152         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39153         * tests/test-getgroups.c (main): Fix buffer overrun.
39154
39155         getgroups: avoid compilation failure
39156         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39157         * modules/getgroups (Depends-on): Add stdint.
39158
39159 2009-11-13  Jim Meyering  <meyering@redhat.com>
39160
39161         test-getgroups: avoid compilation failure
39162         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39163
39164 2009-11-13  Eric Blake  <ebb9@byu.net>
39165
39166         mgetgroups: new module, taken from coreutils
39167         * modules/mgetgroups: New file.
39168         * lib/mgetgroups.h: Likewise.
39169         * lib/mgetgroups.c (mgetgroups): Likewise.
39170         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39171         * MODULES.html.sh (Users and groups): Mention it.
39172
39173         getgroups: don't expose GETGROUPS_T to user
39174         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39175         an element at a time if GETGROUPS_T is wrong size.
39176         * lib/getugroups.h (getugroups): Change signature.
39177         * lib/unistd.in.h (getgroups): Likewise.
39178         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39179         signature needs fixing.
39180         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39181         AC_TYPE_GETGROUPS.
39182         * modules/group-member (Depends-on): Add getgroups.
39183         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39184         (group_member): Rely on getgroups replacement.
39185         * lib/getugroups.c (getugroups): Use gid_t.
39186         * tests/test-getgroups.c (main): Likewise.
39187         * NEWS: Mention the signature change.
39188         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39189         problem with signature.
39190         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39191         GETGROUPS_T is still useful for setgroups.
39192
39193         getgroups, getugroups: provide stubs for mingw
39194         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39195         * lib/getugroups.c (getugroups): Likewise.
39196         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39197         function.  Modernize replacement scheme.
39198         (gl_PREREQ_GETGROUPS): Delete.
39199         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39200         * modules/getgroups (configure.ac): Declare witness.
39201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39202         * modules/unistd (Depends-on): Substitute witness.
39203         * lib/unistd.in.h (getgroups): Declare replacement.
39204
39205         getgroups: avoid calling exit
39206         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39207         drop xalloc.
39208         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39209         dependencies.
39210         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39211         exiting, in the rare case of malloc failure.
39212
39213         getgroups: fix logic error
39214         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39215         has more than 20 groups.
39216         * modules/getgroups-tests: New test.
39217         * tests/test-getgroups.c: New file.
39218
39219 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39220
39221         * tests/test-base64.c: Improve.
39222
39223 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39224
39225         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39226         Blake <ebb9@byu.net>.
39227
39228 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39229
39230         * tests/test-xvasprintf.c: Add %s%s related checks.
39231
39232 2009-11-12  Eric Blake  <ebb9@byu.net>
39233
39234         version-etc: match standards.texi style
39235         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39236         and use <> only for URLs.
39237
39238 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39239
39240         fts: do not fail on a submount during traversal
39241         * lib/fts.c (fts_build): Read the stat info again after opening
39242         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39243         Original report at http://bugzilla.redhat.com/501848.
39244
39245 2009-11-12  Jim Meyering  <meyering@redhat.com>
39246
39247         bootstrap: sync from coreutils
39248         * build-aux/bootstrap (bootstrap_epilogue): New function.
39249         Use git_modules_config in one more place.  This make bootstrap's
39250         --gnulib-srcdir option more useful for testing.
39251
39252         bootstrap: generalize autoheader check
39253         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39254         AC_CONFIG_HEADERS.
39255
39256 2009-11-11  Eric Blake  <ebb9@byu.net>
39257
39258         mkfifoat: use new modules for Solaris and BSD bugs
39259         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39260         * lib/mkfifoat.c (mknodat): Split...
39261         * lib/mknodat.c (mknodat): ...into new file.
39262         * modules/mkfifoat (Files): Ship new file.
39263         (Depends-on): Add mkfifo, mknod.
39264         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39265         (Depends-on): Add symlink.
39266         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39267         redundant with test_mkfifo.h.
39268         (do_mkfifoat, do_mknodat): New helpers.
39269
39270         mknod: new module
39271         * modules/mknod: New file.
39272         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39273         * lib/mknod.c (mknod): Likewise.
39274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39275         defaults.
39276         * modules/sys_stat (Makefile.am): Substitute them.
39277         * lib/sys_stat.in.h (mknod): Declare replacement.
39278         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39279         Document it.
39280         * doc/posix-functions/mknod.texi (mknod): Likewise.
39281         * modules/mknod-tests: New test.
39282         * tests/test-mknod.c: Likewise.
39283
39284         mkfifo: new module
39285         * modules/mkfifo: New file.
39286         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39287         * lib/mkfifo.c (mkfifo): Likewise.
39288         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39289         defaults.
39290         * modules/sys_stat (Makefile.am): Substitute them.
39291         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39292         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39293         Document it.
39294         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39295         * modules/mkfifo-tests: New test.
39296         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39297         from test-mkfifoat.c.
39298         * tests/test-mkfifo.c: New file.
39299
39300         readlink: detect FreeBSD bug
39301         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39302         slash on symlink.
39303         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39304         * tests/test-readlink.h (test_readlink): Enhance test.
39305
39306         symlink: detect FreeBSD bug
39307         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39308         slash on symlink.
39309         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39310         * tests/test-symlink.h (test_symlink): Enhance test.
39311
39312 2009-11-10  Eric Blake  <ebb9@byu.net>
39313
39314         link: detect FreeBSD bug
39315         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39316         symlink.
39317         * doc/posix-functions/link.texi (link): Document the bug.
39318         * tests/test-link.h (test_link): Enhance test.
39319         * tests/test-linkat.c (main): Update caller.
39320
39321         unlink, remove: detect FreeBSD bug
39322         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39323         slash on symlink.
39324         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39325         * doc/posix-functions/remove.texi (remove): Likewise.
39326         * tests/test-unlink.h (test_unlink): Enhance test.
39327         * tests/test-remove.c (main): Likewise.
39328
39329 2009-11-09  Eric Blake  <ebb9@byu.net>
39330
39331         rename: detect FreeBSD bug
39332         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39333         slash on symlink.
39334         * modules/renameat-tests (Depends-on): Add filenamecat.
39335         * tests/test-rename.h (test_rename): Allow one more errno.
39336         * tests/test-renameat.c (main): Likewise.
39337         * doc/posix-functions/rename.texi (rename): Document the bug.
39338
39339         open: detect FreeBSD bug
39340         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39341         symlink.
39342         * doc/posix-functions/open.texi (open): Document the bug.
39343         * doc/posix-functions/utimes.texi (utimes): Likewise.
39344         * tests/test-open.h (test_open): Add parameters, and test symlink
39345         handling.
39346         * tests/test-open.c (main): Adjust caller.
39347         * tests/test-fcntl-safer.c (main): Likewise.
39348         * modules/open-tests (Depends-on): Add stdbool, symlink.
39349         * modules/fcntl-safer-tests (Depends-on): Likewise.
39350         * tests/test-openat.c (main): Add test-open tests.
39351
39352         stat: detect FreeBSD bug
39353         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39354         symlink.
39355         * doc/posix-functions/stat.texi (stat): Document the bug.
39356         * tests/test-stat.h (test_stat_func): Add argument.
39357         * tests/test-stat.c (main): Adjust caller.
39358         * tests/test-fstatat.c (main): Likewise.
39359         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39360         Reported by Jim Meyering.
39361
39362 2009-11-09  James Youngman  <jay@gnu.org>
39363
39364         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39365         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39366
39367 2009-11-08  Jim Meyering  <meyering@redhat.com>
39368
39369         utimens: remove invalid futimesat call
39370         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39371         It used the file descriptor of the target file as the DIR_FD
39372         parameter and NULL as the file name.  That caused failure with
39373         errno == EFAULT on FreeBSD-8.0-rc2
39374
39375 2009-11-07  Eric Blake  <ebb9@byu.net>
39376
39377         fflush, freadseek: use fseeko, not fseek
39378         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39379         (clear_ungetc_buffer): Avoid potential problems on large files.
39380         * lib/freadseek.c (freadseek): Likewise.
39381         * modules/freadseek (Depends-on): Add fseeko.
39382         * modules/fseek (configure.ac): Set a witness.
39383         * tests/test-fflush.c (main): Use fseeko.
39384         * tests/test-fpurge.c (fseek): Disable link warning.
39385         * tests/test-freadable.c (fseek): Likewise.
39386         * tests/test-freading.c (fseek): Likewise.
39387         * tests/test-fseeko.c (fseek): Likewise.
39388         * tests/test-ftell.c (fseek): Likewise.
39389         * tests/test-ftello.c (fseek): Likewise.
39390         * tests/test-fwritable.c (fseek): Likewise.
39391         * tests/test-fwriting.c (fseek): Likewise.
39392
39393 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39394
39395         * modules/memchr (Depends-on): Drop getpagesize dependency.
39396
39397 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39398
39399         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39400         Reported by Ludovic Courtès.
39401         * build-aux/pmccabe2html: Improve example usage.
39402         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39403
39404 2009-11-06  Jim Meyering  <meyering@redhat.com>
39405
39406         do-release-commit-and-tag: New module.
39407         Automate the release-commit and tag process.
39408         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39409         * modules/do-release-commit-and-tag: New file.
39410         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39411
39412 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39413
39414         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39415         because test-select.c uses inet_pton.
39416
39417 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39418
39419         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39420         GETADDRINFO_LIB.  Bump serial number.
39421         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39422         Suggested by Eric Blake <ebb9@byu.net>.
39423
39424 2009-11-05  Eric Blake  <ebb9@byu.net>
39425
39426         strtod: detect darwin bug
39427         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39428         Reported by Leo Davis.
39429
39430         freopen-safer: new module
39431         * modules/freopen-safer: New module.
39432         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39433         * lib/freopen-safer.c (freopen_safer): New file.
39434         * lib/stdio-safer.h (freopen_safer): New declaration.
39435         * lib/stdio--.h (freopen): New override.
39436         * MODULES.html.sh (File stream based Input/Output): Mention it.
39437         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39438         freopen-safer module.
39439         * doc/posix-functions/stderr.texi (stderr): Likewise.
39440         * doc/posix-functions/stdin.texi (stdin): Likewise.
39441         * doc/posix-functions/stdout.texi (stdout): Likewise.
39442         * modules/freopen-safer-tests: New test.
39443         * tests/test-reopen-safer.c: New file.
39444
39445 2009-11-05  Jim Meyering  <meyering@redhat.com>
39446
39447         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39448         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39449
39450 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39451
39452         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39453
39454 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39455
39456         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39457
39458 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39459
39460         Fix link error.
39461         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39462         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39463
39464 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39465
39466         * tests/test-func.c: Also test value of __func__.
39467
39468 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39469
39470         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39471         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39472
39473 2009-11-05  Bruno Haible  <bruno@clisp.org>
39474
39475         Fix link error.
39476         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39477         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39478         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39479
39480 2009-11-05  Bruno Haible  <bruno@clisp.org>
39481
39482         Tests for module 'inet_pton'.
39483         * modules/inet_pton-tests: New file.
39484         * tests/test-inet_pton.c: New file.
39485
39486 2009-11-05  Bruno Haible  <bruno@clisp.org>
39487
39488         Tests for module 'inet_ntop'.
39489         * modules/inet_ntop-tests: New file.
39490         * tests/test-inet_ntop.c: New file.
39491
39492 2009-11-04  Eric Blake  <ebb9@byu.net>
39493
39494         stdlib-safer: wrap all mkstemp variants
39495         * modules/mkostemp (configure.ac): Set witness.
39496         * modules/mkostemps (configure.ac): Likewise.
39497         * modules/mkstemps (configure.ac): Likewise.
39498         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39499         (mkstemps_safer): Wrap more functions.
39500         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39501         wrapping.
39502         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39503         (mkstemps_safer): Implement the wrappers.
39504
39505         mkstemps, mkostemps: new modules
39506         * modules/mkostemps: New module.
39507         * modules/mkstemps: Likewise.
39508         * lib/mkostemps.c (mkostemps): New file.
39509         * lib/mkstemps.c (mkstemps): Likewise.
39510         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39511         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39513         * modules/stdlib (Makefile.am): Substitute them.
39514         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39515         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39516         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39517         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39518         * MODULES.html.sh (File system functions): Mention them.
39519
39520         tempname: resync from glibc
39521         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39522         same values for __GT_FILE as glibc.  Abort even when assertions
39523         are disabled.
39524         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39525         match its value otherwise.  Allow idempotent inclusion.
39526         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39527         * lib/mkostemp.c (mkostemp): Likewise.
39528         * lib/mkstemp.c (mkstemp): Likewise.
39529         * lib/tmpfile.c (tmpfile): Likewise.
39530         * NEWS: Document this.
39531
39532         utimens: fix use of futimens on older Linux
39533         * lib/utimens.c (fdutimens): Use updated, rather than original,
39534         timespec to avoid bug in older Linux kernel.
39535         Reported by Simon Josefsson.
39536
39537 2009-11-04  Bruno Haible  <bruno@clisp.org>
39538
39539         Make num_processors more flexible and consistent.
39540         * lib/nproc.h (enum nproc_query): New type.
39541         (num_processors): Add a 'query' argument.
39542         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39543         (num_processors): Add a 'query' argument. Test the value of the
39544         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39545         mingw, count the number of CPUs available for the current process.
39546         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39547         Check for sched_getaffinity and sched_getaffinity_np.
39548         * modules/nproc (Depends-on): Add c-ctype, extensions.
39549         * NEWS: Mention the change.
39550
39551 2009-11-03  Bruno Haible  <bruno@clisp.org>
39552
39553         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39554
39555 2009-11-03  Jim Meyering  <meyering@redhat.com>
39556
39557         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39558         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39559         if it is defined.
39560
39561 2009-11-02  Eric Blake  <ebb9@byu.net>
39562
39563         mktime, timegm: share common declaration
39564         * lib/mktime-internal.h: New file.
39565         * lib/mktime.c: Use it rather than open-coding a declaration.
39566         * lib/timegm.c: Likewise.
39567         * modules/mktime (Files): Ship it.
39568         * modules/timegm (Files): Likewise.
39569         Suggested by Bruno Haible.
39570
39571         test-update-copyright: update test to match script changes
39572         * tests/test-update-copyright.sh: Avoid hard-coding perl
39573         location.  Don't update *.bak created by earlier runs.
39574
39575 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39576             Simon Josefsson  <simon@josefsson.org>
39577             Bruno Haible  <bruno@clisp.org>
39578
39579         Fix link error on Solaris 8.
39580         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39581         also in libnsl. Define also INET_PTON_LIB.
39582         * modules/inet_pton (Link): New section.
39583
39584 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39585             Bruno Haible  <bruno@clisp.org>
39586
39587         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39588         * modules/inet_ntop (Link): New section.
39589         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39590
39591 2009-11-02  Eric Blake  <ebb9@byu.net>
39592
39593         maint: avoid compiler warnings in m4 macros
39594         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39595         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39596
39597 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39598
39599         * m4/pmccabe2html.m4: Remove file.
39600         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39601         function.  Change maintainer.
39602         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39603         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39604         Courtès).
39605
39606 2009-10-31  Eric Blake  <ebb9@byu.net>
39607
39608         fseeko: fix m4 regression
39609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39610         regression from 2009-10-27.
39611         Reported by Ralf Wildenhues.
39612
39613 2009-10-31  Jim Meyering  <meyering@redhat.com>
39614
39615         inttostr: aesthetics and improved (compile-time) safety
39616         Define inttype_is_signed rather than inttype_is_unsigned,
39617         since the sole use is via "#if inttype_is_signed".
39618         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39619         inttype_is_unsigned.
39620         * lib/offtostr.c (inttype_is_signed): Likewise.
39621         * lib/uinttostr.c (inttype_is_signed): Likewise.
39622         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39623         * lib/inttostr.c (inttostr): Use verify to cross-check the
39624         inttype_is_signed value and the signedness of the actual type.
39625         * modules/inttostr (Depends-on): Add verify.
39626
39627 2009-10-30  Eric Blake  <ebb9@byu.net>
39628
39629         build: avoid compiler warnings
39630         * lib/fchmodat.c (lchmod): Mark unused variables.
39631         * lib/getopt.c (_getopt_initialize): Likewise.
39632         * lib/mktime.c (__mktime_internal): Provide prototype.
39633         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39634         older gcc that do not understand #pragma GCC diagnostic.
39635         * lib/uinttostr.c (inttype_is_unsigned): Define.
39636         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39637
39638 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39639
39640         stat: fix compilation on AIX
39641         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39642         only see struct stat64.
39643
39644 2009-10-30  Eric Blake  <ebb9@byu.net>
39645
39646         exclude: make more robust
39647         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39648         rather than masking a coding bug.
39649         Suggested by Bruno Haible.
39650
39651 2009-10-30  Jim Meyering  <meyering@redhat.com>
39652
39653         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39654         Rather than putting #!/usr/bin/perl on the first line,
39655         start with a variant of what's recommended by "man perlrun" that
39656         invokes the first "perl" program from your shell's search path.
39657         * build-aux/gitlog-to-changelog: Replace #!... as above.
39658         Add a "Local Variables" perl mode setting.
39659         Prompted by a patch from Ludovic Courtès.
39660         Improved by Eric Blake.
39661         * build-aux/useless-if-before-free: Likewise.
39662         * build-aux/announce-gen: Likewise.
39663         * build-aux/update-copyright: Likewise.
39664
39665 2009-10-29  Eric Blake  <ebb9@byu.net>
39666
39667         filenamecat-lgpl: adjust clients
39668         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39669         filenamecat.
39670         * modules/renameat (Depends-on): Likewise.
39671
39672         filenamecat: split into filenamecat-lgpl
39673         * modules/filenamecat-lgpl: New module.
39674         * modules/filenamecat (Files): Move library-safe files into
39675         filenamecat-lgpl.
39676         (Depends-on): Add filenamecat-lgpl.
39677         (configure.ac): Declare witness.
39678         * lib/filenamecat.h (file_name_concat): Only declare when using
39679         GPL module.
39680         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39681         Move...
39682         * lib/filenamecat-lgpl.c: ...into new file.
39683         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39684         (gl_FILE_NAME_CONCAT): Use it.
39685         * MODULES.html.sh (File system functions): Mention new module.
39686
39687         argp: avoid memory leak
39688         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39689         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39690         base_name, since the latter malloc()s and can call exit().
39691         Leak introduced 2006-07-03.
39692
39693         dirname-lgpl: adjust clients that don't need full dirname
39694         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39695         * modules/filenamecat (Depends-on): Likewise.
39696         * modules/linkat (Depends-on): Likewise.
39697         * modules/mkancesdirs (Depends-on): Likewise.
39698         * modules/mkdir (Depends-on): Likewise.
39699         * modules/openat (Depends-on): Likewise.
39700         * modules/savewd (Depends-on): Likewise.
39701         * modules/rename (Depends-on): Likewise.
39702         (License): Relax license.
39703         * modules/mkdir-tests (Depends-on): Drop progname.
39704         (Makefile.am): Delete unneeded LDADD.
39705         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39706
39707         dirname: split into dirname-lgpl
39708         * modules/dirname-lgpl: New module.
39709         * modules/dirname (Files): Move library-safe files into
39710         dirname-lgpl.
39711         (Depends-on): Add dirname-lgpl.
39712         (configure.ac): Declare witness.
39713         * modules/double-slash-root (License): Relax license.
39714         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39715         module.
39716         * lib/dirname.c (dir_len, mdir_name): Move...
39717         * lib/dirname-lgpl.c: ...into new file.
39718         * lib/basename.c (last_component, base_len): Move...
39719         * lib/basename-lgpl.c: ...into new file.
39720         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39721         (gl_DIRNAME): Use it.
39722         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39723         Mention new module.
39724         * modules/dirname-tests (Depends-on): Add progname.
39725         * tests/test-dirname.c (program_name): Delete.
39726
39727         mkdir: make safe for libraries
39728         * modules/mkdir (Depends-on): Drop xalloc.
39729         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39730         exit.
39731
39732         tests: avoid some compiler warnings
39733         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39734         literals.
39735         * tests/test-memchr.c (main): Avoid type mismatch.
39736         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39737         * tests/test-base64.c (main): Likewise.
39738         * tests/test-getdelim.c (main): Likewise.
39739         * tests/test-gethostname.c (main): Likewise.
39740         * tests/test-getline.c (main): Likewise.
39741         * tests/test-netinet_in.c (main): Likewise.
39742         * tests/test-select.c (open_server_socket, main): Likewise.
39743         * tests/test-select-stdin.c (main): Likewise.
39744         * tests/test-sockets.c (main): Likewise.
39745         * tests/test-strsignal.c (main): Likewise.
39746         * tests/test-sys_select.c (main): Likewise.
39747         * tests/test-sys_socket.c (main): Likewise.
39748         * tests/test-u64.c (main): Likewise.
39749         * tests/test-xfprintf-posix.c (main): Likewise.
39750         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39751
39752         sockets: avoid compiler warning
39753         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39754
39755         maint: detect usage(1) and other suspicious exits
39756         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39757
39758 2009-10-29  Jim Meyering  <meyering@redhat.com>
39759
39760         timespec: long-to-int truncation could make timespec_cmp malfunction
39761         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39762         a multiple of 2^32 nanoseconds as no difference.
39763
39764 2009-10-28  Jim Meyering  <meyering@redhat.com>
39765
39766         fprintftime: wrap macro code argument in "do {...} while(0)"
39767         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39768         cpy macro must be a statement that can be followed by a semicolon.
39769         Now that the else clause contains a comment and is hence longer
39770         than one line, I require curly braces.  That in turn requires
39771         that we wrap this code block in the standard do...while(0).
39772
39773         fprintftime: remove stray semicolon from previous change
39774         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39775
39776         fprintftime: avoid a warning about ignored fwrite return value
39777         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39778         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39779         that is unsafe.
39780         * modules/fprintftime (Depends-on): Add ignore-value.
39781
39782         exclude: avoid an unwarranted warning
39783         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39784
39785 2009-10-27  Eric Blake  <ebb9@byu.net>
39786
39787         fseek: avoid compilation failure when fflush is replaced
39788         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39789         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39790         module is in use.
39791         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39792         module is not in use; since REPLACE_FSEEK worked otherwise.
39793         (GNULIB_FTELLO): Likewise for ftell.
39794         Reported by Ian Beckwith and others.
39795
39796 2009-10-27  Bruno Haible  <bruno@clisp.org>
39797
39798         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39799         Reported by Jim Meyering.
39800
39801 2009-10-27  Jim Meyering  <jim@meyering.net>
39802             Bruno Haible  <bruno@clisp.org>
39803
39804         Avoid warning despite dropping the return value of fwrite.
39805         * lib/unicodeio.c: Include ignore-value.h.
39806         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39807         * modules/unicodeio (Depends-on): Add ignore-value.
39808
39809 2009-10-26  Eric Blake  <ebb9@byu.net>
39810
39811         areadlinkat: fix fallback path
39812         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39813         pointer and zero.
39814
39815 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39816
39817         Use a better IO block size for modern systems
39818         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39819         * lib/md2.c: Likewise.
39820         * lib/md4.c: Likewise.
39821         * lib/md5.c: Likewise.
39822         * lib/sha1.c: Likewise.
39823         * lib/sha256.c: Likewise.
39824         * lib/sha512.c: Likewise.
39825
39826 2009-10-22  Eric Blake  <ebb9@byu.net>
39827
39828         tests: avoid several compiler warnings
39829         * tests/test-getcwd.c (main): Avoid buffer underflow.
39830         * tests/test-getdate.c (main): String literals are not safe with
39831         putenv, so use setenv.  Declare unused argument.
39832         * modules/getdate-tests (Depends-on): Add setenv.
39833         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39834         problems with string literals in char *.
39835         * tests/test-hash.c (main): Avoid shadowing declaration.
39836         (insert_new): Treat string literals as char const *.
39837         * tests/test-getopt.h (test_getopt): Likewise.
39838         (getopt_loop): Alter types to minimize casting elsewhere.
39839         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39840         (test_getopt_long_posix): Likewise.
39841         (do_getopt_long): Add wrapper to minimize casting.
39842         * tests/test-atexit.c (clear_temp_file): Use void.
39843         * tests/test-areadlink-with-size.c (main): Declare unused
39844         arguments.
39845         * tests/test-areadlink.c (main): Likewise.
39846         * tests/test-areadlinkat-with-size.c (main): Likewise.
39847         * tests/test-areadlinkat.c (main): Likewise.
39848         * tests/test-canonicalize-lgpl.c (main): Likewise.
39849         * tests/test-canonicalize.c (main): Likewise.
39850         * tests/test-dirent-safer.c (main): Likewise.
39851         * tests/test-dirname.c (main): Likewise.
39852         * tests/test-dup2.c (main): Likewise.
39853         * tests/test-fchdir.c (main): Likewise.
39854         * tests/test-fcntl-h.c (main): Likewise.
39855         * tests/test-fcntl-safer.c (main): Likewise.
39856         * tests/test-fdopendir.c (main): Likewise.
39857         * tests/test-fdutimensat.c (main): Likewise.
39858         * tests/test-fflush.c (main): Likewise.
39859         * tests/test-filenamecat.c (main): Likewise.
39860         * tests/test-filevercmp.c (main): Likewise.
39861         * tests/test-fopen-safer.c (main): Likewise.
39862         * tests/test-fopen.c (main): Likewise.
39863         * tests/test-fpending.c (main): Likewise.
39864         * tests/test-fpurge.c (main): Likewise.
39865         * tests/test-freading.c (main): Likewise.
39866         * tests/test-fstatat.c (main): Likewise.
39867         * tests/test-fsync.c (main): Likewise.
39868         * tests/test-futimens.c (main): Likewise.
39869         * tests/test-getndelim2.c (main): Likewise.
39870         * tests/test-gettimeofday.c (main): Likewise.
39871         * tests/test-getopt.c (main): Likewise.
39872         * tests/test-i-ring.c (main): Likewise.
39873         * tests/test-inttypes.c (main): Likewise.
39874         * tests/test-link.c (main): Likewise.
39875         * tests/test-lstat.c (main): Likewise.
39876         * tests/test-math.c (main): Likewise.
39877         * tests/test-md5.c (main): Likewise.
39878         * tests/test-memchr2.c (main): Likewise.
39879         * tests/test-memrchr.c (main): Likewise.
39880         * tests/test-mkdir.c (main): Likewise.
39881         * tests/test-mkdirat.c (main): Likewise.
39882         * tests/test-mkfifoat.c (main): Likewise.
39883         * tests/test-open.c (main): Likewise.
39884         * tests/test-openat-safer.c (main): Likewise.
39885         * tests/test-openat.c (main): Likewise.
39886         * tests/test-quotearg.c (main): Likewise.
39887         * tests/test-rawmemchr.c (main): Likewise.
39888         * tests/test-readlink.c (main): Likewise.
39889         * tests/test-remove.c (main): Likewise.
39890         * tests/test-rename.c (main): Likewise.
39891         * tests/test-renameat.c (main): Likewise.
39892         * tests/test-rmdir.c (main): Likewise.
39893         * tests/test-sha1.c (main): Likewise.
39894         * tests/test-signal.c (main): Likewise.
39895         * tests/test-sigaction.c (main): Likewise.
39896         * tests/test-stat.c (main): Likewise.
39897         * tests/test-stat-time.c (main): Likewise.
39898         * tests/test-stddef.c (main): Likewise.
39899         * tests/test-stdint.c (main): Likewise.
39900         * tests/test-stdio.c (main): Likewise.
39901         * tests/test-stdlib.c (main): Likewise.
39902         * tests/test-strchrnul.c (main): Likewise.
39903         * tests/test-strerror.c (main): Likewise.
39904         * tests/test-string.c (main): Likewise.
39905         * tests/test-strtod.c (main): Likewise.
39906         * tests/test-strverscmp.c (main): Likewise.
39907         * tests/test-symlink.c (main): Likewise.
39908         * tests/test-symlinkat.c (main): Likewise.
39909         * tests/test-sys_stat.c (main): Likewise.
39910         * tests/test-sys_time.c (main): Likewise.
39911         * tests/test-time.c (main): Likewise.
39912         * tests/test-unistd.c (main): Likewise.
39913         * tests/test-unlink.c (main): Likewise.
39914         * tests/test-unlinkat.c (main): Likewise.
39915         * tests/test-utimens.c (main): Likewise.
39916         * tests/test-utimensat.c (main): Likewise.
39917         * tests/test-version-etc.c (main): Likewise.
39918         * tests/test-wchar.c (main): Likewise.
39919         * tests/test-wctype.c (main): Likewise.
39920         * tests/test-xprintf-posix.c (main): Likewise.
39921         * tests/test-posixtm.c (main): Likewise.
39922         (STREQ): Delete unused macro.
39923         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39924         shadowed variables.
39925         * tests/test-memchr.c (main): Likewise.
39926
39927 2009-10-21  Eric Blake  <ebb9@byu.net>
39928
39929         areadlinkat: avoid failure on older glibc
39930         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39931         rather than mis-comparing 0 against FUNC_RESULT of char*.
39932
39933 2009-10-21  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/stpncpy (License): Relicense under LGPLv2+.
39936         Reported by David Lutterkort <lutter@redhat.com>.
39937
39938 2009-10-20  Eric Blake  <ebb9@byu.net>
39939
39940         utimensat: work around Solaris 9 bug
39941         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39942         has trailing slash bugs.
39943         * tests/test-lutimens.h (test_lutimens): Enhance test.
39944         * tests/test-utimens.h (test_utimens): Likewise.
39945         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39946         * doc/posix-functions/utimes.texi (utimes): Likewise.
39947         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39948         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39949         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39950         * doc/posix-functions/futimens.texi (futimens): Likewise.
39951
39952         fdutimensat: new module
39953         * modules/fdutimensat: New file.
39954         * lib/fdutimensat.c (fdutimensat): Likewise.
39955         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39956         * MODULES.html.sh (File system functions): Mention module.
39957         * modules/fdutimensat-tests: New test.
39958         * tests/test-fdutimensat.c: Likewise.
39959
39960         doc: regenerate INSTALL
39961         * doc/INSTALL: Reflect recent autoconf update.
39962         * doc/INSTALL.ISO: Likewise.
39963         * doc/INSTALL.UTF-8: Likewise.
39964
39965 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39966
39967         acl: warn if ACL support is not detected
39968         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39969
39970 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39971
39972         * lib/nproc.h: Add extern "C" block for C++.
39973
39974 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39975             Bruno Haible  <bruno@clisp.org>
39976
39977         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39978         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39979         * doc/posix-functions/isalpha.texi: Likewise.
39980         * doc/posix-functions/isblank.texi: Likewise.
39981         * doc/posix-functions/iscntrl.texi: Likewise.
39982         * doc/posix-functions/isdigit.texi: Likewise.
39983         * doc/posix-functions/isgraph.texi: Likewise.
39984         * doc/posix-functions/islower.texi: Likewise.
39985         * doc/posix-functions/isprint.texi: Likewise.
39986         * doc/posix-functions/ispunct.texi: Likewise.
39987         * doc/posix-functions/isspace.texi: Likewise.
39988         * doc/posix-functions/isupper.texi: Likewise.
39989         * doc/posix-functions/isxdigit.texi: Likewise.
39990
39991 2009-10-18  Bruno Haible  <bruno@clisp.org>
39992
39993         Tests for module 'isblank'.
39994         * modules/isblank-tests: New file.
39995         * tests/test-isblank.c: New file.
39996
39997         New module 'isblank'.
39998         * lib/isblank.c: New file.
39999         * m4/isblank.m4: New file.
40000         * modules/isblank: New file.
40001         * doc/posix-functions/isblank.texi: Mention the new module.
40002
40003 2009-10-18  Bruno Haible  <bruno@clisp.org>
40004
40005         New module 'ctype'.
40006         * lib/ctype.in.h: New file.
40007         * m4/ctype.m4: New file.
40008         * modules/ctype: New file.
40009         * doc/posix-headers/ctype.texi: Mention the new module.
40010
40011 2009-10-18  Jim Meyering  <meyering@redhat.com>
40012
40013         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40014         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40015         right after its initialization, rather than farther down.
40016         Keeping these in close proximity makes it easier to ensure
40017         that each such variable is initialized.  E.g.,
40018
40019             LIB_CLOCK_GETTIME=
40020             AC_SUBST([LIB_CLOCK_GETTIME])
40021
40022         This change also increments these serial numbers.
40023         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40024         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40026
40027 2009-10-18  Bruno Haible  <bruno@clisp.org>
40028
40029         Don't let environment variables perturb build.
40030         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40031         (gl_PREREQ_GETHRXTIME): ... not here.
40032
40033 2009-10-18  Bruno Haible  <bruno@clisp.org>
40034
40035         Avoid symlink attack in localcharset module.
40036         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40037         (O_NOFOLLOW): Define fallback.
40038         (get_charset_aliases): Don't open the file if it is a symbolic link.
40039         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40040         gl_FCNTL_H.
40041         (gl_FCNTL_H): Require it.
40042         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40043         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40044         Reported by Fergal Glynn <fglynn@veracode.com>.
40045
40046 2009-10-18  Bruno Haible  <bruno@clisp.org>
40047
40048         Implement nproc for mingw.
40049         * lib/nproc.c: Include <windows.h>
40050         (num_processors): On native Windows platforms, try GetSystemInfo.
40051
40052 2009-10-18  Bruno Haible  <bruno@clisp.org>
40053
40054         Implement nproc for IRIX.
40055         * lib/nproc.c: Include <sys/sysmp.h>.
40056         (num_processors): On IRIX systems, try sysmp.
40057         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40058
40059 2009-10-18  Bruno Haible  <bruno@clisp.org>
40060
40061         Implement nproc for HP-UX.
40062         * lib/nproc.c: Include <sys/pstat.h>
40063         (num_processors): On HP-UX systems, try pstat_getdynamic.
40064         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40065         pstat_getdynamic.
40066
40067 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40068             Bruno Haible  <bruno@clisp.org>
40069
40070         Implement nproc for NetBSD, OpenBSD.
40071         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40072         (ARRAY_SIZE): New macro.
40073         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40074         * m4/nproc.m4: New file.
40075         * modules/nproc (Files): Add m4/nproc.m4.
40076         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40077         (Makefile.am): Instead, augment lib_SOURCES.
40078
40079 2009-10-18  Bruno Haible  <bruno@clisp.org>
40080
40081         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40082         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40083         sys/param.h.
40084
40085 2009-10-16  Eric Blake  <ebb9@byu.net>
40086
40087         utimensat: new module
40088         * modules/utimensat: New file.
40089         * lib/utimensat.c (utimensat): Likewise.
40090         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40091         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40092         so we can work around Linux bugs.
40093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40094         * modules/sys_stat (Makefile.am): Substitute them.
40095         * lib/sys_stat.in.h (utimensat): Declare it.
40096         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40097         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40098         * modules/utimensat-tests: New test.
40099         * tests/test-utimensat.c: Likewise.
40100
40101         utimens: let lutimens work on non-symlinks
40102         * lib/utimens.c (lutimens): Fall back to utimens rather than
40103         failing with ENOSYS, when file is not a symlink.
40104         (utimens): Reduce redirection.
40105         * tests/test-lutimens.h (test_lutimens): Update test to cover
40106         non-symlinks.
40107         * tests/test-utimens.h (test_utimens): Update test to cover
40108         symlinks.
40109         * tests/test-utimens.c (main): Update caller.
40110
40111         utimens: cache whether utimensat syscall works
40112         * lib/utimens.c (utimensat_works_really): New cache variable.
40113         (fdutimens, lutimens): Use it to avoid failing syscall.
40114
40115         test-stat-time, test-utimens: improve portability
40116         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40117         ext4 on alpha, and for cygwin.
40118         * tests/test-utimens-common.h: New file.
40119         (nap): Factor delays into single function.
40120         * tests/test-lutimens.h (test_lutimens): Use new header.
40121         * tests/test-futimens.h (test_futimens): Likewise.
40122         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40123         timestamps to occur from same machine, as was done previously for
40124         test_utimens.
40125         * modules/utimens-tests (Files): Ship new file.
40126         * modules/futimens-tests (Files): Likewise.
40127         Reported in part by Jim Meyering.
40128
40129         sys_stat: sort replacement declarations
40130         * lib/sys_stat.in.h: Sort declarations.
40131         * lib/futimens.c (futimens): Fix typo.
40132
40133 2009-10-15  Jim Meyering  <meyering@redhat.com>
40134
40135         don't let environment settings perturb build
40136         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40137         could cause a configure-time and/or build-time malfunction.
40138         Typically, a configure-time function-in-library test is performed
40139         via code like this:
40140
40141           LIB_VAR=
40142           AC_SUBST([LIB_VAR])
40143           prefix_saved_LIBS=$LIBS
40144             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40145                        [test "$ac_cv_search_FUNC" = "none required" ||
40146                         LIB_VAR=$ac_cv_search_FUNC])
40147           LIBS=$prefix_saved_LIBS
40148
40149         However, in each of the files affected by this change, the LIB_VAR=
40150         initialization was omitted.  Thus, when set in the environment, its
40151         value would propagate into generated Makefiles when FUNC is not found
40152         in LIB_NAME.
40153         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40154         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40156
40157 2009-10-14  Eric Blake  <ebb9@byu.net>
40158
40159         fchdir: avoid infinite recursion in mingw
40160         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40161         recursing.
40162
40163         test-stat-time: port to mingw
40164         * tests/test-stat-time.c (force_unlink): Return a value.
40165         (test_ctime) [W32]: Fix compilation error.
40166         (nap): Don't call usleep with too large an argument.  Use
40167         force_unlink.
40168         * doc/pastposix-functions/usleep.texi (usleep): Document the
40169         portability issue.
40170
40171 2009-10-13  Jim Meyering  <meyering@redhat.com>
40172
40173         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40174         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40175         * modules/pipe-filter-ii: Likewise.
40176         * modules/sys_socket-tests: Likewise.
40177         * modules/tsearch-tests: Likewise.
40178         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40179         (check): Depend on it.
40180
40181 2009-10-12  Eric Blake  <ebb9@byu.net>
40182
40183         utimens-tests: port to NFS file systems
40184         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40185         comparisons to avoid spurious failures from timestamp drift
40186         between NFS machines.
40187
40188 2009-10-12  Eric Blake  <ebb9@byu.net>
40189
40190         stat-time-tests: minor cleanups
40191         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40192         * tests/test-stat-time.c (nap): Separate assignment from call.
40193         Suggested by Paolo Bonzini and Bruno Haible.
40194
40195         sys_stat: guarantee struct timespec
40196         * lib/sys_stat.in.h (includes): Always include <time.h>
40197         * modules/sys_stat (Depends-on): Add time.
40198         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40199         mode_t permission values.
40200         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40201         get at subsecond timestamps.
40202
40203 2009-10-10  Eric Blake  <ebb9@byu.net>
40204
40205         futimens: new module
40206         * modules/futimens: New file.
40207         * lib/futimens.c (futimens): Likewise.
40208         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40209         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40210         we can work around Linux bugs.
40211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40212         * modules/sys_stat (Makefile.am): Substitute them.
40213         * lib/sys_stat.in.h (futimens): Declare it.
40214         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40215         * doc/posix-functions/futimens.texi (futimens): Likewise.
40216         * modules/futimens-tests: New test.
40217         * tests/test-futimens.c: Likewise.
40218
40219         utimens: introduce fdutimens
40220         * lib/utimens.h (fdutimens): New prototype.
40221         * lib/utimens.c (gl_futimens): Move guts...
40222         (fdutimens): ...to new interface.
40223         * tests/test-utimens.c (do_fdutimens): Use it.
40224
40225         utimens: add UTIME_NOW and UTIME_OMIT support
40226         * lib/utimens.c (validate_timespec, update_timespec): New helper
40227         functions.
40228         (gl_futimens, lutimens): Use them.
40229         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40230         stdbool, sys_stat.
40231         (Link): Mention resulting library dependency.
40232         * modules/utimecmp (Link): Likewise.
40233         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40234         (Makefile.am): Pick up library dependency.
40235         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40236         definition.
40237         * tests/test-sys_stat.c: Test the definitions.
40238         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40239         * NEWS: Document library dependency.
40240
40241         utimecmp: support symlink timestamps
40242         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40243         hashing when possible.  Use pathconf when available.
40244         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40245         * modules/utimecmp (Depends-on): Add lstat.
40246
40247         utimens: add lutimens interface
40248         * lib/utimens.c (lutimens): New function.
40249         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40250         * lib/utimens.h (lutimens): Declare new interface.
40251         * tests/test-utimens.c (main): Enhance test.
40252         * tests/test-lutimens.h (test_lutimens): New file.
40253         * modules/utimens-tests (Files): Distribute it.
40254         (Depends-on): Add symlink.
40255         (configure.ac): Check for usleep.
40256
40257         utimens: validate futimens usage
40258         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40259         fewer syscalls on failure later on.  Avoid compiler warning on
40260         mingw.
40261         * modules/utimens (Depends-on): Add dup2.
40262
40263         utimens: add test
40264         * modules/utimens-tests: New test.
40265         * tests/test-utimens.h: New file.
40266         * tests/test-futimens.h: Likewise.
40267         * tests/test-utimens.c: Likewise.
40268
40269         doc: mention timestamp portability issues
40270         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40271         instead.
40272         * doc/posix-functions/utime.texi (utime): Likewise.
40273         * doc/posix-functions/utimes.texi (utimes): Likewise.
40274         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40275         instead.
40276         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40277         module.
40278         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40279         Mention weakness with symlink timestamps.
40280         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40281         to utimensat/futimens instead.
40282         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40283
40284         test-dup2: enhance test
40285         * tests/test-dup2.c (main): Also check AT_FDCWD.
40286
40287         test-stat-time: avoid more spurious failures
40288         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40289         xfs; and avoid race if the two timestamps cross quantization edge.
40290
40291         relocatable: prefer 'file system' over 'filesystem'
40292         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40293         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40294         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40295         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40296         * lib/relocatable.c (compute_curr_prefix): Likewise.
40297
40298 2009-10-10  Jim Meyering  <meyering@redhat.com>
40299
40300         stat-time-tests: check for the usleep function
40301         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40302
40303 2009-10-10  Bruno Haible  <bruno@clisp.org>
40304
40305         * modules/xnanosleep: Put the Link section after the Include section.
40306
40307 2009-10-09  Eric Blake  <ebb9@byu.net>
40308
40309         dup2: work around FreeBSD 6.1 bug
40310         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40311         * doc/posix-functions/dup2.texi (dup2): Document it.
40312         Reported by Nelson H. F. Beebe and Jim Meyering.
40313
40314         test-stat-time: port to buggy NFS clients
40315         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40316         (test_ctime): Also skip test if mtime and ctime are skewed.
40317
40318         maint: prefer 'file system' over 'filesystem'
40319         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40320         * doc/posix-functions/lstat.texi (lstat): Likewise.
40321         * lib/file-has-acl.c (file_has_acl): Likewise.
40322         * lib/fwriteerror.c [TEST]: Likewise.
40323         * tests/test-areadlink.h (test_areadlink): Likewise.
40324         * tests/test-areadlinkat-with-size.c (main): Likewise.
40325         * tests/test-areadlinkat.c (main): Likewise.
40326         * tests/test-canonicalize-lgpl.c (main): Likewise.
40327         * tests/test-canonicalize.c (main): Likewise.
40328         * tests/test-fstatat.c (main): Likewise.
40329         * tests/test-linkat.c (main): Likewise.
40330         * tests/test-lstat.h (test_lstat_func): Likewise.
40331         * tests/test-mkdir.h (test_mkdir): Likewise.
40332         * tests/test-readlink.h (test_readlink): Likewise.
40333         * tests/test-remove.c (main): Likewise.
40334         * tests/test-rename.h (test_rename): Likewise.
40335         * tests/test-renameat.c (main): Likewise.
40336         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40337         * tests/test-symlink.h (test_symlink): Likewise.
40338         * tests/test-symlinkat.c (main): Likewise.
40339         * tests/test-unlink.h (test_unlink_func): Likewise.
40340         * tests/test-unlinkat.c (main): Likewise.
40341
40342         maint: make realtime library usage explicit
40343         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40344         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40345         * modules/settime (Link): Likewise.
40346         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40347
40348         test-stat-time: speed up execution
40349         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40350         warning on mingw.
40351         (nap): New helper function.
40352         (prepare_test): Use it to reduce sleep time.
40353         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40354         execution.
40355         * modules/stat-time-tests (configure.ac): Check for usleep.
40356
40357 2009-10-09  Jim Meyering  <meyering@redhat.com>
40358
40359         selinux-h: always use getfilecon wrappers
40360         * lib/getfilecon.c: New file.
40361         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40362         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40363         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40364         (fgetfilecon): Provide a stub.
40365         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40366         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40367         file unconditionally.
40368         When <selinux/selinux.h> is found, arrange to use wrappers.
40369         * modules/selinux-h (Files): Add getfilecon.c.
40370         (Makefile.am): Substitute include-next-related bits
40371         into the now-always-generated selinux/selinux.h file.
40372         * doc/glibc-functions/lgetfilecon.texi: New file.
40373         * doc/glibc-functions/fgetfilecon.texi: New file.
40374         * doc/glibc-functions/getfilecon.texi: New file.
40375         * doc/glibc-functions/getfilecon-desc.texi: New file.
40376         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40377         which to pull in the new files.
40378         * MODULES.html.sh (Misc): Add selinux-h.
40379
40380 2009-10-08  Jim Meyering  <meyering@redhat.com>
40381
40382         unistd: fix comment typo
40383         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40384
40385 2009-10-08  Eric Blake  <ebb9@byu.net>
40386
40387         areadlink: use SIZE_MAX consistently
40388         * modules/areadlink (Depends-on): Add stdint.
40389         * modules/areadlink-with-size (Depends-on): Likewise.
40390         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40391         gives NULL; drop sys/types, since unistd gives size_t; and add
40392         stdint for SIZE_MAX.
40393         (SIZE_MAX): Rely on headers.
40394         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40395         and add stdint.
40396         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40397         (SIZE_MAX): Likewise.
40398         (INITIAL_BUF_SIZE): Turn into enum.
40399         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40400
40401 2009-10-08  Jim Meyering  <meyering@redhat.com>
40402
40403         areadlinkat: avoid compilation failure
40404         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40405         Fix typo in comment.
40406
40407 2009-10-07  Eric Blake  <ebb9@byu.net>
40408
40409         areadlinkat-with-size: new module
40410         * modules/areadlinkat-with-size: New module.
40411         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40412         * lib/areadlink.h (areadlinkat): Declare it.
40413         * MODULES.html.sh (File system functions): Mention it.
40414         * modules/areadlinkat-with-size-tests: New test.
40415         * tests/test-areadlinkat-with-size.c: New file.
40416
40417         xreadlinkat: new module
40418         * modules/xreadlinkat: New module.
40419         * lib/xreadlinkat.c (xreadlinkat): New file.
40420         * lib/xreadlink.h (xreadlinkat): Declare it.
40421         * MODULES.html.sh (File system functions): Mention it.
40422
40423         areadlinkat: new module
40424         * lib/at-func.c (FUNC_FAIL): New define.
40425         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40426         * modules/areadlinkat: New module.
40427         * lib/linkat.c (areadlinkat): Move...
40428         * lib/areadlinkat.c (areadlinkat): ...to new file.
40429         * lib/areadlink.h (areadlinkat): Declare it.
40430         * modules/linkat (Depends-on): Add areadlinkat.
40431         * MODULES.html.sh (File system functions): Mention it.
40432         * modules/areadlinkat-tests: New test.
40433         * tests/test-areadlinkat.c: New file.
40434
40435         areadlink, areadlink-with-size: add tests
40436         * modules/areadlink-tests: New test.
40437         * modules/areadlink-with-size-tests: Likewise.
40438         * tests/test-areadlink.h: New file.
40439         * tests/test-areadlink.c: Likewise.
40440         * tests/test-areadlink-with-size.c: Likewise.
40441
40442         maint: minor cleanups
40443         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40444         _UNUSED_PARAMETER_ instead.
40445         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40446         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40447         * modules/linkat-tests (Files): Distribute test-link.h.
40448
40449         openat, utimens: whitespace cleanup
40450         * lib/openat.c: Prefer space throughout, rather than mix of 8
40451         spaces vs. tabs.
40452         * lib/at-func.c: Likewise.
40453         * lib/utimens.c: Likewise.
40454
40455         openat: avoid using wrong fd
40456         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40457         working directory chooses same fd.
40458         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40459
40460         mkdir, mkdirat: fix cygwin 1.5.x bug
40461         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40462         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40463         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40464         bug.
40465         (gl_PREREQ_MKDIR): Delete unused macro.
40466         * modules/mkdir (Files): Track file rename.
40467         (configure.ac): Update macro name.
40468         * modules/openat (Depends-on): Add mkdir.
40469         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40470
40471         mkdir, mkdirat: add tests
40472         * modules/mkdir-tests: New test.
40473         * tests/test-mkdir.h: New file.
40474         * tests/test-mkdir.c: Likewise.
40475         * tests/test-mkdirat.c: Likewise.
40476         * modules/openat-tests (Files): Add new files.
40477         (Makefile.am): Run new test.
40478
40479 2009-10-06  Eric Blake  <ebb9@byu.net>
40480
40481         doc: tweak *at function documentation
40482         * doc/posix-functions/faccessat.texi (faccessat): Mention
40483         known issue with replacement.
40484         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40485         * doc/posix-functions/linkat.texi (linkat): Likewise.
40486         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40487         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40488         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40489         * doc/posix-functions/renameat.texi (renameat): Likewise.
40490         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40491
40492         openat: fix GNU/Hurd bug in unlinkat
40493         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40494         broken.
40495         * doc/posix-functions/unlink.texi (unlink): Document this.
40496         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40497
40498         fdopendir: fix GNU/Hurd bug
40499         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40500         allowing non-directory fds.
40501         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40502         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40503         * modules/dirent (Makefile.am): Substitute it.
40504         * lib/dirent.in.h (fdopendir): Declare replacement.
40505         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40506         * tests/test-fdopendir.c (main): Test something other than
40507         /dev/null, since on Hurd that behaves like a directory.
40508
40509         test-symlink: port to GNU/Hurd
40510         * tests/test-symlink.h (test_symlink): Relax expected errno.
40511
40512         doc: tweak more cygwin information
40513         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40514         now compatible with glibc.
40515         * doc/posix-functions/getopt.texi (getopt): Likewise.
40516
40517         getopt-gnu: add another test
40518         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40519         guarantee behavior relied on by m4.
40520         * tests/test-getopt.c (main): Use it.
40521         * modules/getopt-posix-tests (Depends-on): Add setenv.
40522         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40523
40524         getopt: fix compilation on darwin
40525         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40526         include.
40527         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40528         Reported by Ludovic Courtès.
40529
40530 2009-10-06  Bruno Haible  <bruno@clisp.org>
40531
40532         * modules/size_max (Description): Discourage its use.
40533         Reported by Simon Josefsson.
40534
40535 2009-10-06  Jim Meyering  <meyering@redhat.com>
40536
40537         linkat: avoid compilation failure
40538         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40539
40540 2009-10-05  Eric Blake  <ebb9@byu.net>
40541
40542         linkat: support Linux 2.6.17
40543         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40544         linkat on Linux, but allow cache variable override.
40545         * lib/linkat.c (rpl_linkat): Define override.
40546         * modules/linkat (Depends-on): Add symlinkat.
40547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40548         * modules/unistd (Makefile.am): Substitute it.
40549         * lib/unistd.in.h (linkat): Declare replacement.
40550         Reported by Pádraig Brady.
40551
40552         quotearg: port test to systems with C.UTF-8 locale
40553         * tests/test-quotearg.c (struct result_strings): Add another
40554         member, differentiating between C.ASCII and C.UTF-8 handling.
40555         (compare_strings): Add parameter.
40556         (main): Adjust all callers.
40557
40558         getopt: avoid clash with FreeBSD _getopt_internal
40559         * lib/getopt.in.h (_getopt_internal): Override the name.
40560         * lib/getopt_int.h (includes): Pick up any overrides.
40561         Reported by Reuben Thomas.
40562
40563         hash: allow C89 compilation
40564         * lib/hash.c (check_tuning): Move declaration before statement.
40565         Reported by Reuben Thomas.
40566
40567 2009-10-05  Karl Berry  <karl@gnu.org>
40568
40569         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40570
40571 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40572             Bruno Haible  <bruno@clisp.org>
40573
40574         * lib/uname.c (uname): Use a table-driven algorithm to compute
40575         Windows NT versions.
40576
40577 2009-10-04  Bruno Haible  <bruno@clisp.org>
40578
40579         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40580         program_invocation_short_name.
40581         * modules/progname (configure.ac): Test for presence of
40582         program_invocation_short_name.
40583         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40584
40585 2009-10-04  Bruno Haible  <bruno@clisp.org>
40586
40587         * lib/progname.c (set_program_name): Fix comment.
40588         Reported by Jim Meyering.
40589
40590 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40591             Bruno Haible  <bruno@clisp.org>
40592
40593         * lib/uname.c: Include <string.h>.
40594         (uname): Do only one call to GetVersionEx in the common case.
40595
40596 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40597             Bruno Haible  <bruno@clisp.org>
40598
40599         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40600         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40601         (uname): Add support for Windows CE and various non-x86 CPU types.
40602
40603 2009-10-03  Bruno Haible  <bruno@clisp.org>
40604
40605         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40606         invocation to tests/configure.ac.
40607         Reported by Ian Beckwith <ianb@erislabs.net>.
40608
40609 2009-10-02  Eric Blake  <ebb9@byu.net>
40610
40611         fchdir: avoid compiler warning
40612         * lib/fchdir.c (canonicalize_file_name)
40613         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40614
40615         test-open: support mingw errno values
40616         * tests/test-open.h (test_open): Relax test.
40617         * tests/test-fopen.h (test_fopen): Likewise.
40618         * tests/test-openat-safer.c (main): Likewise.
40619
40620         open: fix opening directory on mingw
40621         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40622
40623         test-open: on GNU/Hurd, /dev/null is a directory
40624         * tests/test-fopen.h (main): Rename...
40625         (test_fopen): ...to this.  Use a guaranteed non-directory when
40626         confirming open behavior on trailing slash.
40627         * tests/test-openat-safer.c (main): Likewise.
40628         * tests/test-open.h (main): Likewise....
40629         (test_open): ...to this.
40630         * tests/test-fopen.c (main): Adjust caller.
40631         * tests/test-fopen-safer.c (main): Likewise.
40632         * tests/test-open.c (main): Likewise.
40633         * tests/test-fcntl-safer.c (main): Likewise.
40634         Reported by Samuel Thibault.
40635
40636         rename, fchdir: don't ignore chdir failure
40637         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40638         * lib/rename.c (rpl_rename) [W32]: Likewise.
40639         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40640         an empty destination directory if source cannot be renamed,
40641         although there is still possibility for failure.
40642         * doc/posix-functions/rename.texi (rename): Document the race.
40643         Reported by Jim Meyering.
40644
40645         maint: cleanup whitespace in recent commits
40646         * lib/rename.c (rpl_rename): Remove tabs.
40647         * tests/test-link.h (test_link): Likewise.
40648         * lib/fchdir.c (get_name): Likewise.
40649         Reported by Jim Meyering.
40650
40651 2009-10-02  Ben Pfaff  <blp@gnu.org>
40652
40653         relocatable-prog-wrapper: Add missing dependency on
40654         double-slash-root.
40655         * modules/relocatable-prog-wrapper: Add dependency.
40656         Reported by Ian Beckwith <ianb@erislabs.net>.
40657
40658 2009-10-02  Eric Blake  <ebb9@byu.net>
40659
40660         renameat: fix Solaris bugs
40661         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40662         needed fixing.
40663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40664         * modules/stdio (Makefile.am): Substitute it.
40665         * lib/stdio.in.h (renameat): Declare replacement.
40666         * lib/renameat.c (rpl_renameat): Implement fix.
40667
40668         renameat: new module
40669         * modules/renameat: New file.
40670         * lib/renameat.c (renameat): Likewise.
40671         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40673         * modules/stdio (Makefile.am): Substitute them.
40674         * lib/stdio.in.h (renameat): Declare it.
40675         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40676         * doc/posix-functions/renameat.texi (renameat): Likewise.
40677         * modules/renameat-tests: New test.
40678         * tests/test-renameat.c: Likewise.
40679
40680         rename: fix mingw bugs
40681         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40682         directory overwrite bugs.
40683
40684         rename: fix another cygwin 1.5 bug
40685         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40686         checks.
40687         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40688         unnecessary cygwin workarounds.  Also work around bug with moving
40689         full directory onto an empty one.
40690         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40691
40692         rename-dest-slash: merge into rename module
40693         * modules/rename-dest-slash (Status): Mark obsolete.
40694         (Depends-on): Add rename.
40695         (Files): Let rename do it all.
40696         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40697         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40698         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40699         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40700         * lib/rename.c (rpl_rename): Update comments.
40701
40702         rename: fix cygwin 1.5.x bugs
40703         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40704         * lib/rename.c (rpl_rename): Work around them.
40705         * modules/rename (Depends-on): Add same-inode.
40706
40707         rename: fix Solaris 10 bug
40708         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40709         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40710         was the only bug.
40711
40712         rename: fix Solaris 9 bug
40713         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40714         on non-directory.  Avoid calling exit.
40715         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40716         strdup.
40717         * modules/rename-tests (Depends-on): Drop lstat.
40718         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40719         (gl_PREREQ_RENAME): Delete unused macro.
40720
40721         rename-dest-slash: fix NetBSD bug
40722         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40723         links.
40724         * modules/rename-dest-slash (Depends-on): Add same-inode.
40725
40726         rename-tests: new test, exposes several platform bugs
40727         * modules/rename-tests: New file.
40728         * tests/test-rename.h: Likewise.
40729         * tests/test-rename.c: Likewise.
40730         * doc/posix-functions/rename.texi (rename): Improve documentation,
40731         including bugs that will eventually be fixed in gnulib.
40732
40733 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40734
40735         * lib/uname.c: Include <stdlib.h>
40736         (uname): Assume version info is available.
40737
40738 2009-10-02  Jim Meyering  <meyering@redhat.com>
40739
40740         gnu-web-doc-update: correct --help output
40741         * build-aux/gnu-web-doc-update: Make --help output relevant.
40742
40743         gnu-web-doc-update: add standard options
40744         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40745
40746         gnu-web-doc-update: New module.
40747         Use this script to automatically update the on-line web documentation
40748         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40749         * modules/gnu-web-doc-update: New file, from coreutils.
40750         * build-aux/gnu-web-doc-update: New script.
40751
40752 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40753
40754         link: LoadLibrary is not needed.
40755         * lib/link.c: Use GetModuleHandle.
40756
40757 2009-10-01  Eric Blake  <ebb9@byu.net>
40758
40759         getopt: bump serial number
40760         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40761         change.
40762
40763         tests: tighten link, rmdir, and remove tests
40764         * tests/test-link.h (includes): No need to use <config.h> here.
40765         Clean up if directory hard link was created, otherwise test for
40766         trailing '.'.
40767         * tests/test-linkat.c (main): Simplify.
40768         * tests/test-remove.c (main): Enhance test for trailing '.'.
40769         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40770
40771 2009-10-01  Jim Meyering  <meyering@redhat.com>
40772
40773         maint.mk: requiring "make major" was annoying, for a "minor" release.
40774         What is intended is "stable", to contrast with alpha and beta,
40775         so require "make stable", not "make major".
40776         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40777         (get_tool_versions): Likewise.
40778         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40779
40780 2009-09-30  Ben Pfaff  <blp@gnu.org>
40781
40782         Fix broken build of replacement for Windows tmpfile().
40783         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40784         flags argument added along with the 'mkostemp' module.
40785
40786 2009-09-28  Bruno Haible  <bruno@clisp.org>
40787
40788         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40789         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40790         to 'remove_elt'.
40791         (gl_list_remove): Update.
40792         * lib/gl_list.c (gl_list_remove): Update.
40793         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40794         to 'remove_elt'.
40795         (gl_oset_remove): Update.
40796         * lib/gl_list.c (gl_oset_remove): Update.
40797         Reported by Eric Blake.
40798
40799 2009-09-28  Eric Blake  <ebb9@byu.net>
40800
40801         doc: mention yet more cygwin 1.7 status
40802         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40803         cygwin.
40804         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40805         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40806
40807         argp: fix test failure
40808         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40809         that are not upper-case.  Pass correct range to tolower.
40810
40811 2009-09-27  Jim Meyering  <meyering@redhat.com>
40812
40813         test-yesno: work around sparc-dash here-document infelicity
40814         Without this change, the literal \177 byte in a here document
40815         would make dash 0.5.5.1-3 access uninitialized memory.
40816         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40817         Instead, use a marker, "@", and filter through tr to create the desired
40818         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40819
40820 2009-09-27  Bruno Haible  <bruno@clisp.org>
40821
40822         Disable untested support for new flavours of ACLs on AIX.
40823         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40824         progress.
40825         * lib/set-mode-acl.c (qset_acl): Likewise.
40826
40827 2008-12-07  Bruno Haible  <bruno@clisp.org>
40828
40829         Add support for new flavours of ACLs on AIX. (Untested.)
40830         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40831         (file_has_acl): Add support for newer AIX.
40832         * lib/set-mode-acl.c (qset_acl): Likewise.
40833         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40834         Rainer Tammer <tammer@tammer.net>.
40835
40836 2009-09-26  Eric Blake  <ebb9@byu.net>
40837
40838         argp: fix compilation of getopt
40839         * lib/getopt.in.h (includes): Use different guard than glibc.
40840         Reported by Sergey Poznyakoff.
40841
40842         doc: mention more cygwin 1.7 status
40843         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40844         bug.
40845         * doc/posix-functions/execl.texi (execl): Likewise.
40846         * doc/posix-functions/execle.texi (execle): Likewise.
40847         * doc/posix-functions/execlp.texi (execlp): Likewise.
40848         * doc/posix-functions/execv.texi (execv): Likewise.
40849         * doc/posix-functions/execve.texi (execve): Likewise.
40850         * doc/posix-functions/execvp.texi (execvp): Likewise.
40851         * doc/glibc-functions/canonicalize_file_name.texi
40852         (canonicalize_file_name): Cygwin 1.7 now provides this.
40853         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40854         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40855         on AT_SYMLINK_NOFOLLOW.
40856
40857 2009-09-24  Eric Blake  <ebb9@byu.net>
40858
40859         test-linkat: make test more robust
40860         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40861
40862         getopt: fix inclusion guards for cygwin
40863         * modules/getopt-posix (Depends-on): Add include-next.
40864         (Makefile.am): Substitute more items in replacement header.
40865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40866         <getopt.h>.
40867         * lib/getopt.in.h (includes): Use split inclusion guard, and
40868         prefer <getopt.h> over include <unistd.h> when one is present.
40869         (option): Also override name of 'struct option'.
40870
40871         same-inode: revert prior change; it is not yet ready
40872         * NEWS: Undo mention of this change.
40873         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40874         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40875         * lib/cycle-check.c (cycle_check): Likewise.
40876         * lib/same.c (same_name): Likewise.
40877         * lib/at-func2.c (at_func2): Likewise.
40878
40879 2009-09-23  Eric Blake  <ebb9@byu.net>
40880
40881         linkat: new module
40882         * modules/linkat: New file.
40883         * lib/at-func2.c (at_func2): Likewise.
40884         * lib/linkat.c (linkat): Likewise.
40885         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40886         * lib/openat-priv.h (at_func2): Add declaration.
40887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40888         * modules/unistd (Makefile.am): Substitute them.
40889         * lib/unistd.in.h (linkat): Declare it.
40890         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40891         * doc/posix-functions/linkat.texi (linkat): Likewise.
40892         * doc/posix-functions/link.texi (link): Tweak wording.
40893         * tests/test-link.c (main): Move guts...
40894         * tests/test-link.h (test_link): ...into new file.
40895         * modules/linkat-tests: New test.
40896         * tests/test-linkat.c: Likewise.
40897         * modules/link-tests (Files): Ship new file.
40898         (Depends-on): Add stdbool.
40899
40900         dirname: add library-safe mdir_name
40901         * lib/dirname.h (mdir_name): New prototype.
40902         * lib/dirname.c (dir_name): Move guts...
40903         (mdir_name): ...to new function that avoids xalloc_die.
40904
40905         fchdir: another mingw fix
40906         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40907         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40908         on mingw (where it has not yet been ported), and make it optional
40909         elsewhere.
40910         (_gl_register_fd): Use it.
40911
40912         same-inode: make SAME_INODE tri-state, to port to mingw
40913         * NEWS: Mention this change.
40914         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40915         st_ino always being 0.
40916         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40917         * lib/cycle-check.c (cycle_check): Likewise.
40918         * lib/same.c (same_name): Likewise.
40919
40920         lstat: avoid mingw compilation error
40921         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40922         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40923         lstat ourselves.
40924         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40925         was adequate.
40926         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40927         the checks for lstat.
40928         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40929
40930         link: fix test failure on Solaris 9
40931         * lib/link.c (rpl_link): Don't assume link will catch bogus
40932         trailing slash on source.
40933
40934         test-symlinkat: enhance test
40935         * tests/test-readlink.c (main): Move guts...
40936         * tests/test-readlink.h (test_readlink): ...into new file.
40937         * tests/test-symlink.c (main): Move guts...
40938         * tests/test-symlink.h (test_symlink): ...into new file.
40939         * tests/test-symlinkat.c (main): Use new files for further
40940         coverage.
40941         (do_symlink, do_readlink): New helper functions.
40942         * modules/symlink-tests (Files): Ship new file.
40943         (Depends-on): Add stdbool.
40944         * modules/readlink-tests (Files): Ship new file.
40945         (Depends-on): Add stdbool.
40946         * modules/symlinkat-tests (Files): Use new files.
40947
40948 2009-09-23  Eric Blake  <ebb9@byu.net>
40949
40950         readlink: document portability issue with symlink length
40951         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40952         systems have bogus st_size on symlinks, and mention the
40953         areadlink-with-size module.
40954         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40955         * doc/posix-functions/readlink.texi (readlink): Mention the
40956         areadlink module, and ERANGE failure.
40957         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40958         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40959
40960         readlink: fix Solaris 9 bug with trailing slash
40961         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40962         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40963         * doc/posix-functions/readlink.texi (readlink): Document this.
40964         * modules/readlink-tests: New test.
40965         * tests/test-readlink.c: Likewise.
40966
40967         readlink: fix cygwin 1.5.x bug with return type
40968         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40969         * lib/unistd.in.h (readlink): Use ssize_t.
40970         * lib/readlink.c (readlink): Likewise.
40971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40972         * modules/unistd (Makefile.am): Substitute it.
40973         * lib/unistd.in.h (readlink): Declare replacement.
40974         * doc/posix-functions/readlink.texi (readlink): Document this.
40975
40976         symlink: use throughout gnulib
40977         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40978         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40979         symlink is not used.
40980         * modules/symlinkat (Depends-on): Add symlink.
40981         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40982         * modules/canonicalize-tests (Depends-on): Likewise.
40983         * modules/lstat-tests (Depends-on): Likewise.
40984         * modules/openat-tests (Depends-on): Likewise.
40985         * modules/remove-tests (Depends-on): Likewise.
40986         * modules/rmdir-tests (Depends-on): Likewise.
40987         * modules/unlink-tests (Depends-on): Likewise.
40988         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40989         * tests/test-canonicalize.c (symlink): Likewise.
40990         * tests/test-fstatat.c (symlink): Likewise.
40991         * tests/test-lstat.c (symlink): Likewise.
40992         * tests/test-remove.c (symlink): Likewise.
40993         * tests/test-rmdir.c (symlink): Likewise.
40994         * tests/test-unlink.c (symlink): Likewise.
40995         * tests/test-unlinkat.c (symlink): Likewise.
40996
40997         symlink: new module, for Solaris 9 bug
40998         * modules/symlink: New file.
40999         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41000         * lib/symlink.c: Likewise.
41001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41002         * modules/unistd (Makefile.am): Substitute them.
41003         * lib/unistd.in.h (symlink): Declare replacement.
41004         * MODULES.html.sh (File system functions): Mention it.
41005         * doc/posix-functions/symlink.texi (symlink): Likewise.
41006         * modules/symlink-tests: New test.
41007         * tests/test-symlink.c: Likewise.
41008
41009 2009-09-23  Bruno Haible  <bruno@clisp.org>
41010
41011         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41012         when needed.
41013         Test case: gnulib-tool --import --with-tests atexit inttypes.
41014         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41015
41016 2009-09-23  Bruno Haible  <bruno@clisp.org>
41017
41018         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41019         subcommand, not in a subshell.
41020
41021 2009-09-22  Eric Blake  <ebb9@byu.net>
41022
41023         unistd: sort replacement declarations
41024         * lib/unistd.in.h: Sort declarations.
41025
41026         open, openat: minor optimization
41027         * lib/open.c (open): If open succeeded, len is non-zero.
41028         * lib/openat.c (rpl_openat): Likewise.
41029
41030         link-follow: ensure correct result
41031         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41032         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41033         distinguish between possible failures.
41034
41035 2009-09-21  Eric Blake  <ebb9@byu.net>
41036
41037         fts: avoid compiler warning
41038         * lib/fts.c (dirent_inode_sort_may_be_useful)
41039         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41040
41041 2009-09-19  Bruno Haible  <bruno@clisp.org>
41042
41043         * lib/progreloc.c (canonicalize_file_name): New declaration.
41044
41045 2009-09-19  Eric Blake  <ebb9@byu.net>
41046
41047         link: fix quoting
41048         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41049
41050         openat: fix openat bugs on Solaris 9
41051         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41052         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41053         * modules/openat (Depends-on): Add open.
41054         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41055         * modules/fcntl-h (Makefile.am): Substitute it.
41056         * lib/fcntl.in.h (openat): Declare replacement.
41057         * doc/posix-functions/openat.texi (openat): Document this.
41058
41059         openat: move fstatat and unlinkat into correct files
41060         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41061         compiled.
41062         * lib/openat.c (fstatat, unlinkat): Move...
41063         * lib/fstatat.c (fstatat): ...into correct files.
41064         * lib/unlinkat.c (unlinkat): Likewise.
41065
41066         openat: fix unlinkat bugs on Solaris 9
41067         * lib/unlinkat.c (unlinkat): New file.
41068         * modules/openat (Depends-on): Add unlink.
41069         (Files): Distribute it.
41070         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41071         trailing slash behavior is broken.
41072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41073         * modules/unistd (Makefile.am): Substitute it.
41074         * lib/unistd.in.h (unlinkat): Declare replacement.
41075         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41076
41077         openat: fix fstatat bugs on Solaris 9
41078         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41079         stat.
41080         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41081
41082         test-unlinkat: enhance test, to expose Solaris 9 bug
41083         * tests/test-unlink.c (main): Factor guts...
41084         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41085         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41086         * tests/test-rmdir.c (main): Adjust caller.
41087         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41088         (unlinker): New helper function.
41089         (rmdirat): Enhance check.
41090         * modules/rmdir-tests (Depends-on): Add stdbool.
41091         * modules/unlink-tests (Depends-on): Likewise.
41092         (Files): Add test-unlink.h.
41093         * modules/openat-tests (Files): Likewise.
41094         (Depends-on): Add unlinkdir.
41095
41096         test-fstatat: new test, to expose Solaris 9 bugs
41097         * tests/test-stat.c (main): Factor guts...
41098         * tests/test-stat.h (test_stat_func): ...into new file.
41099         * tests/test-lstat.c (main): Factor guts...
41100         * tests/test-lstat.h (test_lstat_func): ...into new file.
41101         * tests/test-fstatat.c: New file.
41102         * modules/stat-tests (Files): Add test-stat.h.
41103         * modules/lstat-tests (Files): Add test-lstat.h.
41104         (Depends-on): Add stdbool.
41105         * modules/openat-tests (Depends-on): Add pathmax.
41106         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41107         (Makefile.am): Run new test.
41108
41109         remove: new module, for mingw and Solaris 9 bugs
41110         * modules/remove: New file.
41111         * lib/remove.c: Likewise.
41112         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41114         * modules/stdio (Makefile.am): Use them.
41115         * lib/stdio.in.h (remove): Declare replacement.
41116         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41117         * doc/posix-functions/remove.texi (remove): Likewise.
41118         * modules/remove-tests: New test.
41119         * tests/test-remove.c: Likewise.
41120
41121         unlink: new module, for Solaris 9 bug
41122         * modules/unlink: New file.
41123         * lib/unlink.c: Likewise.
41124         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41126         * modules/unistd (Makefile.am): Use them.
41127         * lib/unistd.in.h (stat): Declare replacement.
41128         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41129         * doc/posix-functions/unlink.texi (unlink): Likewise.
41130         * modules/unlink-tests: New test.
41131         * tests/test-unlink.c: Likewise.
41132
41133         lstat: fix Solaris 9 bug
41134         * lib/lstat.c (lstat): Also check for trailing slash on
41135         non-symlink, non-directories.  Use stat module to simplify logic.
41136         * doc/posix-functions/lstat.texi (lstat): Document it.
41137         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41138         (configure.ac): Check for symlink.
41139         * tests/test-lstat.c (main): Add more tests.
41140
41141         stat: add as dependency to other modules
41142         * modules/chown (Depends-on): Add stat.
41143         * modules/euidaccess (Depends-on): Likewise.
41144         * modules/fchdir (Depends-on): Likewise.
41145         * modules/isdir (Depends-on): Likewise.
41146         * modules/link (Depends-on): Likewise.
41147         * modules/lstat (Depends-on): Likewise.
41148         * modules/mkdir-p (Depends-on): Likewise.
41149         * modules/modechange (Depends-on): Likewise.
41150         * modules/open (Depends-on): Likewise.
41151         * modules/readlink (Depends-on): Likewise.
41152         * modules/same (Depends-on): Likewise.
41153
41154         stat: fix Solaris 9 bug
41155         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41156         slash.
41157         * lib/stat.c (rpl_stat): Work around it.
41158         * doc/posix-functions/stat.texi (stat): Update documentation.
41159
41160         stat: new module, for mingw bug
41161         * modules/stat: New file.
41162         * lib/stat.c: Likewise.
41163         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41165         * modules/sys_stat (Makefile.am): Use them.
41166         * lib/sys_stat.in.h (stat): Declare replacement.
41167         * lib/openat.c (fstatat): Deal with lstat and stat being function
41168         macros.
41169         * modules/openat (Depends-on): Add inline.
41170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41171         * doc/posix-functions/stat.texi (stat): Likewise.
41172         * modules/stat-tests: New test.
41173         * tests/test-stat.c: Likewise.
41174
41175 2009-09-19  Jim Meyering  <meyering@redhat.com>
41176
41177         syntax-check: detect unnecessary inclusion of canonicalize.h
41178         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41179
41180 2009-09-19  Eric Blake  <ebb9@byu.net>
41181
41182         canonicalize-lgpl: adjust clients to use correct header
41183         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41184         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41185         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41186         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41187         * lib/progreloc.c (includes): Likewise.
41188
41189 2009-09-19  Jim Meyering  <meyering@redhat.com>
41190
41191         test-posixtm.c: correct a comment
41192         * tests/test-posixtm.c: Correct first-line comment.
41193         Spotted by Eric Blake.
41194
41195 2009-09-16  Jim Meyering  <meyering@redhat.com>
41196
41197         posixtm-tests: make T const-correct; add a test case
41198         * tests/test-posixtm.c (T): Declare const.
41199         Add a test for -(2^31+1).
41200         Remove useless can-succeed-only-in-2002 test.
41201
41202         posixtm-tests: adjust the sole failing test
41203         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41204         expected output matches what mktime now produces.  Cross-checked via
41205         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41206
41207         posixtm: move #ifdef'd tests into a new module
41208         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41209         * tests/test-posixtm.c: ... this new file.
41210         * modules/posixtm-tests: New module.
41211
41212 2009-09-19  Eric Blake  <ebb9@byu.net>
41213
41214         openat: simplify use of at-func.c
41215         * lib/at-func.c (includes): Include prerequisites here, to
41216         simplify requirements on client files.
41217         * lib/openat-priv.h: Add double-inclusion guard.
41218         * lib/faccessat.c (includes): Simplify.
41219         * lib/fchmodat.c (includes): Likewise.
41220         * lib/fchownat.c (includes): Likewise.
41221         * lib/mkdirat.c (includes): Likewise.
41222         * lib/mkfifoat.c (includes): Likewise.
41223         * lib/symlinkat.c (includes): Likewise.
41224
41225         openat: allow return of fd 0
41226         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41227         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41228         unistd-safer.
41229         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41230         <fcntl.h>; this module does not leak fds.
41231         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41232         must be allowed to return 0, leaving openat_safer to add the
41233         safety.
41234         (openat_permissive): Avoid writing to just-opened fd 2 if
41235         restoring the current directory fails.
41236         * lib/openat-die.c (openat_restore_fail): Add comment.
41237         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41238         (save_cwd): Guarantee safe fd, but without use of open_safer.
41239         * tests/test-openat.c: New test.
41240         * modules/openat-tests (Files, Makefile.am): Distribute and build
41241         new file.
41242
41243         relocatable-prog-wrapper: fix build
41244         * modules/relocatable-prog-wrapper (Files): Update name of
41245         canonicalize m4 file, broken on 2009-09-17.
41246         Reported by emad hajjar <aleppos@hotmail.com>.
41247
41248 2009-09-19  Bruno Haible  <bruno@clisp.org>
41249
41250         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41251         * lib/safe-alloc.c: Likewise.
41252         Reported by Ian Beckwith <ianb@erislabs.net>.
41253
41254 2009-09-18  Bruno Haible  <bruno@clisp.org>
41255
41256         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41257         Reported by <erobles@sensacd.com.mx>.
41258
41259 2009-09-17  Eric Blake  <ebb9@byu.net>
41260
41261         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41262         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41263         slashes when checking if last component is missing.
41264         * tests/test-canonicalize.c (main): Test this.
41265
41266         canonicalize, canonicalize-lgpl: honor // if distinct from /
41267         * modules/canonicalize (Files): Add double-slash-root.m4.
41268         * modules/canonicalize-lgpl (Files): Likewise.
41269         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41270         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41271         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41272         fallback definition.
41273         (canonicalize_filename_mode): Use it to protect //.
41274         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41275         (__realpath): Likewise.
41276         * tests/test-canonicalize.c (main): Test this.
41277         * tests/test-canonicalize-lgpl.c (main): Likewise.
41278         * modules/canonicalize-tests (Depends-on): Add same-inode.
41279         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41280
41281         canonicalize-lgpl: fix glibc bug with trailing slash
41282         * m4/canonicalize-lgpl.m4: Move contents...
41283         * m4/canonicalize.m4: ...here.
41284         (gl_CANONICALIZE_LGPL): Factor realpath check...
41285         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41286         glibc 2.3.5 bug, fixed 2005-04-27.
41287         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41288         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41289         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41290         * modules/canonicalize-lgpl (Files): Manage file rename.
41291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41292         * modules/stdlib (Makefile.am): Substitute witness.
41293         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41294         is needed.
41295         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41296         replacement is required.
41297         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41298         * doc/glibc-functions/canonicalize_file_name.texi
41299         (canonicalize_file_name): Document this.
41300         * doc/posix-functions/realpath.texi (realpath): Likewise.
41301
41302         canonicalize-lgpl: reject non-directory with trailing slash
41303         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41304         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41305         catches failures in glibc 2.3.5.
41306         * tests/test-canonicalize.c (main): Likewise.
41307
41308         canonicalize-lgpl: use native realpath if it works
41309         * lib/canonicalize-lgpl.c (realpath): Guard with
41310         FUNC_REALPATH_WORKS.
41311         * lib/stdlib.in.h (realpath): Make declaration optional based on
41312         HAVE_REALPATH.
41313         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41314         native realpath works.
41315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41316         * modules/stdlib (Makefile.am): Substitute witness.
41317
41318         canonicalize, canonicalize-lgpl: use <stdlib.h>
41319         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41320         (Include): Mention <stdlib.h>.
41321         (configure.ac): Mention functions we provide.
41322         * modules/canonicalize (configure.ac): Likewise.
41323         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41324         realpath if canonicalize_file_name is missing.
41325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41326         * modules/stdlib (Makefile.am): Substitute witnesses.
41327         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41328         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41329         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41330         * NEWS: Document this.
41331         * doc/glibc-functions/canonicalize_file_name.texi
41332         (canonicalize_file_name): Likewise.
41333         * doc/posix-functions/realpath.texi (realpath): Likewise.
41334         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41335
41336         test-canonicalize: consolidate into single C program
41337         * tests/test-canonicalize.sh: Delete; move setup into...
41338         * tests/test-canonicalize.c (main): ...the program, making it
41339         easier to run in debugger.  Add some tests.
41340         * modules/canonicalize-tests (Files): Remove unused file.
41341         (Depends-on): Add progname.
41342         (configure.ac, Makefile.am): Simplify.
41343
41344         test-canonicalize-lgpl: consolidate into single C program
41345         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41346         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41347         easier to run in debugger.  Add some tests.
41348         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41349         (configure.ac, Makefile.am): Simplify.
41350
41351         canonicalize: avoid resolvepath
41352         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41353         unnecessary checks.
41354         * lib/canonicalize.c (includes): Simplify.
41355         (canonicalize_file_name): Drop resolvepath implementation.
41356         * modules/canonicalize (Depends-on): Drop filenamecat.
41357
41358         canonicalize: don't lose errno
41359         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41360         over calls to free.
41361
41362         canonicalize: simplify errno handling
41363         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41364         assignment.
41365
41366         canonicalize, canonicalize-lgpl: update module dependencies
41367         * modules/canonicalize (Depends-on): Add extensions, lstat,
41368         pathmax, stdlib.
41369         (Files): Drop pathmax.h.
41370         (configure.ac): Adjust macro name.
41371         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41372         lstat, stdlib, sys_stat.
41373         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41374         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41375         extensions.
41376         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41377         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41378         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41379         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41380         declaration, if available.
41381         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41382         we can rely on the readlink module.
41383         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41384         (includes): Use <unistd.h> unconditionally.
41385
41386 2009-09-17  Eric Blake  <ebb9@byu.net>
41387
41388         maint: make Include sections of modules consistent
41389         * modules/alloca: Use only header name; no need to list #include.
41390         * modules/alloca-opt: Likewise.
41391         * modules/arpa_inet: Likewise.
41392         * modules/canon-host: Likewise.
41393         * modules/configmake: Likewise.
41394         * modules/dirent: Likewise.
41395         * modules/eealloc: Likewise.
41396         * modules/environ: Likewise.
41397         * modules/fchdir: Likewise.
41398         * modules/fcntl: Likewise.
41399         * modules/fcntl-h: Likewise.
41400         * modules/gethrxtime: Likewise.
41401         * modules/gettime: Likewise.
41402         * modules/ignore-value: Likewise.
41403         * modules/inet_ntop: Likewise.
41404         * modules/inet_pton: Likewise.
41405         * modules/inttypes: Likewise.
41406         * modules/isnand-nolibm: Likewise.
41407         * modules/isnanf-nolibm: Likewise.
41408         * modules/mbchar: Likewise.
41409         * modules/mbfile: Likewise.
41410         * modules/mbiter: Likewise.
41411         * modules/mbuiter: Likewise.
41412         * modules/netdb: Likewise.
41413         * modules/netinet_in: Likewise.
41414         * modules/nproc: Likewise.
41415         * modules/pagealign_alloc: Likewise.
41416         * modules/poll: Likewise.
41417         * modules/printf-frexp: Likewise.
41418         * modules/pthread: Likewise.
41419         * modules/putenv: Likewise.
41420         * modules/random_r: Likewise.
41421         * modules/relocatable-prog: Likewise.
41422         * modules/search: Likewise.
41423         * modules/select: Likewise.
41424         * modules/selinux-h: Likewise.
41425         * modules/settime: Likewise.
41426         * modules/signal: Likewise.
41427         * modules/size_max: Likewise.
41428         * modules/socklen: Likewise.
41429         * modules/ssize_t: Likewise.
41430         * modules/stdarg: Likewise.
41431         * modules/stdbool: Likewise.
41432         * modules/stddef: Likewise.
41433         * modules/stdint: Likewise.
41434         * modules/stdio: Likewise.
41435         * modules/stdlib: Likewise.
41436         * modules/string: Likewise.
41437         * modules/strings: Likewise.
41438         * modules/sys_file: Likewise.
41439         * modules/sys_ioctl: Likewise.
41440         * modules/sys_select: Likewise.
41441         * modules/sys_socket: Likewise.
41442         * modules/sys_stat: Likewise.
41443         * modules/sys_time: Likewise.
41444         * modules/sys_times: Likewise.
41445         * modules/sys_utsname: Likewise.
41446         * modules/sys_wait: Likewise.
41447         * modules/sysexits: Likewise.
41448         * modules/time: Likewise.
41449         * modules/times: Likewise.
41450         * modules/tmpfile: Likewise.
41451         * modules/trim: Likewise.
41452         * modules/unistd: Likewise.
41453         * modules/wchar: Likewise.
41454         * modules/wctype: Likewise.
41455
41456 2009-09-17  Bruno Haible  <bruno@clisp.org>
41457
41458         Make getdate.y compile on QNX and NetBSD 5 / i386.
41459         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41460         TIME_T_FITS_IN_LONG_INT.
41461         * lib/getdate.y (long_time_t): New type.
41462         (relative_time): Change type of 'seconds' field to long_time_t.
41463         (get_date): Update types of local variables. Check against overflow
41464         during conversion from long_time_t to time_t.
41465         Reported by Matt Kraai <kraai@ftbfs.org>
41466         and Hasso Tepper <hasso@netbsd.org>.
41467
41468 2009-09-17  Bruno Haible  <bruno@clisp.org>
41469
41470         * modules/COPYING: Update copyright years.
41471         * modules/README: Likeiwse.
41472         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41473         Reported by Ian Beckwith <ianb@erislabs.net>.
41474
41475 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41476
41477         * users.txt: Update references for gnuit package.
41478
41479 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41480
41481         * m4/getdelim.m4: Fix typo in copyright line.
41482
41483 2009-09-17  Bruno Haible  <bruno@clisp.org>
41484
41485         * lib/atoll.c: Use the standard header with GPL copyright.
41486         * lib/argz.in.h: Likewise.
41487         * lib/glob.c: Likewise.
41488         * lib/glob-libc.h: Likewise.
41489         * lib/random_r.c: Likewise.
41490         * lib/siglist.h: Likewise.
41491         * lib/strsignal.c: Likewise.
41492         Reported by Ian Beckwith <ianb@erislabs.net>.
41493
41494 2009-09-17  Eric Blake  <ebb9@byu.net>
41495
41496         rmdir: ensure correct dependency order
41497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41498
41499 2009-09-17  Bruno Haible  <bruno@clisp.org>
41500
41501         Disable assertion that fails on NetBSD 5 / i386.
41502         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41503         Reported by Sam Steingold <sds@gnu.org>
41504         and Hasso Tepper <hasso@netbsd.org>.
41505
41506 2009-09-16  Eric Blake  <ebb9@byu.net>
41507
41508         unlinkdir: port to mingw
41509         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41510         on which no one can unlink a directory.
41511
41512         stdlib: sort witness names
41513         * modules/stdlib (Makefile.am): Sort replacements.
41514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41515         * lib/stdlib.in.h: Likewise.
41516
41517         parse-duration-tests: avoid link failure
41518         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41519         LIBINTL.
41520         Reported by Tom G. Christensen.
41521
41522         openat-tests: ensure unlinkat behaves like rmdir
41523         * tests/test-rmdir.c (main): Factor guts...
41524         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41525         * modules/rmdir-tests (Files): Ship new file.
41526         * modules/openat-tests: New test.
41527         * tests/test-unlinkat.c: Likewise.
41528
41529         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41530         * modules/rmdir-errno (Status, Notice): Now obsolete.
41531
41532         rmdir: work around cygwin 1.5.x and mingw bugs
41533         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41534         * lib/rmdir.c (rmdir): Work around it.
41535         * modules/rmdir (Status, Notice): No longer obsolete.
41536         (Files): Add dos.m4.
41537         (Depends-on): Add unistd.
41538         (configure.ac): Set witnesses.
41539         (License): Relax to LGPLv2+.
41540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41541         * modules/unistd (Makefile.am): Substitute witnesses.
41542         * lib/unistd.in.h (rmdir): Declare replacement.
41543         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41544         * modules/rmdir-tests: New tests.
41545         * tests/test-rmdir.c: Likewise.
41546
41547 2009-09-15  Eric Blake  <ebb9@byu.net>
41548
41549         fchdir: improve use of replacement functions
41550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41551         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41553         REPLACE_CLOSEDIR.
41554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41555         * modules/sys_stat (Makefile.am): Substitute correct witness.
41556         * modules/dirent (Makefile.am): Likewise.
41557         * modules/unistd (Makefile.am): Likewise.
41558         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41559         * lib/unistd.in.h (dup): Likewise.
41560         * lib/sys_stat.in.h (fstat): Likewise.
41561
41562         maint: ignore gnulib-tool temp files
41563         * .gitignore: Ignore files created during gnulib-tool --test.
41564
41565 2009-09-13  Jim Meyering  <meyering@redhat.com>
41566
41567         posixtm: don't reject a time that specify "60" as the number of seconds
41568         * lib/posixtm.c (posixtime): The code to reject invalid dates
41569         would also reject a time specified with the .60 suffix.
41570         But POSIX allows that, in order to accommodate leap seconds.
41571         So don't reject it.
41572         (main): Adjust tests accordingly.
41573         * modules/posixtm (Depends-on): Add stpcpy.
41574
41575 2009-09-11  Jim Meyering  <meyering@redhat.com>
41576
41577         announce-gen: include [$release_type] in emitted Subject:
41578         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41579         e.g., [stable] in the emitted Subject: line.
41580
41581 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41582
41583         Remove obsolete macros from several modules.
41584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41585         obsolete Autoconf macros with their modern counterparts.
41586         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41587         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41588         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41589         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41590         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41591         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41593         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41594         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41595         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41596         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41597         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41598         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41599         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41600         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41601         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41602         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41603         * m4/time_r.m4 (gl_TIME_R): Likewise.
41604         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41605         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41606         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41607
41608         Fix copyright header in build-aux scripts.
41609         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41610         recommendation.
41611         * build-aux/ncftpput-ftp: Likewise.
41612         * build-aux/update-copyright: Likewise.
41613
41614 2009-09-09  Eric Blake  <ebb9@byu.net>
41615
41616         test-link: allow Linux choice of errno
41617         * tests/test-link.c (main): Relax test for alternate error.
41618
41619         strndup: fix improper m4 caching
41620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41621         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41622         (gl_PREREQ_STRNDUP): Delete.
41623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41624         * modules/string (Makefile.am): Substitute it.
41625         * lib/string.in.h (strndup): Modernize prototype.
41626
41627         getcwd: port to mingw
41628         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41629         different from the POSIX assumptions made throughout the getcwd
41630         module; fortunately, the mingw getcwd does not need replacement.
41631         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41632         * modules/getcwd-tests: New test.
41633         * tests/test-getcwd.c: Likewise.
41634
41635         link: fix platform bugs
41636         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41637         * lib/link.c (link): Work around them.  Fix related mingw bug.
41638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41639         * modules/unistd (Makefile.am): Substitute it.
41640         * lib/unistd.in.h (link): Declare replacement.
41641         * doc/posix-functions/link.texi (link): Document this.
41642         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41643
41644         test-link: consolidate into single C program, test more cases
41645         * tests/test-link.sh: Delete.
41646         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41647         at least Cygwin and Solaris.
41648         * modules/link-tests (Files): Remove unused file.
41649         (Depends-on): Add errno, sys_stat.
41650         (Makefile.am): Simplify.
41651
41652 2009-09-08  Bruno Haible  <bruno@clisp.org>
41653
41654         Work around towlower, towupper bug on mingw.
41655         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41656         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41657         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41658         * doc/posix-functions/towupper.texi: Likewise.
41659         Reported by Eric Blake.
41660
41661 2009-09-08  Jim Meyering  <meyering@redhat.com>
41662
41663         build: don't try to run autoheader if we don't use it
41664         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41665         is not used in configure.ac.
41666
41667 2009-09-08  Eric Blake  <ebb9@byu.net>
41668
41669         euidaccess: fix compilation error
41670         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41671
41672         rawmemchr: relax license
41673         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41674         okay.
41675         Reported by Jim Meyering.
41676
41677         mkfifoat: new module
41678         * modules/mkfifoat: New file.
41679         * lib/mkfifoat.c: Likewise.
41680         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41681         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41682         * modules/sys_stat (Makefile.am): Use them.
41683         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41684         * MODULES.html.sh (File system functions): Mention module.
41685         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41686         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41687         * modules/mkfifoat-tests: New test.
41688         * tests/test-mkfifoat.c: Likewise.
41689
41690         strchrnul: relax license
41691         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41692         okay.
41693         Reported by Jim Meyering.
41694
41695 2009-09-08  Eric Blake  <ebb9@byu.net>
41696
41697         fstatat: fix compilation on Solaris
41698         * lib/fstatat.c (includes): Add fcntl.h.
41699         Reported by Pádraig Brady.
41700
41701 2009-09-07  Eric Blake  <ebb9@byu.net>
41702
41703         rename: modernize replacement
41704         * modules/rename (Depends-on): Add stdio.
41705         (configure.ac): Declare witness.
41706         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41707         stdio take care of replacement.
41708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41709         * modules/stdio (Makefile.am): Substitute them.
41710         * lib/stdio.in.h (rename): Declare replacement.
41711         * lib/rename.c (includes): Allow cross-compilation to non-windows
41712         machines.
41713         * doc/posix-functions/rename.texi (rename): Improve
41714         documentation.
41715
41716         stdio: sort witness names
41717         * modules/stdio (Makefile.am): Sort replacements.
41718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41719         * lib/stdio.in.h: Likewise.
41720
41721         getcwd: minor cleanups
41722         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41723         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41724
41725         openat: provide more convenience names
41726         * modules/faccessat (configure.ac): Add C witness.
41727         * lib/unistd.in.h (readlinkat): Fix typo.
41728         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41729         convenience wrappers.
41730         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41731         wrappers in syntax checks.
41732
41733 2009-09-06  Eric Blake  <ebb9@byu.net>
41734
41735         doc: fix comments in recent patches
41736         * lib/faccessat.c: Mention correct function.
41737         * lib/fchmodat.c: Likewise.
41738         * lib/fchownat.c: Likewise.
41739         * lib/symlinkat.c: Likewise.
41740         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41741         constants.
41742
41743         faccessat, symlinkat: continue cleanup of previous patch
41744         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41745         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41746         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41748         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41749         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41750         set.
41751
41752 2009-09-06  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41755         (fstatat): Declare if GNULIB_FSTATAT is set.
41756         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41757         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41758         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41759         * modules/fcntl-h (Files): Remove m4/openat.m4.
41760         * modules/sys_stat (Files): Remove m4/openat.m4.
41761         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41762         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41763         * modules/unistd (Files): Remove m4/openat.m4.
41764         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41765         GNULIB_OPENAT.
41766         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41767         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41768         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41769         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41770         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41771         gl_OPENAT_DEFAULTS.
41772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41773         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41774         Don't require gl_OPENAT_DEFAULTS.
41775         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41776         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41777         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41778         (gl_OPENAT_DEFAULTS): Remove macro.
41779
41780 2009-09-06  Bruno Haible  <bruno@clisp.org>
41781
41782         * modules/openat (configure.ac): Remove unneeded witness.
41783
41784 2009-09-06  Bruno Haible  <bruno@clisp.org>
41785
41786         Set errno to ENOSYS when a function is entirely unsupported.
41787         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41788         EOPNOTSUPP.
41789         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41790         * modules/chown (Depends-on): Remove errno.
41791
41792 2009-09-06  Bruno Haible  <bruno@clisp.org>
41793
41794         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41795
41796 2009-09-06  Bruno Haible  <bruno@clisp.org>
41797
41798         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41799
41800 2009-09-06  Ben Pfaff  <blp@gnu.org>
41801             Bruno Haible  <bruno@clisp.org>
41802
41803         Work around a glibc bug in strtok_r.
41804         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41805         Undefine if UNDEFINE_STRTOK_R is set.
41806         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41808         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41809         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41810         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41811         UNDEFINE_STRTOK_R.
41812         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41813
41814 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41815
41816         exclude: minor fix
41817         * lib/exclude.c: Include wctype.h
41818
41819 2009-09-06  Akim Demaille  <demaille@gostai.com>
41820
41821         bootstrap: improve error message
41822         * build-aux/bootstrap (find_tool): Upon failure, report the list
41823         of candidates.
41824         Honor the initial value of the envvar.
41825
41826 2009-09-05  Eric Blake  <ebb9@byu.net>
41827
41828         symlinkat: new module
41829         * modules/symlinkat: New file.
41830         * lib/symlinkat.c: Likewise.
41831         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41833         * modules/unistd (Makefile.am): Use them.
41834         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41835         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41836         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41837         * MODULES.html.sh (File system functions): Mention module.
41838         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41839         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41840         * modules/symlinkat-tests: New test.
41841         * tests/test-symlinkat.c: Likewise.
41842
41843         test-openat-safer: add more checks
41844         * tests/test-openat-safer.c (main): Check more code paths.
41845
41846 2009-09-05  Jim Meyering  <meyering@redhat.com>
41847
41848         syntax-check: detect unnecessary inclusion of openat.h
41849         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41850
41851 2009-09-05  Bruno Haible  <bruno@clisp.org>
41852
41853         Support towlower, towupper.
41854         * doc/posix-functions/towlower.texi: Mention module wctype.
41855         * doc/posix-functions/towupper.texi: Likewise.
41856         * lib/wctype.in.h (towlower, towupper): New functions.
41857         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41858         (ASSERT): New macro.
41859         (e): New variable.
41860         (main): Test also towlower, towupper. Test WEOF argument.
41861         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41862
41863 2009-09-05  Bruno Haible  <bruno@clisp.org>
41864
41865         Fix conversion behaviour when the input is invalid.
41866         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41867         mark occurring in first pass of indirect conversion.
41868         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41869         input.
41870         Found by clang's static analyzer.
41871
41872 2009-09-05  Bruno Haible  <bruno@clisp.org>
41873
41874         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41875         where direct conversion is possible.
41876
41877 2009-09-04  Eric Blake  <ebb9@byu.net>
41878
41879         openat: fail with ENOENT on empty name
41880         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41881         buffer.
41882
41883         link-follow: fix logic bug in prior patch
41884         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41885         reversed sense of yes and no in prior patch.  Avoid confusing
41886         compilation failure with desired semantics.
41887
41888         link-follow: accomodate mingw and cross-compilation
41889         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41890         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41891         cross-compilation results to -1, to make linkat easier to
41892         implement when cross-compiling.  Trivially support mingw.
41893         * modules/link-follow (configure.ac): Call new name.
41894         * NEWS: Mention this.
41895
41896 2009-09-03  Eric Blake  <ebb9@byu.net>
41897
41898         faccessat: compile replacement
41899         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41900         needed.
41901
41902         fts: fix compilation error
41903         * lib/fts.c (includes): Re-add "openat.h", for
41904         openat_needs_fchdir.
41905
41906         faccessat: new module
41907         * modules/faccessat: New file.
41908         * lib/faccessat.c: Likewise.
41909         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41911         * modules/unistd (Makefile.am): Use it.
41912         * lib/unistd.in.h (faccessat): Declare it.
41913         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41914         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41915         * MODULES.html.sh (File system functions): Mention it.
41916         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41917         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41918
41919         euidaccess: prefer POSIX over non-standard implementation
41920         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41921         * lib/euidaccess.c (euidaccess): Use it if available.
41922
41923         openat: make template easier to use
41924         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41925         AT_FUNC_F2 to be undefined.
41926         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41927         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41928         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41929         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41930         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41931         Likewise.
41932         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41933         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41934         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41935         Likewise.
41936
41937         openat: declare in POSIX headers
41938         * NEWS: Mention this.
41939         * modules/openat (configure.ac): Declare witnesses.
41940         (Depends-on): Add fcntl-h, sys_stat, unistd.
41941         (Include): Mention correct headers.
41942         * modules/fcntl-h (Depends-on): Add link-warning.
41943         (Files): Add openat.m4.
41944         (Makefile.am): Substitute witnesses.
41945         * modules/sys_stat (Files, Makefile.am): Likewise.
41946         * modules/unistd (Files, Makefile.am): Likewise.
41947         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41948         (gl_OPENAT_DEFAULTS): New macro.
41949         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41952         (SYS_STAT_H): Remove unused variable.
41953         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41954         * lib/fcntl--.h (includes): Remove unneeded header.
41955         * lib/openat-safer.c (includes): Likewise.
41956         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41957         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41958         appropriate headers.
41959         (__OPENAT_PREFIX): Delete.
41960         * lib/fcntl.in.h (openat): Provide declaration.
41961         (AT_FDCWD): Fix Solaris bug.
41962         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41963         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41964         * lib/fchmodat.c (includes):  Adjust to find declaration.
41965         * lib/fchownat.c (includes): Likewise.
41966         * lib/mkdirat.c (includes): Likewise.
41967         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41968         still visible.
41969
41970 2009-09-02  Eric Blake  <ebb9@byu.net>
41971
41972         errno: use consistently
41973         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41974         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41975         * lib/canonicalize.c (ELOOP): Likewise.
41976         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41977         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41978         * lib/lchown.c (EOPNOTSUPP): Likewise.
41979         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41980         * lib/savewd.c (ESTALE): Likewise.
41981         * lib/settime.c (ENOSYS): Likewise.
41982         * lib/utimens.c (ENOSYS): Likewise.
41983         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41984         * lib/chdir-safer.c (ELOOP): Likewise.
41985         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41986         * modules/c-stack (Depends-on): Add errno.
41987         * modules/canonicalize (Depends-on): Likewise.
41988         * modules/chdir-safer (Depends-on): Likewise.
41989         * modules/fdopendir (Depends-on): Likewise.
41990         * modules/inet_ntop (Depends-on): Likewise.
41991         * modules/inet_pton (Depends-on): Likewise.
41992         * modules/lchown (Depends-on): Likewise.
41993         * modules/openat (Depends-on): Likewise.
41994         * modules/savewd (Depends-on): Likewise.
41995         * modules/settime (Depends-on): Likewise.
41996         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41997
41998         fts: avoid leaking fds
41999         * modules/fts (Depends-on): Add cloexec.
42000         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42001         flag.
42002
42003         fts: make directory fds more robust
42004         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42005         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42006
42007         backupfile, chdir-long, fts, savedir: make safer
42008         * lib/backupfile.c (includes): Use "dirent--.h", since
42009         numbered_backup can write to stderr during readdir.
42010         * lib/savedir.c (includes): Likewise.
42011         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42012         emulation can write to stderr on failure.
42013         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42014         * lib/getcwd.c: Document why opendir_safer is unused.
42015         * lib/glob.c: Likewise.
42016         * lib/scandir.c: Likewise.
42017         * lib/openat-proc.c: Likewise, for open_safer.
42018         * modules/backupfile (Depends-on): Add dirent-safer.
42019         * modules/savedir (Depends-on): Likewise.
42020         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42021         * modules/chdir-long (Depends-on): Add openat-safer.
42022
42023         openat-safer: new module
42024         * modules/openat-safer: New file.
42025         * lib/openat-safer.c: Likewise.
42026         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42027         * lib/fcntl-safer.h (openat_safer): Declare.
42028         * lib/fcntl--.h (openat): Override.
42029         * MODULES.html.sh (File descriptor based I/O): Mention it.
42030         * lib/openat.h: Add double-inclusion guards.
42031         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42032         "fcntl--.h", so we can implement openat.
42033         * modules/openat-safer-tests: New test.
42034         * tests/test-openat-safer.c: New file.
42035
42036         dirent-safer: new module
42037         * modules/dirent-safer: New file.
42038         * lib/dirent--.h: Likewise.
42039         * lib/dirent-safer.h: Likewise.
42040         * lib/opendir-safer.c: Likewise.
42041         * m4/dirent-safer.m4: Likewise.
42042         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42043         * modules/dirent-safer-tests: New test.
42044         * tests/test-dirent-safer.c: New file.
42045         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42046
42047         fdopendir: optimize on mingw
42048         * lib/unistd.in.h (_gl_directory_name): New prototype.
42049         * lib/fchdir.c (_gl_directory_name): Implement it.
42050         (fchdir): Use it to simplify implementation.
42051         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42052         fchdir, when available, to avoid calling [f]chdir().
42053
42054         fdopendir: split into its own module
42055         * lib/openat.c (fdopendir): Move...
42056         * lib/fdopendir.c: ...into new file.
42057         * modules/fdopendir: New module.
42058         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42059         * modules/openat (Depends-on): Add fdopendir.
42060         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42061         fdopendir here.
42062         * modules/savedir (Depends-on): Only need fdopendir, not full
42063         openat.
42064         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42065         * lib/openat.h (fdopendir): Drop prototype.
42066         * lib/dirent.in.h (fdopendir): Provide prototype.
42067         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42068         * modules/dirent (Makefile.am): Substitute them.
42069         * MODULES.html.sh (File system functions): Mention it.
42070         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42071         * modules/fdopendir-tests: New file.
42072         * tests/test-fdopendir.c: Likewise.
42073
42074         fchdir: use more consistent macro convention
42075         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42076         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42077         REPLACE_FCHDIR, rather than relying on config.h macros.
42078         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42079         inside a single make-time REPLACE_FCHDIR block, rather than using
42080         the config.h FCHDIR_REPLACEMENT.
42081         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42082         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42083         Manage fstat replacement.
42084         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42085         REPLACE_FCHDIR.
42086         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42087         (Makefile.am): Substitute REPLACE_FCHDIR.
42088         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42089         FCHDIR_REPLACEMENT.
42090         * lib/dup-safer.c (dup_safer): Likewise.
42091         * lib/dup2.c (rpl_dup2): Likewise.
42092         * lib/dup3.c (rpl_dup3): Likewise.
42093         * lib/open.c (rpl_open): Likewise.
42094
42095         fchdir: simplify error handling, and support dup3
42096         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42097         stdbool, malloc-posix, realloc-posix.
42098         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42099         (ensure_dirs_slot): Return false on allocation failure.
42100         (rpl_dup2): Delete.
42101         (_gl_register_dup): New function.
42102         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42103         (_gl_register_fd): Close fd on allocation failure.
42104         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42105         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42106         prototype.
42107         (rpl_dup2_fchdir): Delete prototype.
42108         * lib/open.c (open): Update caller.
42109         * lib/dup2.c (dup2): Track fchdir metadata.
42110         * lib/dup3.c (dup3): Likewise.
42111         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42113
42114 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42115
42116         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42117         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42118         don't pass arguments to AC_OUTPUT.
42119
42120 2009-09-02  Bruno Haible  <bruno@clisp.org>
42121
42122         * modules/mkdtemp (License): Relicense under LGPLv2+.
42123         Reported by Paolo Bonzini.
42124
42125 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42126
42127         Replace uses of obsolete autoconf macros in Jim's modules.
42128         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42129         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42130         can evoke a warning from autoconf when run with -Wobsolete
42131         enabled.  They were declared obsolete for good reasons (see
42132         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42133         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42134         should not continue using the deprecated macros.
42135         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42136         obsolete Autoconf macros with modern counterparts.
42137         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42138         * m4/dos.m4 (gl_AC_DOS): Likewise.
42139         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42141         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42142         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42143         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42144         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42145         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42146         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42147         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42148         Likewise.
42149         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42150         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42151         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42152         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42153         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42154         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42155
42156 2009-09-01  Eric Blake  <ebb9@byu.net>
42157
42158         fchdir: fix off-by-one bug in previous patch
42159         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42160         (_gl_unregister_fd): Delete useless if.
42161
42162 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42163
42164         maint.mk: sort the list of syntax-check rules
42165         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42166         easier to get a sense of progress when the rules are run sequentially
42167         and take a long time.
42168
42169 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42170
42171         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42172         * modules/netinet_in: Likewise.
42173         * modules/sys_file: Likewise.
42174         * modules/sys_ioctl: Likewise.
42175         * modules/sys_select: Likewise.
42176         * modules/sys_socket: Likewise.
42177         * modules/sys_stat: Likewise.
42178         * modules/sys_time: Likewise.
42179         * modules/sys_times: Likewise.
42180         * modules/sys_utsname: Likewise.
42181         * modules/sys_wait: Likewise.
42182
42183 2009-09-01  Jim Meyering  <meyering@redhat.com>
42184
42185         fts: help ensure that return values are not ignored
42186         * lib/fts_.h (__GNUC_PREREQ): Define.
42187         (__attribute_warn_unused_result__): Define.
42188         (fts_children, fts_close, fts_open, fts_read): Declare with
42189         __attribute_warn_unused_result__.
42190
42191         fts: fts_close now fails also when closing a dir file descriptor fails
42192         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42193         and propagate to caller, along with errno.
42194
42195         announce-gen: correct formatting in --help output
42196         * build-aux/announce-gen (usage): Move the one-line description in
42197         --help output "up", to where it belongs, just after Usage:.
42198
42199 2009-08-31  Eric Blake  <ebb9@byu.net>
42200
42201         fchdir: port to mingw
42202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42203         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42204         opened, then use a substitute.
42205         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42206         replacement.
42207         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42208         (_gl_register_fd): No need to check stat if open already filters
42209         all directories.
42210         (fchdir): Fix error condition to match POSIX.
42211         * modules/fchdir (Depends-on): Add sys_stat.
42212         * doc/posix-functions/open.texi (open): Document the limitation.
42213         * modules/fchdir-tests: New file.
42214         * tests/test-fchdir.c: Likewise.
42215
42216         canonicalize: allow cross-testing from cygwin to mingw
42217         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42218         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42219         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42220         Likewise.
42221         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42222         target does not support symlinks.
42223         * tests/test-canonicalize-lgpl.sh: Likewise.
42224
42225         chown: avoid compilation warning on mingw
42226         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42227         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42228         mingw.
42229         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42230         * modules/chown (Depends-on): Add errno.
42231
42232 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42233
42234         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42235         command.
42236
42237 2009-08-31  Jim Meyering  <meyering@redhat.com>
42238
42239         canonicalize: remove useless initialization
42240         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42241         initialization of local, "end".
42242
42243 2009-08-30  Bruno Haible  <bruno@clisp.org>
42244
42245         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42246         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42247         ENOSYS.
42248
42249 2009-08-30  Bruno Haible  <bruno@clisp.org>
42250
42251         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42252         /usr/xpg4/bin/tr when it exists.
42253         * tests/test-pipe-filter-gi1.sh: Likewise.
42254
42255 2009-08-30  Bruno Haible  <bruno@clisp.org>
42256
42257         Work around deficient /usr/bin/id program on Solaris.
42258         * tests/test-file-has-acl.sh (ID): New variable.
42259         * tests/test-set-mode-acl.sh (ID): Likewise.
42260         * tests/test-copy-acl.sh (ID): Likewise.
42261         * tests/test-copy-file.sh (ID): Likewise.
42262
42263 2009-08-30  Bruno Haible  <bruno@clisp.org>
42264
42265         New module 'xstriconveh'.
42266         * lib/xstriconveh.h: New file.
42267         * lib/xstriconveh.c: New file.
42268         * modules/xstriconveh: New file.
42269
42270 2009-08-30  Bruno Haible  <bruno@clisp.org>
42271
42272         Make it easier to use mem_cd_iconveh.
42273         * lib/striconveh.h (iconveh_t): New type.
42274         (iconveh_open, iconveh_close): New declarations.
42275         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42276         with a single 'const iconveh_t *' argument.
42277         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42278         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42279         with a single 'const iconveh_t *' argument.
42280         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42281         * tests/test-striconveh.c (main): Update.
42282         * NEWS: Mention the change.
42283
42284 2009-08-30  Bruno Haible  <bruno@clisp.org>
42285
42286         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42287         problem.
42288
42289 2009-08-30  Bruno Haible  <bruno@clisp.org>
42290
42291         Work around iconv_open problem on Solaris.
42292         * lib/iconv_open-solaris.gperf: New file.
42293         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42295         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42296         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42297         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42298         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42299
42300 2009-08-29  Jim Meyering  <meyering@redhat.com>
42301
42302         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42303         * top/maint.mk (cvs-check): Remove target; it was just an alias
42304         to the better-named vc-diff-check.
42305         (maintainer-distcheck): Remove rule.  It was used only from
42306         the (alpha/beta/major) target, and all of its commands but one
42307         were coreutils-specific.
42308         (vc-dist): Remove rule.
42309         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42310         Run vc-diff-check, not vc-dist.
42311         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42312
42313 2009-08-27  Bruno Haible  <bruno@clisp.org>
42314
42315         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42316         of 0.
42317
42318 2009-08-27  Bruno Haible  <bruno@clisp.org>
42319
42320         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42321         compilers.
42322         * doc/func.texi: Document the SunPRO C bug.
42323
42324 2009-08-27  Bruno Haible  <bruno@clisp.org>
42325
42326         Fix link error on Solaris.
42327         * tests/test-parse-duration.c (xstrdup): Remove function.
42328
42329 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42330
42331         ignore-value: handle pointer types, too
42332         * lib/ignore-value.h (__attribute__): Remove definition.
42333         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42334         of a more concise and more-often effective "(void) i" statement.
42335         (ignore_ptr): New function to suppress warnings from functions that
42336         return pointers, and to make it explicit that one function doesn't
42337         handle all cases.
42338
42339 2009-08-25  Bruno Haible  <bruno@clisp.org>
42340
42341         dup2: work around a Linux bug.
42342         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42343         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42344         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42345         Reported by Simon Josefsson.
42346
42347 2009-08-25  Jim Meyering  <meyering@redhat.com>
42348
42349         libguestfs uses gnulib
42350         * users.txt: Add libguestfs.
42351
42352 2009-08-24  Eric Blake  <ebb9@byu.net>
42353
42354         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42355         * lib/pipe2.c (includes): Add binary-io.h.
42356         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42357
42358 2009-08-24  Bruno Haible  <bruno@clisp.org>
42359
42360         Tolerate declared but missing accept4 syscall.
42361         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42362         available.
42363         * lib/sys_socket.in.h (accept4): If the function is already present,
42364         override it.
42365         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42366         * modules/accept4 (Makefile.am): Compile accept4.c always.
42367         Reported by Paolo Bonzini and Eric Blake.
42368
42369 2009-08-23  Bruno Haible  <bruno@clisp.org>
42370
42371         New module 'accept4'.
42372         * lib/sys_socket.in.h (accept4): New declaration.
42373         * lib/accept4.c: New file.
42374         * m4/accept4.m4: New file.
42375         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42376         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42377         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42378         HAVE_ACCEPT4.
42379         * modules/accept4: New file.
42380         * doc/glibc-functions/accept4.texi: Mention the new module.
42381
42382 2009-08-24  Jim Meyering  <meyering@redhat.com>
42383
42384         progname: also set global program_invocation_name, when possible
42385         Before this change, a libtool-enabled program that calls glibc's
42386         error function would report the program name as
42387         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42388         * modules/progname (configure.ac): Check for a declaration of
42389         program_invocation_name.
42390         * lib/progname.c:  Include <errno.h>.
42391         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42392         Set program_invocation_name.
42393
42394 2009-08-23  Bruno Haible  <bruno@clisp.org>
42395
42396         * lib/dup3.c: Include <string.h>.
42397
42398 2009-08-23  Bruno Haible  <bruno@clisp.org>
42399
42400         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42401         * lib/pipe2.c (pipe2): Likewise.
42402         Suggested by Eric Blake.
42403
42404 2009-08-23  Bruno Haible  <bruno@clisp.org>
42405
42406         Tolerate declared but missing dup3 syscall.
42407         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42408         * lib/unistd.in.h (dup3): If the function is already present,
42409         override it.
42410         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42411         * modules/dup3 (Makefile.am): Compile dup3.c always.
42412         Reported by Paolo Bonzini.
42413
42414 2009-08-23  Bruno Haible  <bruno@clisp.org>
42415
42416         Tolerate declared but missing pipe2 syscall.
42417         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42418         available.
42419         * lib/unistd.in.h (pipe2): If the function is already present,
42420         override it.
42421         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42422         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42423         Reported by Paolo Bonzini.
42424
42425 2009-08-23  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/pipe2.c (pipe2): Move #ifs inside function.
42428
42429 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42430
42431         quotearg: document limitations of quote_these_too
42432         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42433         those limitations are created.
42434         * lib/quotearg.h (set_char_quoting): Document that digits and
42435         letters that are special after backslash are not permitted.
42436         (quotearg_char): Cross-reference set_char_quoting documentation.
42437
42438 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42439
42440         quotearg: implement custom_quoting_style
42441         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42442         right_quote fields.
42443         (set_custom_quoting): New public function.
42444         (quotearg_buffer_restyled): Add left_quote and right_quote
42445         arguments, handle them very much like locale quoting, and update
42446         all uses.
42447         (quotearg_n_custom): New public function.
42448         (quotearg_n_custom_mem): New public function.
42449         (quotearg_custom): New public function.
42450         (quotearg_custom_mem): New public function.
42451         * lib/quotearg.h: Prototype and document new public functions.
42452         (enum quoting_style): For escape_quoting_style and
42453         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42454         ignored even though they're otherwise like c_quoting_style.
42455         Add custom_quoting_style member and document with comparison to
42456         clocale_quoting_style.
42457         * tests/test-quotearg.c (custom_quotes): New array.
42458         (custom_results): New array.
42459         (main): Extend to test custom quoting.
42460
42461 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42462
42463         quotearg: fix right quote escaping when it's in quote_these_too
42464         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42465         quote, be sure to prepend only one backslash.
42466         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42467         (main): Test it.
42468
42469 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42470
42471         quotearg-tests: test escaping of embedded locale quotes
42472         * tests/test-quotearg.c (struct result_strings): Add member for
42473         new input.
42474         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42475         (inputs): Add new input.
42476         (results_g): Add expected results.
42477         (flag_results): Likewise.
42478         (locale_results): Likewise.
42479         (compare_strings): Check those.
42480
42481 2009-08-23  Bruno Haible  <bruno@clisp.org>
42482
42483         Tests for module 'dup3'.
42484         * modules/dup3-tests: New file.
42485         * tests/test-dup3.c: New file.
42486
42487         New module 'dup3'.
42488         * lib/unistd.in.h (dup3): New declaration.
42489         * lib/dup3.c: New file.
42490         * m4/dup3.m4: New file.
42491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42492         HAVE_DUP3.
42493         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42494         * modules/dup3: New file.
42495         * doc/glibc-functions/dup3.texi: Mention the new module.
42496
42497 2009-08-23  Bruno Haible  <bruno@clisp.org>
42498
42499         Tweak the dup2 test.
42500         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42501         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42502         the test file is still empty. Fix argument order of lseek.
42503
42504 2009-08-23  Bruno Haible  <bruno@clisp.org>
42505
42506         Avoid test link errors when the modules getopt-gnu, gettext are used.
42507         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42509
42510 2009-08-23  Bruno Haible  <bruno@clisp.org>
42511
42512         Fix getdtablesize() on mingw.
42513         * lib/getdtablesize.c (getdtablesize): Implement differently.
42514         * lib/unistd.in.h (getdtablesize): Improve comment.
42515
42516 2009-08-23  Bruno Haible  <bruno@clisp.org>
42517
42518         New module 'mkostemp'.
42519         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42520         * lib/stdlib.in.h (mksotemp): New declaration.
42521         * lib/mkostemp.c: New file, from glibc with modifications.
42522         * lib/tempname.h (GT_FILE): Remove outdated comment.
42523         (gen_tempname): Add flags argument.
42524         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42525         (__GT_FILE): Map to 1.
42526         (small_open, large_open): Remove macros.
42527         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42528         * lib/mkstemp.c (mkstemp): Update.
42529         * lib/mkdtemp.c (mkdtemp): Likewise.
42530         * m4/mkostemp.m4: New file.
42531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42532         HAVE_MKOSTEMP.
42533         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42534         HAVE_MKOSTEMP.
42535         * modules/mkostemp: New file, based on modules/mkstemp.
42536         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42537         * NEWS: Mention the change.
42538
42539 2009-08-23  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42542         Reported by Eric Blake.
42543
42544 2009-08-23  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42547         Reported by Eric Blake.
42548
42549 2009-08-23  Bruno Haible  <bruno@clisp.org>
42550
42551         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42552         * modules/pipe2 (Depends-on): Likewise.
42553
42554 2009-08-23  Eric Blake  <ebb9@byu.net>
42555
42556         fcntl-h: add O_TTY_INIT support
42557         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42558         * tests/test-fcntl-h.c (o): Test it.
42559         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42560
42561         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42562         * modules/fcntl: Move <fcntl.h> header replacement...
42563         * modules/fcntl-h: ...to new name, so as not to collide with
42564         like-named function.
42565         * tests/test-fcntl.c: Rename...
42566         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42567         * modules/fcntl-tests: Rename...
42568         * modules/fcntl-h-tests: ...to this.  Update test file name.
42569         * modules/chdir-long (Depends-on): Update clients.
42570         * modules/chdir-safer (Depends-on): Likewise.
42571         * modules/fcntl-safer (Depends-on): Likewise.
42572         * modules/fts (Depends-on): Likewise.
42573         * modules/mkancesdirs (Depends-on): Likewise.
42574         * modules/mkdir-p (Depends-on): Likewise.
42575         * modules/open (Depends-on): Likewise.
42576         * modules/savewd (Depends-on): Likewise.
42577         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42578         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42579
42580 2009-08-22  Bruno Haible  <bruno@clisp.org>
42581
42582         * modules/binary-io (License): Relicense under LGPL.
42583         * modules/pipe2 (License): Likewise.
42584
42585 2009-08-22  Bruno Haible  <bruno@clisp.org>
42586
42587         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42588         return value.
42589         * lib/pipe-filter-gi.c (filter_init): Likewise.
42590         Reported by Eric Blake.
42591
42592 2009-08-22  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42595         * modules/pipe (Depends-on): Add pipe2.
42596
42597 2009-08-22  Bruno Haible  <bruno@clisp.org>
42598
42599         Tests for module 'pipe2'.
42600         * modules/pipe2-tests: New file.
42601         * tests/test-pipe2.c: New file.
42602
42603         New module 'pipe2'.
42604         * lib/unistd.in.h (pipe2): New declaration.
42605         * lib/pipe2.c: New file.
42606         * m4/pipe2.m4: New file.
42607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42608         HAVE_PIPE2.
42609         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42610         * modules/pipe2: New file.
42611         * doc/glibc-functions/pipe2.texi: Mention the new module.
42612
42613 2009-08-22  Bruno Haible  <bruno@clisp.org>
42614
42615         Reference some new glibc functions.
42616         * doc/glibc-functions/accept4.texi: New file.
42617         * doc/glibc-functions/dup3.texi: New file.
42618         * doc/glibc-functions/mkostemp.texi: New file.
42619         * doc/glibc-functions/pipe2.texi: New file.
42620         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42621         (Glibc sys/socket.h): Refer to accept4.
42622         (Glibc unistd.h): Refer to dup3, pipe2.
42623         Reported by Eric Blake.
42624
42625 2009-08-22  Jim Meyering  <meyering@redhat.com>
42626             Bruno Haible  <bruno@clisp.org>
42627
42628         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42629         This makes it so packages using automake-1.11's silent-rules option
42630         can print e.g., a single "GEN    configmake.h" line, rather than
42631         the 30+ statements that perform the job.  If you want to see the
42632         actual commands, you can still run "make V=1".
42633         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42634         so that make output is abbreviated when those variables are defined
42635         appropriately.
42636         * modules/argz: Likewise.
42637         * modules/arpa_inet: Likewise.
42638         * modules/byteswap: Likewise.
42639         * modules/configmake: Likewise.
42640         * modules/dirent: Likewise.
42641         * modules/errno: Likewise.
42642         * modules/fcntl: Likewise.
42643         * modules/float: Likewise.
42644         * modules/fnmatch: Likewise.
42645         * modules/getopt-posix: Likewise.
42646         * modules/glob: Likewise.
42647         * modules/iconv_open: Likewise.
42648         * modules/inttypes: Likewise.
42649         * modules/localcharset: Likewise.
42650         * modules/locale: Likewise.
42651         * modules/math: Likewise.
42652         * modules/netdb: Likewise.
42653         * modules/netinet_in: Likewise.
42654         * modules/poll: Likewise.
42655         * modules/posix_spawnp-tests: Likewise.
42656         * modules/sched: Likewise.
42657         * modules/search: Likewise.
42658         * modules/selinux-h: Likewise.
42659         * modules/signal: Likewise.
42660         * modules/spawn: Likewise.
42661         * modules/stdarg: Likewise.
42662         * modules/stdbool: Likewise.
42663         * modules/stddef: Likewise.
42664         * modules/stdint: Likewise.
42665         * modules/stdio: Likewise.
42666         * modules/stdlib: Likewise.
42667         * modules/string: Likewise.
42668         * modules/strings: Likewise.
42669         * modules/sys_file: Likewise.
42670         * modules/sys_ioctl: Likewise.
42671         * modules/sys_select: Likewise.
42672         * modules/sys_socket: Likewise.
42673         * modules/sys_stat: Likewise.
42674         * modules/sys_time: Likewise.
42675         * modules/sys_times: Likewise.
42676         * modules/sys_utsname: Likewise.
42677         * modules/sys_wait: Likewise.
42678         * modules/sysexits: Likewise.
42679         * modules/time: Likewise.
42680         * modules/unistd: Likewise.
42681         * modules/wchar: Likewise.
42682         * modules/wctype: Likewise.
42683
42684 2009-08-22  Jim Meyering  <meyering@redhat.com>
42685
42686         announce-gen: detect write failure
42687         * build-aux/announce-gen: Add Coda at end.
42688         Remove equivalent-but-more-verbose block at top.
42689
42690 2009-08-19  Akim Demaille  <demaille@gostai.com>
42691
42692         bootstrap: --help to stdout.
42693         * bootstrap (usage): Don't send --help to stderr.
42694         Use a here doc instead of a long string.
42695
42696 2009-08-21  Eric Blake  <ebb9@byu.net>
42697
42698         test-popen-safer: split from test-popen
42699         * tests/test-popen.c (main): Move...
42700         * tests/test-popen.h: ...into new file.
42701         * tests/test-popen-safer2.c: New file.
42702         * modules/popen-tests (Files): Add test-popen.h.
42703         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42704         Suggested by Bruno Haible.
42705
42706         test-fcntl-safer: split from test-open
42707         * tests/test-open.c (main): Move...
42708         * tests/test-open.h: ...into new file.
42709         * tests/test-fcntl-safer.c: New file.
42710         * modules/open-tests (Files): Add test-open.h.
42711         * modules/fcntl-safer-tests: New file.
42712         Suggested by Bruno Haible.
42713
42714         test-fopen-safer: split from test-fopen
42715         * tests/test-fopen.c (main): Move...
42716         * tests/test-fopen.h: ...into new file.
42717         * tests/test-fopen-safer.c: New file.
42718         * modules/fopen-tests (Files): Add test-fopen.h.
42719         * modules/fopen-safer-tests: New file.
42720         Suggested by Bruno Haible.
42721
42722 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42723
42724         popen-safer: test O_CLOEXEC at run-time.
42725         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42726
42727 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42728
42729         fcntl: move more flags to the header
42730         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42731         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42732         * lib/fcntl.in.h: Do both things here.
42733
42734 2009-08-21  Jim Meyering  <meyering@redhat.com>
42735
42736         consistently remove $@-t before redirecting to it
42737         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42738         * modules/alloca-opt: Likewise.
42739         * modules/byteswap: Likewise.
42740         * modules/fnmatch: Likewise.
42741         * modules/getopt-posix: Likewise.
42742         * modules/glob: Likewise.
42743         * modules/poll: Likewise.
42744         * modules/posix_spawnp-tests: Likewise.
42745         * modules/sys_socket: Likewise.
42746         * modules/sysexits: Likewise.
42747
42748 2009-08-21  Eric Blake  <ebb9@byu.net>
42749
42750         popen: simplify access to original popen
42751         * lib/popen.c (rpl_popen): No need to worry about popen being a
42752         macro.
42753         Reported by Bruno Haible.
42754
42755 2009-08-20  Eric Blake  <ebb9@byu.net>
42756
42757         build: avoid some compiler warnings
42758         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42759         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42760         type.
42761         (new_exclude_segment, excluded_file_pattern_p)
42762         (excluded_file_name_p): Reduce scope.
42763         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42764         old-style declaration.
42765
42766 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42767
42768         * tests/test-exclude1.sh: Handle Windows EOL.
42769         * tests/test-exclude2.sh: Likewise.
42770         * tests/test-exclude3.sh: Likewise.
42771         * tests/test-exclude4.sh: Likewise.
42772         * tests/test-exclude5.sh: Likewise.
42773         * tests/test-exclude6.sh: Likewise.
42774         * tests/test-exclude7.sh: Likewise.
42775
42776 2009-08-19  Akim Demaille  <demaille@gostai.com>
42777
42778         bootstrap: find sha1sum when named gsha1sum.
42779         * bootstrap (find_tool): New.
42780         ($SHA1SUM): New.
42781         Use it.
42782
42783 2009-08-20  Jim Meyering  <meyering@redhat.com>
42784
42785         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42786         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42787         expression that converts "." in a file name to "\." in the resulting
42788         regexp.  Start with a dummy statement, so that prior shell variable
42789         definitions are expanded portably.  Reported by Simon Josefsson.
42790
42791 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42792
42793         Fix polling for writeability of a screen buffer.
42794         * lib/poll.c: Distinguish input and screen buffers for the
42795         Win32 implementation.
42796         * lib/select.c: Likewise.
42797
42798 2009-08-19  Eric Blake  <ebb9@byu.net>
42799
42800         popen-safer: prevent popen from clobbering std descriptors
42801         * modules/popen-safer: New file.
42802         * lib/popen-safer.c: Likewise.
42803         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42804         * lib/stdio--.h (popen): Provide override.
42805         * lib/stdio-safer.h (popen_safer): Provide declaration.
42806         * tests/test-popen.c (includes): Partially test this.
42807         * modules/popen-safer-tests: New file, for more tests.
42808         * tests/test-popen-safer.c: Likewise.
42809         * MODULES.html.sh (file stream based Input/Output): Mention it.
42810
42811         tests: test some of the *-safer modules
42812         * modules/fopen-safer (Depends-on): Add fopen.
42813         * modules/fcntl-safer (Depends-on): Add fcntl.
42814         * modules/stdlib-safer (Depends-on): Add stdlib.
42815         (configure.ac): Set indicator.
42816         * modules/unistd-safer (configure.ac): Likewise.
42817         * modules/tmpfile-safer (configure.ac): Likewise.
42818         (Depends-on): Add tmpfile.
42819         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42820         active.
42821         * tests/test-fopen.c (includes): Test safer versions when they are
42822         in use.
42823         * tests/test-open.c (includes): Likewise.
42824
42825         popen: fix cygwin 1.5 bug when stdin closed
42826         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42827         * modules/popen: New file.
42828         * modules/popen-tests: Likewise.
42829         * tests/test-popen.c: Likewise.
42830         * m4/popen.m4: Likewise.
42831         * lib/popen.c: Likewise.
42832         * lib/stdio.in.h (popen): New declaration.
42833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42834         * modules/stdio (Makefile.am): Likewise.
42835         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42836
42837 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42838
42839         maint.mk: give full control over update-copyright exclusions
42840         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42841         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42842         (update-copyright): Don't force inclusion of top-level
42843         ChangeLog.  Don't force exclusion of all COPYING files, but make
42844         them the default exclusion instead.
42845
42846 2009-08-16  Bruno Haible  <bruno@clisp.org>
42847
42848         Fix test failures on Solaris 10.
42849         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42850         tests when Solaris iconv() is used.
42851         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42852         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42853         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42854         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42855         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42856
42857 2009-08-16  Bruno Haible  <bruno@clisp.org>
42858
42859         Fix test failures on Solaris 10.
42860         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42861         'tr' program and pass it as first argument.
42862         * tests/test-pipe-filter-gi1.sh: Likewise.
42863         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42864         program as first argument.
42865         * tests/test-pipe-filter-gi1.c (main): Likewise.
42866
42867 2009-08-16  Eric Blake  <ebb9@byu.net>
42868
42869         fpurge: fix previous commits
42870         * modules/fpurge (Makefile.am): Make replacement conditional,
42871         partially reverting 2007-04-29 change; missed in previous
42872         attempt.
42873         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42874         is missing.
42875
42876 2009-08-16  Bruno Haible  <bruno@clisp.org>
42877
42878         Clarify fpurge's effect on the file position.
42879         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42880         * tests/test-fpurge.c (main): Make a second pass for checking the file
42881         position.
42882
42883 2009-08-16  Bruno Haible  <bruno@clisp.org>
42884
42885         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42886         declaration of fpurge is missing.
42887         * tests/test-fpurge.c (main): Check that the file has not more contents
42888         than expected. Close the file before removing it.
42889
42890 2009-08-15  Eric Blake  <ebb9@byu.net>
42891
42892         fpurge: don't wrap working cygwin implementation
42893         * lib/fpurge.c (fpurge): Fix comment typo.
42894         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42895         1.7 to avoid replacement.
42896         * tests/test-fpurge.c (main): Enhance test.
42897
42898 2009-08-15  Eric Blake  <ebb9@byu.net>
42899         and Jim Meyering  <meyering@redhat.com>
42900
42901         test-update-copyright: skip if perl is insufficient
42902         * tests/test-update-copyright.sh: Failure to run maintainer tool
42903         should not cause testsuite failure on cygwin 1.5.
42904
42905 2009-08-14  Eric Blake  <ebb9@byu.net>
42906
42907         doc: mention more functions added in cygwin 1.7.0
42908         * doc/posix-headers/limits.texi (limits.h): Update for recent
42909         cygwin additions.
42910         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42911         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42912         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42913         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42914         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42915
42916 2009-08-14  Eric Blake  <ebb9@byu.net>
42917
42918         maint.mk: simplify update-copyright rule
42919         * top/maint.mk (update-copyright-local): Delete, and document how
42920         to do it in cfg.mk instead.
42921         (update-copyright-exclude-regexp): Delete, and document how to do
42922         it in .x-update-copyright instead.
42923         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42924         exclude ChangeLog.
42925
42926 2009-08-14  Bruno Haible  <bruno@clisp.org>
42927
42928         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42929
42930 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42931
42932         maint.mk: support update-copyright-env
42933         * top/maint.mk (update-copyright-env): Define place-holder.
42934         (update-copyright): Expand $(update-copyright-env) before
42935         invoking update-copyright.
42936
42937 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42938
42939         update-copyright: implement forced reformatting
42940         * build-aux/update-copyright: Implement and document
42941         UPDATE_COPYRIGHT_FORCE.
42942         * tests/test-update-copyright.sh: Test it.
42943
42944 2009-08-14  Eric Blake  <ebb9@byu.net>
42945         and Bruno Haible  <bruno@clisp.org>
42946
42947         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42948         * tests/test-locale.c: Revert previous patch related to NULL.
42949         * tests/test-stdio.c: Likewise.
42950         * tests/test-stdlib.c: Likewise.
42951         * tests/test-string.c: Likewise.
42952         * tests/test-unistd.c: Likewise.
42953         * modules/time-tests (Depends-on): Add verify.
42954         * modules/wchar-tests (Depends-on): Likewise.
42955         * tests/test-time.c: Test for NULL compliance.
42956         * tests/test-wchar.c: Likewise.
42957         * modules/locale (Depends-on): Add stddef.
42958         * modules/stdio (Depends-on): Likewise.
42959         * modules/stdlib (Depends-on): Likewise.
42960         * modules/string (Depends-on): Likewise.
42961         * modules/time (Depends-on): Likewise.
42962         * modules/unistd (Depends-on): Likewise.
42963         * modules/wchar (Depends-on): Likewise.
42964         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42965         * lib/stdlib.in.h (includes): Likewise.
42966         * lib/string.in.h (includes): Likewise.
42967         * lib/time.in.h (includes): Likewise.
42968         * lib/unistd.in.h (includes): Likewise.
42969         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42970         replaced.
42971         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42972         * m4/stddef_h.m4: New file.
42973         * modules/stddef: Likewise.
42974         * lib/stddef.in.h: Likewise.
42975         * modules/stddef-tests: Likewise.
42976         * tests/test-stddef.c: Likewise.
42977         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42978         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42979         * doc/posix-headers/locale.texi (locale.h): Likewise.
42980         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42981         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42982         * doc/posix-headers/string.texi (string.h): Likewise.
42983         * doc/posix-headers/time.texi (time.h): Likewise.
42984         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42985         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42986
42987 2009-08-14  Eric Blake  <ebb9@byu.net>
42988
42989         doc: improve git diff of texinfo files
42990         * .gitattributes: Add rule for *.texi files, with hint on how to
42991         use it.
42992         Copied from m4, and based on a report by Bruno Haible.
42993
42994 2009-08-14  Bruno Haible  <bruno@clisp.org>
42995
42996         Disable multithread support by default on Cygwin 1.5.x for real.
42997         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42998
42999 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43000
43001         update-copyright: much ado about intervals
43002         * build-aux/update-copyright: Implement and document
43003         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43004         of copyright year intervals.
43005         Also, document UPDATE_COPYRIGHT_YEAR.
43006         * tests/test-update-copyright.sh: Test it.
43007
43008         update-copyright: convert 2-digit to 4-digit years
43009         * build-aux/update-copyright: Implement and document.
43010         * tests/test-update-copyright.sh: Update.
43011
43012 2009-08-14  Jim Meyering  <meyering@redhat.com>
43013
43014         test-exclude: avoid coreutils "make check" failure
43015         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43016         just as in test-argmatch.c.
43017
43018 2009-08-13  Eric Blake  <ebb9@byu.net>
43019
43020         test-dup2: fix bad assumption
43021         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43022         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43023
43024         test-version-etc: fix CRLF portability issue
43025         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43026         recognize \r.
43027         * tests/test-argp-version-etc-1.sh: Likewise.
43028
43029         getopt: update client modules
43030         * modules/argp (Depends-on): Use getopt-gnu.
43031         * modules/git-merge-changelog (Depends-on): Likewise.
43032         * modules/long-options (Depends-on): Likewise.
43033         * modules/xstrtol (Depends-on): Likewise.
43034
43035 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43036
43037         * tests/test-version-etc.sh: Don't fail on different
43038         project/version.  Don't fail on CRLF differences.  Rewrite to use
43039         multiple -e instead of multiple sed forks, suggested by Eric Blake
43040         <ebb9@byu.net>.
43041         * tests/test-argp-version-etc-1.sh: Likewise.
43042
43043 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43044
43045         * tests/test-version-etc.sh: Don't fail on different
43046         project/version.
43047
43048 2009-08-12  Bruno Haible  <bruno@clisp.org>
43049
43050         Tests for modules 'getopt-posix', 'getopt-gnu'.
43051         * modules/getopt-posix-tests: New file.
43052         * tests/test-getopt.c: New file.
43053         * tests/test-getopt.h: New file.
43054         * tests/test-getopt_long.h: New file.
43055
43056         New modules 'getopt-posix', 'getopt-gnu'.
43057         * modules/getopt-gnu: New file, renamed from modules/getopt.
43058         * modules/getopt-posix: New file.
43059         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43060         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43061         (gl_GETOPT): Remove macro.
43062         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43063         Disable the test against BSD systems that declare optreset. Test
43064         against mingw bug. Test against lack of support of optional arguments
43065         on many platforms.
43066         * doc/glibc-headers/getopt.texi: Update module name and list of
43067         relevant platforms.
43068         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43069         'getopt-gnu' and more portability problems.
43070         * NEWS: Mention the changes.
43071
43072 2009-08-12  Bruno Haible  <bruno@clisp.org>
43073
43074         Ensure that optarg etc. get declared by <unistd.h>.
43075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43076         AC_USE_SYSTEM_EXTENSIONS.
43077         * modules/getopt (Depends-on): Add 'extensions'.
43078
43079 2009-08-12  Bruno Haible  <bruno@clisp.org>
43080
43081         Avoid test link errors.
43082         * modules/pipe-filter-ii-tests (Makefile.am): Define
43083         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43084         * modules/pipe-filter-gi-tests (Makefile.am): Define
43085         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43087
43088 2009-08-12  Bruno Haible  <bruno@clisp.org>
43089
43090         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43091         gl_GETOPT_SUBSTITUTE before.
43092         (gl_GETOPT): Use it.
43093         * m4/argp.m4 (gl_ARGP): Update.
43094         Reported by Sergey Poznyakoff.
43095
43096         * m4/getopt.m4: Reorder macros.
43097         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43098         (gl_GETOPT_SUBSTITUTE): Remove macro.
43099
43100 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43101
43102         Minor improvement in gitlog-to-changelog
43103
43104         * build-aux/gitlog-to-changelog: New option `--format' makes
43105         output format string configurable.
43106
43107 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43108
43109         Optimize exclude: use hash tables for non-wildcard patterns.
43110
43111         * lib/exclude.c: Include hash.h and mbuiter.h
43112         (struct exclude_pattern, exclude_segment): New data types.
43113         (struct exclude): Rewrite.
43114         (fnmatch_pattern_has_wildcards): New function.
43115         (new_exclude_segment, free_exclude_segment): New functions.
43116         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43117         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43118         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43119         * modules/exclude: Depend on hash and mbuiter.
43120
43121         * modules/exclude-tests: New file.
43122         * tests/test-exclude.c: New file.
43123         * tests/test-exclude1.sh: New file.
43124         * tests/test-exclude2.sh: New file.
43125         * tests/test-exclude3.sh: New file.
43126         * tests/test-exclude4.sh: New file.
43127         * tests/test-exclude5.sh: New file.
43128         * tests/test-exclude6.sh: New file.
43129         * tests/test-exclude7.sh: New file.
43130
43131 2009-08-12  Bruno Haible  <bruno@clisp.org>
43132
43133         Ensure that getopt() gets declared by <unistd.h>.
43134         * lib/unistd.in.h: Conditionally include getopt.h.
43135         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43136         Set GNULIB_UNISTD_H_GETOPT.
43137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43138         GNULIB_UNISTD_H_GETOPT.
43139         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43140
43141 2009-08-12  Bruno Haible  <bruno@clisp.org>
43142
43143         Clarify logic.
43144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43145         gl_replace_getopt instead of GETOPT_H.
43146
43147 2009-08-12  Bruno Haible  <bruno@clisp.org>
43148
43149         * m4/getopt.m4: Add comments.
43150
43151 2009-08-12  Bruno Haible  <bruno@clisp.org>
43152
43153         Disable multithread support by default on Cygwin 1.5.x.
43154         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43155         set gl_use_threads=no if not specified otherwise.
43156
43157 2009-08-11  Bruno Haible  <bruno@clisp.org>
43158
43159         Avoid compilation error on NetBSD 5.0.
43160         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43161         * tests/test-stdio.c: Likewise.
43162         * tests/test-stdlib.c: Likewise.
43163         * tests/test-string.c: Likewise.
43164         * tests/test-unistd.c: Likewise.
43165         Reported by Greg Troxel <gdt@ir.bbn.com>
43166         at <https://savannah.gnu.org/support/?106973>.
43167
43168 2009-08-11  Bruno Haible  <bruno@clisp.org>
43169
43170         * modules/dup2-tests (Depends-on): Remove close.
43171
43172         Undo 2009-07-19 commit.
43173         * modules/acl-tests (Depends-on): Remove close.
43174         * modules/binary-io-tests (Depends-on): Likewise.
43175         * modules/closein-tests (Depends-on): Likewise.
43176         * modules/flock-tests (Depends-on): Likewise.
43177         * modules/fsync-tests (Depends-on): Likewise.
43178         * modules/lseek-tests (Depends-on): Likewise.
43179         * modules/pipe-tests (Depends-on): Likewise.
43180         * modules/posix_spawn-tests (Depends-on): Likewise.
43181         * modules/posix_spawnp-tests (Depends-on): Likewise.
43182         * modules/stat-time-tests (Depends-on): Likewise.
43183         * modules/yesno-tests (Depends-on): Likewise.
43184
43185 2009-08-10  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43188
43189 2009-08-10  Bruno Haible  <bruno@clisp.org>
43190
43191         Fix a gcc warning.
43192         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43193
43194 2009-08-10  Bruno Haible  <bruno@clisp.org>
43195
43196         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43197         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43198         not only the first time.
43199         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43200         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43201         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43202         is 1, not only the the first time.
43203
43204 2009-08-10  Bruno Haible  <bruno@clisp.org>
43205
43206         Make it possible to use module 'gethostname' without module 'close'.
43207         * lib/unistd.in.h (close): Evoke a link error only if
43208         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43210         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43211         * modules/unistd (Makefile.am): Substitute
43212         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43213         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43214         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43215         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43216         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43217         * modules/sys_ioctl (Makefile.am): Substitute
43218         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43219         * modules/socket (configure.ac): On native Windows, set
43220         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43221         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43222         Reported by Sam Steingold <sds@gnu.org>.
43223
43224 2009-08-10  Bruno Haible  <bruno@clisp.org>
43225
43226         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43227         * modules/ioctl (configure.ac): Likewise.
43228
43229 2009-08-10  Bruno Haible  <bruno@clisp.org>
43230
43231         Avoid collision between gnulib wrapper and libintl wrapper.
43232         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43233         already defined in intl/printf.c.
43234         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43235         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43236
43237 2009-08-09  Bruno Haible  <bruno@clisp.org>
43238
43239         Make <sys/select.h> really self-contained, also on Solaris 10.
43240         * lib/sys_select.in.h: Include <string.h>.
43241         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43242         Solaris 10 problem.
43243         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43244         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43245         Reported by Jim Meyering.
43246
43247 2009-08-09  Bruno Haible  <bruno@clisp.org>
43248
43249         Avoid warnings from 'aclocal' that are due to a use of macro name
43250         AM_XGETTEXT_OPTION that is not defined in automake.
43251         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43252         automake.
43253         * modules/error (configure.ac): Likewise.
43254         * modules/propername (configure.ac): Likewise.
43255         * modules/vasprintf (configure.ac): Likewise.
43256         * modules/verror (configure.ac): Likewise.
43257         * modules/xprintf (configure.ac): Likewise.
43258         * modules/xvasprintf (configure.ac): Likewise.
43259
43260 2009-08-08  Bruno Haible  <bruno@clisp.org>
43261
43262         Avoid compilation error in C++ mode.
43263         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43264         Reported by Sam Steingold <sds@gnu.org>.
43265
43266 2009-08-08  Bruno Haible  <bruno@clisp.org>
43267
43268         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43269         for the various Unix platforms.
43270         * doc/posix-headers/limits.texi: Update platforms list regarding
43271         HOST_NAME_MAX.
43272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43273
43274 2009-08-07  Jim Meyering  <meyering@redhat.com>
43275
43276         selinux-at: fix typo in a comment
43277         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43278         Spotted by Paolo Bonzini.
43279
43280         selinux-at: remove redundant m4 code, add documentation
43281         * modules/selinux-at (configure.ac): Remove redundant code.
43282         LIB_SELINUX is already set via the dependent module, selinux-h.
43283         (Include): Add quotes around selinux-at.h.
43284         * lib/selinux-at.h: Add documentation.
43285         Reported by Bruno Haible in
43286         http://marc.info/?l=gnulib-bug&m=124958988300749
43287
43288 2009-08-07  Bruno Haible  <bruno@clisp.org>
43289
43290         Avoid link error on MacOS X 10.3 and 10.4.
43291         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43292         on non-ELF systems.
43293         * lib/argp-pv.c (argp_program_version): Likewise.
43294         Reported by Simon Josefsson.
43295
43296 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43297
43298         * tests/test-version-etc.sh: Use $EXEEXT.
43299
43300 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43301
43302         update-copyright: update documentation to point to maint.mk
43303         * build-aux/update-copyright: Here.
43304
43305 2009-08-06  Jim Meyering  <meyering@redhat.com>
43306
43307         maint.mk: support update-copyright-local
43308         * top/maint.mk (update-copyright-local): Define place-holder.
43309         (update-copyright): Depend on $(update-copyright-local).
43310
43311 2009-08-06  Jim Meyering  <meyering@redhat.com>
43312
43313         selinux-at: new module
43314         Initially written for coreutils, this module will soon be
43315         used by findutils, too.
43316         * MODULES.html.sh [Misc]: Add selinux-at.
43317         * lib/selinux-at.h: New file, from coreutils.
43318         * lib/selinux-at.c: Likewise.
43319         * modules/selinux-at: Likewise.
43320         (License): Change from LGPL to GPL, since it depends
43321         on the GPL'd openat module.
43322
43323         doc: update README
43324         * README: Remove references to cogito.
43325         Remove cvs-repo-updating instructions from 2007.
43326         Don't imply that CVS is better if you have limited disk space.
43327
43328 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43329
43330         update-copyright: support C-style comments
43331         * build-aux/update-copyright: Implement and document.
43332         * tests/test-update-copyright.sh: Test.
43333
43334 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43335
43336         update-copyright: support omitted "(C)"
43337         * build-aux/update-copyright: Implement and document.  Also,
43338         allow variable whitespace before "(C)".
43339         * tests/test-update-copyright.sh: Test.
43340
43341 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43342
43343         update-copyright: don't trip on non-FSF copyright statements
43344         * build-aux/update-copyright: Fix so that the first correctly
43345         formatted FSF copyright statement is recognized no matter what
43346         appears before it.  Update documentation.
43347         * tests/test-update-copyright.sh: Test that.
43348
43349 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43350
43351         update-copyright: clean up code a little
43352         * build-aux/update-copyright: Append "_re" to the name of any
43353         variable holding a regular expression.
43354         Replace "old" and "new" with "stmt" in variable names.
43355         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43356         handled correctly.
43357         Format code more consistently.
43358
43359 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43360
43361         update-copyright-tests: improve portability
43362         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43363         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43364
43365 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43366
43367         update-copyright: support @copyright{} and &copy;
43368         * build-aux/update-copyright: Implement and document.
43369         * tests/test-update-copyright.sh: Test.
43370
43371 2009-08-04  Jim Meyering  <meyering@redhat.com>
43372
43373         update-copyright-tests: correctly test EOL=\r\n handling
43374         * tests/test-update-copyright.sh: Put \r at the end of some lines
43375         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43376
43377         maint.mk: make update-copyright exclusion list more configurable
43378         * top/maint.mk (update-copyright): Default to excluding COPYING,
43379         but allow an override, in case someone does want to update that file.
43380
43381         maint.mk: don't update copyright date in COPYING
43382         * top/maint.mk (update-copyright): Exclude COPYING.
43383
43384         maint.mk: add a copyright-updating rule
43385         * top/maint.mk (update-copyright): New rule.
43386         Derived from coreutils/Makefile.am.
43387
43388         update-copyright: rename some variables
43389         * build-aux/update-copyright: Rename a few variables for clarity.
43390         Tweak syntax.  List Joel E. Denny as coauthor.
43391
43392 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43393
43394         update-copyright: fix bug for 2-digit last year and add tests
43395         * build-aux/update-copyright: Fix bug.
43396         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43397         specified.
43398         * modules/update-copyright-tests: New
43399         * tests/test-update-copyright.sh: New.
43400
43401 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43402
43403         update-copyright: handle leading tabs in line prefix
43404         * build-aux/update-copyright: Count leading tabs as 8 spaces
43405         when computing margin.  This helps with the formatting of
43406         ChangeLogs, for example.
43407         Fix documentation a little.
43408
43409 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43410
43411         update-copyright: support EOL=\r\n
43412         * build-aux/update-copyright: Implement that.
43413
43414 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43415
43416         update-copyright: automatically format copyright statements
43417         * build-aux/update-copyright: Implement that.
43418         Also, be a little more predictable and safer by always failing
43419         when the full copyright format is not perfectly recognized as an
43420         unbroken whole.  Discussed at
43421         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43422         Rewrite documentation.
43423
43424 2009-08-03  Bruno Haible  <bruno@clisp.org>
43425
43426         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43427
43428 2009-08-02  Bruno Haible  <bruno@clisp.org>
43429
43430         Tests for module 'uname'.
43431         * modules/uname-tests: New file.
43432         * tests/test-uname.c: New file.
43433
43434         New module 'uname'.
43435         * lib/uname.c: New file.
43436         * m4/uname.m4: New file.
43437         * modules/uname: New file.
43438         * doc/posix-functions/uname.texi: Mention the new module.
43439
43440 2009-08-02  Bruno Haible  <bruno@clisp.org>
43441
43442         Tests for module 'sys_utsname'.
43443         * modules/sys_utsname-tests: New file.
43444         * tests/test-sys_utsname.c: New file.
43445
43446         New module 'sys_utsname'.
43447         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43448         * m4/sys_utsname_h.m4: New file.
43449         * modules/sys_utsname: New file.
43450         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43451
43452 2009-08-02  Bruno Haible  <bruno@clisp.org>
43453
43454         Implicitly initialize the sockets library.
43455         * lib/gethostname.c: Include sockets.h.
43456         (rpl_gethostname): Invoke gl_sockets_startup.
43457         * lib/socket.c: Include sockets.h.
43458         (rpl_socket): Invoke gl_sockets_startup.
43459         * modules/gethostname (Depends-on): Add sockets.
43460         * modules/socket (Depends-on): Likewise.
43461         * tests/test-poll.c: Don't include sockets.h.
43462         (main): Don't invoke gl_sockets_startup.
43463         * tests/test-select.c: Don't include sockets.h.
43464         (main): Don't invoke gl_sockets_startup.
43465
43466 2009-08-02  Bruno Haible  <bruno@clisp.org>
43467
43468         Allow multiple calls to gl_sockets_startup.
43469         * lib/sockets.c (initialized_sockets_version): New variable.
43470         (gl_sockets_startup): Do nothing if already called for this or a higher
43471         version.
43472         (gl_sockets_cleanup): Reset initialized_sockets_version.
43473
43474 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43475
43476         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43477         different project/version.
43478
43479 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43480             Bruno Haible  <bruno@clisp.org>
43481
43482         Tests for module 'pipe-filter-gi'.
43483         * modules/pipe-filter-gi-tests: New file.
43484         * tests/test-pipe-filter-gi1.sh: New file.
43485         * tests/test-pipe-filter-gi1.c: New file.
43486         * tests/test-pipe-filter-gi2.sh: New file.
43487         * tests/test-pipe-filter-gi2-main.c: New file.
43488         * tests/test-pipe-filter-gi2-child.c: New file.
43489
43490         New module 'pipe-filter-gi'.
43491         * lib/pipe-filter-gi.c: New file.
43492         * modules/pipe-filter-gi: New file.
43493
43494 2009-08-02  Bruno Haible  <bruno@clisp.org>
43495             Paolo Bonzini  <bonzini@gnu.org>
43496
43497         Tests for module 'pipe-filter-ii'.
43498         * modules/pipe-filter-ii-tests: New file.
43499         * tests/test-pipe-filter-ii1.sh: New file.
43500         * tests/test-pipe-filter-ii1.c: New file.
43501         * tests/test-pipe-filter-ii2.sh: New file.
43502         * tests/test-pipe-filter-ii2-main.c: New file.
43503         * tests/test-pipe-filter-ii2-child.c: New file.
43504
43505         New module 'pipe-filter-ii'.
43506         * lib/pipe-filter.h: New file.
43507         * lib/pipe-filter-ii.c: New file.
43508         * lib/pipe-filter-aux.h: New file.
43509         * modules/pipe-filter-ii: New file.
43510
43511 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43512
43513         * lib/gc-libgcrypt.c: Change copyright to FSF.
43514         * lib/gc-gnulib.c: Likewise.
43515
43516 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43517
43518         * lib/gethostname.c: Include limits.h.
43519
43520 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43521             Bruno Haible  <bruno@clisp.org>
43522
43523         Ensure HOST_NAME_MAX as part of the gethostname module.
43524         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43525         define also HOST_NAME_MAX.
43526         * tests/test-gethostname.c: Include <limits.h>.
43527         (main): Check also HOST_NAME_MAX.
43528         * doc/posix-headers/limits.texi: Document the mingw problem.
43529
43530 2009-08-02  Bruno Haible  <bruno@clisp.org>
43531
43532         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43533         Add comments.
43534
43535 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43536
43537         * lib/gethostname.c: Add Windows wrapper.
43538         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43539         * modules/gethostname: Depend on sys_socket & errno, for also
43540         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43541         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43542
43543 2009-07-31  Jim Meyering  <meyering@redhat.com>
43544
43545         getloadavg: fix symbol name in comment
43546         * lib/getloadavg.c: Correct a typo I introduced when adding
43547         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43548         Matt Kraai spotted the problem.
43549
43550 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43551
43552         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43553         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43554         code also if ! defined N_NAME_POINTER.
43555         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43556         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43557         but the n_name member is a 12-byte array.
43558
43559 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43560
43561         update-copyright: generalize comment handling
43562         * build-aux/update-copyright: Handle copyright statements
43563         within more comment styles.
43564         Document usage.
43565         Report any file with an external copyright holder or parse failure.
43566
43567 2009-07-29  Jim Meyering  <meyering@redhat.com>
43568
43569         mktime: correct setting of REPLACE_MKTIME
43570         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43571
43572         update-copyright: new module
43573         * modules/update-copyright: New file.
43574         * build-aux/update-copyright: New file.
43575         * MODULES.html.sh (maint+release support): Add update-copyright.
43576
43577 2009-07-27  Bruno Haible  <bruno@clisp.org>
43578
43579         Fix compilation error when <ctime> is used and mktime is replaced.
43580         * lib/time.in.h (mktime): New declaration.
43581         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43582         REPLACE_MKTIME instead of defining mktime in config.h.
43583         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43584         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43585         Reported by Ross McFarland <rwmcfa1@neces.com>.
43586
43587 2009-07-27  Bruno Haible  <bruno@clisp.org>
43588
43589         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43590         Reported by Matt Kraai <mkraai@beckman.com>.
43591
43592 2009-07-25  Jim Meyering  <meyering@redhat.com>
43593
43594         maint.mk: avoid warnings about missing files
43595         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43596         diagnostic when .prev-version does not exist.
43597         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43598         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43599         nonexistent cfg.mk.
43600         Suggestions from Simon Josefsson.
43601
43602 2009-07-25  Bruno Haible  <bruno@clisp.org>
43603
43604         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43605         defined as macros. Needed on QNX 6.4.1.
43606         Reported by Matt Kraai <mkraai@beckman.com>.
43607
43608 2009-07-23  Jim Meyering  <meyering@redhat.com>
43609
43610         maint.mk: invoke "make dist" with a working value of XZ_OPT
43611         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43612
43613 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43614
43615         Make fseeko.c compile on QNX.
43616         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43617
43618 2009-07-22  Peter Simons  <simons@cryp.to>
43619
43620         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43621         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43622         * lib/md4.h: Likewise.
43623         * lib/md5.h: Likewise.
43624         * lib/sha1.h: Likewise.
43625         * lib/sha256.h: Likewise.
43626         * lib/sha512.h: Likewise.
43627
43628         tests-sha1: don't assign literal string to 'char *' variable
43629         * tests/test-sha1.c (main): Declare locals with "const" to match
43630         attributes of the right hand side.
43631
43632 2009-07-21  Eric Blake  <ebb9@byu.net>
43633
43634         dup2: fix more mingw problems
43635         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43636         fd to itself.
43637         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43638         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43639         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43640         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43641         care of mingw bugs.
43642
43643 2009-07-21  Jim Meyering  <meyering@redhat.com>
43644
43645         vc-list-files: avoid failure when /bin/sh is dash
43646         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43647         On some Debian based systems, /bin/sh is a symlink to dash, and running
43648         this command would omit the "/" following each 'tests' prefix:
43649           dash -x build-aux/vc-list-files -C . tests
43650         That is because bash and dash work differently:
43651           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43652           bash ok
43653           dash odd
43654
43655 2009-07-21  Eric Blake  <ebb9@byu.net>
43656
43657         dup2-tests: test previous patch
43658         * modules/dup2-tests: New file.
43659         * tests/test-dup2.c: Likewise.
43660         * tests/test-open.c (main): Avoid unspecified behavior.
43661         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43662         test.
43663
43664         dup2: work around mingw and cygwin 1.5 bug
43665         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43667         * modules/unistd (Makefile.am): Substitute it.
43668         * lib/unistd.in.h (dup2): Declare the replacement.
43669         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43670         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43671         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43672         * modules/execute (Depends-on): Add dup2.
43673         * modules/fseterr (Depends-on): Likewise.
43674         * modules/pipe (Depends-on): Likewise.
43675         * modules/posix_spawn-internal (Depends-on): Likewise.
43676
43677 2009-07-21  Bruno Haible  <bruno@clisp.org>
43678
43679         * modules/.gitattributes: New file.
43680
43681 2009-07-20  Bruno Haible  <bruno@clisp.org>
43682
43683         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43684         (main): Use it.
43685
43686 2009-07-20  Eric Blake  <ebb9@byu.net>
43687
43688         test-pipe: make a bit more robust.
43689         * tests/test-pipe.c (myerr): Allow error messages regardless of
43690         what we do to stderr.
43691         (test_pipe): Rearrange to avoid deadlock.
43692         (child_main): Try a larger read, to ensure we avoided deadlock.
43693         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43694         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43695         if misused.
43696
43697 2009-07-19  Jim Meyering  <meyering@redhat.com>
43698
43699         fts: avoid false-positive cycle-detection
43700         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43701         for each new command line argument.
43702
43703 2009-07-19  Bruno Haible  <bruno@clisp.org>
43704
43705         Fix build error on mingw with the modules sys_select and unistd.
43706         * modules/acl-tests (Depends-on): Add close.
43707         * modules/binary-io-tests (Depends-on): Likewise.
43708         * modules/closein-tests (Depends-on): Likewise.
43709         * modules/flock-tests (Depends-on): Likewise.
43710         * modules/fsync-tests (Depends-on): Likewise.
43711         * modules/lseek-tests (Depends-on): Likewise.
43712         * modules/pipe-tests (Depends-on): Likewise.
43713         * modules/posix_spawn-tests (Depends-on): Likewise.
43714         * modules/posix_spawnp-tests (Depends-on): Likewise.
43715         * modules/stat-time-tests (Depends-on): Likewise.
43716         * modules/yesno-tests (Depends-on): Likewise.
43717
43718 2009-07-19  Bruno Haible  <bruno@clisp.org>
43719
43720         Unify conditionals.
43721         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43722         macros, not at the compiler macros.
43723         * lib/pipe.c: Likewise.
43724         * lib/execute.c: Likewise.
43725         * lib/spawni.c: Likewise.
43726
43727 2009-07-19  Bruno Haible  <bruno@clisp.org>
43728
43729         Fix handling of closed stdin/stdout/stderr on mingw.
43730         * lib/w32spawn.h: Include unistd.h.
43731         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43732         file descriptor with O_NOINHERIT flag.
43733         (fd_safer_noinherit): New function, based on fd-safer.c.
43734         (dup_safer_noinherit): New function, based on dup-safer.c.
43735         (undup_safer_noinherit): New function.
43736         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43737         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43738         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43739         instead of fd_safer.
43740         * tests/test-pipe.c: Include <windows.h>.
43741         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43742         result.
43743
43744         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43745         from main.
43746         (test_pipe): Pass an extra argument for disambiguation.
43747         (main): Invoke parent_main or child_main.
43748
43749         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43750         consistently.
43751
43752 2009-07-18  Eric Blake  <ebb9@byu.net>
43753
43754         test-pipe: fix mingw build
43755         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43756
43757 2009-07-18  Bruno Haible  <bruno@clisp.org>
43758
43759         * modules/pipe-tests (Makefile.am): Fix typo.
43760
43761 2009-07-18  Eric Blake  <ebb9@byu.net>
43762
43763         error: fix mingw build
43764         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43765         Reported by Bruno Haible.
43766
43767         error: avoid undefined use of stdout
43768         * lib/error.c (error, error_at_line): Check that fd 1 is open
43769         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43770         is handling faults and the close_stdout module wants to report the
43771         detection of closed stdout as an error.
43772
43773 2009-07-17  Eric Blake  <ebb9@byu.net>
43774
43775         pipe: be robust in face of closed fds
43776         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43777         should cause child to misbehave.
43778         * modules/pipe-tests: New module.
43779         * tests/test-pipe.c: New file.
43780         * tests/test-pipe.sh: New file.
43781         Reported by Akim Demaille.
43782
43783 2009-07-14  Bruno Haible  <bruno@clisp.org>
43784
43785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43786         Reported by anonymous kc.
43787
43788 2009-07-07  Jim Meyering  <meyering@redhat.com>
43789
43790         maint.mk: don't look for translatable strings in *.m4 or *.mk
43791         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43792         when searching for translatable strings.
43793
43794 2009-07-05  Jim Meyering  <meyering@redhat.com>
43795
43796         remove superfluous parentheses in STREQ definition
43797         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43798         * lib/getugroups.c (STREQ): Likewise.
43799         * lib/fnmatch.c (STREQ): Likewise.
43800         Spotted by Bruno Haible.
43801
43802 2009-07-04  Jim Meyering  <meyering@redhat.com>
43803
43804         argv-iter: new module
43805         * MODULES.html.sh: Add argv-iter.
43806         * lib/argv-iter.c, lib/argv-iter.h: New files.
43807         * modules/argv-iter: New file.
43808         * modules/argv-iter-tests: New file.
43809         * tests/test-argv-iter.c: Test it.
43810
43811 2009-07-04  Bruno Haible  <bruno@clisp.org>
43812
43813         Fix assertion.
43814         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43815         contains more exact copies of a given entry than file2, leave the extra
43816         copies unpaired rather than aborting.
43817         Reported by Eric Blake.
43818
43819 2009-07-02  Bruno Haible  <bruno@clisp.org>
43820
43821         Speedup git-merge-changelog for git cherry-pick.
43822         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43823         (entries_mapping_get): New function, extracted from compute_mapping.
43824         (entries_mapping_reverse_get): New function.
43825         (compute_mapping): Add a 'full' argument. Return the result in a
43826         'struct entries_mapping'.
43827         (main): Update. Access the mappings through entries_mapping_get.
43828         Reported by Eric Blake.
43829
43830 2009-07-02  Bruno Haible  <bruno@clisp.org>
43831
43832         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43833         best_i.
43834
43835 2009-07-02  Bruno Haible  <bruno@clisp.org>
43836
43837         Speed up approximate search for matching ChangeLog entries.
43838         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43839         argument. Call fstrcmp_bounded instead of fstrcmp.
43840         (compute_mapping, try_split_merged_entry, main): Update callers.
43841
43842 2009-07-02  Bruno Haible  <bruno@clisp.org>
43843
43844         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43845
43846 2009-06-30  Bruno Haible  <bruno@clisp.org>
43847
43848         Reduce the number of uc_is_cased calls.
43849         * lib/unicase.h (casing_suffix_context_t): Add
43850         'first_char_except_ignorable' field.
43851         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43852         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43853         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43854         Update initializer.
43855         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43856         case-ignorable characters.
43857         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43858         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43859         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43860         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43861         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43862
43863 2009-06-30  Bruno Haible  <bruno@clisp.org>
43864
43865         Tests for module 'unicase/ignorable'.
43866         * modules/unicase/ignorable-tests: New file.
43867         * tests/unicase/test-ignorable.c: New file, generated by
43868         gen-uni-tables.
43869
43870         Tests for module 'unicase/cased'.
43871         * modules/unicase/cased-tests: New file.
43872         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43873         * tests/unicase/test-predicate-part1.h: New file, derived from
43874         tests/unictype/test-predicate-part1.h.
43875         * tests/unicase/test-predicate-part2.h: New file, same as
43876         tests/unictype/test-predicate-part2.h.
43877
43878         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43879         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43880         (output_casing_properties): New function.
43881         (main): Call it.
43882         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43883         * lib/unicase/cased.c: Include unictype/bitmap.h.
43884         (uc_is_cased): Define through a bitmap lookup.
43885         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43886         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43887         (uc_is_case_ignorable): Define through a bitmap lookup.
43888         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43889         lib/unictype/bitmap.h.
43890         (Depends-on): Add inline. Clean up.
43891         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43892         lib/unictype/bitmap.h.
43893         (Depends-on): Add inline. Clean up.
43894         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43895         recognition.
43896         * tests/unicase/test-u16-tolower.c (main): Likewise.
43897         * tests/unicase/test-u32-tolower.c (main): Likewise.
43898
43899 2009-06-30  Bruno Haible  <bruno@clisp.org>
43900
43901         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43902         * lib/unicase/u16-casemap.c: Likewise.
43903         * lib/unicase/u32-casemap.c: Likewise.
43904
43905 2009-06-29  Bruno Haible  <bruno@clisp.org>
43906
43907         Define u32_casefold as a wrapper around u32_ct_casefold.
43908         * lib/unicase/u32-casefold.c: Update.
43909         * modules/unicase/u32-casefold (Depends-on): Add
43910         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43911         unicase/empty-suffix-context. Clean up.
43912
43913         Define u16_casefold as a wrapper around u16_ct_casefold.
43914         * lib/unicase/u16-casefold.c: Update.
43915         * modules/unicase/u16-casefold (Depends-on): Add
43916         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43917         unicase/empty-suffix-context. Clean up.
43918
43919         Define u8_casefold as a wrapper around u8_ct_casefold.
43920         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43921         * lib/unicase/u8-casefold.c: Update.
43922         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43923         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43924
43925         Define u32_totitle as a wrapper around u32_ct_totitle.
43926         * lib/unicase/u32-totitle.c: Update.
43927         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43928         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43929
43930         Define u16_totitle as a wrapper around u16_ct_totitle.
43931         * lib/unicase/u16-totitle.c: Update.
43932         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43933         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43934
43935         Define u8_totitle as a wrapper around u8_ct_totitle.
43936         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43937         functions.
43938         (FUNC): Delegate to U_CT_TOTITLE.
43939         * lib/unicase/u8-totitle.c: Update.
43940         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43941         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43942
43943         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43944         invocation.
43945         * modules/unicase/u32-tolower (Depends-on): Add
43946         unicase/empty-prefix-context, unicase/empty-suffix-context.
43947
43948         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43949         invocation.
43950         * modules/unicase/u16-tolower (Depends-on): Add
43951         unicase/empty-prefix-context, unicase/empty-suffix-context.
43952
43953         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43954         * modules/unicase/u8-tolower (Depends-on): Add
43955         unicase/empty-prefix-context, unicase/empty-suffix-context.
43956
43957         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43958         invocation.
43959         * modules/unicase/u32-toupper (Depends-on): Add
43960         unicase/empty-prefix-context, unicase/empty-suffix-context.
43961
43962         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43963         invocation.
43964         * modules/unicase/u16-toupper (Depends-on): Add
43965         unicase/empty-prefix-context, unicase/empty-suffix-context.
43966
43967         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43968         * modules/unicase/u8-toupper (Depends-on): Add
43969         unicase/empty-prefix-context, unicase/empty-suffix-context.
43970
43971         New module 'unicase/u32-ct-casefold'.
43972         * lib/unicase/u32-ct-casefold.c: New file.
43973         * modules/unicase/u32-ct-casefold: New file.
43974
43975         New module 'unicase/u16-ct-casefold'.
43976         * lib/unicase/u16-ct-casefold.c: New file.
43977         * modules/unicase/u16-ct-casefold: New file.
43978
43979         New module 'unicase/u8-ct-casefold'.
43980         * lib/unicase/u8-ct-casefold.c: New file.
43981         * lib/unicase/u-ct-casefold.h: New file, derived from
43982         lib/unicase/u-casefold.h.
43983         * modules/unicase/u8-ct-casefold: New file.
43984
43985         New module 'unicase/u32-ct-totitle'.
43986         * lib/unicase/u32-ct-totitle.c: New file.
43987         * modules/unicase/u32-ct-totitle: New file.
43988
43989         New module 'unicase/u16-ct-totitle'.
43990         * lib/unicase/u16-ct-totitle.c: New file.
43991         * modules/unicase/u16-ct-totitle: New file.
43992
43993         New module 'unicase/u8-ct-totitle'.
43994         * lib/unicase/u8-ct-totitle.c: New file.
43995         * lib/unicase/u-ct-totitle.h: New file, derived from
43996         lib/unicase/u-totitle.h.
43997         * modules/unicase/u8-ct-totitle: New file.
43998
43999         New module 'unicase/u32-ct-tolower'.
44000         * lib/unicase/u32-ct-tolower.c: New file.
44001         * modules/unicase/u32-ct-tolower: New file.
44002
44003         New module 'unicase/u16-ct-tolower'.
44004         * lib/unicase/u16-ct-tolower.c: New file.
44005         * modules/unicase/u16-ct-tolower: New file.
44006
44007         New module 'unicase/u8-ct-tolower'.
44008         * lib/unicase/u8-ct-tolower.c: New file.
44009         * modules/unicase/u8-ct-tolower: New file.
44010
44011         New module 'unicase/u32-ct-toupper'.
44012         * lib/unicase/u32-ct-toupper.c: New file.
44013         * modules/unicase/u32-ct-toupper: New file.
44014
44015         New module 'unicase/u16-ct-toupper'.
44016         * lib/unicase/u16-ct-toupper.c: New file.
44017         * modules/unicase/u16-ct-toupper: New file.
44018
44019         New module 'unicase/u8-ct-toupper'.
44020         * lib/unicase/u8-ct-toupper.c: New file.
44021         * modules/unicase/u8-ct-toupper: New file.
44022
44023         Add context arguments to u*_casemap functions.
44024         * lib/unicase/unicasemap.h: Include unicase.h.
44025         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44026         suffix_context arguments.
44027         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44028         functions.
44029         (FUNC): Add prefix_context and suffix_context arguments. Use
44030         uc_is_cased and uc_is_case_ignorable.
44031         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44032         * lib/unicase/u16-casemap.c: Likewise.
44033         * lib/unicase/u32-casemap.c: Likewise.
44034         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44035         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44036         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44037         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44038         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44039         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44040
44041         New module 'unicase/u32-suffix-context'.
44042         * lib/unicase/u32-suffix-context.c: New file.
44043         * modules/unicase/u32-suffix-context: New file.
44044
44045         New module 'unicase/u16-suffix-context'.
44046         * lib/unicase/u16-suffix-context.c: New file.
44047         * modules/unicase/u16-suffix-context: New file.
44048
44049         New module 'unicase/u8-suffix-context'.
44050         * lib/unicase/u8-suffix-context.c: New file.
44051         * lib/unicase/u-suffix-context.h: New file.
44052         * modules/unicase/u8-suffix-context: New file.
44053
44054         New module 'unicase/empty-suffix-context'.
44055         * lib/unicase/empty-suffix-context.c: New file.
44056         * modules/unicase/empty-suffix-context: New file.
44057
44058         New module 'unicase/u32-prefix-context'.
44059         * lib/unicase/u32-prefix-context.c: New file.
44060         * modules/unicase/u32-prefix-context: New file.
44061
44062         New module 'unicase/u16-prefix-context'.
44063         * lib/unicase/u16-prefix-context.c: New file.
44064         * modules/unicase/u16-prefix-context: New file.
44065
44066         New module 'unicase/u8-prefix-context'.
44067         * lib/unicase/u8-prefix-context.c: New file.
44068         * lib/unicase/u-prefix-context.h: New file.
44069         * lib/unicase/context.h: New file.
44070         * modules/unicase/u8-prefix-context: New file.
44071
44072         New module 'unicase/empty-prefix-context'.
44073         * lib/unicase/empty-prefix-context.c: New file.
44074         * modules/unicase/empty-prefix-context: New file.
44075
44076         New module 'unicase/ignorable'.
44077         * lib/unicase/ignorable.c: New file.
44078         * modules/unicase/ignorable: New file.
44079
44080         New module 'unicase/cased'.
44081         * lib/unicase/caseprop.h: New file.
44082         * lib/unicase/cased.c: New file.
44083         * modules/unicase/cased: New file.
44084
44085         New functions for case mapping of substrings.
44086         * lib/unicase.h (casing_prefix_context_t): New type.
44087         (unicase_empty_prefix_context): New variable.
44088         (u8_casing_prefix_context, u16_casing_prefix_context,
44089         u32_casing_prefix_context, u8_casing_prefixes_context,
44090         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44091         declarations.
44092         (casing_suffix_context_t): New type.
44093         (unicase_empty_suffix_context): New variable.
44094         (u8_casing_suffix_context, u16_casing_suffix_context,
44095         u32_casing_suffix_context, u8_casing_suffixes_context,
44096         u16_casing_suffixes_context, u32_casing_suffixes_context,
44097         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44098         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44099         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44100         declarations.
44101
44102 2009-06-28  Jim Meyering  <meyering@redhat.com>
44103
44104         boostrap: indent only with spaces
44105         * build-aux/bootstrap: Indent only with spaces, never TABs.
44106
44107         bootstrap: split long lines
44108         * build-aux/bootstrap: Keep line length < 80.
44109
44110         bootstrap: sync from coreutils
44111         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44112         just as autoreconf does.  Verify a list of prerequisite
44113         package-name,version-number pairs if defined in bootstrap.conf.
44114         Refer to README-prereq, if prerequisites are not satisfied.
44115
44116 2009-06-27  Eric Blake  <ebb9@byu.net>
44117
44118         tests: add test for bogus NULL definition
44119         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44120         * tests/test-stdlib.c: Likewise.
44121         * tests/test-string.c: Likewise.
44122         * tests/test-locale.c: Likewise.
44123         * tests/test-unistd.c: Likewise.
44124         * modules/stdio-tests (Depends-on): Add verify.
44125         * modules/stdlib-tests (Depends-on): Likewise.
44126         * modules/string-tests (Depends-on): Likewise.
44127         * modules/locale-tests (Depends-on): Likewise.
44128         * modules/unistd-tests (Depends-on): Likewise.
44129
44130 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44131
44132         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44133         self-explaining comment.
44134         * m4/selinux-selinux-h: Update serial.
44135         (gl_LIBSELINUX): New macro, adding a warning for missing development
44136         packages to code extracted from...
44137         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44138         Add warning for missing development packages here, too.
44139
44140 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44141
44142         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44143
44144 2009-06-25  Eric Blake  <ebb9@byu.net>
44145
44146         version-etc: fix regression
44147         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44148         gcc.
44149         (version_etc): Use it, to catch bugs with trailing NULL.
44150         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44151         (version_etc_va): Fix logic bug.
44152         * modules/version-etc-tests: Add test.
44153         * tests/test-version-etc.c: New file.
44154         * tests/test-version-etc.sh: Likewise.
44155
44156 2009-06-25  Sam Steingold  <sds@gnu.org>
44157
44158         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44159         mbtowc declaration.
44160
44161 2009-06-25  Eric Blake  <ebb9@byu.net>
44162
44163         fpurge: migrate into <stdio.h>
44164         * lib/fpurge.h: Delete...
44165         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44166         * lib/fpurge.c (fpurge): Change declaring header.
44167         * modules/fpurge (Files): Drop deleted file.
44168         (Depends-on): Add stdio.
44169         (configure.ac): Set witness.
44170         * modules/stdio (Makefile.am): Support fpurge macros.
44171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44172         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44173         * lib/fflush.c: Update client.
44174         * tests/test-fpurge.c: Likewise.
44175         * NEWS: Mention the change.
44176
44177 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44178
44179         * lib/argp-version-etc.c (program_authors): Add const
44180         qualifier.
44181         * lib/version-etc.c: Fix typos in the comments.
44182         * modules/argp-version-etc: Depends on version-etc.
44183
44184 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44185
44186         argp-version-etc: new module.
44187
44188         * lib/argp-version-etc.c: New file.
44189         * lib/argp-version-etc.h: New file.
44190         * modules/argp-version-etc: New file.
44191         * modules/argp-version-etc-tests: New file.
44192         * tests/test-argp-version-etc.c: New test.
44193         * tests/test-argp-version-etc-1.sh: New test.
44194
44195 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44196
44197         Provide additional interfaces and documentation for version-etc
44198         module.
44199
44200         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44201         interfaces.
44202         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44203         prototypes.
44204
44205 2009-06-24  Bruno Haible  <bruno@clisp.org>
44206
44207         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44208         HAVE_LIB${NAME} macro.
44209         Reported by Sam Steingold <sds@gnu.org>.
44210
44211 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44212
44213         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44214         needed.
44215
44216 2009-06-21  Bruno Haible  <bruno@clisp.org>
44217
44218         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44219         work.
44220         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44221         together with LIB${NAME}, LTLIB${NAME}.
44222         Reported by Sam Steingold <sds@gnu.org>.
44223
44224 2009-06-20  Jim Meyering  <meyering@redhat.com>
44225
44226         tests: make sc_require_test_exit_idiom more generic
44227         * top/maint.mk (Exit_witness_file): New overridable variable.
44228         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44229         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44230
44231 2009-06-19  Jim Meyering  <meyering@redhat.com>
44232
44233         hash: reverse order of src/dst parameters in an internal interface
44234         * lib/hash.c (transfer_entries): Reverse order of parameters to
44235         put DST before SRC.  Adjust callers.
44236
44237         tests: test-hash: avoid wholesale duplication
44238         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44239         Instead, use a loop and add a single conditional.
44240
44241         tests: test-hash: allow seed selection via a command line argument
44242         * tests/test-hash.c (get_seed): New function.
44243         (main): Use it.
44244
44245 2009-06-19  Eric Blake  <ebb9@byu.net>
44246
44247         hash: avoid memory leak on allocation failure
44248         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44249         failure.  Factor repeated algorithm...
44250         (transfer_entries): ...into new helper routine.
44251         (hash_delete): React to hash_rehash return value.
44252
44253         hash: reduce memory pressure in hash_rehash no-op case
44254         * lib/hash.c (next_prime): Avoid overflow.
44255         (hash_initialize): Factor bucket size computation...
44256         (compute_bucket_size): ...into new helper function.
44257         (hash_rehash): Use new function and open coding to reduce memory
44258         pressure, and avoid a memory leak in USE_OBSTACK code.
44259         Reported by Jim Meyering.
44260
44261 2009-06-18  Eric Blake  <ebb9@byu.net>
44262
44263         hash: make rotation more obvious
44264         * modules/hash (Depends-on): Add bitrotate and stdint.
44265         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44266         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44267         (SIZE_MAX): Rely on headers for definition.
44268         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44269         (raw_hasher): Use rotr_sz.
44270         Suggested by Jim Meyering.
44271
44272         hash: fix memory leak in last patch
44273         * lib/hash.c (hash_rehash): Avoid memory leak.
44274
44275         hash: avoid no-op rehashing
44276         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44277
44278         hash: provide default callback functions
44279         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44280         (hash_initialize): Use them as defaults.
44281         * tests/test-hash.c (main): Test this.
44282
44283         hash: minor optimization
44284         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44285         when possible.
44286         (hash_initialize): Document this promise.
44287         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44288         * tests/test-hash.c (hash_compare_strings): Test this.
44289
44290 2009-06-18  Bruno Haible  <bruno@clisp.org>
44291
44292         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44293         going to be replaced anyway.
44294
44295 2009-06-18  Bruno Haible  <bruno@clisp.org>
44296
44297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44298         in one place.
44299         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44300         be replaced anyway.
44301
44302 2009-06-18  Eric Blake  <ebb9@byu.net>
44303
44304         hash: check for resize before insertion
44305         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44306         threshold before insertion, so that a pathological hash_rehash
44307         that fills every bucket can still trigger another rehash.
44308
44309 2009-06-18  Jim Meyering  <meyering@redhat.com>
44310
44311         hash-tests: add a loop around the small tests
44312         * tests/test-hash.c (main): Repeat small tests with selected
44313         small initial table sizes.
44314
44315 2009-06-17  Eric Blake  <ebb9@byu.net>
44316
44317         hash: minor cleanups
44318         * lib/hash.h (hash_entry): Make opaque, by moving...
44319         * lib/hash.c (hash_entry): ...here.
44320         (hash_insert): Clarify restrictions on what can be inserted.
44321         (hash_get_next): Clarify when it is safe to remove an element
44322         during traversal.
44323         (check_tuning): Skip verification when tuning is known safe.
44324         (hash_initialize): Clarify restrictions on tuning.
44325
44326 2009-06-17  Jim Meyering  <jim@meyering.net>
44327         and Eric Blake  <ebb9@byu.net>
44328
44329         hash-tests: new module
44330         * modules/hash-tests: New file.
44331         * tests/test-hash.c: New file.
44332
44333 2009-06-17  Eric Blake  <ebb9@byu.net>
44334
44335         strstr-simple: document new module
44336         * MODULES.html.sh: Document new module.
44337
44338         strstr, strcasestr: replace on platforms with broken memchr
44339         * modules/strstr: Split into...
44340         * modules/strstr-simple: ...new module that does not care about
44341         performance, but does care about glibc bug.
44342         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44343         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44344         if platform memchr is broken, per Debian bug 521737.
44345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44346         memchr.
44347         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44348         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44349         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44350         * modules/mountlist (Depends-on): Add strstr-simple.
44351         * modules/gen-uni-tables (Depends-on): Likewise.
44352         * modules/argz (Depends-on): Add strstr.
44353
44354 2009-06-17  Bruno Haible  <bruno@clisp.org>
44355
44356         * modules/posix_spawn-internal (Depends-on): Add errno.
44357
44358 2009-06-17  Bruno Haible  <bruno@clisp.org>
44359
44360         Define missing ESTALE on Interix 3.5.
44361         * lib/errno.in.h (ESTALE): Assign a value if missing.
44362         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44363         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44364         missing.
44365         * doc/posix-headers/errno.texi: Mention the Interix bug.
44366         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44367
44368 2009-06-15  Eric Blake  <ebb9@byu.net>
44369
44370         memchr, memchr2: add valgrind exception
44371         * lib/memchr.valgrind: New file.
44372         * lib/memchr2.valgrind: New file.
44373         * modules/memchr (Files): Distribute valgrind file.
44374         * modules/memchr2 (Files): Likewise.
44375
44376         docs: memchr is no longer obsolete
44377         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44378         * lib/string.in.h (memchr): Simplify logic.
44379
44380 2009-06-14  Jim Meyering  <meyering@redhat.com>
44381
44382         link-follow: fix the "checking..." message to not mention trailing slash
44383         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44384         never considered trailing slashes.
44385
44386 2009-06-14  Bruno Haible  <bruno@clisp.org>
44387
44388         * m4/memchr.m4: Mention also the bug on IA-64.
44389         * doc/posix-functions/memchr.texi: Likewise.
44390
44391 2009-06-12  Eric Blake  <ebb9@byu.net>
44392
44393         memchr: detect broken x86_64 and alpha implementations
44394         * modules/memchr-tests (Depends-on): Move mmap detection...
44395         * modules/memchr (Depends-on): ...here.
44396         (configure.ac): Set indicator.
44397         * lib/string.in.h (memchr): Declare replacement.
44398         * modules/string (Makefile.am): Trigger replacement.
44399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44400         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44401         bugs.
44402         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44403         * modules/getpagesize (License): Relax license.
44404
44405 2009-06-11  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/idpriv.h: Add more references.
44408
44409 2009-06-08  Bruno Haible  <bruno@clisp.org>
44410
44411         Tests for module 'idpriv-droptemp'.
44412         * modules/idpriv-droptemp-tests: New file.
44413         * tests/test-idpriv-droptemp.sh: New file.
44414         * tests/test-idpriv-droptemp.su.sh: New file.
44415         * tests/test-idpriv-droptemp.c: New file.
44416
44417         New module 'idpriv-droptemp'.
44418         * lib/idpriv-droptemp.c: New file.
44419         * modules/idpriv-droptemp: New file.
44420
44421 2009-06-08  Bruno Haible  <bruno@clisp.org>
44422
44423         Tests for module 'idpriv-drop'.
44424         * modules/idpriv-drop-tests: New file.
44425         * tests/test-idpriv-drop.sh: New file.
44426         * tests/test-idpriv-drop.su.sh: New file.
44427         * tests/test-idpriv-drop.c: New file.
44428
44429         New module 'idpriv-drop'.
44430         * lib/idpriv.h: New file.
44431         * lib-idpriv-drop.c: New file.
44432         * m4/idpriv.m4: New file.
44433         * modules/idpriv-drop: New file.
44434
44435 2009-06-08  Bruno Haible  <bruno@clisp.org>
44436
44437         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44438         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44439         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44440         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44441         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44442         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44443         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44444
44445 2009-06-08  Eric Blake  <ebb9@byu.net>
44446
44447         test-strstr: use memory fence, when possible
44448         * tests/test-strstr.c (main): Use memory fence, in order to be
44449         more likely to trigger Debian bug 521737.
44450         * modules/strstr-tests (Files): Pull in additional files.
44451
44452         memchr: no longer obsolete, for wider field testing
44453         * modules/memchr (Status, Notice): Delete, this module is no
44454         longer obsolete.
44455         * modules/vasnprintf (Depends-on): Add memchr.
44456
44457 2009-06-07  Jim Meyering  <meyering@redhat.com>
44458
44459         hash: declare some functions with the warn_unused_result attribute
44460         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44461
44462 2009-06-07  Bruno Haible  <bruno@clisp.org>
44463
44464         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44465         Reported by Eric Blake.
44466
44467 2009-06-06  Eric Blake  <ebb9@byu.net>
44468
44469         test-alignof: fix typo with long double
44470         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44471         compiler error.
44472
44473 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44474
44475         Escape non-texinfo { and }s.
44476         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44477         markup error.
44478
44479 2009-06-04  Jim Meyering  <meyering@redhat.com>
44480
44481         gitlog-to-changelog: don't infloop on an empty commit log
44482         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44483         Reported by Boris Petersen <transacid@centerim.org>.
44484
44485 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44486
44487         version-etc: extend for packagers
44488         Add three new configure options, intended for packagers:
44489           --with-packager="packager name"
44490           --with-packager-version="packager-specific version"
44491           --with-packager-bug-reports="packager bug reporting"
44492         An example with coreutils:
44493           $ ./configure \
44494             --with-packager=Gentoo \
44495             --with-packager-bug-report=http://bugs.gentoo.org/ \
44496             --with-packager-version="patchset 1.6"
44497           $ ./src/ls --version | head -n2
44498           ls (GNU coreutils) 7.1-dirty
44499           Packaged by Gentoo (patchset 1.6)
44500         Note that the bug reporting info via --help doesn't show up because
44501         coreutils uses its own custom emit_bug_reporting_address() implementation
44502         in src/system.h.  If it didn't, it'd look like:
44503           $ ./src/ls --help | tail -n4
44504           Report bugs to <bug-coreutils@gnu.org>.
44505           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44506           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44507           General help using GNU software: <http://www.gnu.org/gethelp/>.
44508         * lib/version-etc.c: Print new information, if provided.
44509         * m4/version-etc.m4: New file.
44510         * modules/version-etc (Files): Add m4/version-etc.m4.
44511         (configure.ac): Add gl_VERSION_ETC.
44512
44513 2009-05-31  Bruno Haible  <bruno@clisp.org>
44514
44515         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44516         and 'int64_t'.
44517         * modules/alignof-tests (Dependencies): Add stdint.
44518         Reported by Eric Blake.
44519
44520 2009-05-31  Bruno Haible  <bruno@clisp.org>
44521
44522         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44523         restriction due to compiler bugs.
44524         Reported by Eric Blake.
44525
44526 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44527             Bruno Haible  <bruno@clisp.org>
44528
44529         Fix test-alignof failure.
44530         * lib/alignof.h (alignof_slot): New macro.
44531         (alignof_type): New macro, with the same semantics as the previous
44532         'alignof'.
44533         (alignof): Alias to alignof_slot.
44534         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44535         check that the results are usable as constant expressions.
44536
44537 2009-05-31  Bruno Haible  <bruno@clisp.org>
44538
44539         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44540         * tests/test-memchr.c (main): Check that memchr does not read past the
44541         first occurrence of the byte.
44542         * tests/test-strstr.c (main): Update comment.
44543         Suggested by Eric Blake.
44544
44545 2009-05-30  Bruno Haible  <bruno@clisp.org>
44546
44547         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44548         detail how to use dumpbin.
44549         Reported by David Byron <dbyron@dbyron.com>.
44550
44551 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44552
44553         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44554
44555 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44556
44557         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44558
44559 2009-05-28  Bruno Haible  <bruno@clisp.org>
44560
44561         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44562         build-aux/ files.
44563
44564 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44565
44566         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44567
44568 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44569
44570         * gnulib-tool (sed_transform_main_lib_file)
44571         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44572         regexps.
44573
44574 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44575
44576         * tests/test-strstr.c: Add another self-test.
44577         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44578         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44579
44580 2009-05-23  Bruno Haible  <bruno@clisp.org>
44581
44582         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44583         change.
44584
44585 2009-05-21  Bruno Haible  <bruno@clisp.org>
44586
44587         Simplify use of mode_t varargs.
44588         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44589         uses 'mode_t' or 'int'.
44590         * lib/openat.c (openat): Likewise.
44591         * lib/open-safer.c (open_safer): Likewise.
44592         * m4/mode_t.m4: New file.
44593         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44594         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44596         * modules/open (Files): Add m4/mode_t.m4.
44597         * modules/openat (Files): Likewise.
44598         * modules/fcntl-safer (Files): Likewise.
44599         Suggested by Eric Blake.
44600
44601 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44602
44603         * doc/glibc-functions/fallocate.texi: New file.
44604         * doc/gnulib.texi: Include it.
44605
44606 2009-05-21  Eric Blake  <ebb9@byu.net>
44607             Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44610         invocations.
44611         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44612
44613 2009-05-21  Eric Blake  <ebb9@byu.net>
44614             Bruno Haible  <bruno@clisp.org>
44615
44616         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44617         include_next. Fix of 2008-11-20 commit.
44618         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44619         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44620         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44621         NEXT_MATH_H.
44622         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44623         instead of NEXT_MATH_H.
44624
44625 2009-05-21  Bruno Haible  <bruno@clisp.org>
44626
44627         Avoid redefinition warnings for SIZE_MAX.
44628         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44629         Reported by Simon Josefsson.
44630
44631 2009-05-21  Bruno Haible  <bruno@clisp.org>
44632
44633         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44634         AC_CACHE_VAL.
44635
44636 2009-05-20  Bruno Haible  <bruno@clisp.org>
44637
44638         Make zeroptr.h work on mingw.
44639         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44640         mprotect.
44641         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44642         * modules/memchr2-tests (configure.ac): Likewise.
44643         * modules/memcmp-tests (configure.ac): Likewise.
44644         * modules/memmem-tests (configure.ac): Likewise.
44645         * modules/memrchr-tests (configure.ac): Likewise.
44646         Reported by Simon Josefsson.
44647
44648 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44649
44650         * tests/test-glob.c: Include string.h for strcmp prototype.
44651
44652 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44653
44654         * modules/getdelim (Depends-on): Add explicit stdint, although it
44655         was implicitly already pulled in via realloc-posix.
44656         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44657
44658 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44659
44660         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44661         G. Christensen" <tgc@jupiterrise.com>.
44662         * m4/sys_socket_h.m4: Check for sa_family_t.
44663         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44664         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44665         * tests/test-sys_socket.c: Check that sa_family_t works.
44666
44667 2009-05-18  Eric Blake  <ebb9@byu.net>
44668
44669         maint.mk: allow gnulib_dir in VPATH build
44670         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44671
44672 2009-05-15  Jim Meyering  <meyering@redhat.com>
44673
44674         maint.mk: Give gnulib_dir a default definition.
44675         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44676         Thus, most packages no longer need to specify this variable in cfg.mk
44677
44678 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44679
44680         rename.m4: fix typos that would make non-mingw cross-configure fail
44681         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44682
44683 2009-05-13  Eric Blake  <ebb9@byu.net>
44684
44685         mmap-anon: avoid out-of-order autoconf expansion
44686         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44687         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44688         * modules/memchr-tests (Depends-on): Add extensions.
44689         * modules/memchr2-tests (Depends-on): Add extensions.
44690         * modules/memcmp-tests (Depends-on): Add extensions.
44691         * modules/memmem-tests (Depends-on): Add extensions.
44692         * modules/memrchr-tests (Depends-on): Add extensions.
44693
44694 2009-05-13  Bruno Haible  <bruno@clisp.org>
44695
44696         Make some tests ISO C 99 compliant.
44697         * tests/zerosize-ptr.h: New file.
44698         * tests/test-memchr.c: Include zerosize-ptr.h.
44699         (main): Use a zero-size object pointer instead of NULL.
44700         * tests/test-memchr2.c: Include zerosize-ptr.h.
44701         (main): Use a zero-size object pointer instead of NULL.
44702         * tests/test-memcmp.c: Include zerosize-ptr.h.
44703         (main): Use a zero-size object pointer instead of NULL.
44704         * tests/test-memmem.c: Include zerosize-ptr.h.
44705         (main): Use a zero-size object pointer instead of NULL.
44706         * tests/test-memrchr.c: Include zerosize-ptr.h.
44707         (main): Use a zero-size object pointer instead of NULL.
44708         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44709         m4/mmap-anon.m4.
44710         (Depends-on): Add getpagesize.
44711         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44712         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44713         m4/mmap-anon.m4.
44714         (Depends-on): Add getpagesize.
44715         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44716         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44717         m4/mmap-anon.m4.
44718         (Depends-on): Add getpagesize.
44719         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44720         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44721         m4/mmap-anon.m4.
44722         (Depends-on): Add getpagesize.
44723         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44724         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44725         m4/mmap-anon.m4.
44726         (Depends-on): Add getpagesize.
44727         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44728
44729 2009-05-12  Bruno Haible  <bruno@clisp.org>
44730
44731         Tests for module 'alignof'.
44732         * modules/alignof-tests: New file.
44733         * tests/test-alignof.c: New file.
44734
44735 2009-05-12  Bruno Haible  <bruno@clisp.org>
44736
44737         Fix alignof macro.
44738         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44739         vendor compilers that are always correct.
44740
44741 2009-05-12  Bruno Haible  <bruno@clisp.org>
44742
44743         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44744         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44745         not whether its fully works.
44746
44747 2009-05-12  Bruno Haible  <bruno@clisp.org>
44748
44749         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44750
44751 2009-05-12  Jim Meyering  <meyering@redhat.com>
44752
44753         * top/maint.mk: Adjust backslash alignment.
44754
44755 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44756
44757         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44758
44759 2009-05-11  Eric Blake  <ebb9@byu.net>
44760
44761         argp: avoid undefined behavior
44762         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44763         macros.
44764
44765 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44766
44767         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44768         user.name to prevent git commit from complaining.
44769
44770 2009-05-10  Bruno Haible  <bruno@clisp.org>
44771
44772         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44773         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44774         it rewrites every file name only once.
44775         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44776
44777 2009-05-08  Bruno Haible  <bruno@clisp.org>
44778
44779         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44780         instead of 'max'.
44781
44782 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44783
44784         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44785         sockaddr_storage test.
44786
44787 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44788
44789         * modules/sys_socket (Makefile.am): Substitute
44790         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44791         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44792         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44793         * tests/test-sys_socket.c: Check sockaddr_storage.
44794
44795 2009-05-08  Bruno Haible  <bruno@clisp.org>
44796
44797         New module 'alignof'.
44798         * lib/alignof.h: New file.
44799         * modules/alignof: New file.
44800
44801 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44802             Bruno Haible  <bruno@clisp.org>
44803
44804         Fix test-file-has-acl on FreeBSD.
44805         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44806         mask is implicitly added.
44807         * tests/test-file-has-acl.c: Include <signal.h>.
44808         (main): Terminate the test after 5 seconds.
44809         * modules/acl-tests (configure.ac): Check for alarm function.
44810
44811 2009-05-04  Bruno Haible  <bruno@clisp.org>
44812
44813         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44814         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44815         * modules/errno (configure.ac): Drop AC_REQUIRE.
44816         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44817         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44818
44819 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44820
44821         * modules/glob-tests: New module.
44822         * tests/test-glob.c: Add.
44823
44824 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44825
44826         * modules/fnmatch-tests: New module.
44827         * tests/test-fnmatch.c: Add.
44828
44829 2009-05-04  Eric Blake  <ebb9@byu.net>
44830
44831         maint: make the new no-submodule-changes rule VPATH-safe
44832         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44833
44834 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44835             Bruno Haible  <bruno@clisp.org>
44836
44837         acl: Fix infinite loop on FreeBSD.
44838         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44839         of return value from acl_get_entry.
44840         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44841         Likewise.
44842
44843 2009-05-03  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/acl-internal.h (acl_entries): Clarify return value.
44846         * lib/acl_entries.c (acl_entries): Likewise.
44847
44848 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44849
44850         Bug fix in acl module.
44851         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44852
44853 2009-05-03  Bruno Haible  <bruno@clisp.org>
44854
44855         Create gperf-generated file in the source dir, not in the build dir.
44856         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44857         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44858         * modules/unicase/locale-language (unicase/locale-languages.h):
44859         Likewise.
44860         * modules/unicase/special-casing (unicase/special-casing-table.h):
44861         Likewise.
44862         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44863         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44864         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44865         Reported by Ralf Wildenhues.
44866
44867 2009-05-03  Bruno Haible  <bruno@clisp.org>
44868
44869         * modules/fnmatch (Description, configure.ac): Taken from
44870         fnmatch-posix.
44871         * modules/fnmatch-posix: Turn into a symbolic reference to the
44872         'fnmatch' module, and deprecate.
44873         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44874
44875 2009-05-03  Bruno Haible  <bruno@clisp.org>
44876
44877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44878         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44879         Reported by Ralf Wildenhues.
44880
44881 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44882
44883         * m4/fnmatch.m4: Fix fnmatch re-define.
44884
44885 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44886
44887         priv-set: new module and tests; adapt write-any-file
44888         * lib/priv-set.c: New file.
44889         * lib/priv-set.h: New file.
44890         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44891         * lib/write-any-file.c: Simplify by using priv-set module.
44892         * m4/priv-set.m4: New file.
44893         * modules/priv-set: New file.
44894         * modules/unlinkdir: Add dependency on priv-set module.
44895         * modules/write-any-file: Likewise.
44896
44897         Tests for module 'priv-set'.
44898         * modules/priv-set-tests: New file.
44899         * tests/test-priv-set.c: New file.
44900
44901 2009-05-03  Jim Meyering  <meyering@redhat.com>
44902             Bruno Haible  <bruno@clisp.org>
44903
44904         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44905         use the converted UTF-8 variant of the name instead.
44906
44907 2009-05-03  Jim Meyering  <meyering@redhat.com>
44908
44909         tests: tighten some getdate tests
44910         * tests/test-getdate.c (main): Tighten tests: require equality,
44911         not just greater than.  Set TZ envvar to UTC0.
44912
44913 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44914
44915         getdate: correctly interpret "next monday" when run on a Monday
44916         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44917         that e.g., "next tues" (when run on a tuesday) results in a date
44918         that is one week in the future, and not today's date.
44919         I.e., add a week when the wday is the same as the current one.
44920         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44921         and earlier by Martin Bernreuther and Jan Minář.
44922         * tests/test-getdate.c (main): Check that "next DAY" is always in
44923         the future and that "last DAY" is always in the past.
44924
44925 2009-05-02  Jim Meyering  <meyering@redhat.com>
44926
44927         build: ensure that a release build fails when a submodule is unclean
44928         * top/maint.mk (no-submodule-changes): New rule.
44929         (alpha beta major): Depend on it.
44930
44931 2009-05-02  Bruno Haible  <bruno@clisp.org>
44932
44933         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44934         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44935         shell variable gl_fnmatch_required to detect which variant is
44936         requested.
44937         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44938         gl_FUNC_FNMATCH_POSIX.
44939         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44940         exclude fnmatch-posix.
44941
44942 2009-05-02  Bruno Haible  <bruno@clisp.org>
44943
44944         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44945         * modules/mbsrtowcs (License): Change to LGPLv2+.
44946         * modules/strnlen1 (License): Likewise.
44947         Reported by Simon Josefsson.
44948
44949 2009-05-02  Bruno Haible  <bruno@clisp.org>
44950
44951         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44952         "cross".
44953         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44954         gnulib-tool was called with option --source-base=lib.
44955
44956 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44957
44958         Use automake *-local hooks without commands, for extensibility.
44959         * modules/localcharset (Makefile.am): Rename install-exec-local
44960         rule to install-exec-localcharset, and make it a prerequisite of
44961         install-exec-local.  Likewise, rename the uninstall-local rule to
44962         uninstall-localcharset, and make it a prerequisite of the former.
44963
44964 2009-05-01  Bruno Haible  <bruno@clisp.org>
44965
44966         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44967         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44968         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44970         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44971         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44972         m4/locale-zh.m4, m4/codeset.m4.
44973
44974         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44975         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44976         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44977         m4/locale-zh.m4.
44978
44979         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44980         REPLACE_WCRTOMB if mbstate_t must be replaced.
44981         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44982         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44983
44984 2009-05-01  Bruno Haible  <bruno@clisp.org>
44985
44986         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44987         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44988         dngettext, dcngettext, textdomain, bindtextdomain,
44989         bind_textdomain_codeset): Undefine before redefining.
44990
44991 2009-04-30  Bruno Haible  <bruno@clisp.org>
44992
44993         Fix bug introduced on 2009-04-25.
44994         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44995         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44996         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44997         is defined.
44998         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44999         is defined.
45000         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45001         is defined.
45002         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45003
45004 2009-04-28  Bruno Haible  <bruno@clisp.org>
45005
45006         Comment tweaks.
45007         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45008         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45009         * lib/unicase.h (u*_casexfrm): Likewise.
45010         Reported by Paolo Bonzini.
45011
45012 2009-04-28  Bruno Haible  <bruno@clisp.org>
45013
45014         Fix a compilation error.
45015         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45016         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45017         Reported by Jim Meyering.
45018
45019 2009-04-27  Bruno Haible  <bruno@clisp.org>
45020
45021         New module 'libunistring'.
45022         * modules/libunistring: New file.
45023         * m4/libunistring.m4: New file.
45024         * MODULES.html.sh (Unicode string functions): Add it.
45025
45026 2009-04-27  Eric Blake  <ebb9@byu.net>
45027
45028         maint.mk: allow package-specific header to provide <config.h>
45029         * top/maint.mk (sc_require_config_h): New variable.
45030         (sc_require_config_h, sc_require_config_h_first): Use it.
45031
45032 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45033
45034         * top/maint.mk (sc_avoid_if_before_free): Except
45035         useless-if-before-free script.
45036
45037 2009-04-27  Eric Blake  <ebb9@byu.net>
45038
45039         maintainer-makefile: depend on all required helper scripts
45040         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45041         useless-if-before-free.
45042         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45043         version, rather than assuming gnulib checkout is available.
45044         Reported by Simen Josefsson.
45045
45046 2009-04-26  Bruno Haible  <bruno@clisp.org>
45047
45048         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45049         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45050         "../" or "..".
45051
45052 2009-04-26  Bruno Haible  <bruno@clisp.org>
45053
45054         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45055         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45056         AC_LIB_HAVE_LINKFLAGS.
45057
45058 2009-04-26  Bruno Haible  <bruno@clisp.org>
45059
45060         Simplify calling convention of u*_conv_from_encoding.
45061         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45062         u32_conv_from_encoding): Expect a resultbuf argument and return the
45063         result directly as a pointer.
45064         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45065         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45066         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45067         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45068         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45069         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45070         Update.
45071         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45072         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45073         * lib/vasnprintf.c (VASNPRINTF): Update.
45074         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45075         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45076         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45077         * NEWS: Mention the change.
45078
45079 2009-04-26  Bruno Haible  <bruno@clisp.org>
45080
45081         Simplify calling convention of u*_conv_to_encoding.
45082         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45083         u32_conv_to_encoding): Expect a resultbuf argument and return the
45084         result directly as a pointer.
45085         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45086         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45087         freeing scaled_offsets if mem_iconveha failed.
45088         * lib/unicase/u-casexfrm.h (FUNC): Update.
45089         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45090         * lib/vasnprintf.c (VASNPRINTF): Update.
45091         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45092         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45093         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45094         * NEWS: Mention the change.
45095
45096 2009-04-26  Bruno Haible  <bruno@clisp.org>
45097
45098         Avoid test failures on AIX and OSF/1.
45099         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45100         malloc(0).
45101         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45102         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45103         Likewise.
45104         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45105         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45106         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45107         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45108         * doc/posix-functions/malloc.texi: Document the portability problem
45109         related to malloc(0).
45110
45111 2009-04-26  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45114         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45115         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45116
45117 2009-04-25  Bruno Haible  <bruno@clisp.org>
45118
45119         Avoid link error when creating a namespace clean library.
45120         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45121         as macro with arguments if already defined as an alias.
45122         * lib/signbitf.c (gl_signbitf): Don't undefine.
45123         * lib/signbitd.c (gl_signbitd): Don't undefine.
45124         * lib/signbitl.c (gl_signbitl): Don't undefine.
45125
45126 2009-04-25  Jim Meyering  <meyering@redhat.com>
45127
45128         vc-list-files: fix another quoting bug
45129         * build-aux/vc-list-files: Avoid sed backslash expansion
45130         of pathological directory names.
45131
45132 2009-04-25  Eric Blake  <ebb9@byu.net>
45133
45134         vc-list-files: fix shell quoting error
45135         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45136         timestamp.
45137
45138 2009-04-25  Jim Meyering  <meyering@redhat.com>
45139
45140         vc-list-files: restore lost functionality with subdir argument
45141         * build-aux/vc-list-files: When given a non-"." sub-directory
45142         argument, substitute the $dir/ prefix back onto each resulting name.
45143         Otherwise, coreutils' root_tests check would fail.
45144
45145 2009-04-24  Eric Blake  <ebb9@byu.net>
45146
45147         vc-list-files: ignore git symlinks
45148         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45149         than ls-files, to ignore git symlinks.
45150
45151         maint.mk: import improvements from m4
45152         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45153         (move_if_change): Delete unused macro.
45154         (news-date-check, vc-diff-check): Support VPATH builds.
45155         (announcement): Likewise.  Split --bootstrap-tools list...
45156         (boostrap-tools): ...into separate list, which can be overridden
45157         in cfg.mk.
45158         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45159         requiring dependency on useless-if-before-free module.
45160         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45161         Support VPATH builds.
45162
45163 2009-04-24  Jim Meyering  <meyering@redhat.com>
45164
45165         maint.mk: remove coreutils-specific rules and variables
45166         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45167         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45168         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45169
45170         maint.mk: remove obsolete rule
45171         * top/maint.mk (rel-check): Remove rule.
45172         (WGET, WGETFLAGS): Remove now-unused variables.
45173
45174 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45175
45176         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45177         consistency.
45178
45179         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45180         '$(PATH_SEPARATOR)' instead of ':'.
45181
45182 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45183
45184         * lib/getopt1.c (main): Use 'const' for static array.
45185
45186 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45187
45188         * top/maint.mk: Sync with coreutils.
45189         * NEWS: Explain incompatibilities.
45190
45191 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45192             Bruno Haible  <bruno@clisp.org>
45193
45194         Fix cross-compilation results.
45195         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45196         statement, as third argument of AC_TRY_RUN.
45197         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45198         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45199         Likewise.
45200         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45201         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45202         Likewise.
45203         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45205         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45206
45207 2009-04-20  Bruno Haible  <bruno@clisp.org>
45208
45209         Avoid test failure on mingw.
45210         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45211
45212 2009-04-20  Bruno Haible  <bruno@clisp.org>
45213
45214         Avoid compilation error on mingw.
45215         * modules/localename-tests (Depends-on): Add locale.
45216
45217 2009-04-19  Bruno Haible  <bruno@clisp.org>
45218
45219         Support for building a shared library on Windows platforms.
45220         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45221         (main): Test the presence of UNINORM_NFC here.
45222         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45223         (main): Test the presence of UNINORM_NFD here.
45224         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45225         (main): Test the presence of UNINORM_NFKC here.
45226         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45227         (main): Test the presence of UNINORM_NFKD here.
45228
45229 2009-04-19  Bruno Haible  <bruno@clisp.org>
45230
45231         Avoid a compiler warning.
45232         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45233         Change type of variable 'sequence'.
45234
45235 2009-04-19  Bruno Haible  <bruno@clisp.org>
45236
45237         * modules/configmake (Makefile.am): When the contents of configmake.h
45238         does not change, arrange to preserve its modification time.
45239
45240 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45241
45242         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45243         gettext domain.
45244
45245 2009-04-16  Jim Meyering  <meyering@redhat.com>
45246
45247         useless-if-before-free: improve conversion code
45248         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45249         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45250
45251 2009-04-14  Bruno Haible  <bruno@clisp.org>
45252
45253         * modules/fcntl (Depends-on): Add extensions.
45254         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45255
45256 2009-04-12  Ben Pfaff  <blp@gnu.org>
45257
45258         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45259         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45260
45261 2009-03-20  Ben Pfaff  <blp@gnu.org>
45262
45263         Make rename replace existing destinations on Windows.
45264         * m4/rename.m4: Add test for Mingw.
45265         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45266         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45267         * doc/posix-functions/rename.texi: Document.
45268
45269 2009-04-10  Bruno Haible  <bruno@clisp.org>
45270
45271         New include file "iconveh.h".
45272         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45273         * lib/striconveh.h: Include it.
45274         (enum iconv_ilseq_handler): Remove definition.
45275         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45276         striconveh.h.
45277         * lib/striconveha.c: Include striconveh.h.
45278         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45279         * modules/striconveh (Files): Add lib/iconveh.h.
45280         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45281         lib/striconveh.h.
45282
45283 2009-04-10  Bruno Haible  <bruno@clisp.org>
45284
45285         * lib/uniconv.h: Update comment.
45286
45287 2009-04-10  Bruno Haible  <bruno@clisp.org>
45288
45289         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45290         always.
45291         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45292         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45293         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45294         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45295         "unistring-notinline.h", so that the function gets defined always.
45296         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45297         * lib/unistr/u8-uctomb.c: Likewise.
45298         * lib/unistr/u16-mbtouc.c: Likewise.
45299         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45300         * lib/unistr/u16-uctomb.c: Likewise.
45301         * lib/unistr/u32-mbtouc.c: Likewise.
45302         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45303         * lib/unistr/u32-uctomb.c: Likewise.
45304
45305 2009-04-10  Bruno Haible  <bruno@clisp.org>
45306
45307         Mark 'utime' obsolete.
45308         * modules/utime (Status, Notice): New sections.
45309         Suggested by Jim Meyering.
45310
45311         Fix cross-compile guess for utime test.
45312         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45313         autoconf.
45314         * doc/posix-functions/utime.texi: Give more precisions.
45315         Reported by Jan <ipif@ymail.com>.
45316
45317 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45318
45319         filevercmp: correct today's change
45320         * lib/filevercmp.c: Also handle coreutils' test inputs.
45321         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45322
45323         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45324         for reporting it.
45325         * lib/filevercmp.c: Special handle for "", "." and "..".
45326         * tests/test-filevercmp.c: Enlarge the set suite.
45327
45328 2009-04-07  Jim Meyering  <meyering@redhat.com>
45329
45330         useless-if-before-free: show how to remove braced useless free, too
45331         * build-aux/useless-if-before-free: still only in a comment, though.
45332
45333 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45334
45335         maint.mk: import changes to syntax-check macros from coreutils
45336         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45337         Use them in the relevant macros.
45338
45339 2009-04-06  Bruno Haible  <bruno@clisp.org>
45340
45341         Fix unportable use of bit-fields.
45342         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45343         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45344         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45345
45346 2009-04-06  Bruno Haible  <bruno@clisp.org>
45347
45348         Avoid test failures on AIX and OSF/1.
45349         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45350         that malloc(0) = NULL.
45351         * tests/unicase/test-u8-tolower.c (check): Likewise.
45352         * tests/unicase/test-u8-totitle.c (check): Likewise.
45353         * tests/unicase/test-u8-toupper.c (check): Likewise.
45354         * tests/unicase/test-u16-casefold.c (check): Likewise.
45355         * tests/unicase/test-u16-tolower.c (check): Likewise.
45356         * tests/unicase/test-u16-totitle.c (check): Likewise.
45357         * tests/unicase/test-u16-toupper.c (check): Likewise.
45358         * tests/unicase/test-u32-casefold.c (check): Likewise.
45359         * tests/unicase/test-u32-tolower.c (check): Likewise.
45360         * tests/unicase/test-u32-totitle.c (check): Likewise.
45361         * tests/unicase/test-u32-toupper.c (check): Likewise.
45362         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45363         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45364         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45365         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45366         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45367         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45368         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45369         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45370         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45371         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45372         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45373         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45374
45375 2009-04-05  Bruno Haible  <bruno@clisp.org>
45376
45377         Work around an autoconf limitation.
45378         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45379         comment line if it would be longer than 3 KB.
45380
45381 2009-04-05  Bruno Haible  <bruno@clisp.org>
45382
45383         Avoid test failure with libiconv-1.13.
45384         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45385         of the expected test results.
45386
45387 2009-04-05  Bruno Haible  <bruno@clisp.org>
45388
45389         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45390         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45391         that it should be installed.
45392
45393 2009-04-05  Bruno Haible  <bruno@clisp.org>
45394
45395         * gnulib-tool: New option --copy-file.
45396         (func_usage): Document it.
45397         (func_dest_tmpfilename): Moved out of func_import.
45398         (func_add_file, func_update_file): New functions, extracted from
45399         func_import.
45400         (func_import): Update.
45401
45402 2009-04-05  Karl Berry  <karl@gnu.org>
45403
45404         * README: prominently mention gnulib-tool.
45405         Rearrange sections so getting the code is near the top.
45406
45407 2009-04-05  Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/unicase.h: Mention u*_cmp2.
45410         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45411         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45412         * lib/unicase/ulc-casecmp.c: Likewise.
45413         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45414         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45415         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45416         unistr/u8-cmp.
45417         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45418         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45419         unistr/u16-cmp.
45420         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45421         unistr/u32-cmp.
45422
45423         * lib/uninorm.h: Mention u*_cmp2.
45424         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45425         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45426         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45427         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45428         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45429         unistr/u8-cmp.
45430         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45431         unistr/u16-cmp.
45432         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45433         unistr/u32-cmp.
45434
45435         New module 'unistr/u32-cmp2'.
45436         * lib/unistr/u32-cmp2.c: New file.
45437         * modules/unistr/u32-cmp2: New file.
45438
45439         New module 'unistr/u16-cmp2'.
45440         * lib/unistr/u16-cmp2.c: New file.
45441         * modules/unistr/u16-cmp2: New file.
45442
45443         New module 'unistr/u8-cmp2'.
45444         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45445         * lib/unistr/u8-cmp2.c: New file.
45446         * lib/unistr/u-cmp2.h: New file.
45447         * modules/unistr/u8-cmp2: New file.
45448
45449 2009-04-05  Bruno Haible  <bruno@clisp.org>
45450
45451         * lib/unictype.h (uc_property_is_valid): New macro.
45452         * tests/unictype/test-pr_byname.c (main): Use it.
45453
45454         * lib/unistr.h: Doc fixes.
45455         * lib/uniconv.h: Doc fixes.
45456         * lib/unictype.h: Doc fixes.
45457
45458 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45459
45460         Port coreutils 7.2 to Solaris 8.
45461
45462         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45463         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45464         for Solaris 8.  This is a bit of a hack, as it means it's the
45465         caller's responsibility to add -lnsl if needed, but most likely it
45466         won't be needed since only getaddrinfo uses this and getaddrinfo
45467         isn't needed on Solaris 8.
45468
45469         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45470         problem to Solaris 8 encountered with coreutils 7.2, which
45471         resulted in a message "fnmatch.c:292: warning: passing argument 4
45472         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45473         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45474
45475 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45476
45477         * m4/ld-version-script.m4: Add FIXME comment.
45478
45479 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45480
45481         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45482         SOVERSION variable.
45483
45484 2009-04-02  Bruno Haible  <bruno@clisp.org>
45485
45486         * Makefile (info, html, dvi, pdf): Combine the rules.
45487         Suggested by Jim Meyering.
45488
45489 2009-04-01  Bruno Haible  <bruno@clisp.org>
45490
45491         * Makefile (info, html, dvi, pdf): New targets.
45492         Reported by Reuben Thomas <rrt@sc3d.org>.
45493
45494 2009-04-01  Bruno Haible  <bruno@clisp.org>
45495
45496         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45497         can be put into PATH.
45498         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45499
45500 2009-04-01  Bruno Haible  <bruno@clisp.org>
45501
45502         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45503
45504 2009-04-01  Bruno Haible  <bruno@clisp.org>
45505
45506         Rename module 'visibility'.
45507         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45508         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45509         * doc/gnulib.texi: Update.
45510         * MODULES.html.sh (Misc): Update.
45511         * NEWS: Mention the change.
45512
45513 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45514
45515         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45516         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45517         Eric Blake <ebb9@byu.net> for review.
45518         * MODULES.html.sh: Add lib-msvc-compat.
45519         * doc/gnulib.texi: Link to new section.
45520         * m4/ld-output-def.m4: New file.
45521         * doc/ld-output-def.texi: New file.
45522
45523 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45524
45525         Rename ld-version-script to lib-symbol-versions.  Suggested by
45526         Bruno Haible <bruno@clisp.org>.
45527         * modules/ld-version-script: Renamed to lib-symbol-versions.
45528         * doc/ld-version-script.texi: Fix module name.
45529         * MODULES.html.sh: Add lib-symbol-versions.
45530
45531 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45532
45533         * modules/u64-tests: New file.
45534         * tests/test-u64.c: New file.
45535
45536 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45537
45538         * MODULES.html.sh: Mention u64.
45539         * modules/u64: New module.
45540         * modules/crypto/sha512: Depend on u64 module instead of providing
45541         u64.h.
45542
45543 2009-03-27  Eric Blake  <ebb9@byu.net>
45544
45545         test-strerror: make debugging EAI_SYSTEM easier
45546         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45547         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45548         failure was EAI_SYSTEM.
45549
45550 2009-03-25  Bruno Haible  <bruno@clisp.org>
45551
45552         Fix a problem with --enable-relocatable on Solaris 7.
45553         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45554         since 2008-02-24.
45555
45556 2009-03-25  Eric Blake  <ebb9@byu.net>
45557
45558         test-sockets: avoid gcc warning
45559         * tests/test-sockets.c (main): Silence compiler warning.
45560
45561 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45562
45563         New modules nproc, pthread, contributed by Glen Lenker.
45564
45565         * MODULES.html.sh: Add pthread, nproc.
45566         * lib/nproc.c: New file.
45567         * lib/nproc.h: New file.
45568         * lib/pthread.in.h: New file.
45569         * m4/pthread.m4: New file.
45570         * modules/nproc: New file.
45571         * modules/pthread: New file.
45572
45573 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45574
45575         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45576         New variable.
45577
45578 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45579
45580         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45581         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45582         * tests/test-filevercmp.c: Add tests for backup suffixes.
45583
45584 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45585
45586         * modules/stdlib (Depends-on): Add stdint, needed when defining
45587         struct random_data on, for example, HP-UX 10.20.  Reported by
45588         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45589
45590 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45591
45592         * lib/readline.c (readline): Call fflush on stdout after printing
45593         prompt.
45594
45595 2009-03-20  Bruno Haible  <bruno@clisp.org>
45596
45597         Remove dependency from 'close' module to -lws2_32 on native Windows.
45598         * lib/close-hook.h: New file.
45599         * lib/close-hook.c: New file.
45600         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45601         w32sock.h.
45602         (_gl_close_fd_maybe_socket): Remove function.
45603         (rpl_close): Invoke execute_all_close_hooks instead of
45604         _gl_close_fd_maybe_socket.
45605         * lib/sockets.c: Include close-hook.h, w32sock.h.
45606         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45607         (close_sockets_hook): New variable.
45608         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45609         (gl_sockets_cleanup): Unregister it.
45610         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45611         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45612         * modules/close-hook: New file.
45613         * modules/close (Files): Remove lib/w32sock.h.
45614         (Depends-on): Add close-hook.
45615         (Link): Remove section.
45616         * modules/sockets (Files): Add lib/w32sock.h.
45617         (Depends-on): Add close-hook.
45618         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45619         invocation.
45620         * NEWS: Mention that LIB_CLOSE is gone.
45621
45622 2009-03-23  Eric Blake  <ebb9@byu.net>
45623
45624         signal-tests: test previous patch
45625         * tests/test-signal.c: New file.
45626         * modules/signal-tests: Likewise.
45627
45628         signal.h: always support 'volatile sig_atomic_t'
45629         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45630         (gl_SIGNAL_H_DEFAULTS): Add a default.
45631         * modules/signal (Makefile.am): Substitute if needed.
45632         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45633         users can blindly add volatile.
45634         * doc/posix-headers/signal.texi (signal.h): Document it.
45635         Reported by Matthew Woehlke.
45636
45637 2009-03-23  Jim Meyering  <meyering@redhat.com>
45638
45639         pathmax: PATH_MAX: use pathconf only when available
45640         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45641         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45642         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45643         This avoids a link failure in a PSP cross-compilation environment
45644         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45645
45646         * lib/vasnprintf.c (divide): Fix typo in comment.
45647
45648 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45649
45650         * gnulib-tool (func_filter_filelist): Fix comment.
45651
45652 2009-03-20  Bruno Haible  <bruno@clisp.org>
45653
45654         Make sockets.h self-contained.
45655         * lib/sockets.c: Include sockets.h first.
45656         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45657
45658 2009-03-19  Eric Blake  <ebb9@byu.net>
45659
45660         doc: mention more functions added in cygwin 1.7.0
45661         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45662         addition.
45663         * doc/posix-functions/log2f.texi: Likewise.
45664
45665 2009-03-19  Jim Meyering  <meyering@redhat.com>
45666
45667         fsusage: avoid syntax error due to statement-before-declaration
45668         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45669         after all declarations.  Reported by Matthew Woehlke in
45670         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45671
45672 2009-03-18  Eric Blake  <ebb9@byu.net>
45673
45674         build-aux/compile: sync from automake
45675         * build-aux/compile: New file, from automake.
45676         * config/srclist.txt: Mention build-aux/compile.
45677
45678 2009-03-17  Bruno Haible  <bruno@clisp.org>
45679
45680         * lib/git-merge-changelog.c: Fix typo in comment.
45681         Reported by Reuben Thomas <rrt@sc3d.org>.
45682
45683 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45684
45685         * m4/regex.m4: update and improve help for
45686         --without-included-regex.
45687
45688 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45689
45690         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45691         failure on missing include files.
45692
45693 2009-03-17  Eric Blake  <ebb9@byu.net>
45694
45695         doc: mention more functions added in cygwin 1.7.0
45696         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45697         addition.
45698         * doc/posix-functions/fwscanf.texi: Likewise.
45699         * doc/posix-functions/swprintf.texi: Likewise.
45700         * doc/posix-functions/swscanf.texi: Likewise.
45701         * doc/posix-functions/vfwprintf.texi: Likewise.
45702         * doc/posix-functions/vfwscanf.texi: Likewise.
45703         * doc/posix-functions/vswprintf.texi: Likewise.
45704         * doc/posix-functions/vswscanf.texi: Likewise.
45705         * doc/posix-functions/vwprintf.texi: Likewise.
45706         * doc/posix-functions/vwscanf.texi: Likewise.
45707         * doc/posix-functions/wcscasecmp.texi: Likewise.
45708         * doc/posix-functions/wcsdup.texi: Likewise.
45709         * doc/posix-functions/wcsftime.texi: Likewise.
45710         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45711         * doc/posix-functions/wprintf.texi: Likewise.
45712         * doc/posix-functions/wscanf.texi: Likewise.
45713         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45714
45715 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45716
45717         maint.mk: really add $(AM_MAKEFLAGS)
45718         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45719         was inadvertently omitted in the last commit.
45720         Spotted by Bruno Haible.
45721
45722         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45723         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45724         $(AM_MAKEFLAGS)' rather than plain `make'.
45725
45726         gnulib-tool: execute $MAKE not make
45727         * gnulib-tool: Default $MAKE to 'make'.
45728         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45729         than make.  Initialize $MAKE in the do-autobuild script.
45730
45731         gnulib-tool: use $MAKE not make in generated files
45732         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45733         make, in generated files.  Initialize $MAKE in the do-autobuild
45734         script.
45735
45736         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45737
45738         GNUmakefile: disable parallelism only for multiple, recursive targets
45739         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45740         additions in the Makefile.
45741         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45742         by Automake.
45743         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45744         are listed on the command line and at least one of them is
45745         listed in $(ALL_RECURSIVE_TARGETS).
45746
45747 2009-03-14  Bruno Haible  <bruno@clisp.org>
45748
45749         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45750         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45751         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45752         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45753         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45754         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45755         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45756         unistr/u8-uctomb.
45757         * modules/unistr/u8-strchr (Depends-on): Likewise.
45758         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45759         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45760         unistr/u16-uctomb.
45761         * modules/unistr/u16-strchr (Depends-on): Likewise.
45762         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45763
45764 2009-03-12  Bruno Haible  <bruno@clisp.org>
45765
45766         Work around select() bug on Interix 3.5.
45767         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45768         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45769         * m4/select.m4: New file.
45770         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45771         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45772         * modules/select (Files): Add m4/select.m4.
45773         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45774         * modules/nanosleep (Depends-on): Add select.
45775         * modules/poll (Depends-on): Likewise.
45776         * doc/posix-functions/select.texi: Mention the Interix bug.
45777         Reported by Markus Duft <mduft@gentoo.org>.
45778
45779         * lib/select.c: Renamed from lib/winsock-select.c.
45780         * modules/select (Files): Add lib/select.c, remove
45781         lib/winsock-select.c.
45782         (configure.ac): Update.
45783
45784 2009-03-12  Jim Meyering  <meyering@redhat.com>
45785
45786         avoid gcc warnings about unused macro definitions
45787         * lib/readtokens.c (STREQ): Remove unused definition.
45788         * lib/xmalloc.c (SIZE_MAX): Likewise.
45789         * lib/openat-die.c (N_): Likewise.
45790         * lib/mountlist.c (SIZE_MAX): Remove definition.
45791         Instead, include <stdint.h>.
45792         * lib/readutmp.c: Likewise.
45793         * modules/readutmp (Depends-on): Add stdint.
45794         * modules/mountlist (Depends-on): Add stdint.
45795         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45796
45797 2009-03-10  Bruno Haible  <bruno@clisp.org>
45798
45799         Tests for module 'mbmemcasecoll'.
45800         * modules/mbmemcasecoll-tests: New file.
45801         * tests/test-mbmemcasecoll1.sh: New file.
45802         * tests/test-mbmemcasecoll2.sh: New file.
45803         * tests/test-mbmemcasecoll3.sh: New file.
45804         * tests/test-mbmemcasecoll.c: New file.
45805
45806         New module 'mbmemcasecoll'.
45807         * lib/mbmemcasecoll.h: New file.
45808         * lib/mbmemcasecoll.c: New file.
45809         * modules/mbmemcasecoll: New file.
45810
45811         * tests/test-mbmemcasecmp.h: New file, extracted from
45812         tests/test-mbmemcasecmp.c.
45813         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45814         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45815         (main): Update.
45816         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45817
45818 2009-03-09  Bruno Haible  <bruno@clisp.org>
45819
45820         Tests for module 'mbmemcasecmp'.
45821         * modules/mbmemcasecmp-tests: New file.
45822         * tests/test-mbmemcasecmp1.sh: New file.
45823         * tests/test-mbmemcasecmp2.sh: New file.
45824         * tests/test-mbmemcasecmp3.sh: New file.
45825         * tests/test-mbmemcasecmp.c: New file.
45826
45827         New module 'mbmemcasecmp'.
45828         * lib/mbmemcasecmp.h: New file.
45829         * lib/mbmemcasecmp.c: New file.
45830         * modules/mbmemcasecmp: New file.
45831
45832 2009-03-09  Bruno Haible  <bruno@clisp.org>
45833
45834         Tests for module 'unicase/ulc-casecoll'.
45835         * modules/unicase/ulc-casecoll-tests: New file.
45836         * tests/unicase/test-ulc-casecoll1.sh: New file.
45837         * tests/unicase/test-ulc-casecoll2.sh: New file.
45838         * tests/unicase/test-ulc-casecoll.c: New file.
45839
45840         New module 'unicase/ulc-casecoll'.
45841         * lib/unicase.h (ulc_casecoll): New declaration.
45842         * lib/unicase/ulc-casecoll.c: New file.
45843         * modules/unicase/ulc-casecoll: New file.
45844
45845         New module 'unicase/ulc-casexfrm'.
45846         * lib/unicase.h (ulc_casexfrm): New declaration.
45847         * lib/unicase/ulc-casexfrm.c: New file.
45848         * modules/unicase/ulc-casexfrm: New file.
45849
45850 2009-03-09  Bruno Haible  <bruno@clisp.org>
45851
45852         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45853         invocations.
45854
45855         * m4/mbscasecmp.m4: Remove file.
45856         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45857         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45858
45859         * m4/mbscasestr.m4: Remove file.
45860         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45861         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45862
45863         * m4/mbschr.m4: Remove file.
45864         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45865         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45866
45867         * m4/mbscspn.m4: Remove file.
45868         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45869         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45870
45871         * m4/mbslen.m4: Remove file.
45872         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45873         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45874
45875         * m4/mbsncasecmp.m4: Remove file.
45876         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45877         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45878
45879         * m4/mbsnlen.m4: Remove file.
45880         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45881         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45882
45883         * m4/mbspbrk.m4: Remove file.
45884         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45885         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45886
45887         * m4/mbspcasecmp.m4: Remove file.
45888         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45889         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45890
45891         * m4/mbsrchr.m4: Remove file.
45892         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45893         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45894
45895         * m4/mbssep.m4: Remove file.
45896         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45897         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45898
45899         * m4/mbsspn.m4: Remove file.
45900         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45901         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45902
45903         * m4/mbsstr.m4: Remove file.
45904         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45905         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45906
45907         * m4/mbstok_r.m4: Remove file.
45908         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45909         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45910
45911         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45912
45913         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45914         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45915
45916         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45917
45918 2009-03-08  Bruno Haible  <bruno@clisp.org>
45919
45920         Tests for module 'unicase/ulc-casecmp'.
45921         * modules/unicase/ulc-casecmp-tests: New file.
45922         * tests/unicase/test-ulc-casecmp1.sh: New file.
45923         * tests/unicase/test-ulc-casecmp2.sh: New file.
45924         * tests/unicase/test-ulc-casecmp.c: New file.
45925
45926         New module 'unicase/ulc-casecmp'.
45927         * lib/unicase.h (ulc_casecmp): New declaration.
45928         * lib/unicase/ulc-casecmp.c: New file.
45929         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45930         'const SRC_UNIT *'.
45931         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45932         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45933         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45934         * modules/unicase/ulc-casecmp: New file.
45935
45936         Tests for module 'unicase/u32-is-cased'.
45937         * modules/unicase/u32-is-cased-tests: New file.
45938         * tests/unicase/test-u32-is-cased.c: New file.
45939
45940         Tests for module 'unicase/u16-is-cased'.
45941         * modules/unicase/u16-is-cased-tests: New file.
45942         * tests/unicase/test-u16-is-cased.c: New file.
45943
45944         Tests for module 'unicase/u8-is-cased'.
45945         * modules/unicase/u8-is-cased-tests: New file.
45946         * tests/unicase/test-u8-is-cased.c: New file.
45947         * tests/unicase/test-is-cased.h: New file.
45948
45949         New module 'unicase/u32-is-cased'.
45950         * lib/unicase/u32-is-cased.c: New file.
45951         * modules/unicase/u32-is-cased: New file.
45952
45953         New module 'unicase/u16-is-cased'.
45954         * lib/unicase/u16-is-cased.c: New file.
45955         * modules/unicase/u16-is-cased: New file.
45956
45957         New module 'unicase/u8-is-cased'.
45958         * lib/unicase/u8-is-cased.c: New file.
45959         * lib/unicase/u-is-cased.h: New file.
45960         * modules/unicase/u8-is-cased: New file.
45961
45962         Tests for module 'unicase/u32-is-casefolded'.
45963         * modules/unicase/u32-is-casefolded-tests: New file.
45964         * tests/unicase/test-u32-is-casefolded.c: New file.
45965
45966         Tests for module 'unicase/u16-is-casefolded'.
45967         * modules/unicase/u16-is-casefolded-tests: New file.
45968         * tests/unicase/test-u16-is-casefolded.c: New file.
45969
45970         Tests for module 'unicase/u8-is-casefolded'.
45971         * modules/unicase/u8-is-casefolded-tests: New file.
45972         * tests/unicase/test-u8-is-casefolded.c: New file.
45973         * tests/unicase/test-is-casefolded.h: New file.
45974
45975         New module 'unicase/u32-is-casefolded'.
45976         * lib/unicase/u32-is-casefolded.c: New file.
45977         * modules/unicase/u32-is-casefolded: New file.
45978
45979         New module 'unicase/u16-is-casefolded'.
45980         * lib/unicase/u16-is-casefolded.c: New file.
45981         * modules/unicase/u16-is-casefolded: New file.
45982
45983         New module 'unicase/u8-is-casefolded'.
45984         * lib/unicase/u8-is-casefolded.c: New file.
45985         * modules/unicase/u8-is-casefolded: New file.
45986
45987         Tests for module 'unicase/u32-is-titlecase'.
45988         * modules/unicase/u32-is-titlecase-tests: New file.
45989         * tests/unicase/test-u32-is-titlecase.c: New file.
45990
45991         Tests for module 'unicase/u16-is-titlecase'.
45992         * modules/unicase/u16-is-titlecase-tests: New file.
45993         * tests/unicase/test-u16-is-titlecase.c: New file.
45994
45995         Tests for module 'unicase/u8-is-titlecase'.
45996         * modules/unicase/u8-is-titlecase-tests: New file.
45997         * tests/unicase/test-u8-is-titlecase.c: New file.
45998         * tests/unicase/test-is-titlecase.h: New file.
45999
46000         New module 'unicase/u32-is-titlecase'.
46001         * lib/unicase/u32-is-titlecase.c: New file.
46002         * modules/unicase/u32-is-titlecase: New file.
46003
46004         New module 'unicase/u16-is-titlecase'.
46005         * lib/unicase/u16-is-titlecase.c: New file.
46006         * modules/unicase/u16-is-titlecase: New file.
46007
46008         New module 'unicase/u8-is-titlecase'.
46009         * lib/unicase/u8-is-titlecase.c: New file.
46010         * modules/unicase/u8-is-titlecase: New file.
46011
46012         Tests for module 'unicase/u32-is-lowercase'.
46013         * modules/unicase/u32-is-lowercase-tests: New file.
46014         * tests/unicase/test-u32-is-lowercase.c: New file.
46015
46016         Tests for module 'unicase/u16-is-lowercase'.
46017         * modules/unicase/u16-is-lowercase-tests: New file.
46018         * tests/unicase/test-u16-is-lowercase.c: New file.
46019
46020         Tests for module 'unicase/u8-is-lowercase'.
46021         * modules/unicase/u8-is-lowercase-tests: New file.
46022         * tests/unicase/test-u8-is-lowercase.c: New file.
46023         * tests/unicase/test-is-lowercase.h: New file.
46024
46025         New module 'unicase/u32-is-lowercase'.
46026         * lib/unicase/u32-is-lowercase.c: New file.
46027         * modules/unicase/u32-is-lowercase: New file.
46028
46029         New module 'unicase/u16-is-lowercase'.
46030         * lib/unicase/u16-is-lowercase.c: New file.
46031         * modules/unicase/u16-is-lowercase: New file.
46032
46033         New module 'unicase/u8-is-lowercase'.
46034         * lib/unicase/u8-is-lowercase.c: New file.
46035         * modules/unicase/u8-is-lowercase: New file.
46036
46037         Tests for module 'unicase/u32-is-uppercase'.
46038         * modules/unicase/u32-is-uppercase-tests: New file.
46039         * tests/unicase/test-u32-is-uppercase.c: New file.
46040
46041         Tests for module 'unicase/u16-is-uppercase'.
46042         * modules/unicase/u16-is-uppercase-tests: New file.
46043         * tests/unicase/test-u16-is-uppercase.c: New file.
46044
46045         Tests for module 'unicase/u8-is-uppercase'.
46046         * modules/unicase/u8-is-uppercase-tests: New file.
46047         * tests/unicase/test-u8-is-uppercase.c: New file.
46048         * tests/unicase/test-is-uppercase.h: New file.
46049
46050         New module 'unicase/u32-is-uppercase'.
46051         * lib/unicase/u32-is-uppercase.c: New file.
46052         * modules/unicase/u32-is-uppercase: New file.
46053
46054         New module 'unicase/u16-is-uppercase'.
46055         * lib/unicase/u16-is-uppercase.c: New file.
46056         * modules/unicase/u16-is-uppercase: New file.
46057
46058         New module 'unicase/u8-is-uppercase'.
46059         * lib/unicase/u8-is-uppercase.c: New file.
46060         * modules/unicase/u8-is-uppercase: New file.
46061
46062         New module 'unicase/u32-is-invariant'.
46063         * lib/unicase/u32-is-invariant.c: New file.
46064         * modules/unicase/u32-is-invariant: New file.
46065
46066         New module 'unicase/u16-is-invariant'.
46067         * lib/unicase/u16-is-invariant.c: New file.
46068         * modules/unicase/u16-is-invariant: New file.
46069
46070         New module 'unicase/u8-is-invariant'.
46071         * lib/unicase/u8-is-invariant.c: New file.
46072         * lib/unicase/invariant.h: New file.
46073         * lib/unicase/u-is-invariant.h: New file.
46074         * modules/unicase/u8-is-invariant: New file.
46075
46076         Tests for module 'unicase/u32-casecoll'.
46077         * modules/unicase/u32-casecoll-tests: New file.
46078         * tests/unicase/test-u32-casecoll.c: New file.
46079
46080         Tests for module 'unicase/u16-casecoll'.
46081         * modules/unicase/u16-casecoll-tests: New file.
46082         * tests/unicase/test-u16-casecoll.c: New file.
46083
46084         Tests for module 'unicase/u8-casecoll'.
46085         * modules/unicase/u8-casecoll-tests: New file.
46086         * tests/unicase/test-u8-casecoll.c: New file.
46087
46088         New module 'unicase/u32-casecoll'.
46089         * lib/unicase/u32-casecoll.c: New file.
46090         * modules/unicase/u32-casecoll: New file.
46091
46092         New module 'unicase/u16-casecoll'.
46093         * lib/unicase/u16-casecoll.c: New file.
46094         * modules/unicase/u16-casecoll: New file.
46095
46096         New module 'unicase/u8-casecoll'.
46097         * lib/unicase/u8-casecoll.c: New file.
46098         * lib/unicase/u-casecoll.h: New file.
46099         * modules/unicase/u8-casecoll: New file.
46100
46101         New module 'unicase/u32-casexfrm'.
46102         * lib/unicase/u32-casexfrm.c: New file.
46103         * modules/unicase/u32-casexfrm: New file.
46104
46105         New module 'unicase/u16-casexfrm'.
46106         * lib/unicase/u16-casexfrm.c: New file.
46107         * modules/unicase/u16-casexfrm: New file.
46108
46109         New module 'unicase/u8-casexfrm'.
46110         * lib/unicase/u8-casexfrm.c: New file.
46111         * lib/unicase/u-casexfrm.h: New file.
46112         * modules/unicase/u8-casexfrm: New file.
46113
46114         Tests for module 'unicase/u32-casecmp'.
46115         * modules/unicase/u32-casecmp-tests: New file.
46116         * tests/unicase/test-u32-casecmp.c: New file.
46117
46118         Tests for module 'unicase/u16-casecmp'.
46119         * modules/unicase/u16-casecmp-tests: New file.
46120         * tests/unicase/test-u16-casecmp.c: New file.
46121
46122         Tests for module 'unicase/u8-casecmp'.
46123         * modules/unicase/u8-casecmp-tests: New file.
46124         * tests/unicase/test-u8-casecmp.c: New file.
46125         * tests/unicase/test-casecmp.h: New file.
46126
46127         New module 'unicase/u32-casecmp'.
46128         * lib/unicase/u32-casecmp.c: New file.
46129         * modules/unicase/u32-casecmp: New file.
46130
46131         New module 'unicase/u16-casecmp'.
46132         * lib/unicase/u16-casecmp.c: New file.
46133         * modules/unicase/u16-casecmp: New file.
46134
46135         New module 'unicase/u8-casecmp'.
46136         * lib/unicase/u8-casecmp.c: New file.
46137         * lib/unicase/u-casecmp.h: New file.
46138         * modules/unicase/u8-casecmp: New file.
46139
46140         Tests for module 'unicase/u32-casefold'.
46141         * modules/unicase/u32-casefold-tests: New file.
46142         * tests/unicase/test-u32-casefold.c: New file.
46143
46144         Tests for module 'unicase/u16-casefold'.
46145         * modules/unicase/u16-casefold-tests: New file.
46146         * tests/unicase/test-u16-casefold.c: New file.
46147
46148         Tests for module 'unicase/u8-casefold'.
46149         * modules/unicase/u8-casefold-tests: New file.
46150         * tests/unicase/test-u8-casefold.c: New file.
46151
46152         New module 'unicase/u32-casefold'.
46153         * lib/unicase/u32-casefold.c: New file.
46154         * modules/unicase/u32-casefold: New file.
46155
46156         New module 'unicase/u16-casefold'.
46157         * lib/unicase/u16-casefold.c: New file.
46158         * modules/unicase/u16-casefold: New file.
46159
46160         New module 'unicase/u8-casefold'.
46161         * lib/unicase/u8-casefold.c: New file.
46162         * lib/unicase/u-casefold.h: New file.
46163         * modules/unicase/u8-casefold: New file.
46164
46165         New module 'unicase/tocasefold'.
46166         * lib/unicase/casefold.h: New file.
46167         * lib/unicase/tocasefold.c: New file.
46168         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46169         * modules/unicase/tocasefold: New file.
46170
46171         Tests for module 'unicase/u32-totitle'.
46172         * modules/unicase/u32-totitle-tests: New file.
46173         * tests/unicase/test-u32-totitle.c: New file.
46174
46175         Tests for module 'unicase/u16-totitle'.
46176         * modules/unicase/u16-totitle-tests: New file.
46177         * tests/unicase/test-u16-totitle.c: New file.
46178
46179         Tests for module 'unicase/u8-totitle'.
46180         * modules/unicase/u8-totitle-tests: New file.
46181         * tests/unicase/test-u8-totitle.c: New file.
46182
46183         New module 'unicase/u32-totitle'.
46184         * lib/unicase/u32-totitle.c: New file.
46185         * modules/unicase/u32-totitle: New file.
46186
46187         New module 'unicase/u16-totitle'.
46188         * lib/unicase/u16-totitle.c: New file.
46189         * modules/unicase/u16-totitle: New file.
46190
46191         New module 'unicase/u8-totitle'.
46192         * lib/unicase/u8-totitle.c: New file.
46193         * lib/unicase/u-totitle.h: New file.
46194         * modules/unicase/u8-totitle: New file.
46195
46196         Tests for module 'unicase/u32-tolower'.
46197         * modules/unicase/u32-tolower-tests: New file.
46198         * tests/unicase/test-u32-tolower.c: New file.
46199
46200         Tests for module 'unicase/u16-tolower'.
46201         * modules/unicase/u16-tolower-tests: New file.
46202         * tests/unicase/test-u16-tolower.c: New file.
46203
46204         Tests for module 'unicase/u8-tolower'.
46205         * modules/unicase/u8-tolower-tests: New file.
46206         * tests/unicase/test-u8-tolower.c: New file.
46207
46208         New module 'unicase/u32-tolower'.
46209         * lib/unicase/u32-tolower.c: New file.
46210         * modules/unicase/u32-tolower: New file.
46211
46212         New module 'unicase/u16-tolower'.
46213         * lib/unicase/u16-tolower.c: New file.
46214         * modules/unicase/u16-tolower: New file.
46215
46216         New module 'unicase/u8-tolower'.
46217         * lib/unicase/u8-tolower.c: New file.
46218         * modules/unicase/u8-tolower: New file.
46219
46220         Tests for module 'unicase/u32-toupper'.
46221         * modules/unicase/u32-toupper-tests: New file.
46222         * tests/unicase/test-u32-toupper.c: New file.
46223
46224         Tests for module 'unicase/u16-toupper'.
46225         * modules/unicase/u16-toupper-tests: New file.
46226         * tests/unicase/test-u16-toupper.c: New file.
46227
46228         Tests for module 'unicase/u8-toupper'.
46229         * modules/unicase/u8-toupper-tests: New file.
46230         * tests/unicase/test-u8-toupper.c: New file.
46231
46232         New module 'unicase/u32-toupper'.
46233         * lib/unicase/u32-toupper.c: New file.
46234         * modules/unicase/u32-toupper: New file.
46235
46236         New module 'unicase/u16-toupper'.
46237         * lib/unicase/u16-toupper.c: New file.
46238         * modules/unicase/u16-toupper: New file.
46239
46240         New module 'unicase/u8-toupper'.
46241         * lib/unicase/u8-toupper.c: New file.
46242         * modules/unicase/u8-toupper: New file.
46243
46244         New module 'unicase/u32-casemap'.
46245         * lib/unicase/u32-casemap.c: New file.
46246         * modules/unicase/u32-casemap: New file.
46247
46248         New module 'unicase/u16-casemap'.
46249         * lib/unicase/u16-casemap.c: New file.
46250         * modules/unicase/u16-casemap: New file.
46251
46252         New module 'unicase/u8-casemap'.
46253         * lib/unicase/unicasemap.h: New file.
46254         * lib/unicase/u8-casemap.c: New file.
46255         * lib/unicase/u-casemap.h: New file.
46256         * modules/unicase/u8-casemap: New file.
46257
46258         New module 'unicase/special-casing'.
46259         * lib/unicase/special-casing.h: New file.
46260         * lib/unicase/special-casing.c: New file.
46261         * lib/unicase/special-casing-table.gperf: New file, generated by
46262         gen-uni-tables.c.
46263         * modules/unicase/special-casing: New file.
46264
46265         Tests for module 'unicase/locale-language'.
46266         * modules/unicase/locale-language-tests: New file.
46267         * tests/unicase/test-locale-language.sh: New file.
46268         * tests/unicase/test-locale-language.c: New file.
46269
46270         New module 'unicase/locale-language'.
46271         * lib/unicase/locale-language.c: New file.
46272         * lib/unicase/locale-languages.gperf: New file.
46273         * modules/unicase/locale-language: New file.
46274
46275         Generate more tables for case conversion and case folding.
46276         * lib/gen-uni-tables.c (SCC_*): New enum items.
46277         (struct special_casing_rule): New type.
46278         (casing_rules, num_casing_rules, allocated_casing_rules): New
46279         variables.
46280         (add_casing_rule, fill_casing_rules): New functions.
46281         (struct casefold_rule): New type.
46282         (casefolding_rules, num_casefolding_rules,
46283         allocated_casefolding_rules): New variables.
46284         (fill_casefolding_rules): New function.
46285         (unicode_casefold): New variable.
46286         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46287         sort_casing_rules, output_casing_rules): New functions.
46288         (main): Accept to more arguments: SpecialCasing.txt and
46289         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46290         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46291         Output mapping for casefolding.
46292
46293         * lib/unicase.h: Include stdbool.h, uninorm.h.
46294         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46295         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46296         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46297         arguments.
46298         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46299         resultp arguments.
46300         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46301         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46302         resultp arguments.
46303         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46304         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46305         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46306         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46307         declarations.
46308         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46309
46310 2009-03-08  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46313         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46314         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46315         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46316
46317 2009-03-07  Bruno Haible  <bruno@clisp.org>
46318
46319         Adjust u*_normcmp, u*_normcoll API.
46320         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46321         u16_normcoll, u32_normcoll): Change failure conventions.
46322         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46323         errno and return -1.
46324         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46325
46326 2009-03-07  Bruno Haible  <bruno@clisp.org>
46327
46328         Tests for module 'uninorm/u32-normcoll'.
46329         * modules/uninorm/u32-normcoll-tests: New file.
46330         * tests/uninorm/test-u32-normcoll.c: New file.
46331
46332         Tests for module 'uninorm/u16-normcoll'.
46333         * modules/uninorm/u16-normcoll-tests: New file.
46334         * tests/uninorm/test-u16-normcoll.c: New file.
46335
46336         Tests for module 'uninorm/u8-normcoll'.
46337         * modules/uninorm/u8-normcoll-tests: New file.
46338         * tests/uninorm/test-u8-normcoll.c: New file.
46339
46340 2009-03-07  Bruno Haible  <bruno@clisp.org>
46341
46342         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46343         tests/uninorm/test-u32-normcmp.c.
46344         * tests/uninorm/test-u32-normcmp.c: Include it.
46345         (test_nonascii): New function, extracted from main. Add some more
46346         tests.
46347         (main): Invoke test_ascii and test_nonascii.
46348         * modules/uninorm/u32-normcmp-tests (Files): Add
46349         tests/uninorm/test-u32-normcmp.h.
46350         (Depends-on): Remove uninorm/u32-normcmp.
46351
46352         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46353         tests/uninorm/test-u16-normcmp.c.
46354         * tests/uninorm/test-u16-normcmp.c: Include it.
46355         (test_nonascii): New function, extracted from main. Add some more
46356         tests.
46357         (main): Invoke test_ascii and test_nonascii.
46358         * modules/uninorm/u16-normcmp-tests (Files): Add
46359         tests/uninorm/test-u16-normcmp.h.
46360         (Depends-on): Remove uninorm/u16-normcmp.
46361
46362         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46363         tests/uninorm/test-u8-normcmp.c.
46364         * tests/uninorm/test-u8-normcmp.c: Include it.
46365         (test_nonascii): New function, extracted from main. Add some more
46366         tests.
46367         (main): Invoke test_ascii and test_nonascii.
46368         * modules/uninorm/u8-normcmp-tests (Files): Add
46369         tests/uninorm/test-u8-normcmp.h.
46370         (Depends-on): Remove uninorm/u8-normcmp.
46371
46372 2009-03-07  Bruno Haible  <bruno@clisp.org>
46373
46374         New module 'uninorm/u32-normcoll'.
46375         * lib/uninorm/u32-normcoll.c: New file.
46376         * modules/uninorm/u32-normcoll: New file.
46377
46378         New module 'uninorm/u16-normcoll'.
46379         * lib/uninorm/u16-normcoll.c: New file.
46380         * modules/uninorm/u16-normcoll: New file.
46381
46382         New module 'uninorm/u8-normcoll'.
46383         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46384         declarations.
46385         * lib/uninorm/u8-normcoll.c: New file.
46386         * lib/uninorm/u-normcoll.h: New file.
46387         * modules/uninorm/u8-normcoll: New file.
46388
46389         New module 'uninorm/u32-normxfrm'.
46390         * lib/uninorm/u32-normxfrm.c: New file.
46391         * modules/uninorm/u32-normxfrm: New file.
46392
46393         New module 'uninorm/u16-normxfrm'.
46394         * lib/uninorm/u16-normxfrm.c: New file.
46395         * modules/uninorm/u16-normxfrm: New file.
46396
46397         New module 'uninorm/u8-normxfrm'.
46398         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46399         declarations.
46400         * lib/uninorm/u8-normxfrm.c: New file.
46401         * lib/uninorm/u-normxfrm.h: New file.
46402         * modules/uninorm/u8-normxfrm: New file.
46403
46404 2009-03-07  Bruno Haible  <bruno@clisp.org>
46405
46406         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46407         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46408         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46409
46410 2009-03-07  Bruno Haible  <bruno@clisp.org>
46411
46412         New module 'memxfrm'.
46413         * lib/memxfrm.h: New file.
46414         * lib/memxfrm.c: New file.
46415         * modules/memxfrm: New file.
46416
46417 2009-03-07  Bruno Haible  <bruno@clisp.org>
46418
46419         New module 'memcmp2'.
46420         * lib/memcmp2.h: New file.
46421         * lib/memcmp2.c: New file.
46422         * modules/memcmp2: New file.
46423
46424 2009-03-07  Bruno Haible  <bruno@clisp.org>
46425
46426         Tests for module 'uninorm/decomposing-form'.
46427         * modules/uninorm/decomposing-form-tests: New file.
46428         * tests/uninorm/test-decomposing-form.c: New file.
46429
46430         New module 'uninorm/decomposing-form'.
46431         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46432         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46433         Add 'decomposing_variant' field.
46434         * lib/uninorm/decomposing-form.c: New file.
46435         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46436         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46437         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46438         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46439         * modules/uninorm/decomposing-form: New file.
46440         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46441         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46442
46443 2009-03-07  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46446         strings.
46447
46448 2009-03-06  Bruno Haible  <bruno@clisp.org>
46449
46450         Tests for module 'uninorm/u32-normcmp'.
46451         * tests/uninorm/test-u32-normcmp.c: New file.
46452         * modules/uninorm/u32-normcmp-tests: New file.
46453
46454         Tests for module 'uninorm/u16-normcmp'.
46455         * tests/uninorm/test-u16-normcmp.c: New file.
46456         * modules/uninorm/u16-normcmp-tests: New file.
46457
46458         Tests for module 'uninorm/u8-normcmp'.
46459         * tests/uninorm/test-u8-normcmp.c: New file.
46460         * modules/uninorm/u8-normcmp-tests: New file.
46461
46462         New module 'uninorm/u32-normcmp'.
46463         * lib/uninorm/u32-normcmp.c: New file.
46464         * modules/uninorm/u32-normcmp: New file.
46465
46466         New module 'uninorm/u16-normcmp'.
46467         * lib/uninorm/u16-normcmp.c: New file.
46468         * modules/uninorm/u16-normcmp: New file.
46469
46470         New module 'uninorm/u8-normcmp'.
46471         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46472         declarations.
46473         * lib/uninorm/u8-normcmp.c: New file.
46474         * lib/uninorm/u-normcmp.h: New file.
46475         * modules/uninorm/u8-normcmp: New file.
46476
46477 2009-03-06  Bruno Haible  <bruno@clisp.org>
46478
46479         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46480         Reported by Eric Blake.
46481
46482 2009-03-06  Eric Blake  <ebb9@byu.net>
46483             Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46486         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46487         condition.
46488         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46489         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46490         condition.
46491         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46492
46493 2009-03-06  Eric Blake  <ebb9@byu.net>
46494
46495         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46496         to avoid compiler warnings.
46497         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46498
46499 2009-03-05  Bruno Haible  <bruno@clisp.org>
46500
46501         * tests/test-ftell.c (main): Disable test beyond end of file on
46502         FreeMiNT.
46503         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46504
46505 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46506
46507         * lib/filevercmp.c: Move hidden files up in ordering.
46508         * tests/test-filevercmp.c: Add tests for hidden files.
46509
46510 2009-03-04  Bruno Haible  <bruno@clisp.org>
46511
46512         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46513         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46514         AM_CFLAGS.
46515         Reported by Simon Josefsson.
46516
46517 2009-03-03  Bruno Haible  <bruno@clisp.org>
46518
46519         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46520         Reported by Simon Josefsson.
46521
46522         * doc/ld-version-script.texi: Update node reference.
46523
46524 2009-03-03  Bruno Haible  <bruno@clisp.org>
46525
46526         * modules/visibility (License): Change to 'unlimited'.
46527         Suggested by Simon Josefsson.
46528
46529 2009-03-03  Jim Meyering  <meyering@redhat.com>
46530
46531         unlinkdir: cannot_unlink_dir may modify process state
46532         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46533         it's neither thread-safe nor appropriate for use in a library.
46534
46535 2009-03-03  Eric Blake  <ebb9@byu.net>
46536
46537         test-closein: silence test under Darwin
46538         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46539         care if it dies from EPIPE or EBADF.
46540
46541 2009-03-03  Bruno Haible  <bruno@clisp.org>
46542
46543         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46544         earlier.
46545         * doc/visibility.texi: Fix @node and @section.
46546
46547 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46548
46549         * doc/gnulib.texi: Link to sections for ld version script and
46550         visibility.
46551         * doc/visibility.texi: Add @node and @section.
46552         * modules/ld-version-script: New module.
46553         * m4/ld-version-script.m4: New file.
46554         * doc/ld-version-script.texi: New file.
46555
46556 2009-03-02  David Lutterkort  <lutter@redhat.com>
46557
46558         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46560
46561 2009-03-02  Bruno Haible  <bruno@clisp.org>
46562
46563         * doc/visibility.texi: Mention libtool's -export-symbols option.
46564
46565 2009-03-02  Jim Meyering  <meyering@redhat.com>
46566
46567         announce-gen: new option: --no-print-checksums
46568         * build-aux/announce-gen (usage): Describe it.
46569         (print_checksums): Print a newline here, not in the [*] footnote.
46570         (main): Honor it.
46571
46572 2009-03-01  Bruno Haible  <bruno@clisp.org>
46573
46574         Use socklen_t in the native Windows replacements prototypes.
46575         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46576         instead of 'int'.
46577         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46578         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46579         * modules/getsockopt (Depends-on): Add socklen.
46580         * modules/setsockopt (Depends-on): Add socklen.
46581
46582 2009-03-01  Bruno Haible  <bruno@clisp.org>
46583
46584         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46585         least 4.2.
46586
46587 2009-03-01  Eric Blake  <ebb9@byu.net>
46588             Bruno Haible  <bruno@clisp.org>
46589
46590         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46591         error messages.
46592         * lib/wait-process.c (wait_subprocess): Omit error message about
46593         deadly signal sent to the child of termsigp != NULL.
46594
46595 2009-03-01  Eric Blake  <ebb9@byu.net>
46596
46597         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46598
46599 2009-03-01  Bruno Haible  <bruno@clisp.org>
46600
46601         Avoid a gcc warning.
46602         * tests/test-sched.c (b): Make global.
46603         Reported by Eric Blake.
46604
46605 2009-01-19  Martin Lambers  <marlam@marlam.de>
46606
46607         Provide POSIX semantics for socket timeout options on W32.
46608         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46609         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46610         * modules/setsockopt: Depend on sys_time module for struct timeval.
46611         * modules/getsockopt: Depend on sys_time module for struct timeval.
46612
46613 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46614
46615         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46616         __USE_GNU, for consistency with netdb.in.h.
46617         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46618
46619 2009-03-01  Bruno Haible  <bruno@clisp.org>
46620
46621         More support for FreeMiNT.
46622         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46623         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46624
46625 2009-03-01  Bruno Haible  <bruno@clisp.org>
46626
46627         More support for FreeMiNT.
46628         * lib/fpurge.c (fpurge): Correct last commit.
46629         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46630
46631 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46632
46633         Fix unportable awk script in vc-list-files.
46634         * build-aux/vc-list-files: In the replacement awk script, use
46635         substr with a second argument of 1, not zero.
46636         Report by Simon Josefsson.
46637
46638 2009-02-28  Bruno Haible  <bruno@clisp.org>
46639
46640         More support for FreeMiNT.
46641         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46642         to FreeMiNT today.
46643         * lib/fwriting.c (fwriting): Likewise.
46644         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46645
46646 2009-02-28  Bruno Haible  <bruno@clisp.org>
46647
46648         * tests/test-freadseek.c (main): Disable test beyond end of file on
46649         FreeMiNT.
46650         * tests/test-ftello.c (main): Likewise.
46651         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46652
46653 2009-02-28  Bruno Haible  <bruno@clisp.org>
46654
46655         Add tentative support for FreeMiNT.
46656         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46657         * lib/fpurge.c (fpurge): Likewise.
46658         * lib/freadable.c (freadable): Likewise.
46659         * lib/freading.c (freading): Likewise.
46660         * lib/freadptr.c (freadptr): Likewise.
46661         * lib/freadseek.c (freadptrinc): Likewise.
46662         * lib/fseeko.c (rpl_fseeko): Likewise.
46663         * lib/fseterr.c (fseterr): Likewise.
46664         * lib/fwritable.c (fwritable): Likewise.
46665         * lib/fwriting.c (fwriting): Likewise.
46666         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46667         Hourihane.
46668         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46669
46670 2009-02-28  Bruno Haible  <bruno@clisp.org>
46671
46672         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46673         SIGCHLD.
46674         Reported by Jim Meyering.
46675
46676 2009-02-28  Bruno Haible  <bruno@clisp.org>
46677
46678         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46679         Mention the results of these tests on various platforms.
46680         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46681         order.
46682         * doc/posix-functions/printf.texi: Likewise.
46683         * doc/posix-functions/snprintf.texi: Likewise.
46684         * doc/posix-functions/sprintf.texi: Likewise.
46685         * doc/posix-functions/vfprintf.texi: Likewise.
46686         * doc/posix-functions/vprintf.texi: Likewise.
46687         * doc/posix-functions/vsnprintf.texi: Likewise.
46688         * doc/posix-functions/vsprintf.texi: Likewise.
46689         * doc/glibc-functions/obstack_printf.texi: Likewise.
46690         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46691
46692 2009-02-28  Bruno Haible  <bruno@clisp.org>
46693
46694         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46695         Reported by Loïc Minier <lool@dooz.org>.
46696
46697 2009-02-27  Bruno Haible  <bruno@clisp.org>
46698
46699         * gnulib-tool (func_import): Make the sed expression used to create the
46700         sed script for updating the .gitignore file POSIX compliant.
46701         Reported by Eric Blake.
46702
46703 2009-02-27  Bruno Haible  <bruno@clisp.org>
46704
46705         * gnulib-tool (sed): Don't alias as "sed --posix".
46706         Reported by Eric Blake.
46707
46708 2009-02-27  Bruno Haible  <bruno@clisp.org>
46709
46710         Avoid test link errors.
46711         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46712         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46713         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46714         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46716
46717 2009-02-27  Bruno Haible  <bruno@clisp.org>
46718
46719         Avoid spurious "(cached)" in configure output.
46720         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46721         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46722         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46723         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46724         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46725         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46726         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46727         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46728         Reported by Eric Blake.
46729
46730 2009-02-27  Eric Blake  <ebb9@byu.net>
46731
46732         printf: fix regression in previous patch
46733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46734
46735 2009-02-27  Bruno Haible  <bruno@clisp.org>
46736
46737         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46738         value.
46739         * lib/stdint.in.h: Likewise.
46740         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46741
46742 2009-02-27  Eric Blake  <ebb9@byu.net>
46743
46744         doc: mention more functions added in cygwin 1.7.0
46745         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46746         addition.
46747         * doc/posix-functions/open_wmemstream.texi: Likewise.
46748         * doc/posix-functions/wcsnlen.texi: Likewise.
46749         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46750         * doc/posix-functions/wcstod.texi: Likewise.
46751         * doc/posix-functions/wcstof.texi: Likewise.
46752         * doc/posix-functions/wcstoimax.texi: Likewise.
46753         * doc/posix-functions/wcstok.texi: Likewise.
46754         * doc/posix-functions/wcstoumax.texi: Likewise.
46755
46756         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46758         * doc/posix-functions/fprintf.texi: Update.
46759         * doc/posix-functions/printf.texi: Update.
46760         * doc/posix-functions/snprintf.texi: Update.
46761         * doc/posix-functions/sprintf.texi: Update.
46762         * doc/posix-functions/vfprintf.texi: Update.
46763         * doc/posix-functions/vprintf.texi: Update.
46764         * doc/posix-functions/vsnprintf.texi: Update.
46765         * doc/posix-functions/vsprintf.texi: Update.
46766         * doc/glibc-functions/obstack_printf.texi: Update.
46767         * doc/glibc-functions/obstack_vprintf.texi: Update.
46768
46769 2009-02-26  Eric Blake  <ebb9@byu.net>
46770
46771         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46772         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46773         compilation bug by using runtime conversion.
46774         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46775         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46776         * modules/ceill-tests (Files): Use nan.h.
46777         * modules/floorl-tests (Files): Likewise.
46778         * modules/frexpl-tests (Files): Likewise.
46779         * modules/isnanl-tests (Files): Likewise.
46780         * modules/ldexpl-tests (Files): Likewise.
46781         * modules/roundl-tests (Files): Likewise.
46782         * modules/truncl-tests (Files): Likewise.
46783         * tests/test-ceill.c (main): Use a working NaN.
46784         * tests/test-floorl.c (main): Likewise.
46785         * tests/test-frexpl.c (main): Likewise.
46786         * tests/test-isnan.c (test_long_double): Likewise.
46787         * tests/test-isnanl.h (main): Likewise.
46788         * tests/test-ldexpl.h (main): Likewise.
46789         * tests/test-roundl.h (main): Likewise.
46790         * tests/test-truncl.h (main): Likewise.
46791         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46792
46793 2009-02-26  Eric Blake  <ebb9@byu.net>
46794             Bruno Haible  <bruno@clisp.org>
46795
46796         Work around a *printf bug with %ls on Solaris.
46797         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46798         precision is specified, sprintf stops converting the wide string
46799         argument when the number of bytes that have been produced by this
46800         conversion equals or exceeds the precision.
46801         * doc/posix-functions/fprintf.texi: Update.
46802         * doc/posix-functions/printf.texi: Update.
46803         * doc/posix-functions/snprintf.texi: Update.
46804         * doc/posix-functions/sprintf.texi: Update.
46805         * doc/posix-functions/vfprintf.texi: Update.
46806         * doc/posix-functions/vprintf.texi: Update.
46807         * doc/posix-functions/vsnprintf.texi: Update.
46808         * doc/posix-functions/vsprintf.texi: Update.
46809         * doc/glibc-functions/obstack_printf.texi: Update.
46810         * doc/glibc-functions/obstack_vprintf.texi: Update.
46811
46812 2009-02-26  Eric Blake  <ebb9@byu.net>
46813
46814         stdlib: favor compiler check of random.h
46815         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46816         to avoid an ObjC random.h installed by Swarm.
46817
46818 2009-02-26  Bruno Haible  <bruno@clisp.org>
46819
46820         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46821         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46822         Reported by Gary V. Vaughan <gary@gnu.org>.
46823
46824 2009-02-26  Bruno Haible  <bruno@clisp.org>
46825
46826         Fix *printf behaviour regarding the %ls directive.
46827         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46828         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46829         NEED_PRINTF_DIRECTIVE_LS.
46830         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46831         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46832         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46833         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46834         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46835         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46836         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46841         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46845         * doc/posix-functions/fprintf.texi: Update.
46846         * doc/posix-functions/printf.texi: Update.
46847         * doc/posix-functions/snprintf.texi: Update.
46848         * doc/posix-functions/sprintf.texi: Update.
46849         * doc/posix-functions/vfprintf.texi: Update.
46850         * doc/posix-functions/vprintf.texi: Update.
46851         * doc/posix-functions/vsnprintf.texi: Update.
46852         * doc/posix-functions/vsprintf.texi: Update.
46853         * doc/glibc-functions/obstack_printf.texi: Update.
46854         * doc/glibc-functions/obstack_vprintf.texi: Update.
46855         Reported by Eric Blake.
46856
46857 2009-02-25  Bruno Haible  <bruno@clisp.org>
46858
46859         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46860         with known value.
46861         Reported by Gary V. Vaughan <gary@gnu.org>.
46862
46863 2009-02-25  Bruno Haible  <bruno@clisp.org>
46864
46865         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46866         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46867         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46868         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46869         Reported by Gary V. Vaughan <gary@gnu.org>.
46870
46871 2009-02-25  Bruno Haible  <bruno@clisp.org>
46872
46873         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46874         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46875         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46876         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46877         Reported by Gary V. Vaughan <gary@gnu.org>.
46878
46879 2009-02-25  Eric Blake  <ebb9@byu.net>
46880
46881         tests: skip fseek/ftell tests if ungetc is broken
46882         * m4/ungetc.m4: New file.
46883         * modules/fseek-tests: Split test, so ungetc dependency is
46884         separate from rest of test.
46885         * modules/fseeko-tests: Likewise.
46886         * modules/ftell-tests: Likewise.
46887         * modules/ftello-tests: Likewise.
46888         * tests/test-fseek.c (main): Isolate ungetc dependency.
46889         * tests/test-fseeko.c (main): Likewise.
46890         * tests/test-ftell.c (main): Likewise.
46891         * tests/test-ftello.c (main): Likewise.
46892         * tests/test-fseek2.sh: New file.
46893         * tests/test-fseeko2.sh: Likewise.
46894         * tests/test-ftell2.sh: Likewise.
46895         * tests/test-ftello2.sh: Likewise.
46896
46897 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
46898
46899         test-getaddrinfo: fix usage of skip return code 77
46900         * tests/test-gettaddrinfo.c: Return skip code 77 only
46901         for first occurance of skip (4x77 is not 77)
46902
46903 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46904
46905         strtod: avoid C99 decl-after-statement
46906         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46907
46908 2009-02-24  Eric Blake  <ebb9@byu.net>
46909
46910         strtod: detect HP-UX 11.31 bug
46911         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46912         Reported by Gary V. Vaughan.
46913
46914 2009-02-23  Bruno Haible  <bruno@clisp.org>
46915
46916         Fix invalid read past end of memory block.
46917         * lib/vasnprintf.c (DCHAR_SET): Define.
46918         (local_wcslen): Define only when needed.
46919         (local_strnlen, local_wcsnlen): New functions.
46920         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46921         directives that involve a conversion ourselves.
46922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46923         wcsnlen, mbrtowc, wcrtomb.
46924         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46925         * tests/test-vasprintf-posix.c (test_function): Likewise.
46926         * tests/test-snprintf-posix.h (test_function): Likewise.
46927         * tests/test-sprintf-posix.h (test_function): Likewise.
46928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46929
46930 2009-02-22  Bruno Haible  <bruno@clisp.org>
46931
46932         Implement new clarified decomposition of Hangul syllables.
46933         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46934         of type LTV, return only a pairwise decomposition.
46935         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46936         Likewise.
46937         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46938         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46939         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46940
46941 2009-02-22  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46944         zero-length results and shrink excess allocated memory.
46945         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46946         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46947         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46948         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46949         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46950         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46951         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46952         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46953         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46954         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46955         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46956         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46957
46958 2009-02-21  Bruno Haible  <bruno@clisp.org>
46959
46960         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46961         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46962         spaces after a period. Put a space between a macro name and its
46963         argument list. Trivial rewordings.
46964         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46965         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46966         (main): Return 0 explicitly.
46967
46968 2009-02-21  Bruno Haible  <bruno@clisp.org>
46969
46970         Tests for module 'uninorm/filter'.
46971         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46972         * modules/uninorm/filter-tests: New file.
46973
46974         New module 'uninorm/filter'.
46975         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46976         uninorm_filter_flush, uninorm_filter_free): New declarations.
46977         * lib/uninorm/uninorm-filter.c: New file.
46978         * modules/uninorm/filter: New file.
46979
46980 2009-02-21  Bruno Haible  <bruno@clisp.org>
46981
46982         Tests for module 'uninorm/nfkc'.
46983         * tests/uninorm/test-nfkc.c: New file.
46984         * tests/uninorm/test-u8-nfkc.c: New file.
46985         * tests/uninorm/test-u16-nfkc.c: New file.
46986         * tests/uninorm/test-u32-nfkc.c: New file.
46987         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46988         * tests/uninorm/test-u32-nfkc-big.c: New file.
46989         * modules/uninorm/nfkc-tests: New file.
46990
46991         New module 'uninorm/nfkc'.
46992         * lib/uninorm/nfkc.c: New file.
46993         * modules/uninorm/nfkc: New file.
46994
46995         Tests for module 'uninorm/nfkd'.
46996         * tests/uninorm/test-nfkd.c: New file.
46997         * tests/uninorm/test-u8-nfkd.c: New file.
46998         * tests/uninorm/test-u16-nfkd.c: New file.
46999         * tests/uninorm/test-u32-nfkd.c: New file.
47000         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47001         * tests/uninorm/test-u32-nfkd-big.c: New file.
47002         * modules/uninorm/nfkd-tests: New file.
47003
47004         New module 'uninorm/nfkd'.
47005         * lib/uninorm/nfkd.c: New file.
47006         * modules/uninorm/nfkd: New file.
47007
47008         Tests for module 'uninorm/nfc'.
47009         * tests/uninorm/test-nfc.c: New file.
47010         * tests/uninorm/test-u8-nfc.c: New file.
47011         * tests/uninorm/test-u16-nfc.c: New file.
47012         * tests/uninorm/test-u32-nfc.c: New file.
47013         * tests/uninorm/test-u32-nfc-big.sh: New file.
47014         * tests/uninorm/test-u32-nfc-big.c: New file.
47015         * modules/uninorm/nfc-tests: New file.
47016
47017         New module 'uninorm/nfc'.
47018         * lib/uninorm/nfc.c: New file.
47019         * modules/uninorm/nfc: New file.
47020
47021         Tests for module 'uninorm/nfd'.
47022         * tests/uninorm/test-nfd.c: New file.
47023         * tests/uninorm/test-u8-nfd.c: New file.
47024         * tests/uninorm/test-u16-nfd.c: New file.
47025         * tests/uninorm/test-u32-nfd.c: New file.
47026         * tests/uninorm/test-u32-nfd-big.sh: New file.
47027         * tests/uninorm/test-u32-nfd-big.c: New file.
47028         * tests/uninorm/test-u32-normalize-big.h: New file.
47029         * tests/uninorm/test-u32-normalize-big.c: New file.
47030         * tests/uninorm/NormalizationTest.txt: New file, created from
47031         Unicode 5.1.0 NormalizationTest.txt.
47032         * modules/uninorm/nfd-tests: New file.
47033
47034         New module 'uninorm/nfd'.
47035         * lib/uninorm/nfd.c: New file.
47036         * modules/uninorm/nfd: New file.
47037
47038         New module 'uninorm/u32-normalize'.
47039         * lib/uninorm/u32-normalize.c: New file.
47040         * modules/uninorm/u32-normalize: New file.
47041
47042         New module 'uninorm/u16-normalize'.
47043         * lib/uninorm/u16-normalize.c: New file.
47044         * modules/uninorm/u16-normalize: New file.
47045
47046         New module 'uninorm/u8-normalize'.
47047         * lib/uninorm/u8-normalize.c: New file.
47048         * lib/uninorm/normalize-internal.h: New file.
47049         * lib/uninorm/u-normalize-internal.h: New file.
47050         * modules/uninorm/u8-normalize: New file.
47051
47052         New module 'uninorm/decompose-internal'.
47053         * lib/uninorm/decompose-internal.c: New file.
47054         * modules/uninorm/decompose-internal: New file.
47055
47056         Tests for module 'uninorm/composition'.
47057         * tests/uninorm/test-composition.c: New file.
47058         * modules/uninorm/composition-tests: New file.
47059
47060         New module 'uninorm/composition'.
47061         * lib/uninorm/composition.c: New file.
47062         * lib/uninorm/composition-table.gperf: New file, generated by
47063         gen-uni-tables.
47064         * modules/uninorm/composition: New file.
47065
47066         Tests for module 'uninorm/compat-decomposition'.
47067         * tests/uninorm/test-compat-decomposition.c: New file.
47068         * modules/uninorm/compat-decomposition-tests: New file.
47069
47070         New module 'uninorm/compat-decomposition'.
47071         * lib/uninorm/decompose-internal.h: New file.
47072         * lib/uninorm/compat-decomposition.c: New file.
47073         * modules/uninorm/compat-decomposition: New file.
47074
47075         Tests for module 'uninorm/canonical-decomposition'.
47076         * tests/uninorm/test-canonical-decomposition.c: New file.
47077         * modules/uninorm/canonical-decomposition-tests: New file.
47078
47079         New module 'uninorm/canonical-decomposition'.
47080         * lib/uninorm/canonical-decomposition.c: New file.
47081         * modules/uninorm/canonical-decomposition: New file.
47082
47083         Tests for module 'uninorm/decomposition'.
47084         * tests/uninorm/test-decomposition.c: New file.
47085         * modules/uninorm/decomposition-tests: New file.
47086
47087         New module 'uninorm/decomposition'.
47088         * lib/uninorm/decomposition.c: New file.
47089         * modules/uninorm/decomposition: New file.
47090
47091         New module 'uninorm/decomposition-table'.
47092         * lib/uninorm/decomposition-table.h: New file.
47093         * lib/uninorm/decomposition-table.c: New file.
47094         * lib/uninorm/decomposition-table1.h: New file, generated by
47095         gen-uni-tables.
47096         * lib/uninorm/decomposition-table2.h: New file, generated by
47097         gen-uni-tables.
47098         * modules/uninorm/decomposition-table: New file.
47099
47100         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47101         (UC_DECOMP_*): New enumeration items.
47102         (get_decomposition): New function.
47103         (struct decomp_table): New type.
47104         (output_decomposition, output_decomposition_tables): New functions.
47105         (unicode_composition_exclusions): New variable.
47106         (fill_composition_exclusions, debug_output_composition_tables): New
47107         functions.
47108         (main): Accept one more argument. Invoke fill_composition_exclusions.
47109         Output decomposition and composition tables.
47110
47111         New module 'uninorm/base'.
47112         * lib/uninorm.h: New file.
47113         * lib/unictype.h: Update comment.
47114         * modules/uninorm/base: New file.
47115
47116 2009-02-21  David Lutterkort  <lutter@redhat.com>
47117
47118         Tests for module 'safe-alloc'.
47119         * tests/test-safe-alloc.c: New file.
47120         * modules/safe-alloc-tests: New file.
47121
47122         New module 'safe-alloc'.
47123         * lib/safe-alloc.h: New file.
47124         * lib/safe-alloc.c: New file.
47125         * m4/safe-alloc.m4: New file.
47126         * modules/safe-alloc: New file.
47127         * doc/safe-alloc.texi: New file.
47128         * doc/gnulib.texi: Include it.
47129         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47130         safe-alloc.
47131
47132 2009-02-18  Bruno Haible  <bruno@clisp.org>
47133
47134         Fix link error on non-glibc systems.
47135         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47136         variable.
47137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47138
47139 2009-02-18  Jim Meyering  <meyering@redhat.com>
47140
47141         fts: avoid used-uninitialized error due to recent change
47142         * lib/fts.c (fts_read): Guard uses of the new member,
47143         parent->fts_n_dirs_remaining, since it's not relevant for
47144         the parent of a directory specified on the command-line.
47145
47146 2009-02-17  James Youngman  <jay@gnu.org>
47147             Bruno Haible  <bruno@clisp.org>
47148
47149         * m4/include_next.m4: Reformulate comment.
47150
47151 2009-02-16  Jim Meyering  <meyering@redhat.com>
47152
47153         fts: add #if guards so that the fts_lgpl module still builds
47154         * lib/fts.c: Guard just-added hash-table-using parts with
47155         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47156         Reported by Simon Josefsson.
47157
47158 2009-02-15  Bruno Haible  <bruno@clisp.org>
47159
47160         * modules/array-mergesort-tests: New file.
47161         * tests/test-array-mergesort.c: New file.
47162
47163         New module 'array-mergesort'.
47164         * modules/array-mergesort: New file.
47165         * lib/array-mergesort.h: New file.
47166
47167 2009-02-15  Bruno Haible  <bruno@clisp.org>
47168
47169         Fix 2009-02-07 commit.
47170         * lib/gen-uni-tables.c (output_predicate, output_category,
47171         output_combclass, output_bidi_category, output_decimal_digit,
47172         output_digit, output_numeric, output_mirror, output_scripts,
47173         output_ident_category, output_simple_mapping): Fix format directives.
47174         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47175
47176 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47177
47178         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47179         fixes are available from IBM.
47180
47181 2009-02-13  Jim Meyering  <meyering@redhat.com>
47182
47183         fts: arrange not to stat non-directories in more cases
47184         This makes GNU find (when it doesn't need to stat each file)
47185         *much* more efficient at traversing reiserfs file systems.
47186         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47187         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47188         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47189         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47190         (leaf_optimization_applies): New function.
47191         (LCO_hash, LCO_compare): New helper functions.
47192         (link_count_optimize_ok): New function.
47193         (fts_stat): Initialize new member (if dir).
47194         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47195         we've just stat'ed a directory.  Skip the stat call when possible.
47196         ---
47197         Note this AFS-related exchange:
47198         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47199         and note find's pioctl call in find/fstype.c.
47200         But that is necessary only if you want to enable the
47201         optimization for AFS, and for now, I don't.
47202
47203         fts: move a function definition "up" (no semantic change)
47204         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47205         "up" to precede upcoming use of a related function.
47206
47207 2009-02-11  Jim Meyering  <meyering@redhat.com>
47208
47209         fts: correct internal computation of nlinks (optimization-related)
47210         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47211         whether the current entry is a directory, so don't test it.
47212
47213 2009-02-10  Bruno Haible  <bruno@clisp.org>
47214
47215         Tests for module 'uniwbrk/ulc-wordbreaks'.
47216         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47217         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47218         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47219
47220         Tests for module 'uniwbrk/u32-wordbreaks'.
47221         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47222         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47223
47224         Tests for module 'uniwbrk/u16-wordbreaks'.
47225         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47226         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47227
47228         Tests for module 'uniwbrk/u8-wordbreaks'.
47229         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47230         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47231
47232 2009-02-10  Bruno Haible  <bruno@clisp.org>
47233
47234         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47235         property.
47236         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47237         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47238         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47239
47240 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47241
47242         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47243         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47244
47245 2009-02-10  Bruno Haible  <bruno@clisp.org>
47246
47247         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47248         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47249         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47250         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47251         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47252         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47253
47254 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47255
47256         * lib/sockets.h (gl_fd_to_handle): New function.
47257
47258         * tests/test-sockets.c: Call gl_fd_to_handle.
47259
47260 2009-02-09  Bruno Haible  <bruno@clisp.org>
47261
47262         * doc/havelib.texi: Document the conventions on bi-arch systems.
47263
47264 2009-02-08  Bruno Haible  <bruno@clisp.org>
47265
47266         Document the AC_LIB_LINKFLAGS macro.
47267         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47268         * doc/gnulib.texi: Include it.
47269
47270 2009-02-08  Bruno Haible  <bruno@clisp.org>
47271
47272         Fix wrong order of sections, compared to TOC.
47273         * doc/gnulib.texi: Include relocatable-maint.texi after the
47274         "Regular expressions" node, not before.
47275
47276 2009-02-08  Bruno Haible  <bruno@clisp.org>
47277
47278         Tests for module 'unicase/totitle'.
47279         * modules/unicase/totitle-tests: New file.
47280
47281         Tests for module 'unicase/tolower'.
47282         * modules/unicase/tolower-tests: New file.
47283
47284         Tests for module 'unicase/toupper'.
47285         * modules/unicase/toupper-tests: New file.
47286         * tests/unicase/test-mapping-part1.h: New file.
47287         * tests/unicase/test-mapping-part2.h: New file.
47288
47289         New module 'unicase/totitle'.
47290         * modules/unicase/totitle: New file.
47291         * lib/unicase/totitle.c: New file.
47292
47293         New module 'unicase/tolower'.
47294         * modules/unicase/tolower: New file.
47295         * lib/unicase/tolower.c: New file.
47296
47297         New module 'unicase/toupper'.
47298         * modules/unicase/toupper: New file.
47299         * lib/unicase/toupper.c: New file.
47300         * lib/unicase/simple-mapping.h: New file.
47301
47302         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47303         (mapping_table): New structure.
47304         (output_simple_mapping): New function.
47305         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47306         * modules/gen-uni-tables (Description): Update.
47307         * lib/unicase/toupper.h: New file, automatically generated by
47308         gen-uni-tables.
47309         * lib/unicase/tolower.h: New file, automatically generated by
47310         gen-uni-tables.
47311         * lib/unicase/totitle.h: New file, automatically generated by
47312         gen-uni-tables.
47313         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47314         gen-uni-tables.
47315         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47316         gen-uni-tables.
47317         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47318         gen-uni-tables.
47319
47320         New module 'unicase/base'.
47321         * modules/unicase/base: New file.
47322         * lib/unicase.h: New file.
47323
47324 2009-02-08  Bruno Haible  <bruno@clisp.org>
47325
47326         New module 'uniwbrk/ulc-wordbreaks'.
47327         * modules/uniwbrk/ulc-wordbreaks: New file.
47328         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47329
47330         New module 'uniwbrk/u32-wordbreaks'.
47331         * modules/uniwbrk/u32-wordbreaks: New file.
47332         * lib/uniwbrk/u32-wordbreaks.c: New file.
47333
47334         New module 'uniwbrk/u16-wordbreaks'.
47335         * modules/uniwbrk/u16-wordbreaks: New file.
47336         * lib/uniwbrk/u16-wordbreaks.c: New file.
47337
47338         New module 'uniwbrk/u8-wordbreaks'.
47339         * modules/uniwbrk/u8-wordbreaks: New file.
47340         * lib/uniwbrk/u8-wordbreaks.c: New file.
47341         * lib/uniwbrk/u-wordbreaks.h: New file.
47342
47343         New module 'uniwbrk/table'.
47344         * modules/uniwbrk/table: New file.
47345         * lib/uniwbrk/wbrktable.h: New file.
47346         * lib/uniwbrk/wbrktable.c: New file.
47347
47348         New module 'uniwbrk/wordbreak-property'.
47349         * modules/uniwbrk/wordbreak-property: New file.
47350         * lib/uniwbrk/wordbreak-property.c: New file.
47351
47352         * lib/gen-uni-tables.c (WBP_*): New enum items.
47353         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47354         (unicode_org_wbp): New variable.
47355         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47356         New functions.
47357         (wbp_table): New structure.
47358         (output_wbp, output_wbrk_tables): New functions.
47359         (main): Accept additional argument. Invoke fill_org_wbp,
47360         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47361         output_wbrk_tables.
47362         * modules/gen-uni-tables (Description): Update.
47363         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47364         gen-uni-tables.
47365
47366         New module 'uniwbrk/base'.
47367         * modules/uniwbrk/base: New file.
47368         * lib/uniwbrk.h: New file.
47369
47370 2009-02-08  Bruno Haible  <bruno@clisp.org>
47371
47372         Update to Unicode 5.1.0.
47373         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47374         U+2185..U+2188.
47375         (is_property_default_ignorable_code_point): Don't include characters
47376         of category Cc or Cs and not-a-characters.
47377         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47378         U+0D79, U+109E, U+109F, U+A60C.
47379         * lib/unictype/bidi_of.h: Regenerated.
47380         * lib/unictype/blocks.h: Regenerated.
47381         * lib/unictype/categ_C.h: Regenerated.
47382         * lib/unictype/categ_Cf.h: Regenerated.
47383         * lib/unictype/categ_Cn.h: Regenerated.
47384         * lib/unictype/categ_L.h: Regenerated.
47385         * lib/unictype/categ_Ll.h: Regenerated.
47386         * lib/unictype/categ_Lm.h: Regenerated.
47387         * lib/unictype/categ_Lo.h: Regenerated.
47388         * lib/unictype/categ_Lu.h: Regenerated.
47389         * lib/unictype/categ_M.h: Regenerated.
47390         * lib/unictype/categ_Mc.h: Regenerated.
47391         * lib/unictype/categ_Me.h: Regenerated.
47392         * lib/unictype/categ_Mn.h: Regenerated.
47393         * lib/unictype/categ_N.h: Regenerated.
47394         * lib/unictype/categ_Nd.h: Regenerated.
47395         * lib/unictype/categ_Nl.h: Regenerated.
47396         * lib/unictype/categ_No.h: Regenerated.
47397         * lib/unictype/categ_P.h: Regenerated.
47398         * lib/unictype/categ_Pd.h: Regenerated.
47399         * lib/unictype/categ_Pe.h: Regenerated.
47400         * lib/unictype/categ_Pf.h: Regenerated.
47401         * lib/unictype/categ_Pi.h: Regenerated.
47402         * lib/unictype/categ_Po.h: Regenerated.
47403         * lib/unictype/categ_Ps.h: Regenerated.
47404         * lib/unictype/categ_S.h: Regenerated.
47405         * lib/unictype/categ_Sk.h: Regenerated.
47406         * lib/unictype/categ_Sm.h: Regenerated.
47407         * lib/unictype/categ_So.h: Regenerated.
47408         * lib/unictype/categ_of.h: Regenerated.
47409         * lib/unictype/combining.h: Regenerated.
47410         * lib/unictype/ctype_alnum.h: Regenerated.
47411         * lib/unictype/ctype_alpha.h: Regenerated.
47412         * lib/unictype/ctype_graph.h: Regenerated.
47413         * lib/unictype/ctype_lower.h: Regenerated.
47414         * lib/unictype/ctype_print.h: Regenerated.
47415         * lib/unictype/ctype_punct.h: Regenerated.
47416         * lib/unictype/ctype_upper.h: Regenerated.
47417         * lib/unictype/decdigit.h: Regenerated.
47418         * lib/unictype/digit.h: Regenerated.
47419         * lib/unictype/mirror.h: Regenerated.
47420         * lib/unictype/numeric.h: Regenerated.
47421         * lib/unictype/pr_alphabetic.h: Regenerated.
47422         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47423         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47424         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47425         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47426         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47427         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47428         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47429         * lib/unictype/pr_combining.h: Regenerated.
47430         * lib/unictype/pr_dash.h: Regenerated.
47431         * lib/unictype/pr_decimal_digit.h: Regenerated.
47432         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47433         * lib/unictype/pr_deprecated.h: Regenerated.
47434         * lib/unictype/pr_diacritic.h: Regenerated.
47435         * lib/unictype/pr_extender.h: Regenerated.
47436         * lib/unictype/pr_format_control.h: Regenerated.
47437         * lib/unictype/pr_grapheme_base.h: Regenerated.
47438         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47439         * lib/unictype/pr_grapheme_link.h: Regenerated.
47440         * lib/unictype/pr_id_continue.h: Regenerated.
47441         * lib/unictype/pr_id_start.h: Regenerated.
47442         * lib/unictype/pr_ideographic.h: Regenerated.
47443         * lib/unictype/pr_ignorable_control.h: Regenerated.
47444         * lib/unictype/pr_lowercase.h: Regenerated.
47445         * lib/unictype/pr_math.h: Regenerated.
47446         * lib/unictype/pr_numeric.h: Regenerated.
47447         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47448         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47449         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47450         * lib/unictype/pr_other_id_continue.h: Regenerated.
47451         * lib/unictype/pr_other_lowercase.h: Regenerated.
47452         * lib/unictype/pr_other_math.h: Regenerated.
47453         * lib/unictype/pr_punctuation.h: Regenerated.
47454         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47455         * lib/unictype/pr_soft_dotted.h: Regenerated.
47456         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47457         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47458         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47459         * lib/unictype/pr_uppercase.h: Regenerated.
47460         * lib/unictype/pr_xid_continue.h: Regenerated.
47461         * lib/unictype/pr_xid_start.h: Regenerated.
47462         * lib/unictype/pr_zero_width.h: Regenerated.
47463         * lib/unictype/scripts.h: Regenerated.
47464         * lib/unictype/scripts_byname.gperf: Regenerated.
47465         * lib/unictype/sy_java_ident.h: Regenerated.
47466         * lib/unilbrk/lbrkprop1.h: Regenerated.
47467         * lib/unilbrk/lbrkprop2.h: Regenerated.
47468         * tests/unictype/test-categ_C.c: Regenerated.
47469         * tests/unictype/test-categ_Cf.c: Regenerated.
47470         * tests/unictype/test-categ_Cn.c: Regenerated.
47471         * tests/unictype/test-categ_L.c: Regenerated.
47472         * tests/unictype/test-categ_Ll.c: Regenerated.
47473         * tests/unictype/test-categ_Lm.c: Regenerated.
47474         * tests/unictype/test-categ_Lo.c: Regenerated.
47475         * tests/unictype/test-categ_Lu.c: Regenerated.
47476         * tests/unictype/test-categ_M.c: Regenerated.
47477         * tests/unictype/test-categ_Mc.c: Regenerated.
47478         * tests/unictype/test-categ_Me.c: Regenerated.
47479         * tests/unictype/test-categ_Mn.c: Regenerated.
47480         * tests/unictype/test-categ_N.c: Regenerated.
47481         * tests/unictype/test-categ_Nd.c: Regenerated.
47482         * tests/unictype/test-categ_Nl.c: Regenerated.
47483         * tests/unictype/test-categ_No.c: Regenerated.
47484         * tests/unictype/test-categ_P.c: Regenerated.
47485         * tests/unictype/test-categ_Pd.c: Regenerated.
47486         * tests/unictype/test-categ_Pe.c: Regenerated.
47487         * tests/unictype/test-categ_Pf.c: Regenerated.
47488         * tests/unictype/test-categ_Pi.c: Regenerated.
47489         * tests/unictype/test-categ_Po.c: Regenerated.
47490         * tests/unictype/test-categ_Ps.c: Regenerated.
47491         * tests/unictype/test-categ_S.c: Regenerated.
47492         * tests/unictype/test-categ_Sk.c: Regenerated.
47493         * tests/unictype/test-categ_Sm.c: Regenerated.
47494         * tests/unictype/test-categ_So.c: Regenerated.
47495         * tests/unictype/test-ctype_alnum.c: Regenerated.
47496         * tests/unictype/test-ctype_alpha.c: Regenerated.
47497         * tests/unictype/test-ctype_graph.c: Regenerated.
47498         * tests/unictype/test-ctype_lower.c: Regenerated.
47499         * tests/unictype/test-ctype_print.c: Regenerated.
47500         * tests/unictype/test-ctype_punct.c: Regenerated.
47501         * tests/unictype/test-ctype_upper.c: Regenerated.
47502         * tests/unictype/test-decdigit.h: Regenerated.
47503         * tests/unictype/test-digit.h: Regenerated.
47504         * tests/unictype/test-numeric.h: Regenerated.
47505         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47506         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47507         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47508         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47509         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47510         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47511         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47512         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47513         * tests/unictype/test-pr_combining.c: Regenerated.
47514         * tests/unictype/test-pr_dash.c: Regenerated.
47515         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47516         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47517         * tests/unictype/test-pr_deprecated.c: Regenerated.
47518         * tests/unictype/test-pr_diacritic.c: Regenerated.
47519         * tests/unictype/test-pr_extender.c: Regenerated.
47520         * tests/unictype/test-pr_format_control.c: Regenerated.
47521         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47522         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47523         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47524         * tests/unictype/test-pr_id_continue.c: Regenerated.
47525         * tests/unictype/test-pr_id_start.c: Regenerated.
47526         * tests/unictype/test-pr_ideographic.c: Regenerated.
47527         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47528         * tests/unictype/test-pr_lowercase.c: Regenerated.
47529         * tests/unictype/test-pr_math.c: Regenerated.
47530         * tests/unictype/test-pr_numeric.c: Regenerated.
47531         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47532         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47533         Regenerated.
47534         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47535         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47536         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47537         * tests/unictype/test-pr_other_math.c: Regenerated.
47538         * tests/unictype/test-pr_punctuation.c: Regenerated.
47539         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47540         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47541         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47542         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47543         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47544         * tests/unictype/test-pr_uppercase.c: Regenerated.
47545         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47546         * tests/unictype/test-pr_xid_start.c: Regenerated.
47547         * tests/unictype/test-pr_zero_width.c: Regenerated.
47548
47549         Update to Unicode 5.1.0.
47550         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47551         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47552         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47553         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47554         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47555         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47556         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47557         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47558         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47559         (nonspacing_table_ind): Update.
47560         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47561
47562         Update to Unicode 5.1.0.
47563         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47564         code transform.
47565         * lib/uniname/uniname.c (unicode_character_name,
47566         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47567         * lib/uniname/uninames.h: Regenerated.
47568         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47569
47570 2009-02-07  Bruno Haible  <bruno@clisp.org>
47571
47572         Merge gen-ctype and gen-lbrk into a single program.
47573         * lib/gen-uni-tables.c: New file, incorporating
47574         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47575         Add directory prefixes to the names of the generated files.
47576         * lib/unictype/gen-ctype.c: Remove file.
47577         * lib/unilbrk/gen-lbrk.c: Remove file.
47578         * modules/gen-uni-tables: New file.
47579         * modules/unictype/gen-ctype: Remove file.
47580         * modules/unilbrk/gen-lbrk: Remove file.
47581
47582 2009-02-07  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47585
47586         New module 'unistr/u32-strcoll'.
47587         * modules/unistr/u32-strcoll: New file.
47588         * lib/unistr/u32-strcoll.c: New file.
47589
47590         New module 'unistr/u16-strcoll'.
47591         * modules/unistr/u16-strcoll: New file.
47592         * lib/unistr/u16-strcoll.c: New file.
47593
47594         New module 'unistr/u8-strcoll'.
47595         * modules/unistr/u8-strcoll: New file.
47596         * lib/unistr/u8-strcoll.c: New file.
47597         * lib/unistr/u-strcoll.h: New file.
47598
47599 2009-02-07  Bruno Haible  <bruno@clisp.org>
47600
47601         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47602         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47603         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47604         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47605         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47606         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47607
47608 2009-02-07  Bruno Haible  <bruno@clisp.org>
47609
47610         Make 64-bit clean.
47611         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47612         output_combclass, output_bidi_category, output_decimal_digit,
47613         output_digit, output_numeric, output_mirror, output_scripts,
47614         output_ident_category): Use proper width specifier in format strings.
47615
47616 2009-02-07  Bruno Haible  <bruno@clisp.org>
47617
47618         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47619         failure behaviour.
47620
47621 2009-02-07  Jim Meyering  <meyering@redhat.com>
47622
47623         regex: avoid compilation failure with upcoming gcc-4.4
47624         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47625         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47626         "... error: integer overflow in preprocessor expression".
47627
47628 2009-02-05  Ben Pfaff  <blp@gnu.org>
47629
47630         Fix link errors on Windows when close module is used.
47631         * modules/close: Add $(LIB_CLOSE) to Link section.
47632         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47633         $(LIB_CLOSE) on Windows.
47634
47635 2009-02-05  Jim Meyering  <meyering@redhat.com>
47636
47637         still avoid unused-parameter warnings, but do it cleanly
47638         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47639         (get_fs_usage): Cast to void instead.
47640         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47641         (dev_from_mount_options, read_file_system_list): Cast to void.
47642         Prompted by Bruno Haible.
47643
47644 2009-02-04  Jim Meyering  <meyering@redhat.com>
47645
47646         fsusage.c: correct copyright year
47647         * lib/fsusage.c: Reflect year in which the change is pushed into
47648
47649         avoid misc. warnings
47650         * lib/fsusage.c (UNUSED_PARAM): Define.
47651         (get_fs_usage): Mark parameter "disk" as unused.
47652         * lib/getugroups.c (getgrent): Use "void" in prototype.
47653         * lib/mountlist.c: Mark unused parameters.
47654         (read_file_system_list): Declare a local with "const".
47655         * lib/nanosleep.c (getnow): Declare static.
47656         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47657
47658         dirfd: set errno upon failure
47659         * lib/dirfd.c: Include <errno.h>.
47660         Set errno to ENOTSUP when returning -1.
47661         * modules/dirfd (Depends-on): Add errno.
47662         Suggested by John Kodis <kodis@comcast.net>.
47663
47664 2009-02-01  Bruno Haible  <bruno@clisp.org>
47665
47666         Don't assume sizeof (long) >= sizeof (void *).
47667         * lib/memcmp.c: Include stdint.h.
47668         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47669         srcp2 to 'const byte *'.
47670         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47671         types to uintptr_t.
47672         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47673         * modules/memcmp (Depends-on): Add stdint.
47674         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47675
47676 2009-01-30  Eric Blake  <ebb9@byu.net>
47677
47678         fix more require-before-expand issues
47679         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47680         expand, AC_PROG_AWK.
47681         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47682
47683 2009-01-28  Eric Blake  <ebb9@byu.net>
47684
47685         version-etc: use consistent URL formatting
47686         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47687         Improve formatting.  Use fputs for string without %.
47688
47689 2009-01-28  Jim Meyering  <meyering@redhat.com>
47690
47691         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47692         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47693         "underquoted definition of NAME" from autoconf-2.59.
47694
47695 2009-01-28  Bruno Haible  <bruno@clisp.org>
47696
47697         * doc/gnulib.texi: Add "Obsolete modules" to index.
47698
47699 2009-01-28  Jim Meyering  <meyering@redhat.com>
47700
47701         useless-if-before-free: recognize more variants
47702         * build-aux/useless-if-before-free: Also recognize e.g.,
47703         if (NULL != p) free (p);
47704
47705 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47706
47707         test-getaddrinfo: skip (don't fail) this test when there's no network
47708         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47709         on the presumption that it means you lack network access.
47710
47711 2009-01-26  Jim Meyering  <meyering@redhat.com>
47712
47713         fflush: avoid warnings on modern systems
47714         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47715         pos and result, into scopes where they're used.
47716
47717 2009-01-26  Eric Blake  <ebb9@byu.net>
47718
47719         Silence warning reintroduced by recent extensions patch.
47720         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47721         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47722         autoconf.
47723
47724         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47725         * m4/00gnulib.m4: New file.
47726         * gnulib-tool (func_get_filelist): Always use it.
47727         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47728         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47729
47730 2009-01-25  Bruno Haible  <bruno@clisp.org>
47731
47732         Make test-quotearg work on MacOS X and AIX.
47733         * tests/test-quotearg.sh: New file.
47734         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47735         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47736         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47737         include <libintl.h>.
47738         (fake_locale): Remove variable.
47739         (gettext, dgettext, dcgettext): Remove functions.
47740         (main): Instead of setting a fake locale, set a real locale. Call
47741         textdomain and bindtextdomain.
47742         * modules/quotearg-tests (Files): Add the new files.
47743         (Depends-on): Add gettext, setenv, unsetenv.
47744         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47745         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47746         Augment TESTS_ENVIRONMENT.
47747
47748 2009-01-25  Bruno Haible  <bruno@clisp.org>
47749
47750         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47751         fr_FR.ISO8859-1 locale on MacOS X.
47752         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47753         ja_JP.eucJP locale on MacOS X.
47754         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47755         zh_CN.GB18030 locale on MacOS X.
47756
47757 2009-01-25  Bruno Haible  <bruno@clisp.org>
47758
47759         Avoid link errors on MacOS X 10.3.
47760         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47761         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47762
47763 2009-01-25  Bruno Haible  <bruno@clisp.org>
47764
47765         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47766         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47767         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47768         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47769         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47770         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47771         posix_spawnattr_init, posix_spawnattr_setsigmask,
47772         posix_spawnattr_setflags, posix_spawnattr_destroy.
47773
47774         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47775         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47776         * modules/execute (Files): Remove m4/posix_spawn.m4.
47777         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47778         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47779         posix_spawnattr_init, posix_spawnattr_setsigmask,
47780         posix_spawnattr_setflags, posix_spawnattr_destroy.
47781
47782 2009-01-25  Bruno Haible  <bruno@clisp.org>
47783
47784         * lib/glthread/threadlib.c: Include <stdlib.h>.
47785
47786 2009-01-25  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/glthread/threadlib.c (dummy): New declaration.
47789
47790 2009-01-25  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47793         multibyte characters also for the GB18030 encoding. Don't crash when
47794         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47795
47796 2009-01-25  Bruno Haible  <bruno@clisp.org>
47797
47798         Avoid redefining 'struct random_data' on OSF/1 5.1.
47799         * lib/stdlib.in.h: Include <random.h> if it exists.
47800         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47801         HAVE_RANDOM_H. Include <random.h> when testing whether
47802         'struct random_data' exists.
47803         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47804
47805 2009-01-25  Bruno Haible  <bruno@clisp.org>
47806
47807         Don't install charset.alias on MacOS X >= 10.3.
47808         * lib/localcharset.c (DARWIN7): New macro.
47809         (get_charset_aliases): Hardcode the result for Darwin7.
47810         * modules/localcharset (install-exec-local): Don't install
47811         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47812
47813 2009-01-25  Bruno Haible  <bruno@clisp.org>
47814
47815         Don't install charset.alias on mingw and Cygwin.
47816         * modules/localcharset (install-exec-local): Don't install
47817         charset.alias on mingw and Cygwin, if the file does not yet exist.
47818         The result for these platforms is hardcoded in localcharset.c.
47819
47820 2009-01-25  Bruno Haible  <bruno@clisp.org>
47821
47822         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47823         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47824         before requiring AC_USE_SYSTEM_EXTENSIONS.
47825
47826 2009-01-25  Jim Meyering  <meyering@redhat.com>
47827
47828         c-strtod: avoid warnings
47829         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47830         "assignment discards qualifiers from pointer target type" warnings.
47831
47832 2009-01-24  Bruno Haible  <bruno@clisp.org>
47833
47834         Add support for non-UTF-8 locales on MacOS X.
47835         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47836         canonical encodings. For Darwin 7 and newer, don't map traditional
47837         encodings to UTF-8.
47838         Reported by Vincent Lefevre <vincent@vinc17.org>
47839         at <http://savannah.gnu.org/bugs/?25235>.
47840
47841 2009-01-24  Bruno Haible  <bruno@clisp.org>
47842
47843         * doc/gnulib.texi (Obsolete modules): New section.
47844         Reported by Mike Frysinger <vapier@gentoo.org>.
47845
47846 2009-01-24  Bruno Haible  <bruno@clisp.org>
47847
47848         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47849         (%.dvi): New rule.
47850
47851 2009-01-24  Bruno Haible  <bruno@clisp.org>
47852
47853         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47854         Reported by Eric Blake.
47855
47856 2009-01-24  Bruno Haible  <bruno@clisp.org>
47857
47858         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47859         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47860         Reported by Gary V. Vaughan <gary@gnu.org>.
47861
47862 2009-01-24  Bruno Haible  <bruno@clisp.org>
47863
47864         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47865
47866 2009-01-23  Bruno Haible  <bruno@clisp.org>
47867
47868         Make c-strtod, c-strtold usable in libraries.
47869         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47870         (C_STRTOD): Call strdup instead of xstrdup.
47871         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47872         * modules/c-strtold (Depends-on): Likewise.
47873         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47874         * NEWS: Mention the change.
47875         Reported by Michael Gold <mgold@ncf.ca>.
47876
47877 2009-01-23  Jim Meyering  <meyering@redhat.com>
47878
47879         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47880         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47881         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47882
47883 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47884
47885         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47886         GNU CoreUtils.
47887         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47888         * modules/version-etc (Description): Update.
47889
47890 2009-01-22  Bruno Haible  <bruno@clisp.org>
47891
47892         Cache the C locale object.
47893         * lib/c-strtod.c (c_locale_cache): New variable.
47894         (c_locale): New function.
47895         (C_STRTOD): Use it, and don't call freelocale.
47896         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47897         Suggested by Paolo Bonzini.
47898
47899 2009-01-21  Bruno Haible  <bruno@clisp.org>
47900
47901         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47902         conditions other than overflow.
47903
47904 2009-01-21  Bruno Haible  <bruno@clisp.org>
47905
47906         * lib/c-strtod.c: Include errno.h.
47907         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47908         value from STRTOD_L and STRTOD.
47909
47910 2009-01-21  Bruno Haible  <bruno@clisp.org>
47911         and Jim Meyering  <meyering@redhat.com>
47912
47913         nanosleep: skip configure test (fail it) for apple universal builds
47914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47915         universal builds, assume that nanosleep does not work.
47916         * modules/nanosleep (Depends-on): Add multiarch.
47917
47918         mktime: skip configure test (fail it) for apple universal builds
47919         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47920         universal builds, assume that mktime does not work.
47921         * modules/mktime (Depends-on): Add multiarch.
47922
47923 2009-01-21  Eric Blake  <ebb9@byu.net>
47924
47925         multiarch: avoid expand-before-require warning
47926         * modules/multiarch (configure.ac): Require, rather than expand,
47927         gl_MULTIARCH.
47928         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47929         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47930         enforce that all clients require it.  Partial reversion of
47931         2008-12-29 patch.
47932
47933         error: avoid expand-before-require warning
47934         * modules/errno (configure.ac): Require, rather than expand,
47935         gl_HEADER_ERRNO_H.
47936         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47937         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47938         enforce that all clients require it.
47939
47940         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47941         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47942         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47943         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47944
47945 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47946
47947         Revert:
47948         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47949
47950         regex: do not depend on obsolete modules.
47951         * modules/regex: Remove memcmp and memmove.
47952
47953 2009-01-20  Bruno Haible  <bruno@clisp.org>
47954
47955         Make the 'link' module link on Windows NT 4.
47956         * lib/link.c (_WIN32_WINNT): Don't define.
47957         (CreateHardLinkFuncType): New type.
47958         (CreateHardLinkFunc, initialized): New variables.
47959         (initialize): New function.
47960         (link): Invoke CreateHardLink indirectly through the function pointer.
47961
47962 2009-01-20  Bruno Haible  <bruno@clisp.org>
47963
47964         Fix compilation failure on mingw.
47965         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47966
47967 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47968
47969         * doc/c-strtod.texi: Mention a couple of restrictions.
47970
47971 2009-01-20  Jim Meyering  <meyering@redhat.com>
47972
47973         gettimeofday: move more declarations out of functions
47974         * lib/gettimeofday.c: Move extern declarations of tzset and
47975         gmtime out of containing functions.  Prompted by Bruno Haible.
47976
47977 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47978
47979         regex: do not depend on obsolete modules.
47980         * modules/regex: Remove memcmp and memmove.
47981
47982 2009-01-19  Bruno Haible  <bruno@clisp.org>
47983
47984         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47985         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47986         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47987         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47988         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47989
47990 2009-01-19  Bruno Haible  <bruno@clisp.org>
47991
47992         * tests/test-link.c: Include <errno.h>.
47993         (main): Exit with code 77 when a hard link cannot be created due to
47994         the file system.
47995         * tests/test-link.sh: Skip test when a hard link cannot be created due
47996         to the file system.
47997         Suggested by Eric Blake.
47998
47999 2009-01-19  Martin Lambers  <marlam@marlam.de>
48000
48001         * modules/link-tests: New file.
48002         * tests/test-link.sh: New file.
48003         * tests/test-link.c: New file.
48004
48005 2009-01-19  Eric Blake  <ebb9@byu.net>
48006
48007         doc: mention another function added in cygwin 1.7.0
48008         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48009         Another new function in cygwin 1.7.
48010
48011 2009-01-19  Bruno Haible  <bruno@clisp.org>
48012
48013         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48014         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48015         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48016         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48017         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48018         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48019         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48020         * m4/md4.m4 (gl_MD4): Likewise.
48021         * m4/md5.m4 (gl_MD5): Likewise.
48022         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48023         * m4/sha1.m4 (gl_SHA1): Likewise.
48024         * m4/sha256.m4 (gl_SHA256): Likewise.
48025         * m4/sha512.m4 (gl_SHA512): Likewise.
48026
48027 2009-01-19  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/uniname/uniname-tests (Depends-on): Add progname.
48030         * tests/uniname/test-uninames.c: Include progname.h.
48031         (main): Call set_program_name.
48032
48033         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48034         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48035         (main): Call set_program_name.
48036
48037         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48038         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48039         (main): Call set_program_name.
48040
48041         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48042         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48043         (main): Call set_program_name.
48044
48045         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48046         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48047         (main): Call set_program_name.
48048
48049         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48050         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48051         (main): Call set_program_name.
48052
48053         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48054         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48055         (main): Call set_program_name.
48056
48057         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48058         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48059         (main): Call set_program_name.
48060
48061         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48062         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48063         (main): Call set_program_name.
48064
48065 2009-01-19  Eric Blake  <ebb9@byu.net>
48066
48067         test-unistd: test previous patch
48068         * tests/test-unistd.c: Test *_FILENO macros.
48069
48070         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48071         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48072         Guarantee a definition.
48073         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48074         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48075         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48076         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48077         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48078         Likewise.
48079         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48080         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48081         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48082         Likewise.
48083         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48084         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48085         (STDERR_FILENO): Likewise.
48086         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48087         (STDERR_FILENO): Likewise.
48088         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48089         (STDERR_FILENO): Likewise.
48090         Reported by Elbert Pol.
48091
48092 2009-01-19  Eric Blake  <ebb9@byu.net>
48093
48094         doc: mention more functions added in cygwin 1.7.0
48095         * doc/posix-functions/abort.texi (abort): Update wording related
48096         to cygwin.
48097         * doc/posix-functions/daylight.texi (daylight): Likewise.
48098         * doc/posix-functions/optarg.texi (optarg): Likewise.
48099         * doc/posix-functions/optarg.texi (opterr): Likewise.
48100         * doc/posix-functions/optarg.texi (optind): Likewise.
48101         * doc/posix-functions/optarg.texi (optopt): Likewise.
48102         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48103         worked in 1.5.x, and was withdrawn in 1.7.
48104         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48105         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48106         cygwin versions.
48107         * doc/posix-functions/perror.texi (perror): Likewise.
48108         * doc/posix-functions/printf.texi (printf): Likewise.
48109         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48110         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48111         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48112         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48113         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48114         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48115         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48116         Likewise.
48117         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48118         Likewise.
48119         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48120         this function.
48121         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48122         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48123         Likewise.
48124         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48125         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48126         * doc/posix-functions/confstr.texi (confstr): Likewise.
48127         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48128         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48129         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48130         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48131         * doc/posix-functions/fputws.texi (fputws): Likewise.
48132         * doc/posix-functions/fwide.texi (fwide): Likewise.
48133         * doc/posix-functions/getwc.texi (getwc): Likewise.
48134         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48135         * doc/posix-functions/putwc.texi (putwc): Likewise.
48136         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48137         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48138         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48139         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48140         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48141         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48142         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48143         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48144         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48145         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48146         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48147
48148 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48149
48150         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48151         * lib/ioctl.c: Include <sys/ioctl.h>.
48152
48153 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48154
48155         * modules/getdate-tests (Depends-on): Add progname.
48156         * tests/test-getdate.c: Use progname module, to avoid link errors
48157         on non-glibc systems.
48158
48159 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48160
48161         * modules/filenamecat-tests (Depends-on): Add progname.
48162         * modules/fstrcmp-tests (Depends-on): Likewise.
48163
48164         * tests/test-filenamecat.c: Use progname module, to avoid link
48165         errors on non-glibc systems.
48166         * tests/test-fstrcmp.c: Likewise.
48167
48168 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48169
48170         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48171         * lib/gettimeofday.c: Move extern declaration out of function.
48172
48173 2009-01-18  Bruno Haible  <bruno@clisp.org>
48174
48175         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48176         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48177         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48178
48179 2009-01-18  Bruno Haible  <bruno@clisp.org>
48180
48181         * lib/strftime.c (MEMPCPY): Remove unused macro.
48182         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48183
48184 2009-01-18  Martin Lambers  <marlam@marlam.de>
48185
48186         New module 'link'.
48187         * lib/unistd.in.h (link): New declaration.
48188         * lib/link.c: New file.
48189         * m4/link.m4: New file.
48190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48191         HAVE_LINK.
48192         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48193         * modules/link: New file.
48194         * doc/posix-functions/link.texi: Mention the new module.
48195
48196 2009-01-18  Bruno Haible  <bruno@clisp.org>
48197
48198         * tests/test-avltree_list.c (main): Call set_program_name.
48199         * tests/test-avltree_oset.c (main): Likewise.
48200         * tests/test-obstack-printf.c: Include progname.h.
48201         (main): Call set_program_name.
48202         * tests/test-quotearg.c: Include progname.h.
48203         (main): Call set_program_name.
48204         * tests/test-xmemdup0.c: Include progname.h.
48205         (main): Call set_program_name.
48206
48207 2009-01-18  Bruno Haible  <bruno@clisp.org>
48208
48209         New module 'alphasort'.
48210         * lib/dirent.in.h (alphasort): New declaration.
48211         * lib/alphasort.c: New file, from glibc with modifications.
48212         * m4/alphasort.m4: New file.
48213         * modules/alphasort: New file.
48214         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48215         HAVE_ALPHASORT.
48216         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48217         HAVE_ALPHASORT.
48218         * doc/posix-functions/alphasort.texi: Mention the new module and the
48219         portability problems.
48220
48221 2009-01-18  Bruno Haible  <bruno@clisp.org>
48222
48223         New module 'scandir'.
48224         * lib/dirent.in.h (scandir): New declaration.
48225         * lib/scandir.c: New file, from glibc with modifications.
48226         * m4/scandir.m4: New file.
48227         * modules/scandir: New file.
48228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48229         HAVE_SCANDIR.
48230         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48231         HAVE_SCANDIR.
48232         * doc/posix-functions/scandir.texi: Mention the new module and the
48233         portability problems.
48234
48235 2009-01-17  Bruno Haible  <bruno@clisp.org>
48236
48237         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48238         Update documentation.
48239         (func_remove_suffix): Escape all dots in the suffix. Update
48240         documentation.
48241         (func_filter_filelist): Update documentation.
48242         Reported by Ralf Wildenhues.
48243
48244 2009-01-17  Bruno Haible  <bruno@clisp.org>
48245
48246         * modules/dprintf-posix-tests: New file.
48247         * tests/test-dprintf-posix.sh: New file.
48248         * tests/test-dprintf-posix.c: New file.
48249
48250         New modules 'dprintf', 'dprintf-posix'.
48251         * lib/stdio.in.h (dprintf): New declaration.
48252         * lib/dprintf.c: New file.
48253         * m4/dprintf.m4: New file.
48254         * m4/dprintf-posix.m4: New file.
48255         * modules/dprintf: New file.
48256         * modules/dprintf-posix: New file.
48257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48258         HAVE_DPRINTF, REPLACE_DPRINTF.
48259         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48260         HAVE_DPRINTF, REPLACE_DPRINTF.
48261         * doc/posix-functions/dprintf.texi: Mention the new modules.
48262
48263 2009-01-17  Bruno Haible  <bruno@clisp.org>
48264
48265         * modules/vdprintf-posix-tests: New file.
48266         * tests/test-vdprintf-posix.sh: New file.
48267         * tests/test-vdprintf-posix.c: New file.
48268
48269         New modules 'vdprintf', 'vdprintf-posix'.
48270         * lib/stdio.in.h (vdprintf): New declaration.
48271         * lib/vdprintf.c: New file.
48272         * m4/vdprintf.m4: New file.
48273         * m4/vdprintf-posix.m4: New file.
48274         * modules/vdprintf: New file.
48275         * modules/vdprintf-posix: New file.
48276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48277         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48278         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48279         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48280         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48281
48282 2009-01-17  Bruno Haible  <bruno@clisp.org>
48283
48284         Fix replacement of fopen on mingw.
48285         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48286         mingw.
48287
48288 2009-01-17  Bruno Haible  <bruno@clisp.org>
48289
48290         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48291         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48292
48293 2009-01-17  Bruno Haible  <bruno@clisp.org>
48294
48295         Avoid test-fflush2.sh failure on mingw.
48296         * tests/test-fflush2.c: Include binary-io.h.
48297         (main): Put standard input into binary mode.
48298         * modules/fflush-tests (Depends-on): Add binary-io.
48299
48300 2009-01-17  Bruno Haible  <bruno@clisp.org>
48301
48302         * lib/wchar.in.h: In another particular situation, include only the
48303         system's <wchar.h> file.
48304         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48305         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48306         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48307
48308 2009-01-17  Bruno Haible  <bruno@clisp.org>
48309
48310         Support for stripping executables in --enable-relocatable.
48311         * build-aux/install-reloc: Expect one more argument, or an environment
48312         variable RELOC_STRIP_PROG. If set, strip the destination program and
48313         its wrapper.
48314         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48315         RELOC_STRIP_PROG.
48316         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48317         to set RELOCATABLE_STRIP.
48318         * NEWS: Mention the new Makefile requirement.
48319
48320 2009-01-17  Bruno Haible  <bruno@clisp.org>
48321
48322         * build-aux/install-reloc: Remove debugging information left over by
48323         C compiler on MacOS X.
48324
48325 2009-01-17  Bruno Haible  <bruno@clisp.org>
48326
48327         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48328         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48329         _NSGetExecutablePath.
48330
48331 2009-01-16  Jim Meyering  <meyering@redhat.com>
48332
48333         strerror: avoid warnings about discarding "const"
48334         * lib/strerror.c (rpl_strerror): Instead of returning a const
48335         string from each and every "case", use a variable, and add a single
48336         cast after the switch.
48337
48338 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48339
48340         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48341
48342 2009-01-16  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48345         array initializer syntax that also works in C++ mode.
48346         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48347
48348 2009-01-16  Jim Meyering  <meyering@redhat.com>
48349
48350         poll: suppress a warning
48351         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48352         to ignore "...unsigned expression < 0 is always false" warnings.
48353
48354 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48355
48356         poll: remove declarations of unused variables
48357         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48358         sockbuf and optlen.
48359
48360 2009-01-15  Bruno Haible  <bruno@clisp.org>
48361
48362         Make fflush-after-ungetc POSIX compliant on BSD systems.
48363         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48364         (clear_ungetc_buffer): Implement also for other systems.
48365         (rpl_fflush): On glibc systems, invoke
48366         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48367         clear_ungetc_buffer after fetching the stream's position, not before.
48368
48369 2009-01-15  Bruno Haible  <bruno@clisp.org>
48370
48371         Make fflush-after-ungetc POSIX compliant on glibc systems.
48372         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48373         after ungetc.
48374         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48375         (rpl_fflush): On glibc systems, simply call the system's fflush
48376         function after clearing the ungetc buffer.
48377         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48378         Instead, lseek only to the end of file, then use the system's fseeko
48379         for the rest. On glibc systems, reset the EOF indicator bit.
48380
48381 2009-01-15  Jim Meyering  <meyering@redhat.com>
48382
48383         openmp.m4: revert quote-adding change, for portability to older autoconf
48384         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48385         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48386         Simon Josefsson noticed the problem when using autoconf-2.61.
48387
48388 2009-01-15  Bruno Haible  <bruno@clisp.org>
48389
48390         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48391         * tests/test-fflush2.c (ASSERT): Always fail.
48392         (main): Add two tests for fflush() after ungetc(), taking into account
48393         the Austin Group's clarification.
48394         Suggested by Eric Blake.
48395
48396 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48397
48398         mktime.m4: remove K&R-style function prototypes
48399         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48400         for the Sun C++ compiler.
48401
48402 2009-01-14  Bruno Haible  <bruno@clisp.org>
48403
48404         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48405         while including <wchar.h>.
48406         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48407         the system's <wchar.h> file.
48408         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48409
48410 2009-01-14  Bruno Haible  <bruno@clisp.org>
48411
48412         * m4/csharp.m4: Don't mention gettext on the serial number line.
48413         * m4/csharpexec.m4: Likewise.
48414         * m4/eaccess.m4: Likewise.
48415         * m4/javaexec.m4: Likewise.
48416         * m4/sig_atomic_t.m4: Likewise.
48417         * m4/tmpdir.m4: Likewise.
48418         * m4/intldir.m4: Bump gettext version.
48419         * m4/lib-ld.m4: Likewise.
48420
48421 2009-01-14  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/progname.c (set_program_name): Add more comments.
48424         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48425
48426 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48427
48428         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48429         were sys/stat.h does not define it.
48430
48431 2009-01-14  Jim Meyering  <meyering@redhat.com>
48432
48433         many *.m4 files: improve m4 quoting
48434         99% of this change was performed by running the following commands:
48435         git ls-files | grep '\.m4$' | xargs perl -pi \
48436           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48437           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48438           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48439           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48440         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48441         The remainder were to add Copyright dates, increment serial numbers,
48442         undo some changes in comments, exclude m4/intl.m4, and add quotes
48443         around the "1" in ",1" where the unusual spacing prohibited the
48444         above regexps from doing the job.  For more details, see
48445         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48446         * m4/acl.m4: Modified.
48447         * m4/afs.m4: Likewise.
48448         * m4/alloca.m4: Likewise.
48449         * m4/argp.m4: Likewise.
48450         * m4/argz.m4: Likewise.
48451         * m4/atexit.m4: Likewise.
48452         * m4/bison-i18n.m4: Likewise.
48453         * m4/bison.m4: Likewise.
48454         * m4/byteswap.m4: Likewise.
48455         * m4/c-stack.m4: Likewise.
48456         * m4/c-strtod.m4: Likewise.
48457         * m4/calloc.m4: Likewise.
48458         * m4/canonicalize-lgpl.m4: Likewise.
48459         * m4/chown.m4: Likewise.
48460         * m4/clock_time.m4: Likewise.
48461         * m4/codeset.m4: Likewise.
48462         * m4/copy-file.m4: Likewise.
48463         * m4/csharp.m4: Likewise.
48464         * m4/csharpcomp.m4: Likewise.
48465         * m4/csharpexec.m4: Likewise.
48466         * m4/d-ino.m4: Likewise.
48467         * m4/d-type.m4: Likewise.
48468         * m4/dirfd.m4: Likewise.
48469         * m4/double-slash-root.m4: Likewise.
48470         * m4/eaccess.m4: Likewise.
48471         * m4/eealloc.m4: Likewise.
48472         * m4/environ.m4: Likewise.
48473         * m4/errno_h.m4: Likewise.
48474         * m4/euidaccess.m4: Likewise.
48475         * m4/execute.m4: Likewise.
48476         * m4/fatal-signal.m4: Likewise.
48477         * m4/fchdir.m4: Likewise.
48478         * m4/fcntl_h.m4: Likewise.
48479         * m4/fileblocks.m4: Likewise.
48480         * m4/filenamecat.m4: Likewise.
48481         * m4/findprog.m4: Likewise.
48482         * m4/flexmember.m4: Likewise.
48483         * m4/fnmatch.m4: Likewise.
48484         * m4/fopen.m4: Likewise.
48485         * m4/fpending.m4: Likewise.
48486         * m4/fprintf-posix.m4: Likewise.
48487         * m4/free.m4: Likewise.
48488         * m4/frexp.m4: Likewise.
48489         * m4/frexpl.m4: Likewise.
48490         * m4/fsusage.m4: Likewise.
48491         * m4/ftruncate.m4: Likewise.
48492         * m4/gc-camellia.m4: Likewise.
48493         * m4/gc-random.m4: Likewise.
48494         * m4/gc.m4: Likewise.
48495         * m4/getaddrinfo.m4: Likewise.
48496         * m4/getcwd-abort-bug.m4: Likewise.
48497         * m4/getcwd-path-max.m4: Likewise.
48498         * m4/getdate.m4: Likewise.
48499         * m4/getdomainname.m4: Likewise.
48500         * m4/getgroups.m4: Likewise.
48501         * m4/gethostname.m4: Likewise.
48502         * m4/gethrxtime.m4: Likewise.
48503         * m4/getline.m4: Likewise.
48504         * m4/getloadavg.m4: Likewise.
48505         * m4/getndelim2.m4: Likewise.
48506         * m4/getpass.m4: Likewise.
48507         * m4/gettext.m4: Likewise.
48508         * m4/gettime.m4: Likewise.
48509         * m4/gettimeofday.m4: Likewise.
48510         * m4/gnulib-common.m4: Likewise.
48511         * m4/group-member.m4: Likewise.
48512         * m4/host-os.m4: Likewise.
48513         * m4/iconv.m4: Likewise.
48514         * m4/iconv_open.m4: Likewise.
48515         * m4/inet_ntop.m4: Likewise.
48516         * m4/inet_pton.m4: Likewise.
48517         * m4/inline.m4: Likewise.
48518         * m4/intldir.m4: Likewise.
48519         * m4/intlmacosx.m4: Likewise.
48520         * m4/intmax.m4: Likewise.
48521         * m4/intmax_t.m4: Likewise.
48522         * m4/inttypes.m4: Likewise.
48523         * m4/inttypes_h.m4: Likewise.
48524         * m4/inttypes-pri.m4: Likewise.
48525         * m4/isapipe.m4: Likewise.
48526         * m4/isnand.m4: Likewise.
48527         * m4/isnanf.m4: Likewise.
48528         * m4/isnanl.m4: Likewise.
48529         * m4/javacomp.m4: Likewise.
48530         * m4/javaexec.m4: Likewise.
48531         * m4/jm-winsz1.m4: Likewise.
48532         * m4/jm-winsz2.m4: Likewise.
48533         * m4/lchown.m4: Likewise.
48534         * m4/lcmessage.m4: Likewise.
48535         * m4/ldexpl.m4: Likewise.
48536         * m4/lib-ld.m4: Likewise.
48537         * m4/lib-link.m4: Likewise.
48538         * m4/libsigsegv.m4: Likewise.
48539         * m4/link-follow.m4: Likewise.
48540         * m4/localcharset.m4: Likewise.
48541         * m4/locale-fr.m4: Likewise.
48542         * m4/locale-ja.m4: Likewise.
48543         * m4/locale-tr.m4: Likewise.
48544         * m4/locale-zh.m4: Likewise.
48545         * m4/lock.m4: Likewise.
48546         * m4/longlong.m4: Likewise.
48547         * m4/ls-mntd-fs.m4: Likewise.
48548         * m4/lstat.m4: Likewise.
48549         * m4/malloc.m4: Likewise.
48550         * m4/mathl.m4: Likewise.
48551         * m4/mbrtowc.m4: Likewise.
48552         * m4/mbstate_t.m4: Likewise.
48553         * m4/mbswidth.m4: Likewise.
48554         * m4/memchr.m4: Likewise.
48555         * m4/memcmp.m4: Likewise.
48556         * m4/memcpy.m4: Likewise.
48557         * m4/memmem.m4: Likewise.
48558         * m4/memmove.m4: Likewise.
48559         * m4/mempcpy.m4: Likewise.
48560         * m4/memrchr.m4: Likewise.
48561         * m4/memset.m4: Likewise.
48562         * m4/minmax.m4: Likewise.
48563         * m4/mkdir-slash.m4: Likewise.
48564         * m4/mkdtemp.m4: Likewise.
48565         * m4/mktime.m4: Likewise.
48566         * m4/mmap-anon.m4: Likewise.
48567         * m4/mountlist.m4: Likewise.
48568         * m4/nanosleep.m4: Likewise.
48569         * m4/nls.m4: Likewise.
48570         * m4/nocrash.m4: Likewise.
48571         * m4/open.m4: Likewise.
48572         * m4/openat.m4: Likewise.
48573         * m4/openmp.m4: Likewise.
48574         * m4/pathmax.m4: Likewise.
48575         * m4/perl.m4: Likewise.
48576         * m4/physmem.m4: Likewise.
48577         * m4/pipe.m4: Likewise.
48578         * m4/po.m4: Likewise.
48579         * m4/poll.m4: Likewise.
48580         * m4/posixtm.m4: Likewise.
48581         * m4/posixver.m4: Likewise.
48582         * m4/printf-frexp.m4: Likewise.
48583         * m4/printf-frexpl.m4: Likewise.
48584         * m4/printf-posix.m4: Likewise.
48585         * m4/printf-posix-rpl.m4: Likewise.
48586         * m4/printf.m4: Likewise.
48587         * m4/progtest.m4: Likewise.
48588         * m4/putenv.m4: Likewise.
48589         * m4/readline.m4: Likewise.
48590         * m4/readlink.m4: Likewise.
48591         * m4/readutmp.m4: Likewise.
48592         * m4/realloc.m4: Likewise.
48593         * m4/regex.m4: Likewise.
48594         * m4/relocatable.m4: Likewise.
48595         * m4/relocatable-lib.m4: Likewise.
48596         * m4/rename-dest-slash.m4: Likewise.
48597         * m4/rename.m4: Likewise.
48598         * m4/rmdir-errno.m4: Likewise.
48599         * m4/rmdir.m4: Likewise.
48600         * m4/roundf.m4: Likewise.
48601         * m4/roundl.m4: Likewise.
48602         * m4/rpmatch.m4: Likewise.
48603         * m4/save-cwd.m4: Likewise.
48604         * m4/selinux-selinux-h.m4: Likewise.
48605         * m4/setenv.m4: Likewise.
48606         * m4/settime.m4: Likewise.
48607         * m4/sig2str.m4: Likewise.
48608         * m4/sig_atomic_t.m4: Likewise.
48609         * m4/signalblocking.m4: Likewise.
48610         * m4/signbit.m4: Likewise.
48611         * m4/sigpipe.m4: Likewise.
48612         * m4/sockets.m4: Likewise.
48613         * m4/sockpfaf.m4: Likewise.
48614         * m4/st_dm_mode.m4: Likewise.
48615         * m4/stat-time.m4: Likewise.
48616         * m4/stdbool.m4: Likewise.
48617         * m4/stdint.m4: Likewise.
48618         * m4/stdint_h.m4: Likewise.
48619         * m4/stpcpy.m4: Likewise.
48620         * m4/stpncpy.m4: Likewise.
48621         * m4/strcase.m4: Likewise.
48622         * m4/strchrnul.m4: Likewise.
48623         * m4/strcspn.m4: Likewise.
48624         * m4/strdup.m4: Likewise.
48625         * m4/strftime.m4: Likewise.
48626         * m4/strndup.m4: Likewise.
48627         * m4/strnlen.m4: Likewise.
48628         * m4/strpbrk.m4: Likewise.
48629         * m4/strptime.m4: Likewise.
48630         * m4/strsep.m4: Likewise.
48631         * m4/strtod.m4: Likewise.
48632         * m4/strtoimax.m4: Likewise.
48633         * m4/strtok_r.m4: Likewise.
48634         * m4/strtol.m4: Likewise.
48635         * m4/strtoll.m4: Likewise.
48636         * m4/strtoul.m4: Likewise.
48637         * m4/strtoull.m4: Likewise.
48638         * m4/strtoumax.m4: Likewise.
48639         * m4/strverscmp.m4: Likewise.
48640         * m4/threadlib.m4: Likewise.
48641         * m4/timegm.m4: Likewise.
48642         * m4/tm_gmtoff.m4: Likewise.
48643         * m4/tmpdir.m4: Likewise.
48644         * m4/tmpfile.m4: Likewise.
48645         * m4/tzset.m4: Likewise.
48646         * m4/uintmax_t.m4: Likewise.
48647         * m4/unlinkdir.m4: Likewise.
48648         * m4/unlocked-io.m4: Likewise.
48649         * m4/uptime.m4: Likewise.
48650         * m4/userspec.m4: Likewise.
48651         * m4/utimbuf.m4: Likewise.
48652         * m4/utime.m4: Likewise.
48653         * m4/utimes-null.m4: Likewise.
48654         * m4/utimes.m4: Likewise.
48655         * m4/vararrays.m4: Likewise.
48656         * m4/vasnprintf.m4: Likewise.
48657         * m4/vfprintf-posix.m4: Likewise.
48658         * m4/vprintf-posix.m4: Likewise.
48659         * m4/wait-process.m4: Likewise.
48660         * m4/wchar_t.m4: Likewise.
48661         * m4/wint_t.m4: Likewise.
48662         * m4/write-any-file.m4: Likewise.
48663         * m4/yield.m4: Likewise.
48664
48665 2009-01-13  Bruno Haible  <bruno@clisp.org>
48666
48667         Avoid test-copy-file.sh failures when ACL support insufficient.
48668         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48669         TESTS_ENVIRONMENT.
48670         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48671         Reported by Jim Meyering.
48672
48673 2009-01-13  Bruno Haible  <bruno@clisp.org>
48674
48675         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48676         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48677         * modules/unistdio/u8-printf-parse (Files): Likewise.
48678         * modules/unistdio/u32-printf-parse (Files): Likewise.
48679         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48680
48681 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48682
48683         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48684         and m4/inttypes_h.m4 too.
48685
48686 2009-01-12  Eric Blake  <ebb9@byu.net>
48687
48688         tests: IRIX 6.2 cc can't compile -0.0 into .data
48689         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48690         rather than at compile-time.
48691         * tests/test-floorl.c (minus_zero): Likewise.
48692         * tests/test-frexpl.c (minus_zero): Likewise.
48693         * tests/test-isnan.c (minus_zerol): Likewise.
48694         * tests/test-isnanl.h (minus_zero): Likewise.
48695         * tests/test-ldexpl.c (minus_zero): Likewise.
48696         * tests/test-roundl.c (minus_zero): Likewise.
48697         * tests/test-signbit.c (minus_zerol): Likewise.
48698         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48699         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48700         * tests/test-truncl.c (minus_zero): Likewise.
48701         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48702         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48703         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48704
48705 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48706
48707         regex: fix glibc bug 9697
48708         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48709         handling.
48710
48711 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48712
48713         regex: fix glibc bug 697
48714         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48715         being NULL also if there are no backreferences.
48716
48717 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48718
48719         regex: merge glibc changes
48720         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48721         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48722         re_string_skip_chars, re_string_reconstruct): Likewise.
48723         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48724
48725 2009-01-07  Jim Meyering  <meyering@redhat.com>
48726
48727         poll: filter through cppi
48728         * lib/poll.c: Indent cpp directives to reflect nesting.
48729
48730 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48731
48732         poll: don't return uninitialized
48733         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48734
48735 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48736
48737         avoid compile failure on AIX 6.1
48738         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48739         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48740
48741 2009-01-04  Jim Meyering  <meyering@redhat.com>
48742
48743         remove duplicate inclusion of <stdio.h>
48744         * tests/test-fprintf-posix.c: Likewise.
48745         * tests/test-printf-posix.c: Likewise.
48746         * tests/test-snprintf-posix.c: Likewise.
48747         * tests/test-sprintf-posix.c: Likewise.
48748         * tests/test-vasprintf-posix.c: Likewise.
48749         * tests/test-vfprintf-posix.c: Likewise.
48750         * tests/test-vprintf-posix.c: Likewise.
48751         * tests/test-vsnprintf-posix.c: Likewise.
48752         * tests/test-vsprintf-posix.c: Likewise.
48753
48754 2009-01-03  Jim Meyering  <meyering@redhat.com>
48755
48756         gnulib-tool: fix sed-based filtering
48757         * gnulib-tool (func_filter_filelist): Remove extra backslash
48758         in sed_fff_filter definition.
48759
48760 2009-01-02  Jim Meyering  <meyering@redhat.com>
48761
48762         strftime: avoid compilation failure on Solaris 2.6
48763         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48764         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48765         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48766         be available.  Reported by Tom G. Christensen.  Details in
48767         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48768
48769 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48770             Bruno Haible  <bruno@clisp.org>
48771
48772         Speed up gnulib-tool by doing more string processing through shell
48773         built-ins.
48774         * gnulib-tool (fast_func_append): New variable.
48775         (func_remove_prefix, func_remove_suffix): New functions.
48776         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48777         (func_filter_filelist): New function.
48778         (func_get_dependencies): Use func_remove_suffix instead of sed.
48779         (func_get_automake_snippet): Use func_filter_filelist instead of a
48780         subshell and sed invocation.
48781
48782 2009-01-01  Bruno Haible  <bruno@clisp.org>
48783
48784         Fix a security bug.
48785         * gnulib-tool (func_import, import, update): Don't allow the characters
48786         '"', '$', '`', '\' in macro arguments that become part of commands that
48787         are evaluated.
48788
48789 2009-01-01  Bruno Haible  <bruno@clisp.org>
48790
48791         * gnulib-tool (func_reset_sigpipe): Add more comments.
48792
48793 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48794
48795         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48796         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48797         already know the answer.
48798
48799 2009-01-01  Jim Meyering  <meyering@redhat.com>
48800
48801         * lib/version-etc.c (version_etc_va): Update copyright year.
48802
48803 2008-12-30  Bruno Haible  <bruno@clisp.org>
48804
48805         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48806         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48807         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48808
48809 2008-12-29  Eric Blake  <ebb9@byu.net>
48810
48811         multiarch: avoid autoconf AC_REQUIRE bug
48812         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48813         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48814         2.63 and older.
48815         Reported by Bruno Haible, and analyzed in
48816         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48817
48818 2008-12-29  Bruno Haible  <bruno@clisp.org>
48819
48820         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48821         files in subdirectories correctly.
48822         Reported by Ralf Wildenhues.
48823
48824 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48825
48826         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48827         rather than 'join FILE -', for Solaris join.
48828
48829 2008-12-29  Bruno Haible  <bruno@clisp.org>
48830
48831         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48832         quoting.
48833         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48834         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48835         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48836         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48837         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48838         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48839         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48840         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48841         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48842         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48843         * m4/nls.m4 (AM_NLS): Likewise.
48844         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48845         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48846         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48847         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48848         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48849         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48850         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48851         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48852         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48853         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48854         * m4/xsize.m4 (gl_XSIZE): Likewise.
48855         Suggested by Jim Meyering.
48856
48857 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48858
48859         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48860         * lib/parse-duration.c: use a switch instead of cascading if's.
48861
48862 2008-12-29  Eric Blake  <ebb9@byu.net>
48863
48864         wchar.h: supply WEOF on Irix 5.3
48865         * lib/wchar.in.h (wint_t): Also supply WEOF.
48866         * lib/wctype.in.h (wint_t): Likewise.
48867         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48868         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48869         Reported by Tom G. Christensen.
48870
48871 2008-12-26  Bruno Haible  <bruno@clisp.org>
48872
48873         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48874         i486, i586, i686.
48875
48876 2008-12-26  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48879
48880 2008-12-26  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48883         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48884         not __STDC_CONSTANT_MACROS.
48885         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48886
48887 2008-12-25  Bruno Haible  <bruno@clisp.org>
48888
48889         Add support for universal builds to vasnprintf.
48890         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48891         universal builds, guess no.
48892         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48893         * modules/vasprintf-posix (Depends-on): Likewise.
48894         * modules/fprintf-posix (Depends-on): Likewise.
48895         * modules/vfprintf-posix (Depends-on): Likewise.
48896         * modules/snprintf-posix (Depends-on): Likewise.
48897         * modules/vsnprintf-posix (Depends-on): Likewise.
48898         * modules/sprintf-posix (Depends-on): Likewise.
48899         * modules/vsprintf-posix (Depends-on): Likewise.
48900         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48901         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48902         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48903         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48904         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48905         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48906         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48907
48908         Add support for universal builds to <inttypes.h>.
48909         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48910         _SCNu64_PREFIX): In Apple
48911         universal builds, define directly, using _LP64.
48912         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48913         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48914         * modules/inttypes (Depends-on): Add multiarch.
48915         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48916
48917         Add support for universal builds to <stdint.h>.
48918         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48919         universal builds, define directly, using _LP64.
48920         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48921         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48922         and size_t.
48923         * modules/stdint (Depends-on): Add multiarch.
48924         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48925
48926         New module 'multiarch'.
48927         * modules/multiarch: New file.
48928         * m4/multiarch.m4: New file.
48929
48930 2008-12-25  Bruno Haible  <bruno@clisp.org>
48931
48932         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48933
48934 2008-12-25  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/btowc (License): Relicense under LGPLv2+.
48937         * modules/mbsinit (License): Likewise.
48938         * modules/mbrtowc (License): Likewise.
48939         * modules/wcrtomb (License): Likewise.
48940         * modules/streq (License): Likewise.
48941         Reported by David Lutterkort <lutter@redhat.com>.
48942
48943 2008-12-23  Bruno Haible  <bruno@clisp.org>
48944
48945         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48946
48947 2008-12-23  Bruno Haible  <bruno@clisp.org>
48948
48949         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48950         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48951         GETADDRINFO_LIB, not in LIBS.
48952         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48953         * modules/canon-host (Link): Likewise.
48954         * NEWS: Mention the change.
48955         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48956         GETADDRINFO_LIB.
48957
48958 2008-12-22  Bruno Haible  <bruno@clisp.org>
48959
48960         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48961         * doc/posix-functions/iswalpha_l.texi: Likewise.
48962         * doc/posix-functions/iswblank_l.texi: Likewise.
48963         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48964         * doc/posix-functions/iswctype_l.texi: Likewise.
48965         * doc/posix-functions/iswdigit_l.texi: Likewise.
48966         * doc/posix-functions/iswgraph_l.texi: Likewise.
48967         * doc/posix-functions/iswlower_l.texi: Likewise.
48968         * doc/posix-functions/iswprint_l.texi: Likewise.
48969         * doc/posix-functions/iswpunct_l.texi: Likewise.
48970         * doc/posix-functions/iswspace_l.texi: Likewise.
48971         * doc/posix-functions/iswupper_l.texi: Likewise.
48972         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48973         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48974         * doc/posix-functions/open_wmemstream.texi: Likewise.
48975         * doc/posix-functions/swscanf.texi: Likewise.
48976         * doc/posix-functions/towctrans_l.texi: Likewise.
48977         * doc/posix-functions/towlower.texi: Likewise.
48978         * doc/posix-functions/towlower_l.texi: Likewise.
48979         * doc/posix-functions/towupper.texi: Likewise.
48980         * doc/posix-functions/towupper_l.texi: Likewise.
48981         * doc/posix-functions/vfwprintf.texi: Likewise.
48982         * doc/posix-functions/vfwscanf.texi: Likewise.
48983         * doc/posix-functions/vswscanf.texi: Likewise.
48984         * doc/posix-functions/vwprintf.texi: Likewise.
48985         * doc/posix-functions/vwscanf.texi: Likewise.
48986         * doc/posix-functions/wcpcpy.texi: Likewise.
48987         * doc/posix-functions/wcpncpy.texi: Likewise.
48988         * doc/posix-functions/wcscasecmp.texi: Likewise.
48989         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48990         * doc/posix-functions/wcscoll_l.texi: Likewise.
48991         * doc/posix-functions/wcsdup.texi: Likewise.
48992         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48993         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48994         * doc/posix-functions/wcsnlen.texi: Likewise.
48995         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48996         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48997         * doc/posix-functions/wctrans_l.texi: Likewise.
48998         * doc/posix-functions/wctype_l.texi: Likewise.
48999         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49000         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49001         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49002         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49003         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49004         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49005         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49006         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49007         * doc/glibc-functions/wcschrnul.texi: Likewise.
49008         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49009         * doc/glibc-functions/wcstod_l.texi: Likewise.
49010         * doc/glibc-functions/wcstof_l.texi: Likewise.
49011         * doc/glibc-functions/wcstol_l.texi: Likewise.
49012         * doc/glibc-functions/wcstold_l.texi: Likewise.
49013         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49014         * doc/glibc-functions/wcstoq.texi: Likewise.
49015         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49016         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49017         * doc/glibc-functions/wcstouq.texi: Likewise.
49018         * doc/glibc-functions/wmempcpy.texi: Likewise.
49019
49020 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49021             Eric Blake  <ebb9@byu.net>
49022             Paolo Bonzini  <bonzini@gnu.org>
49023             Bruno Haible  <bruno@clisp.org>
49024
49025         Make c-stack work on Haiku.
49026         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49027         (c_stack_action): Use SA_ONSTACK flag.
49028
49029 2008-12-22  Bruno Haible  <bruno@clisp.org>
49030
49031         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49032
49033 2008-12-22  Bruno Haible  <bruno@clisp.org>
49034
49035         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49036         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49037         being overridden.
49038         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49039         New macros.
49040         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49042         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49043         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49044
49045 2008-12-22  Bruno Haible  <bruno@clisp.org>
49046
49047         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49048         from test code.
49049
49050 2008-12-22  Eric Blake  <ebb9@byu.net>
49051
49052         Avoid gcc warnings on cygwin.
49053         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49054         Avoid unused variable.
49055         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49056         Likewise.
49057
49058 2008-12-22  Bruno Haible  <bruno@clisp.org>
49059
49060         Remove HAVE_MBRTOWC conditionals.
49061         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49062         (mbscasecmp): Assume mbrtowc function.
49063         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49064         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49065         * lib/mbschr.c: Include mbuiter.h unconditionally.
49066         (mbschr): Assume mbrtowc function.
49067         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49068         (mbscspn): Assume mbrtowc function.
49069         * lib/mbslen.c: Include mbuiter.h unconditionally.
49070         (mbslen): Assume mbrtowc function.
49071         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49072         (mbsncasecmp): Assume mbrtowc function.
49073         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49074         (mbsnlen): Assume mbrtowc function.
49075         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49076         (mbspbrk): Assume mbrtowc function.
49077         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49078         (mbspcasecmp): Assume mbrtowc function.
49079         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49080         (mbsrchr): Assume mbrtowc function.
49081         * lib/mbssep.c: Include mbuiter.h unconditionally.
49082         (mbssep): Assume mbrtowc function.
49083         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49084         (mbsspn): Assume mbrtowc function.
49085         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49086         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49087         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49088         (mbstok_r): Assume mbrtowc function.
49089         * lib/propername.c: Include mbuiter.h unconditionally.
49090         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49091         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49092         (trim2): Assume mbrtowc function.
49093         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49094         (mbsnwidth): Assume mbrtowc function.
49095         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49096         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49097         fallback definitions.
49098         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49099
49100 2008-12-22  Bruno Haible  <bruno@clisp.org>
49101
49102         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49103
49104 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49105
49106         * modules/regex: Request emulations for the mb*/wc* functions we need.
49107         * m4/regex.m4: Don't look for those functions here.
49108         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49109
49110 2008-12-22  Bruno Haible  <bruno@clisp.org>
49111
49112         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49113
49114 2008-12-21  Bruno Haible  <bruno@clisp.org>
49115
49116         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49117         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49118         (Include): Remove conditionalization.
49119         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49120         (Include): Remove conditionalization.
49121         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49122         (Include): Remove conditionalization.
49123         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49124         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49125         * NEWS: Mention the change.
49126         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49127         via Sergey Poznyakoff <gray@gnu.org.ua>.
49128
49129 2008-12-21  Bruno Haible  <bruno@clisp.org>
49130
49131         * MODULES.html.sh (Extended multibyte and wide character utilities
49132         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49133         wcrtomb, wcsrtombs.
49134         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49135         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49136         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49137         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49138
49139 2008-12-21  Bruno Haible  <bruno@clisp.org>
49140
49141         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49142
49143 2008-12-21  Bruno Haible  <bruno@clisp.org>
49144
49145         * modules/wcsnrtombs-tests: New file.
49146         * tests/test-wcsnrtombs1.sh: New file.
49147         * tests/test-wcsnrtombs2.sh: New file.
49148         * tests/test-wcsnrtombs3.sh: New file.
49149         * tests/test-wcsnrtombs4.sh: New file.
49150         * tests/test-wcsnrtombs.c: New file.
49151
49152         New module 'wcsnrtombs'.
49153         * lib/wchar.in.h (wcsnrtombs): New declaration.
49154         * lib/wcsnrtombs.c: New file.
49155         * lib/wcsrtombs-state.c: New file.
49156         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49157         (internal_state): Remove variable.
49158         * m4/wcsnrtombs.m4: New file.
49159         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49160         compilation units.
49161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49162         HAVE_WCSNRTOMBS.
49163         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49164         HAVE_WCSNRTOMBS.
49165         * modules/wcsnrtombs: New file.
49166         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49167         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49168
49169 2008-12-21  Bruno Haible  <bruno@clisp.org>
49170
49171         * modules/wcsrtombs-tests: New file.
49172         * tests/test-wcsrtombs1.sh: New file.
49173         * tests/test-wcsrtombs2.sh: New file.
49174         * tests/test-wcsrtombs3.sh: New file.
49175         * tests/test-wcsrtombs4.sh: New file.
49176         * tests/test-wcsrtombs.c: New file.
49177
49178         New module 'wcsrtombs'.
49179         * lib/wchar.in.h (wcsrtombs): New declaration.
49180         * lib/wcsrtombs.c: New file.
49181         * m4/wcsrtombs.m4: New file.
49182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49183         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49185         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49186         * modules/wcsrtombs: New file.
49187         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49188         bugs.
49189
49190 2008-12-21  Bruno Haible  <bruno@clisp.org>
49191
49192         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49193         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49194         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49195         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49196         if not correct.
49197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49198         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49199         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49200         m4/locale-zh.m4, m4/codeset.m4.
49201         * doc/posix-functions/wcrtomb.texi: Document the bug.
49202
49203 2008-12-21  Bruno Haible  <bruno@clisp.org>
49204
49205         Work around a btowc() bug on IRIX 6.5.
49206         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49207         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49208         REPLACE_WTOBC if not.
49209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49210         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49211         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49212
49213 2008-12-21  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/wcrtomb-tests: New file.
49216         * tests/test-wcrtomb.sh: New file.
49217         * tests/test-wcrtomb.c: New file.
49218
49219         New module 'wcrtomb'.
49220         * lib/wchar.in.h (wcrtomb): New declaration.
49221         * lib/wcrtomb.c: New file.
49222         * m4/wcrtomb.m4: New file.
49223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49224         HAVE_WCRTOMB.
49225         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49226         HAVE_WCRTOMB.
49227         * modules/wcrtomb: New file.
49228         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49229
49230 2008-12-21  Bruno Haible  <bruno@clisp.org>
49231
49232         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49233         * modules/mbsrtowcs (Files): Likewise.
49234         * modules/wctob (Files): Likewise.
49235         * modules/c-strcase-tests (Files): Likewise.
49236         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49237         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49238         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49239         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49240         * modules/vasnprintf-posix-tests (Files): Likewise.
49241
49242 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49243
49244         gitlog-to-changelog: pass all command-line arguments to git-log
49245         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49246         it is sometimes convenient to filter the commits in various ways.
49247         gitlog-to-changelog only allows --since to specify a start date,
49248         but git-log itself supports many other filtering mechanisms.
49249         At the moment, I want to filter by branch name.  Rather than
49250         adding a --branch option to gitlog-to-changelog, it seems more
49251         flexible to simply pass all options directly to git-log and let
49252         git do the work.  Notice that this effectively makes --since a
49253         redundant option for gitlog-to-changelog, but removing it would
49254         require current usage to change since calls would then require
49255         an additional '--'.
49256
49257 2008-12-21  Bruno Haible  <bruno@clisp.org>
49258
49259         * modules/mbsnrtowcs-tests: New file.
49260         * tests/test-mbsnrtowcs1.sh: New file.
49261         * tests/test-mbsnrtowcs2.sh: New file.
49262         * tests/test-mbsnrtowcs3.sh: New file.
49263         * tests/test-mbsnrtowcs4.sh: New file.
49264         * tests/test-mbsnrtowcs.c: New file.
49265
49266         New module 'mbsnrtowcs'.
49267         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49268         * lib/mbsnrtowcs.c: New file.
49269         * lib/mbsrtowcs-state.c: New file.
49270         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49271         (internal_state): Remove variable.
49272         * m4/mbsnrtowcs.m4: New file.
49273         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49274         compilation units.
49275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49276         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49277         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49278         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49279         * modules/mbsnrtowcs: New file.
49280         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49281         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49282         portability problem.
49283
49284 2008-12-21  Bruno Haible  <bruno@clisp.org>
49285
49286         Work around mbsrtowcs bug.
49287         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49288         (gl_FUNC_MBSRTOWCS): Invoke it.
49289         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49290         m4/locale-zh.m4.
49291         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49292
49293 2008-12-21  Bruno Haible  <bruno@clisp.org>
49294
49295         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49296
49297 2008-12-21  Bruno Haible  <bruno@clisp.org>
49298
49299         Update doc for AIX.
49300         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49301         16-bit wchar_t type.
49302         * doc/posix-functions/btowc.texi: Likewise.
49303         * doc/posix-functions/fgetwc.texi: Likewise.
49304         * doc/posix-functions/fgetws.texi: Likewise.
49305         * doc/posix-functions/fputwc.texi: Likewise.
49306         * doc/posix-functions/fputws.texi: Likewise.
49307         * doc/posix-functions/fwide.texi: Likewise.
49308         * doc/posix-functions/fwprintf.texi: Likewise.
49309         * doc/posix-functions/fwscanf.texi: Likewise.
49310         * doc/posix-functions/getwchar.texi: Likewise.
49311         * doc/posix-functions/getwc.texi: Likewise.
49312         * doc/posix-functions/iswalnum.texi: Likewise.
49313         * doc/posix-functions/iswalpha.texi: Likewise.
49314         * doc/posix-functions/iswblank.texi: Likewise.
49315         * doc/posix-functions/iswcntrl.texi: Likewise.
49316         * doc/posix-functions/iswctype.texi: Likewise.
49317         * doc/posix-functions/iswdigit.texi: Likewise.
49318         * doc/posix-functions/iswgraph.texi: Likewise.
49319         * doc/posix-functions/iswlower.texi: Likewise.
49320         * doc/posix-functions/iswprint.texi: Likewise.
49321         * doc/posix-functions/iswpunct.texi: Likewise.
49322         * doc/posix-functions/iswspace.texi: Likewise.
49323         * doc/posix-functions/iswupper.texi: Likewise.
49324         * doc/posix-functions/iswxdigit.texi: Likewise.
49325         * doc/posix-functions/mbrtowc.texi: Likewise.
49326         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49327         * doc/posix-functions/mbstowcs.texi: Likewise.
49328         * doc/posix-functions/mbtowc.texi: Likewise.
49329         * doc/posix-functions/putwchar.texi: Likewise.
49330         * doc/posix-functions/putwc.texi: Likewise.
49331         * doc/posix-functions/swprintf.texi: Likewise.
49332         * doc/posix-functions/tolower.texi: Likewise.
49333         * doc/posix-functions/toupper.texi: Likewise.
49334         * doc/posix-functions/towctrans.texi: Likewise.
49335         * doc/posix-functions/ungetwc.texi: Likewise.
49336         * doc/posix-functions/vswprintf.texi: Likewise.
49337         * doc/posix-functions/wcrtomb.texi: Likewise.
49338         * doc/posix-functions/wcscat.texi: Likewise.
49339         * doc/posix-functions/wcschr.texi: Likewise.
49340         * doc/posix-functions/wcscmp.texi: Likewise.
49341         * doc/posix-functions/wcscoll.texi: Likewise.
49342         * doc/posix-functions/wcscpy.texi: Likewise.
49343         * doc/posix-functions/wcscspn.texi: Likewise.
49344         * doc/posix-functions/wcsftime.texi: Likewise.
49345         * doc/posix-functions/wcslen.texi: Likewise.
49346         * doc/posix-functions/wcsncat.texi: Likewise.
49347         * doc/posix-functions/wcsncmp.texi: Likewise.
49348         * doc/posix-functions/wcsncpy.texi: Likewise.
49349         * doc/posix-functions/wcspbrk.texi: Likewise.
49350         * doc/posix-functions/wcsrchr.texi: Likewise.
49351         * doc/posix-functions/wcsrtombs.texi: Likewise.
49352         * doc/posix-functions/wcsspn.texi: Likewise.
49353         * doc/posix-functions/wcsstr.texi: Likewise.
49354         * doc/posix-functions/wcstod.texi: Likewise.
49355         * doc/posix-functions/wcstof.texi: Likewise.
49356         * doc/posix-functions/wcstoimax.texi: Likewise.
49357         * doc/posix-functions/wcstok.texi: Likewise.
49358         * doc/posix-functions/wcstold.texi: Likewise.
49359         * doc/posix-functions/wcstoll.texi: Likewise.
49360         * doc/posix-functions/wcstol.texi: Likewise.
49361         * doc/posix-functions/wcstombs.texi: Likewise.
49362         * doc/posix-functions/wcstoull.texi: Likewise.
49363         * doc/posix-functions/wcstoul.texi: Likewise.
49364         * doc/posix-functions/wcstoumax.texi: Likewise.
49365         * doc/posix-functions/wcswidth.texi: Likewise.
49366         * doc/posix-functions/wcsxfrm.texi: Likewise.
49367         * doc/posix-functions/wctob.texi: Likewise.
49368         * doc/posix-functions/wctomb.texi: Likewise.
49369         * doc/posix-functions/wctrans.texi: Likewise.
49370         * doc/posix-functions/wctype.texi: Likewise.
49371         * doc/posix-functions/wcwidth.texi: Likewise.
49372         * doc/posix-functions/wmemchr.texi: Likewise.
49373         * doc/posix-functions/wmemcmp.texi: Likewise.
49374         * doc/posix-functions/wmemcpy.texi: Likewise.
49375         * doc/posix-functions/wmemmove.texi: Likewise.
49376         * doc/posix-functions/wmemset.texi: Likewise.
49377         * doc/posix-functions/wprintf.texi: Likewise.
49378         * doc/posix-functions/wscanf.texi: Likewise.
49379
49380 2008-12-21  Bruno Haible  <bruno@clisp.org>
49381
49382         Update doc for HP-UX 11.11.
49383         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49384         in HP-UX version 11.00, not in all versions of HP-UX 11.
49385         * doc/posix-functions/fwide.texi: Likewise.
49386         * doc/posix-functions/fwprintf.texi: Likewise.
49387         * doc/posix-functions/fwscanf.texi: Likewise.
49388         * doc/posix-functions/inet_ntop.texi: Likewise.
49389         * doc/posix-functions/inet_pton.texi: Likewise.
49390         * doc/posix-functions/mbrlen.texi: Likewise.
49391         * doc/posix-functions/mbrtowc.texi: Likewise.
49392         * doc/posix-functions/mbsinit.texi: Likewise.
49393         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49394         * doc/posix-functions/swprintf.texi: Likewise.
49395         * doc/posix-functions/swscanf.texi: Likewise.
49396         * doc/posix-functions/towctrans.texi: Likewise.
49397         * doc/posix-functions/vfwprintf.texi: Likewise.
49398         * doc/posix-functions/vswprintf.texi: Likewise.
49399         * doc/posix-functions/vwprintf.texi: Likewise.
49400         * doc/posix-functions/wcrtomb.texi: Likewise.
49401         * doc/posix-functions/wcsrtombs.texi: Likewise.
49402         * doc/posix-functions/wcsstr.texi: Likewise.
49403         * doc/posix-functions/wctob.texi: Likewise.
49404         * doc/posix-functions/wctrans.texi: Likewise.
49405         * doc/posix-functions/wmemchr.texi: Likewise.
49406         * doc/posix-functions/wmemcmp.texi: Likewise.
49407         * doc/posix-functions/wmemcpy.texi: Likewise.
49408         * doc/posix-functions/wmemmove.texi: Likewise.
49409         * doc/posix-functions/wmemset.texi: Likewise.
49410         * doc/posix-functions/wprintf.texi: Likewise.
49411         * doc/posix-functions/wscanf.texi: Likewise.
49412
49413 2008-12-21  Bruno Haible  <bruno@clisp.org>
49414
49415         Work around a portability problem.
49416         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49417         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49418
49419 2008-12-20  Bruno Haible  <bruno@clisp.org>
49420
49421         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49422         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49423         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49425         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49426
49427         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49428         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49429         set.
49430         (GNULIB_defined_mbstate_t): New macro.
49431         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49432         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49433         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49434         reuses the system's mbrtowc function but works around the bugs.
49435         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49436         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49437         macros.
49438         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49439         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49440         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49442         REPLACE_MBSINIT if mbsinit needs to be overridden.
49443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49444         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49445         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49446         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49447         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49448         m4/locale-zh.m4.
49449         (Depends): Add mbsinit.
49450         * modules/mbsinit (Depends): Add mbrtowc.
49451         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49452
49453 2008-12-20  Bruno Haible  <bruno@clisp.org>
49454
49455         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49456         so that there are no conversion errors on AIX.
49457         * tests/test-mbsrtowcs.c (main): LIkewise.
49458
49459 2008-12-20  Bruno Haible  <bruno@clisp.org>
49460
49461         Work around wctob bug on Solaris <= 9.
49462         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49463         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49465         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49466         * modules/wctob (Files): Add m4/locale-fr.m4.
49467         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49468
49469 2008-12-20  Bruno Haible  <bruno@clisp.org>
49470
49471         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49472         /dev/null.
49473         * tests/test-select-in.sh: Likewise.
49474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49475
49476 2008-12-20  Bruno Haible  <bruno@clisp.org>
49477
49478         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49479         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49480         Cygwin 1.5.x.
49481
49482 2008-12-20  Bruno Haible  <bruno@clisp.org>
49483
49484         Ensure mbstate_t is defined on HP-UX 11.11.
49485         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49486         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49487         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49488         AC_USE_SYSTEM_EXTENSIONS.
49489         * modules/fnmatch (Depends-on): Add extensions.
49490         * modules/mbrlen (Depends-on): Likewise.
49491         * modules/mbrtowc (Depends-on): Likewise.
49492         * modules/mbsinit (Depends-on): Likewise.
49493         * modules/mbsrtowcs (Depends-on): Likewise.
49494         * modules/mbswidth (Depends-on): Likewise.
49495         * modules/quotearg (Depends-on): Likewise.
49496         * modules/strftime (Depends-on): Likewise.
49497
49498 2008-12-20  Bruno Haible  <bruno@clisp.org>
49499
49500         Ensure wctob is declared on IRIX 6.5.
49501         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49502         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49503         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49505         of HAVE_WCTOB.
49506         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49507         HAVE_WCTOB.
49508         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49509
49510 2008-12-19  Bruno Haible  <bruno@clisp.org>
49511
49512         * modules/mbsrtowcs-tests: New file.
49513         * tests/test-mbsrtowcs1.sh: New file.
49514         * tests/test-mbsrtowcs2.sh: New file.
49515         * tests/test-mbsrtowcs3.sh: New file.
49516         * tests/test-mbsrtowcs4.sh: New file.
49517         * tests/test-mbsrtowcs.c: New file.
49518
49519         New module 'mbsrtowcs'.
49520         * lib/wchar.in.h (mbsrtowcs): New declaration.
49521         * lib/mbsrtowcs.c: New file.
49522         * m4/mbsrtowcs.m4: New file.
49523         * modules/mbsrtowcs: New file.
49524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49525         HAVE_MBSRTOWCS.
49526         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49527         HAVE_MBSRTOWCS.
49528         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49529
49530 2008-12-19  Bruno Haible  <bruno@clisp.org>
49531
49532         New module 'mbrlen'.
49533         * lib/wchar.in.h (mbrlen): New declaration.
49534         * lib/mbrlen.c: New file.
49535         * m4/mbrlen.m4: New file.
49536         * modules/mbrlen: New file.
49537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49538         HAVE_MBRLEN.
49539         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49540         HAVE_MBRLEN.
49541         * doc/posix-functions/mbrlen.texi: Document the new module.
49542
49543 2008-12-19  Bruno Haible  <bruno@clisp.org>
49544
49545         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49546         * modules/mbrtowc (Depends-on): Add verify.
49547         Suggested by Paul Eggert.
49548
49549 2008-12-18  Bruno Haible  <bruno@clisp.org>
49550
49551         * modules/mbsinit-tests: New file.
49552         * tests/test-mbsinit.sh: New file.
49553         * tests/test-mbsinit.c: New file.
49554
49555 2008-12-18  Bruno Haible  <bruno@clisp.org>
49556
49557         * modules/mbrtowc-tests: New file.
49558         * tests/test-mbrtowc1.sh: New file.
49559         * tests/test-mbrtowc2.sh: New file.
49560         * tests/test-mbrtowc3.sh: New file.
49561         * tests/test-mbrtowc4.sh: New file.
49562         * tests/test-mbrtowc.c: New file.
49563
49564         New module 'mbrtowc'.
49565         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49566         mbsinit and mbrtowc.
49567         (mbrtowc): New declaration.
49568         * lib/mbrtowc.c: New file.
49569         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49570         * modules/mbrtowc: New file.
49571         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49572         HAVE_MBRTOWC.
49573         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49574         HAVE_MBRTOWC.
49575         * doc/posix-functions/mbrtowc.texi: Document the new module.
49576
49577 2008-12-18  Bruno Haible  <bruno@clisp.org>
49578
49579         New module 'wctob'.
49580         * lib/wchar.in.h (wctob): New declaration.
49581         * lib/wctob.c: New file.
49582         * m4/wctob.m4: New file.
49583         * modules/wctob: New file.
49584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49585         HAVE_WCTOB.
49586         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49587         * doc/posix-functions/wctob.texi: Document the new module.
49588
49589 2008-12-18  Bruno Haible  <bruno@clisp.org>
49590
49591         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49592         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49593
49594 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49595
49596         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49597         G. Christensen" <tgc@jupiterrise.com>.
49598
49599         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49600         G. Christensen" <tgc@jupiterrise.com>.
49601
49602         * lib/flock.c: Need to include string.h.  Reported by "Tom
49603         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49604         <ebb9@byu.net>.
49605
49606 2008-12-18  Bruno Haible  <bruno@clisp.org>
49607
49608         * m4/locale-ja.m4: New file, from GNU gettext.
49609
49610 2008-12-17  Bruno Haible  <bruno@clisp.org>
49611
49612         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49613         Suggested by Eric Blake.
49614
49615 2008-12-17  Bruno Haible  <bruno@clisp.org>
49616
49617         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49618
49619 2008-12-17  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49622         * modules/mbsinit (Depends-on): Add verify.
49623         Suggested by Paul Eggert.
49624
49625 2008-12-17  Bruno Haible  <bruno@clisp.org>
49626
49627         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49628         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49629         gl_FUNC_MBRTOWC.
49630         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49631         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49632         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49633         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49634         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49635         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49636         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49637         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49638         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49639         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49640         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49641         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49642         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49643         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49644         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49645         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49646         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49647         * modules/trim (configure.ac): Likewise.
49648
49649 2008-12-17  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/btowc-tests: New file.
49652         * tests/test-btowc1.sh: New file.
49653         * tests/test-btowc2.sh: New file.
49654         * tests/test-btowc.c: New file.
49655
49656         New module 'btowc'.
49657         * lib/wchar.in.h (btowc): New declaration.
49658         * lib/btowc.c: New file.
49659         * m4/btowc.m4: New file.
49660         * modules/btowc: New file.
49661         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49662         HAVE_BTOWC.
49663         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49664         * doc/posix-functions/btowc.texi: Document the new module.
49665
49666 2008-12-17  Bruno Haible  <bruno@clisp.org>
49667
49668         New module 'mbsinit'.
49669         * lib/wchar.in.h (mbsinit): New declaration.
49670         * lib/mbsinit.c: New file.
49671         * m4/mbsinit.m4: New file.
49672         * modules/mbsinit: New file.
49673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49674         HAVE_MBSINIT.
49675         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49676         HAVE_MBSINIT.
49677         * doc/posix-functions/mbsinit.texi: Document the new module.
49678
49679 2008-12-16  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/unistd.in.h: Add comment.
49682         * tests/test-environ.c: Don't include <stdlib.h>.
49683
49684 2008-12-16  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/parse-duration.h (parse_duration): Document return value
49687         convention.
49688         * lib/parse-duration.c: Include specification header first. Add
49689         comments.
49690         (_): Remove macro.
49691         (parse_year_month_day, parse_hour_minute_second): Move side effects
49692         outside of strchr call.
49693         (parse_non_iso8601): Move side effects outside of isspace call.
49694         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49695         call.
49696
49697 2008-12-16  Bruno Haible  <bruno@clisp.org>
49698
49699         * tests/test-parse-duration.sh: Produce no output when the test
49700         succeeds.
49701
49702 2008-12-16  Bruno Haible  <bruno@clisp.org>
49703
49704         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49705         expressions.
49706
49707 2008-12-15  Bruno Haible  <bruno@clisp.org>
49708
49709         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49710         * doc/glibc-functions/flistxattr.texi: Likewise.
49711         * doc/glibc-functions/fopencookie.texi: Likewise.
49712         * doc/glibc-functions/fremovexattr.texi: Likewise.
49713         * doc/glibc-functions/fsetxattr.texi: Likewise.
49714         * doc/glibc-functions/getxattr.texi: Likewise.
49715         * doc/glibc-functions/lgetxattr.texi: Likewise.
49716         * doc/glibc-functions/listxattr.texi: Likewise.
49717         * doc/glibc-functions/llistxattr.texi: Likewise.
49718         * doc/glibc-functions/lremovexattr.texi: Likewise.
49719         * doc/glibc-functions/lsetxattr.texi: Likewise.
49720         * doc/glibc-functions/removexattr.texi: Likewise.
49721         * doc/glibc-functions/setxattr.texi: Likewise.
49722         * doc/posix-functions/open_memstream.texi: Likewise.
49723
49724 2008-12-15  Eric Blake  <ebb9@byu.net>
49725
49726         Update doc for cygwin 1.7.
49727         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49728         functions.
49729         * doc/posix-functions/fchmodat.texi: Likewise.
49730         * doc/posix-functions/fchownat.texi: Likewise.
49731         * doc/posix-functions/fdopendir.texi: Likewise.
49732         * doc/posix-functions/fmemopen.texi: Likewise.
49733         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49734         * doc/posix-functions/fstatat.texi: Likewise.
49735         * doc/posix-functions/futimens.texi: Likewise.
49736         * doc/posix-functions/gai_strerror.texi: Likewise.
49737         * doc/posix-functions/getaddrinfo.texi: Likewise.
49738         * doc/posix-functions/getnameinfo.texi: Likewise.
49739         * doc/posix-functions/if_freenameindex.texi: Likewise.
49740         * doc/posix-functions/if_indextoname.texi: Likewise.
49741         * doc/posix-functions/if_nameindex.texi: Likewise.
49742         * doc/posix-functions/if_nametoindex.texi: Likewise.
49743         * doc/posix-functions/insque.texi: Likewise.
49744         * doc/posix-functions/linkat.texi: Likewise.
49745         * doc/posix-functions/llrint.texi: Likewise.
49746         * doc/posix-functions/llrintf.texi: Likewise.
49747         * doc/posix-functions/llrintl.texi: Likewise.
49748         * doc/posix-functions/lockf.texi: Likewise.
49749         * doc/posix-functions/lrintl.texi: Likewise.
49750         * doc/posix-functions/mkdirat.texi: Likewise.
49751         * doc/posix-functions/mkfifoat.texi: Likewise.
49752         * doc/posix-functions/mknodat.texi: Likewise.
49753         * doc/posix-functions/mq_close.texi: Likewise.
49754         * doc/posix-functions/mq_getattr.texi: Likewise.
49755         * doc/posix-functions/mq_notify.texi: Likewise.
49756         * doc/posix-functions/mq_open.texi: Likewise.
49757         * doc/posix-functions/mq_receive.texi: Likewise.
49758         * doc/posix-functions/mq_send.texi: Likewise.
49759         * doc/posix-functions/mq_setattr.texi: Likewise.
49760         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49761         * doc/posix-functions/mq_timedsend.texi: Likewise.
49762         * doc/posix-functions/mq_unlink.texi: Likewise.
49763         * doc/posix-functions/open_memstream.texi: Likewise.
49764         * doc/posix-functions/openat.texi: Likewise.
49765         * doc/posix-functions/posix_fadvise.texi: Likewise.
49766         * doc/posix-functions/posix_fallocate.texi: Likewise.
49767         * doc/posix-functions/posix_madvise.texi: Likewise.
49768         * doc/posix-functions/posix_memalign.texi: Likewise.
49769         * doc/posix-functions/posix_openpt.texi: Likewise.
49770         * doc/posix-functions/readlinkat.texi: Likewise.
49771         * doc/posix-functions/remque.texi: Likewise.
49772         * doc/posix-functions/renameat.texi: Likewise.
49773         * doc/posix-functions/rintl.texi: Likewise.
49774         * doc/posix-functions/sem_unlink.texi: Likewise.
49775         * doc/posix-functions/shm_open.texi: Likewise.
49776         * doc/posix-functions/shm_unlink.texi: Likewise.
49777         * doc/posix-functions/signgam.texi: Likewise.
49778         * doc/posix-functions/sigset.texi: Likewise.
49779         * doc/posix-functions/stpcpy.texi: Likewise.
49780         * doc/posix-functions/stpncpy.texi: Likewise.
49781         * doc/posix-functions/strerror.texi: Likewise.
49782         * doc/posix-functions/strtod.texi: Likewise.
49783         * doc/posix-functions/symlinkat.texi: Likewise.
49784         * doc/posix-functions/unlinkat.texi: Likewise.
49785         * doc/posix-functions/utimensat.texi: Likewise.
49786         * doc/glibc-functions/bindresvport.texi: Likewise.
49787         * doc/glibc-functions/dn_expand.texi: Likewise.
49788         * doc/glibc-functions/exp10.texi: Likewise.
49789         * doc/glibc-functions/exp10f.texi: Likewise.
49790         * doc/glibc-functions/fgetxattr.texi: Likewise.
49791         * doc/glibc-functions/flistxattr.texi: Likewise.
49792         * doc/glibc-functions/fopencookie.texi: Likewise.
49793         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49794         * doc/glibc-functions/fremovexattr.texi: Likewise.
49795         * doc/glibc-functions/fsetxattr.texi: Likewise.
49796         * doc/glibc-functions/getifaddrs.texi: Likewise.
49797         * doc/glibc-functions/getxattr.texi: Likewise.
49798         * doc/glibc-functions/lgetxattr.texi: Likewise.
49799         * doc/glibc-functions/listxattr.texi: Likewise.
49800         * doc/glibc-functions/llistxattr.texi: Likewise.
49801         * doc/glibc-functions/lremovexattr.texi: Likewise.
49802         * doc/glibc-functions/lsetxattr.texi: Likewise.
49803         * doc/glibc-functions/pow10.texi: Likewise.
49804         * doc/glibc-functions/pow10f.texi: Likewise.
49805         * doc/glibc-functions/rcmd_af.texi: Likewise.
49806         * doc/glibc-functions/removexattr.texi: Likewise.
49807         * doc/glibc-functions/res_init.texi: Likewise.
49808         * doc/glibc-functions/res_mkquery.texi: Likewise.
49809         * doc/glibc-functions/res_query.texi: Likewise.
49810         * doc/glibc-functions/res_querydomain.texi: Likewise.
49811         * doc/glibc-functions/res_send.texi: Likewise.
49812         * doc/glibc-functions/rresvport_af.texi: Likewise.
49813         * doc/glibc-functions/setxattr.texi: Likewise.
49814         * doc/glibc-functions/strcasestr.texi: Likewise.
49815
49816 2008-12-15  Bruno Haible  <bruno@clisp.org>
49817
49818         Fix compilation error on OSF/1 4.0.
49819         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49820         <sys/time.h>, simply delegate to the system header.
49821         Reported by Daniel Richard G. <oss@teragram.com>.
49822
49823 2008-12-15  Bruno Haible  <bruno@clisp.org>
49824
49825         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49826         * doc/posix-functions/fchmodat.texi: Likewise.
49827         * doc/posix-functions/fchownat.texi: Likewise.
49828         * doc/posix-functions/fdopendir.texi: Likewise.
49829         * doc/posix-functions/fstatat.texi: Likewise.
49830         * doc/posix-functions/mkdirat.texi: Likewise.
49831         * doc/posix-functions/unlinkat.texi: Likewise.
49832
49833 2008-12-14  Bruno Haible  <bruno@clisp.org>
49834
49835         Update doc for POSIX:2008.
49836         * doc/posix-functions/faccessat.texi: New file.
49837         * doc/posix-functions/fchmodat.texi: New file.
49838         * doc/posix-functions/fchownat.texi: New file.
49839         * doc/posix-functions/fdopendir.texi: New file.
49840         * doc/posix-functions/fstatat.texi: New file.
49841         * doc/posix-functions/futimens.texi: New file.
49842         * doc/posix-functions/linkat.texi: New file.
49843         * doc/posix-functions/mkdirat.texi: New file.
49844         * doc/posix-functions/mkfifoat.texi: New file.
49845         * doc/posix-functions/mknodat.texi: New file.
49846         * doc/posix-functions/open_wmemstream.texi: New file.
49847         * doc/posix-functions/openat.texi: New file.
49848         * doc/posix-functions/psiginfo.texi: New file.
49849         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49850         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49851         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49852         * doc/posix-functions/readlinkat.texi: New file.
49853         * doc/posix-functions/renameat.texi: New file.
49854         * doc/posix-functions/strerror_l.texi: New file.
49855         * doc/posix-functions/symlinkat.texi: New file.
49856         * doc/posix-functions/unlinkat.texi: New file.
49857         * doc/posix-functions/utimensat.texi: New file.
49858         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49859
49860 2008-12-14  Bruno Haible  <bruno@clisp.org>
49861
49862         Update doc for POSIX:2008.
49863         * doc/posix-functions/alphasort.texi: Renamed from
49864         doc/glibc-functions/alphasort.texi.
49865         * doc/posix-functions/dirfd.texi: Renamed from
49866         doc/glibc-functions/dirfd.texi.
49867         * doc/posix-functions/dprintf.texi: Renamed from
49868         doc/glibc-functions/dprintf.texi.
49869         * doc/posix-functions/duplocale.texi: Renamed from
49870         doc/glibc-functions/duplocale.texi.
49871         * doc/posix-functions/fexecve.texi: Renamed from
49872         doc/glibc-functions/fexecve.texi.
49873         * doc/posix-functions/fmemopen.texi: Renamed from
49874         doc/glibc-functions/fmemopen.texi.
49875         * doc/posix-functions/freelocale.texi: Renamed from
49876         doc/glibc-functions/freelocale.texi.
49877         * doc/posix-functions/getdate_err.texi: Renamed from
49878         doc/glibc-functions/getdate_err.texi.
49879         * doc/posix-functions/isalnum_l.texi: Renamed from
49880         doc/glibc-functions/isalnum_l.texi.
49881         * doc/posix-functions/isalpha_l.texi: Renamed from
49882         doc/glibc-functions/isalpha_l.texi.
49883         * doc/posix-functions/isblank_l.texi: Renamed from
49884         doc/glibc-functions/isblank_l.texi.
49885         * doc/posix-functions/iscntrl_l.texi: Renamed from
49886         doc/glibc-functions/iscntrl_l.texi.
49887         * doc/posix-functions/isdigit_l.texi: Renamed from
49888         doc/glibc-functions/isdigit_l.texi.
49889         * doc/posix-functions/isgraph_l.texi: Renamed from
49890         doc/glibc-functions/isgraph_l.texi.
49891         * doc/posix-functions/islower_l.texi: Renamed from
49892         doc/glibc-functions/islower_l.texi.
49893         * doc/posix-functions/isprint_l.texi: Renamed from
49894         doc/glibc-functions/isprint_l.texi.
49895         * doc/posix-functions/ispunct_l.texi: Renamed from
49896         doc/glibc-functions/ispunct_l.texi.
49897         * doc/posix-functions/isspace_l.texi: Renamed from
49898         doc/glibc-functions/isspace_l.texi.
49899         * doc/posix-functions/isupper_l.texi: Renamed from
49900         doc/glibc-functions/isupper_l.texi.
49901         * doc/posix-functions/iswalnum_l.texi: Renamed from
49902         doc/glibc-functions/iswalnum_l.texi.
49903         * doc/posix-functions/iswalpha_l.texi: Renamed from
49904         doc/glibc-functions/iswalpha_l.texi.
49905         * doc/posix-functions/iswblank_l.texi: Renamed from
49906         doc/glibc-functions/iswblank_l.texi.
49907         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49908         doc/glibc-functions/iswcntrl_l.texi.
49909         * doc/posix-functions/iswctype_l.texi: Renamed from
49910         doc/glibc-functions/iswctype_l.texi.
49911         * doc/posix-functions/iswdigit_l.texi: Renamed from
49912         doc/glibc-functions/iswdigit_l.texi.
49913         * doc/posix-functions/iswgraph_l.texi: Renamed from
49914         doc/glibc-functions/iswgraph_l.texi.
49915         * doc/posix-functions/iswlower_l.texi: Renamed from
49916         doc/glibc-functions/iswlower_l.texi.
49917         * doc/posix-functions/iswprint_l.texi: Renamed from
49918         doc/glibc-functions/iswprint_l.texi.
49919         * doc/posix-functions/iswpunct_l.texi: Renamed from
49920         doc/glibc-functions/iswpunct_l.texi.
49921         * doc/posix-functions/iswspace_l.texi: Renamed from
49922         doc/glibc-functions/iswspace_l.texi.
49923         * doc/posix-functions/iswupper_l.texi: Renamed from
49924         doc/glibc-functions/iswupper_l.texi.
49925         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49926         doc/glibc-functions/iswxdigit_l.texi.
49927         * doc/posix-functions/isxdigit_l.texi: Renamed from
49928         doc/glibc-functions/isxdigit_l.texi.
49929         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49930         doc/glibc-functions/mbsnrtowcs.texi.
49931         * doc/posix-functions/mkdtemp.texi: Renamed from
49932         doc/glibc-functions/mkdtemp.texi.
49933         * doc/posix-functions/newlocale.texi: Renamed from
49934         doc/glibc-functions/newlocale.texi.
49935         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49936         doc/glibc-functions/nl_langinfo_l.texi.
49937         * doc/posix-functions/open_memstream.texi: Renamed from
49938         doc/glibc-functions/open_memstream.texi.
49939         * doc/posix-functions/opterr.texi: Renamed from
49940         doc/glibc-functions/opterr.texi.
49941         * doc/posix-functions/optind.texi: Renamed from
49942         doc/glibc-functions/optind.texi.
49943         * doc/posix-functions/optopt.texi: Renamed from
49944         doc/glibc-functions/optopt.texi.
49945         * doc/posix-functions/psignal.texi: Renamed from
49946         doc/glibc-functions/psignal.texi.
49947         * doc/posix-functions/scandir.texi: Renamed from
49948         doc/glibc-functions/scandir.texi.
49949         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49950         doc/glibc-functions/sched_get_priority_min.texi.
49951         * doc/posix-functions/signgam.texi: Renamed from
49952         doc/glibc-functions/signgam.texi.
49953         * doc/posix-functions/stpcpy.texi: Renamed from
49954         doc/glibc-functions/stpcpy.texi.
49955         * doc/posix-functions/stpncpy.texi: Renamed from
49956         doc/glibc-functions/stpncpy.texi.
49957         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49958         doc/glibc-functions/strcasecmp_l.texi.
49959         * doc/posix-functions/strcoll_l.texi: Renamed from
49960         doc/glibc-functions/strcoll_l.texi.
49961         * doc/posix-functions/strfmon_l.texi: Renamed from
49962         doc/glibc-functions/strfmon_l.texi.
49963         * doc/posix-functions/strftime_l.texi: Renamed from
49964         doc/glibc-functions/strftime_l.texi.
49965         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49966         doc/glibc-functions/strncasecmp_l.texi.
49967         * doc/posix-functions/strndup.texi: Renamed from
49968         doc/glibc-functions/strndup.texi.
49969         * doc/posix-functions/strnlen.texi: Renamed from
49970         doc/glibc-functions/strnlen.texi.
49971         * doc/posix-functions/strsignal.texi: Renamed from
49972         doc/glibc-functions/strsignal.texi.
49973         * doc/posix-functions/strxfrm_l.texi: Renamed from
49974         doc/glibc-functions/strxfrm_l.texi.
49975         * doc/posix-functions/timer_gettime.texi: Renamed from
49976         doc/glibc-functions/timer_gettime.texi.
49977         * doc/posix-functions/tolower_l.texi: Renamed from
49978         doc/glibc-functions/tolower_l.texi.
49979         * doc/posix-functions/toupper_l.texi: Renamed from
49980         doc/glibc-functions/toupper_l.texi.
49981         * doc/posix-functions/towctrans_l.texi: Renamed from
49982         doc/glibc-functions/towctrans_l.texi.
49983         * doc/posix-functions/towlower_l.texi: Renamed from
49984         doc/glibc-functions/towlower_l.texi.
49985         * doc/posix-functions/towupper_l.texi: Renamed from
49986         doc/glibc-functions/towupper_l.texi.
49987         * doc/posix-functions/uselocale.texi: Renamed from
49988         doc/glibc-functions/uselocale.texi.
49989         * doc/posix-functions/vdprintf.texi: Renamed from
49990         doc/glibc-functions/vdprintf.texi.
49991         * doc/posix-functions/wcpcpy.texi:
49992         Renamed from doc/glibc-functions/wcpcpy.texi.
49993         * doc/posix-functions/wcpncpy.texi: Renamed from
49994         doc/glibc-functions/wcpncpy.texi.
49995         * doc/posix-functions/wcscasecmp.texi: Renamed from
49996         doc/glibc-functions/wcscasecmp.texi.
49997         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49998         doc/glibc-functions/wcscasecmp_l.texi.
49999         * doc/posix-functions/wcscoll_l.texi: Renamed from
50000         doc/glibc-functions/wcscoll_l.texi.
50001         * doc/posix-functions/wcsdup.texi: Renamed from
50002         doc/glibc-functions/wcsdup.texi.
50003         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50004         doc/glibc-functions/wcsncasecmp.texi.
50005         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50006         doc/glibc-functions/wcsncasecmp_l.texi.
50007         * doc/posix-functions/wcsnlen.texi: Renamed from
50008         doc/glibc-functions/wcsnlen.texi.
50009         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50010         doc/glibc-functions/wcsnrtombs.texi.
50011         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50012         doc/glibc-functions/wcsxfrm_l.texi.
50013         * doc/posix-functions/wctrans_l.texi: Renamed from
50014         doc/glibc-functions/wctrans_l.texi.
50015         * doc/posix-functions/wctype_l.texi: Renamed from
50016         doc/glibc-functions/wctype_l.texi.
50017         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50018         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50019         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50020         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50021         these subsections.
50022         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50023         Remove sections.
50024
50025 2008-12-14  Bruno Haible  <bruno@clisp.org>
50026
50027         Update doc for POSIX:2008.
50028         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50029
50030 2008-12-14  Bruno Haible  <bruno@clisp.org>
50031
50032         Update doc for POSIX:2008.
50033         * doc/pastposix-functions/bcmp.texi: Renamed from
50034         doc/posix-functions/bcmp.texi.
50035         * doc/pastposix-functions/bcopy.texi: Renamed from
50036         doc/posix-functions/bcopy.texi.
50037         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50038         doc/posix-functions/bsd_signal.texi.
50039         * doc/pastposix-functions/bzero.texi: Renamed from
50040         doc/posix-functions/bzero.texi.
50041         * doc/pastposix-functions/ecvt.texi: Renamed from
50042         doc/posix-functions/ecvt.texi.
50043         * doc/pastposix-functions/fcvt.texi: Renamed from
50044         doc/posix-functions/fcvt.texi.
50045         * doc/pastposix-functions/ftime.texi: Renamed from
50046         doc/posix-functions/ftime.texi.
50047         * doc/pastposix-functions/gcvt.texi: Renamed from
50048         doc/posix-functions/gcvt.texi.
50049         * doc/pastposix-functions/getcontext.texi: Renamed from
50050         doc/posix-functions/getcontext.texi.
50051         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50052         doc/posix-functions/gethostbyaddr.texi.
50053         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50054         doc/posix-functions/gethostbyname.texi.
50055         * doc/pastposix-functions/getwd.texi: Renamed from
50056         doc/posix-functions/getwd.texi.
50057         * doc/pastposix-functions/h_errno.texi: Renamed from
50058         doc/posix-functions/h_errno.texi.
50059         * doc/pastposix-functions/index.texi: Renamed from
50060         doc/posix-functions/index.texi.
50061         * doc/pastposix-functions/makecontext.texi: Renamed from
50062         doc/posix-functions/makecontext.texi.
50063         * doc/pastposix-functions/mktemp.texi: Renamed from
50064         doc/posix-functions/mktemp.texi.
50065         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50066         doc/posix-functions/pthread_attr_getstackaddr.texi.
50067         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50068         doc/posix-functions/pthread_attr_setstackaddr.texi.
50069         * doc/pastposix-functions/rindex.texi: Renamed from
50070         doc/posix-functions/rindex.texi.
50071         * doc/pastposix-functions/scalb.texi: Renamed from
50072         doc/posix-functions/scalb.texi.
50073         * doc/pastposix-functions/setcontext.texi: Renamed from
50074         doc/posix-functions/setcontext.texi.
50075         * doc/pastposix-functions/swapcontext.texi: Renamed from
50076         doc/posix-functions/swapcontext.texi.
50077         * doc/pastposix-functions/ualarm.texi: Renamed from
50078         doc/posix-functions/ualarm.texi.
50079         * doc/pastposix-functions/usleep.texi: Renamed from
50080         doc/posix-functions/usleep.texi.
50081         * doc/pastposix-functions/vfork.texi: Renamed from
50082         doc/posix-functions/vfork.texi.
50083         * doc/pastposix-functions/wcswcs.texi: Renamed from
50084         doc/posix-functions/wcswcs.texi.
50085         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50086         (Function Substitutes): Update.
50087
50088 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50089
50090         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50091         m4/strerror.m4.
50092
50093 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50094             Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50097
50098 2008-12-13  Bruno Haible  <bruno@clisp.org>
50099
50100         * modules/strtoull (Depends-on): Remove unistd.
50101
50102 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50103
50104         * modules/strtoull (Depends-on): Add stdlib.
50105
50106 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50107
50108         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50109
50110 2008-12-10  Jim Meyering  <meyering@redhat.com>
50111
50112         gl_ASSERT: don't say assertions are disabled when they're not
50113         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50114         "checking whether to enable assertions... no", when they are in
50115         fact enabled.  This is solely a bug in the output of configure.
50116         In spite of saying "no", NDEBUG was not defined in that case.
50117         Also, as noted by Eric Blake, leave assertions enabled upon
50118         --enable-assert=INVALID.
50119
50120 2008-12-10  Bruno Haible  <bruno@clisp.org>
50121
50122         Change MODULES.html to refer to POSIX:2008 where possible.
50123         * MODULES.html.sh (POSIX2008_URL): New variable.
50124         (posix_headers): Remove sys/timeb, ucontext.
50125         (posix2001_headers): New variable.
50126         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50127         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50128         index, makecontext, mktemp, pthread_attr_getstackaddr,
50129         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50130         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50131         (posix2001_functions): New variable.
50132         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50133         otherwise.
50134
50135 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50136
50137         add missing include to parse-duration.c
50138         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50139         * modules/parse-duration (Depends-on): Add xalloc.
50140
50141         fix sed script reading maint.mk
50142         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50143         (syntax-check-rules): Use it.
50144
50145 2008-12-09  Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50148         MacOS X 10.4/PowerPC.
50149         Reported by Simon Josefsson.
50150
50151 2008-12-08  Jim Meyering  <meyering@redhat.com>
50152
50153         work around mingw's lack of some S_IF definitions
50154         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50155         Reported by Simon Josefsson.
50156
50157 2008-12-08  Bruno Haible  <bruno@clisp.org>
50158
50159         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50160         applied to variables. Needed on MacOS X 10.4/PowerPC.
50161         Reported by Simon Josefsson.
50162
50163 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50164         and Eric Blake  <ebb9@byu.net>
50165
50166         assert: honor --enable-assert
50167         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50168         order to honor --enable-assert, rather than treating it as a
50169         synonym for --disable-assert.
50170
50171 2008-12-08  Jim Meyering  <meyering@redhat.com>
50172
50173         * lib/posixtm.c: Remove now-useless declaration of mktime.
50174
50175         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50176
50177 2008-12-07  Bruno Haible  <bruno@clisp.org>
50178
50179         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50180         test_once): Mark functions as static.
50181         * tests/test-tls.c (test_tls): Likewise.
50182
50183 2008-12-07  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50186         iconv_register_autodetect.
50187
50188 2008-12-07  Jim Meyering  <meyering@redhat.com>
50189
50190         posixtm.c: avoid a warning
50191         * lib/posixtm.c (posixtime): Don't initialize tm0.
50192         It's no longer needed to placate gcc4's -Wuninitialized,
50193         and the attempt to placate would elicit a new warning.
50194
50195         unicodeio.c: mark unused parameters
50196         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50197         (fallback_failure_callback): Likewise.
50198
50199 2008-12-07  Bruno Haible  <bruno@clisp.org>
50200
50201         * gnulib-tool (func_create_testdir): When building the tests
50202         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50203         Reported by Simon Josefsson.
50204
50205 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50206
50207         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50208
50209 2008-12-06  Bruno Haible  <bruno@clisp.org>
50210
50211         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50212         Suggested by Eric Blake.
50213
50214 2008-12-06  Bruno Haible  <bruno@clisp.org>
50215
50216         Fix a c-stack test failure on MacOS X.
50217         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50218         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50219         handler for SIGBUS as well.
50220         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50221         install a signal handler for SIGBUS as well.
50222         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50223
50224 2008-12-06  Bruno Haible  <bruno@clisp.org>
50225
50226         Advocacy documentation.
50227         * doc/gnulib-intro.texi (Benefits): New section.
50228         * doc/gnulib.texi: Update.
50229
50230 2008-12-06  Bruno Haible  <bruno@clisp.org>
50231
50232         Document the 'manywarnings' module.
50233         * doc/manywarnings.texi: New file.
50234         * doc/gnulib.texi: Include it.
50235
50236 2008-12-05  Eric Blake  <ebb9@byu.net>
50237
50238         tests: silence some gcc warnings
50239         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50240         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50241         type mismatches.
50242
50243 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50244             Bruno Haible  <bruno@clisp.org>
50245
50246         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50247
50248 2008-11-29  Jim Meyering  <meyering@redhat.com>
50249
50250         unicodeio.c: mark unused parameters
50251         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50252         (fallback_failure_callback): Likewise.
50253
50254         fts: fix a thinko
50255         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50256         (set_stat_type): Return S_IF*-valued "type" directly.
50257         Prompted by James Youngman's spotting a related bug.
50258         Confirmed by further testing through find.
50259
50260         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50261         * lib/fts.c (D_TYPE): Define.
50262         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50263         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50264         (s_ifmt_shift_bits): New function.
50265         (set_stat_type): New function.
50266         (fts_build): When not calling fts_stat, call set_stat_type
50267         to propagate dirent.d_type info to fts_read caller.
50268         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50269         fts_statp->st_mode type information may be valid.
50270
50271 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50272
50273         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50274         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50275         <sds@gnu.org>.
50276
50277 2008-11-20  Bruno Haible  <bruno@clisp.org>
50278
50279         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50280         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50281         INCLUDE_NEXT.
50282         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50283         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50284         * modules/math (Makefile.am): Substitute
50285         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50286         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50287
50288 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50289             Bruno Haible  <bruno@clisp.org>
50290
50291         * lib/stdint.in.h: Define all type macros so that their expansion is
50292         a single typedef'ed token. Fixes a compilation failure in Boost which
50293         does "using ::int8_t;".
50294
50295 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50296
50297         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50298         gl_MANYWARN_ALL_GCC.
50299         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50300         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50301         * modules/manywarnings: New file.
50302         * MODULES.html.sh: Mention manywarnings module.
50303
50304 2008-11-18  Bruno Haible  <bruno@clisp.org>
50305
50306         * doc/gnulib-tool.texi (Unit tests): New section.
50307
50308 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50309
50310         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50311         paths like 'lib/po/foo.po'.
50312
50313 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50314
50315         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50316         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50317
50318 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50319
50320         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50321         parameter works.
50322
50323 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50324
50325         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50326
50327 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50328
50329         * modules/parse-duration-tests: New file.
50330         * tests/test-parse-duration.sh: New file.
50331         * tests/test-parse-duration.c: New file.
50332
50333         New module 'parse-duration'.
50334         * lib/parse-duration.h: New file.
50335         * lib/parse-duration.c: New file.
50336         * modules/parse-duration: New file.
50337
50338 2008-11-17  Bruno Haible  <bruno@clisp.org>
50339
50340         * tests/test-select-out.sh: Comment out the first pipe test.
50341         Reported by Simon Josefsson.
50342
50343 2008-11-17  Bruno Haible  <bruno@clisp.org>
50344
50345         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50347         gl_HOSTENT.
50348
50349 2008-11-17  Bruno Haible  <bruno@clisp.org>
50350
50351         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50352         -lnetwork and -lnet. Needed for Haiku and BeOS.
50353
50354 2008-11-16  Bruno Haible  <bruno@clisp.org>
50355
50356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50357
50358 2008-11-16  Bruno Haible  <bruno@clisp.org>
50359
50360         Avoid test failure on Haiku.
50361         * tests/test-fsync.c: Include <errno.h>.
50362         (main): Don't require that fsync (0) fails.
50363
50364 2008-11-15  Bruno Haible  <bruno@clisp.org>
50365
50366         New module 'hostent'.
50367         * modules/hostent: New file.
50368         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50369
50370 2008-11-15  Bruno Haible  <bruno@clisp.org>
50371
50372         New module 'servent'.
50373         * modules/servent: New file.
50374         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50375
50376 2008-11-15  Bruno Haible  <bruno@clisp.org>
50377
50378         Avoid generating same test program with two different rules.
50379         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50380         test-frexp to test-frexp-nolibm.
50381         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50382         test-frexpl to test-frexpl-nolibm.
50383
50384 2008-11-15  Bruno Haible  <bruno@clisp.org>
50385
50386         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50387         $(FREXPL_LIBM).
50388
50389 2008-11-15  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/netdb.in.h: Activate the definitions also when the system's
50392         <netdb.h> has 'struct addrinfo'.
50393         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50394         EAI_OVERFLOW or AI_NUMERICSERV.
50395         * doc/posix-headers/netdb.texi: Document the problem.
50396
50397 2008-11-15  Bruno Haible  <bruno@clisp.org>
50398
50399         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50400
50401         Make the 'sched' module work on platforms where <sched.h> exists but
50402         is incomplete (such as Haiku).
50403         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50404         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50405         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50406         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50407         HAVE_STRUCT_SCHED_PARAM.
50408         * modules/sched (Depends-on): Add include_next.
50409         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50410         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50411         * doc/posix-headers/sched.texi: Document the issue.
50412
50413 2008-11-13  Jim Meyering  <meyering@redhat.com>
50414
50415         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50416         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50417         test would fail due to the difference in the Report bugs to ...
50418         line.  The expected address is empty, "<>", while the actual
50419         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50420
50421 2008-11-12  Bruno Haible  <bruno@clisp.org>
50422
50423         lstat: don't compile lstat.c on systems lacking lstat
50424         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50425         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50426         Reported by Daniel P. Berrange via Jim Meyering.
50427
50428 2008-11-12  Jim Meyering  <meyering@redhat.com>
50429
50430         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50431
50432 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50433
50434         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50435         instead.
50436
50437 2008-11-12  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/unicodeio.c: Include unistr.h.
50440         (utf8_wctomb): Remove function.
50441         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50442
50443 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50444
50445         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50446         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50447         <bruno@clisp.org>.
50448         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50449
50450 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50451
50452         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50453         * doc/gnulib.texi: Add section for warnings.
50454
50455 2008-11-11  Bruno Haible  <bruno@clisp.org>
50456
50457         * lib/sockets.h: Add a comment.
50458
50459 2008-11-11  Karl Berry  <karl@gnu.org>
50460
50461         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50462
50463 2008-11-11  Eric Blake  <ebb9@byu.net>
50464
50465         fdl.texi: avoid git symlinks
50466         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50467
50468 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50469
50470         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50471
50472 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50473
50474         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50475         (gl_WARN_ADD): Substitute $2 if literal.
50476
50477 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50478
50479         * m4/warning.m4: Remove.
50480
50481 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50482
50483         * m4/warnings.m4: Almost complete rewrite. :-)
50484
50485 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50486
50487         * modules/warnings: New module.
50488         * m4/warnings.m4: New file.
50489         * MODULES.html.sh: Mention warnings module.
50490         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50491         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50492
50493 2008-11-10  Eric Blake  <ebb9@byu.net>
50494
50495         fdl.texi: make a symlink to the latest version
50496         * doc/standards.texi: Revert today's earlier change.
50497         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50498         * doc/fdl.texi: ...and replace this with a symlink to the newer
50499         fdl-1.3.texi.
50500
50501 2008-11-10  Bruno Haible  <bruno@clisp.org>
50502
50503         * tests/test-select-fd.c (main): Accept the result file name as fourth
50504         argument.
50505         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50506         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50507
50508 2008-11-10  Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50511         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50512         as autoconf-substituted macros.
50513         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50514         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50515         gl_NETDB_H_DEFAULTS. Set these variables.
50516         * modules/netdb (Makefile.am): Substitute these variables.
50517
50518 2008-11-10  Eric Blake  <ebb9@byu.net>
50519
50520         standards.texi: include correct file for FDL 1.3
50521         * doc/standards.texi (GNU Free Documentation License): Change
50522         include file to pull in FDL 1.3, not 1.2.
50523
50524         fdl.texi: revert accidental change to license
50525         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50526
50527 2008-11-10  Bruno Haible  <bruno@clisp.org>
50528
50529         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50530         cross-compiling guesses also when the native compile gives no result.
50531
50532 2008-11-10  Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/spawni.c (__spawni): Force variable into the stack.
50535
50536 2008-11-10  Bruno Haible  <bruno@clisp.org>
50537
50538         Add support for Haiku.
50539         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50540         glibc and BeOS, but also on Haiku.
50541         * lib/fpurge.c (fpurge): Likewise.
50542         * lib/freadable.c (freadable): Likewise.
50543         * lib/freadahead.c (freadahead): Likewise.
50544         * lib/freading.c (freading): Likewise.
50545         * lib/freadptr.c (freadptr): Likewise.
50546         * lib/freadseek.c (freadptrinc): Likewise.
50547         * lib/fseeko.c (rpl_fseeko): Likewise.
50548         * lib/fseterr.c (fseterr): Likewise.
50549         * lib/fwritable.c (fwritable): Likewise.
50550         * lib/fwriting.c (fwriting): Likewise.
50551         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50552
50553 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50554
50555         * lib/config.charset: Treat Haiku like BeOS.
50556
50557 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50558
50559         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50560         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50561
50562 2008-11-08  Bruno Haible  <bruno@clisp.org>
50563
50564         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50565         AC_CACHE_CHECK.
50566
50567 2008-11-08  Bruno Haible  <bruno@clisp.org>
50568
50569         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50570
50571 2008-11-08  Bruno Haible  <bruno@clisp.org>
50572
50573         * tests/test-select-fd.c: New file.
50574         * tests/test-select-in.sh: New file.
50575         * tests/test-select-out.sh: New file.
50576         * tests/test-select-stdin.c: New file.
50577         * modules/select-tests (Files): Add the new files.
50578         (Depends-on): Add gettimeofday.
50579         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50580         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50581         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50582
50583 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50584             Bruno Haible  <bruno@clisp.org>
50585
50586         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50587
50588 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50589
50590         * build-aux/pmccabe2html: Added support for C++ source files.
50591
50592 2008-11-05  Ben Pfaff  <blp@gnu.org>
50593
50594         Fix lib/close.c build on Windows.
50595         * modules/close (Files): Add lib/w32sock.h.
50596
50597 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50598
50599         Accept Bison's NEWS format.
50600         * build-aux/announce-gen (print_news_deltas): Tweak
50601         $re_prefix.
50602
50603 2008-11-04  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/random_r (Maintainer): Add glibc.
50606
50607 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50608
50609         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50610         by karl@freefriends.org (Karl Berry).
50611         * doc/alloca.texi: Likewise.
50612         * doc/c-ctype.texi: Likewise.
50613         * doc/c-strcase.texi: Likewise.
50614         * doc/c-strcaseeq.texi: Likewise.
50615         * doc/c-strcasestr.texi: Likewise.
50616         * doc/c-strstr.texi: Likewise.
50617         * doc/c-strtod.texi: Likewise.
50618         * doc/c-strtold.texi: Likewise.
50619         * doc/ctime.texi: Likewise.
50620         * doc/error.texi: Likewise.
50621         * doc/fdl.texi: Likewise.
50622         * doc/gcd.texi: Likewise.
50623         * doc/getdate.texi: Likewise.
50624         * doc/gnulib-intro.texi: Likewise.
50625         * doc/gnulib-tool.texi: Likewise.
50626         * doc/gnulib.texi: Likewise.
50627         * doc/inet_ntoa.texi: Likewise.
50628         * doc/maintain.texi: Likewise.
50629         * doc/make-stds.texi: Likewise.
50630         * doc/quote.texi: Likewise.
50631         * doc/regexprops-generic.texi: Likewise.
50632         * doc/standards.texi: Likewise.
50633         * doc/verify.texi: Likewise.
50634         * doc/visibility.texi: Likewise.
50635         * doc/gnulib.texi (GNU Free Documentation License): Include
50636         fdl-1.3.texi instead of fdl.texi.
50637
50638 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50639
50640         * doc/fdl-1.3.texi: New file, from
50641         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50642         * modules/fdl-1.3: Add.
50643         * MODULES.html.sh: Add fdl-1.3.
50644
50645 2008-11-03  Bruno Haible  <bruno@clisp.org>
50646
50647         Make determination of absolute name of header file work with AIX xlc.
50648         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50649         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50650         preprocessing.
50651         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50652         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50653
50654 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50655
50656         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50657         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50658         <ludo@gnu.org>.
50659
50660 2008-11-02  Bruno Haible  <bruno@clisp.org>
50661
50662         Mark 'strpbrk' obsolete.
50663         * modules/strpbrk (Status, Notice): New sections.
50664         * modules/strtok_r (Depends-on): Add strpbrk.
50665
50666 2008-11-02  Bruno Haible  <bruno@clisp.org>
50667
50668         Mark 'strdup' obsolete.
50669         * modules/strdup (Status, Notice): New sections.
50670         * modules/findprog (Depends-on): Add strdup.
50671         * modules/getaddrinfo (Depends-on): Likewise.
50672         * modules/localename (Depends-on): Likewise.
50673         * modules/relocatable-lib (Depends-on): Likewise.
50674         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50675         * modules/relocatable-prog (Depends-on): Likewise.
50676         * modules/trim (Depends-on): Likewise.
50677         * modules/unictype/gen-ctype (Depends-on): Likewise.
50678         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50679
50680 2008-11-02  Bruno Haible  <bruno@clisp.org>
50681
50682         Mark 'strcspn' obsolete.
50683         * modules/strcspn (Status, Notice): New sections.
50684
50685 2008-11-02  Bruno Haible  <bruno@clisp.org>
50686
50687         Mark 'rmdir' obsolete.
50688         * modules/rmdir (Status, Notice): New sections.
50689         * modules/clean-temp (Depends-on): Add rmdir.
50690         * modules/openat (Depends-on): Likewise.
50691
50692 2008-11-02  Bruno Haible  <bruno@clisp.org>
50693
50694         Mark 'raise' obsolete.
50695         * modules/raise (Status, Notice): New sections.
50696         (Include): Specify <signal.h>.
50697         * modules/stdio (Depends-on): Add raise.
50698         * modules/write (Depends-on): Likewise.
50699
50700 2008-11-02  Bruno Haible  <bruno@clisp.org>
50701
50702         Mark 'memset' obsolete.
50703         * modules/memset (Status, Notice): New sections.
50704
50705 2008-11-02  Bruno Haible  <bruno@clisp.org>
50706
50707         Mark 'memmove' obsolete.
50708         * modules/memmove (Status, Notice): New sections.
50709         * modules/argp (Depends-on): Add memmove.
50710         * modules/argz (Depends-on): Likewise.
50711         * modules/canonicalize (Depends-on): Likewise.
50712         * modules/canonicalize-lgpl (Depends-on): Likewise.
50713         * modules/fts (Depends-on): Likewise.
50714         * modules/getcwd (Depends-on): Likewise.
50715         * modules/human (Depends-on): Likewise.
50716         * modules/regex (Depends-on): Likewise.
50717         * modules/striconveh (Depends-on): Likewise.
50718         * modules/trim (Depends-on): Likewise.
50719         * modules/unistr/u8-move (Depends-on): Likewise.
50720         * modules/unistr/u16-move (Depends-on): Likewise.
50721         * modules/unistr/u32-move (Depends-on): Likewise.
50722
50723 2008-11-02  Bruno Haible  <bruno@clisp.org>
50724
50725         Mark 'memcpy' obsolete.
50726         * modules/memcpy (Status, Notice): New sections.
50727
50728 2008-11-02  Bruno Haible  <bruno@clisp.org>
50729
50730         Mark 'memcmp' obsolete.
50731         * modules/memcmp (Status, Notice): New sections.
50732         * modules/argmatch (Depends-on): Add memchr.
50733         * modules/backupfile (Depends-on): Likewise.
50734         * modules/c-strcasestr (Depends-on): Likewise.
50735         * modules/crypto/des (Depends-on): Likewise.
50736         * modules/csharpcomp (Depends-on): Likewise.
50737         * modules/fnmatch (Depends-on): Likewise.
50738         * modules/git-merge-changelog (Depends-on): Likewise.
50739         * modules/isnand (Depends-on): Likewise.
50740         * modules/isnand-nolibm (Depends-on): Likewise.
50741         * modules/isnanf (Depends-on): Likewise.
50742         * modules/isnanf-nolibm (Depends-on): Likewise.
50743         * modules/isnanl (Depends-on): Likewise.
50744         * modules/isnanl-nolibm (Depends-on): Likewise.
50745         * modules/mbchar (Depends-on): Likewise.
50746         * modules/memcoll (Depends-on): Likewise.
50747         * modules/quotearg (Depends-on): Likewise.
50748         * modules/regex (Depends-on): Likewise.
50749         * modules/relocatable-prog (Depends-on): Likewise.
50750         * modules/same (Depends-on): Likewise.
50751         * modules/signbit (Depends-on): Likewise.
50752         * modules/strcasestr-simple (Depends-on): Likewise.
50753         * modules/unictype/gen-ctype (Depends-on): Likewise.
50754         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50755         * modules/uniname/uniname (Depends-on): Likewise.
50756         * modules/unistr/u8-cmp (Depends-on): Likewise.
50757
50758 2008-11-02  Bruno Haible  <bruno@clisp.org>
50759
50760         Mark 'memchr' obsolete.
50761         * modules/memchr (Status, Notice): New sections.
50762         * modules/argp (Depends-on): Add memchr.
50763         * modules/base64 (Depends-on): Likewise.
50764         * modules/c-strcasestr (Depends-on): Likewise.
50765         * modules/chdir-long (Depends-on): Likewise.
50766         * modules/fnmatch (Depends-on): Likewise.
50767         * modules/getsubopt (Depends-on): Likewise.
50768         * modules/git-merge-changelog (Depends-on): Likewise.
50769         * modules/glob (Depends-on): Likewise.
50770         * modules/strcasestr-simple (Depends-on): Likewise.
50771         * modules/strnlen (Depends-on): Likewise.
50772
50773 2008-11-02  Bruno Haible  <bruno@clisp.org>
50774
50775         Mark 'atexit' obsolete.
50776         * modules/atexit (Status, Notice): New sections.
50777         * modules/chdir-long (Depends-on): Add atexit.
50778         * modules/wait-process (Depends-on): Likewise.
50779
50780 2008-11-02  Bruno Haible  <bruno@clisp.org>
50781
50782         * gnulib-tool: New option --with-obsolete.
50783         (func_usage): Document it.
50784         (func_modules_transitive_closure): Drop obsolete dependencies if
50785         incobsolete is not true.
50786         (func_import): Read and save the incobsolete variable to the cache.
50787
50788 2008-11-02  Bruno Haible  <bruno@clisp.org>
50789
50790         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50791         * gnulib-tool: New option --extract-status.
50792         (func_usage): Document it.
50793         (sed_extract_prog): Recognize it.
50794         (func_get_status): New function.
50795
50796 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50797
50798         * modules/sockets (License): Change from LGPL to LGPLv2+.
50799
50800 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50801
50802         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50803
50804 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50805
50806         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50807         Mention times and sys_times.
50808         * modules/sys_times, modules/sys_times-tests: New modules.
50809         * modules/times, modules/times-tests: Likewise
50810         * m4/sys_times_h.m4: New file.
50811         * lib/sys_times.in.h: Likewise
50812         * lib/times.c: Likewise.
50813         * tests/test-sys_times.c: Likewise.
50814         * tests/test-times.c: Likewise.
50815         * doc/posix-headers/sys_times.texi: Update.
50816         * doc/posix-functions/times.texi: Update.
50817
50818 2008-10-28  Jim Meyering  <meyering@redhat.com>
50819
50820         * modules/tempname (Depends-on): Add lstat.
50821
50822         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50823
50824 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50825
50826         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50827         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50828         using idiom used elsewhere in gnulib.
50829
50830 2008-10-27  Jim Meyering  <meyering@redhat.com>
50831
50832         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50833
50834 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50835
50836         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50837         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50838         programs.
50839         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50840
50841 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50842
50843         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50844
50845 2008-10-27  Bruno Haible  <bruno@clisp.org>
50846
50847         * tests/test-lstat.c: Include <stdio.h>.
50848
50849 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50850
50851         * modules/lstat-tests: New module.
50852         * tests/test-lstat.c: New file.
50853
50854 2008-10-26  Jim Meyering  <meyering@redhat.com>
50855
50856         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50857
50858 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50859             Bruno Haible  <bruno@clisp.org>
50860
50861         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50862         * modules/configmake (Include): Add a note that the include must come
50863         after all system headers.
50864         * lib/javaversion.c: Include configmake.h after all other includes.
50865
50866 2008-10-26  Bruno Haible  <bruno@clisp.org>
50867
50868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50869         HAVE_STRUCT_RANDOM_DATA to 1.
50870         (gl_STDLIB_H): Simplify.
50871
50872 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50873
50874         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50875         substitute HAVE_STRUCT_RANDOM_DATA.
50876         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50877         random_data.
50878         * modules/stdlib (Makefile.am): Substitute
50879         HAVE_STRUCT_RANDOM_DATA.
50880
50881 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50882
50883         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50884         * doc/gnulib-intro.texi (Copyright): Likewise.
50885
50886 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50887
50888         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50889         findings.
50890
50891 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50892             Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/unistd.in.h: Include <winsock2.h>.
50895         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50896         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50897         Provide dummy declarations.
50898         (gethostname): Override.
50899         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50900         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50901         gl_PREREQ_SYS_H_WINSOCK2.
50902         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50903         * doc/posix-functions/gethostname.texi: More details.
50904
50905 2008-10-25  Bruno Haible  <bruno@clisp.org>
50906
50907         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50908         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50909         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50910
50911         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50912         here ...
50913         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50914         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50915         gl_UNISTD_H_DEFAULTS.
50916
50917 2008-10-25  Eric Blake  <ebb9@byu.net>
50918
50919         signbit: avoid spurious compiler failure
50920         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50921         declarations inside function.
50922
50923 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50924             Bruno Haible  <bruno@clisp.org>
50925
50926         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50927         * modules/random_r (Depends-on): Add stdint.
50928
50929 2008-10-24  Bruno Haible  <bruno@clisp.org>
50930
50931         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50932         Eggert.
50933         * modules/strerror (License): Likewise.
50934
50935 2008-10-24  Jim Meyering  <meyering@redhat.com>
50936
50937         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50938         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50939
50940 2008-10-24  Eric Blake  <ebb9@byu.net>
50941
50942         getgroups: fix compilation when getgroups is available
50943         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50944         but with <config.h> override of getgroups disabled.
50945
50946 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50947
50948         * doc/gnulib.texi (Header files): Add note about C++ problems.
50949         Explained by Bruno Haible <bruno@clisp.org>.
50950
50951 2008-10-23  Bruno Haible  <bruno@clisp.org>
50952
50953         Define a dummy SA_NODEFER macro on Interix.
50954         * lib/signal.in.h (SA_NODEFER): Define fallback.
50955         Reported by Aleksey Cheusov <cheusov@tut.by> via
50956         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50957
50958 2008-10-23  Bruno Haible  <bruno@clisp.org>
50959
50960         * modules/freadahead (License): Change to LGPLv2+.
50961         Suggested by Simon Josefsson.
50962
50963 2008-10-23  Jim Meyering  <meyering@redhat.com>
50964
50965         random_r: new module
50966         * modules/random_r: New file.
50967         * m4/random_r.m4: New file.
50968         * lib/random_r.c: New file, from glibc.
50969         * modules/random_r-tests: New file.
50970         * tests/test-random_r.c: New file.
50971         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50972          Declare.
50973         (RAND_MAX): Define.
50974         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50975         * modules/stdlib: Substitute them, too.
50976         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50977         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50978         * doc/glibc-functions/random_r.texi: Likewise.
50979         * doc/glibc-functions/setstate_r.texi: Likewise.
50980         * doc/glibc-functions/srandom_r.texi: Likewise.
50981         * config/srclist.txt: Mention it.
50982
50983 2008-10-23  David Lutterkort  <lutter@redhat.com>
50984
50985         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50986         link requirement
50987
50988 2008-10-23  Jim Meyering  <meyering@redhat.com>
50989
50990         selinux-h: mark parameters of stub functions as intentionally unused
50991         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50992         * lib/se-context.in.h: Likewise.
50993
50994 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50995
50996         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50997
50998 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50999
51000         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51001
51002 2008-10-22  Eric Blake  <ebb9@byu.net>
51003
51004         glthread/thread: avoid compiler warning
51005         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51006         Add unreachable abort to silence compiler.
51007
51008 2008-10-22  Eric Blake  <ebb9@byu.net>
51009
51010         netdb: also supply struct addrinfo for cygwin 1.5.x
51011         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51012         older cygwin.
51013         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51014         cygwin.
51015         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51016
51017 2008-10-22  Bruno Haible  <bruno@clisp.org>
51018
51019         * users.txt: Update entry about pspp.
51020
51021 2008-10-21  Bruno Haible  <bruno@clisp.org>
51022
51023         Simplification.
51024         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51025         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51026
51027         Simplification.
51028         * lib/ioctl.c (ioctl): Don't undefine.
51029         * lib/socket.c (socket): Don't undefine.
51030
51031         Remove unused module indicator macros.
51032         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51033         GNULIB_$1 as a C macro.
51034
51035         * doc/posix-functions/close.texi: Undo last change.
51036         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51037         Windows platforms.
51038
51039 2008-10-21  Bruno Haible  <bruno@clisp.org>
51040
51041         Add gethostname() declaration to <unistd.h>.
51042         * lib/unistd.in.h (gethostname): New declaration.
51043         * lib/gethostname.c: Include <unistd.h>.
51044         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51045         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51047         and HAVE_GETHOSTNAME.
51048         * modules/gethostname (Depends-on): Add unistd.
51049         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51050         (Include): Specify <unistd.h>.
51051         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51052         HAVE_GETHOSTNAME.
51053         * tests/test-gethostname.c: Include <unistd.h> first.
51054
51055 2008-10-21  Bruno Haible  <bruno@clisp.org>
51056
51057         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51058         * modules/select-tests (Depends-on): Likewise.
51059         Reported by Simon Josefsson.
51060
51061 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51062
51063         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51064         * lib/accept.c: New file, based on winsock.c.
51065         * lib/bind.c: New file, based on winsock.c.
51066         * lib/connect.c: New file, based on winsock.c.
51067         * lib/getpeername.c: New file, based on winsock.c.
51068         * lib/getsockname.c: New file, based on winsock.c.
51069         * lib/getsockopt.c: New file, based on winsock.c.
51070         * lib/ioctl.c: New file, based on winsock.c.
51071         * lib/listen.c: New file, based on winsock.c.
51072         * lib/recv.c: New file, based on winsock.c.
51073         * lib/recvfrom.c: New file, based on winsock.c.
51074         * lib/send.c: New file, based on winsock.c.
51075         * lib/sendto.c: New file, based on winsock.c.
51076         * lib/setsockopt.c: New file, based on winsock.c.
51077         * lib/shutdown.c: New file, based on winsock.c.
51078         * lib/socket.c: New file, based on winsock.c.
51079         * lib/w32sock.h: New file, based on winsock.c.
51080         * lib/winsock.c: Remove file.
51081         * modules/accept: Likewise.
51082         * modules/bind: Likewise.
51083         * modules/connect: Likewise.
51084         * modules/getpeername: Likewise.
51085         * modules/getsockname: Likewise.
51086         * modules/getsockopt: Likewise.
51087         * modules/ioctl: Likewise.
51088         * modules/listen: Likewise.
51089         * modules/recv: Likewise.
51090         * modules/recvfrom: Likewise.
51091         * modules/send: Likewise.
51092         * modules/sendto: Likewise.
51093         * modules/setsockopt: Likewise.
51094         * modules/shutdown: Likewise.
51095         * modules/socket: Use socket.c instead of winsock.c.
51096         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51097         * doc/posix-functions/accept.texi: Doc fix.
51098         * doc/posix-functions/bind.texi: Doc fix.
51099         * doc/posix-functions/close.texi: Doc fix.
51100         * doc/posix-functions/connect.texi: Doc fix.
51101         * doc/posix-functions/getpeername.texi: Doc fix.
51102         * doc/posix-functions/getsockname.texi: Doc fix.
51103         * doc/posix-functions/getsockopt.texi: Doc fix.
51104         * doc/posix-functions/ioctl.texi: Doc fix.
51105         * doc/posix-functions/listen.texi: Doc fix.
51106         * doc/posix-functions/recv.texi: Doc fix.
51107         * doc/posix-functions/recvfrom.texi: Doc fix.
51108         * doc/posix-functions/send.texi: Doc fix.
51109         * doc/posix-functions/sendto.texi: Doc fix.
51110         * doc/posix-functions/setsockopt.texi: Doc fix.
51111         * doc/posix-functions/shutdown.texi: Doc fix.
51112         * doc/posix-functions/socket.texi: Doc fix.
51113
51114 2008-10-20  Bruno Haible  <bruno@clisp.org>
51115
51116         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51117         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51118         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51119         as an alias for SIGABRT.
51120         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51121         (sigaction): Map it to SIGABRT.
51122         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51123
51124 2008-10-20  Bruno Haible  <bruno@clisp.org>
51125
51126         * lib/fts.c: Don't include lstat.h.
51127         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51128
51129         Move the lstat() declaration to <sys/stat.h>.
51130         * lib/lstat.h: Remove file.
51131         * lib/sys_stat.in.h: Add special invocation convention.
51132         (lstat): New declaration.
51133         * lib/lstat.c (orig_lstat): New function.
51134         (rpl_lstat): Use orig_lstat instead of lstat.
51135         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51136         AC_C_INLINE. Set REPLACE_LSTAT.
51137         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51138         and REPLACE_LSTAT.
51139         * modules/lstat (Files): Remove lib/lstat.h.
51140         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51141         (Include): Specify <sys/stat.h> instead of lstat.h.
51142         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51143         REPLACE_LSTAT.
51144         * NEWS: Mention the change.
51145
51146 2008-10-20  Bruno Haible  <bruno@clisp.org>
51147
51148         * modules/posix_spawn-tests: New file.
51149         * tests/test-posix_spawn3.c: New file.
51150
51151 2008-10-20  Bruno Haible  <bruno@clisp.org>
51152
51153         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51154         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51155         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51156         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51157         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51158
51159 2008-10-20  Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51162         of posix_spawn on AIX 5.3.
51163
51164 2008-10-20  Bruno Haible  <bruno@clisp.org>
51165
51166         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51167
51168 2008-10-20  Bruno Haible  <bruno@clisp.org>
51169
51170         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51171         of AC_LANG_PROGRAM.
51172
51173 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51174
51175         * lib/netdb.in.h: Don't define GNU specific constants until they
51176         are supported or needed.  Reported by Bruno Haible
51177         <bruno@clisp.org>.
51178
51179 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51180
51181         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51182
51183 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51184
51185         * lib/getaddrinfo.h: Remove file.
51186         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51187         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51188         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51189         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51190         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51191         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51192         * tests/test-getaddrinfo.c: Likewise.
51193         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51194         * NEWS: Mention change.
51195
51196 2008-10-19  Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51199
51200 2008-10-19  Bruno Haible  <bruno@clisp.org>
51201
51202         * lib/wait-process.c: Include simply <sys/wait.h>.
51203         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51204         WIFSTOPPED): Remove fallback definitions.
51205         * modules/wait-process (Depends-on): Add sys_wait.
51206
51207         New module 'sys_wait'.
51208         * modules/sys_wait: New file.
51209         * lib/sys_wait.in.h: New file, partially copied from
51210         lib/wait-process.c.
51211         * m4/sys_wait_h.m4: New file.
51212         * doc/posix-headers/sys_wait.texi: Mention the new module.
51213
51214 2008-10-19  Bruno Haible  <bruno@clisp.org>
51215
51216         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51217
51218 2008-10-19  Bruno Haible  <bruno@clisp.org>
51219
51220         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51221         * lib/wait-process.c (WAIT_T): Remove type.
51222         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51223         (wait_subprocess): Update.
51224
51225 2008-10-19  Bruno Haible  <bruno@clisp.org>
51226
51227         New module 'atoll'.
51228         * modules/atoll: New file.
51229         * lib/stdlib.in.h (atoll): New declaration.
51230         * lib/atoll.c: New file, from glibc with modifications.
51231         * m4/atoll.m4: New file.
51232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51233         HAVE_ATOLL.
51234         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51235         * doc/posix-functions/atoll.texi: Mention the new module.
51236
51237 2008-10-19  Bruno Haible  <bruno@clisp.org>
51238
51239         Add strtoull() declaration to <stdlib.h>.
51240         * lib/stdlib.in.h (strtoull): New declaration.
51241         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51242         Set HAVE_STRTOULL.
51243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51244         HAVE_STRTOULL.
51245         * modules/strtoull (Depends-on): Add stdlib.
51246         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51247         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51248         HAVE_STRTOULL.
51249
51250 2008-10-19  Bruno Haible  <bruno@clisp.org>
51251
51252         Add strtoll() declaration to <stdlib.h>.
51253         * lib/stdlib.in.h (strtoll): New declaration.
51254         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51255         Set HAVE_STRTOLL.
51256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51257         HAVE_STRTOLL.
51258         * modules/strtoll (Depends-on): Add stdlib.
51259         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51260         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51261
51262 2008-10-19  Bruno Haible  <bruno@clisp.org>
51263
51264         * modules/bcopy (Depends-on): Add strings.
51265         (Include): Specify <strings.h>.
51266
51267 2008-10-19  Bruno Haible  <bruno@clisp.org>
51268
51269         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51270
51271 2008-10-19  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51274         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51275         mingw.
51276
51277 2008-10-19  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/atanl.c: Don't include isnanl.h.
51280         * lib/cosl.c: Likewise.
51281         * lib/ldexpl.c: Likewise.
51282         * lib/logl.c: Likewise.
51283         * lib/sinl.c: Likewise.
51284         * lib/sqrtl.c: Likewise.
51285         * lib/tanl.c: Likewise.
51286
51287         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51288         * lib/isnanf.h: Remove file.
51289         * lib/isnand.h: Remove file.
51290         * lib/isnanl.h: Remove file.
51291         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51292         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51293         macros.
51294         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51295         HAVE_ISNANF, don't define it as a C macro.
51296         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51297         HAVE_ISNAND, don't define it as a C macro.
51298         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51299         HAVE_ISNANL, don't define it as a C macro.
51300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51301         HAVE_ISNAN[FDL].
51302         * modules/isnanf (Files): Remove lib/isnanf.h.
51303         (Depends-on): Add math.
51304         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51305         (Include): Specify <math.h> instead of isnanf.h.
51306         * modules/isnand (Files): Remove lib/isnand.h.
51307         (Depends-on): Add math.
51308         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51309         (Include): Specify <math.h> instead of isnand.h.
51310         * modules/isnanl (Files): Remove lib/isnanl.h.
51311         (Depends-on): Add math.
51312         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51313         (Include): Specify <math.h> instead of isnanl.h.
51314         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51315         HAVE_ISNAN[FDL].
51316         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51317         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51318         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51319         * NEWS: Mention the change.
51320
51321 2008-10-18  Bruno Haible  <bruno@clisp.org>
51322
51323         Add getusershell(), setusershell(), endusershell() declarations to
51324         <unistd.h>.
51325         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51326         declarations.
51327         * lib/getusershell.c: Include unistd.h.
51328         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51329         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51330         HAVE_GETUSERSHELL.
51331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51332         and HAVE_GETUSERSHELL.
51333         * modules/getusershell (Depends-on): Add unistd, extensions.
51334         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51335         (Include): Specify <unistd.h>.
51336         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51337         HAVE_GETUSERSHELL.
51338
51339 2008-10-18  Bruno Haible  <bruno@clisp.org>
51340
51341         Add a getloadavg() declaration to <stdlib.h>.
51342         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51343         getloadavg declaration.
51344         (getloadavg): New declaration.
51345         * lib/getloadavg.c: Include <stdlib.h> first.
51346         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51347         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51348         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51350         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51351         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51352         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51353         (Include): Specify <stdlib.h>.
51354         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51355         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51356
51357 2008-10-18  Bruno Haible  <bruno@clisp.org>
51358
51359         * lib/dirchownmod.c: Don't include lchmod.h.
51360
51361         Move the lchmod() declaration to <sys/stat.h>.
51362         * lib/lchmod.h: Remove file.
51363         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51364         (lchmod): New declaration, moved here from lib/lchown.h.
51365         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51366         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51368         and HAVE_LCHMOD.
51369         * modules/lchmod (Files): Remove lib/lchmod.h.
51370         (Depends-on): Add sys_stat, extensions.
51371         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51372         (Include): Specify <sys/stat.h> instead of lchmod.h.
51373         * modules/sys_stat (Depends-on): Add link-warning.
51374         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51375         definition of GL_LINK_WARNING.
51376         * NEWS: Mention the change.
51377
51378 2008-10-18  Bruno Haible  <bruno@clisp.org>
51379
51380         * lib/fchdir.c: Don't include dirfd.h.
51381         * lib/fts.c: Likewise.
51382         * lib/getcwd.c: Likewise.
51383         * lib/glob.c: Likewise.
51384
51385         Move the dirfd() declaration to <dirent.h>.
51386         * lib/dirfd.h: Remove file.
51387         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51388         (dirfd): New declaration.
51389         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51390         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51391         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51392         HAVE_DECL_DIRFD.
51393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51394         HAVE_DECL_DIRFD.
51395         * modules/dirfd (Files): Remove lib/dirfd.h.
51396         (Depends-on): Add dirent, extensions.
51397         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51398         (Include): Specify <dirent.h> instead of dirfd.h.
51399         * modules/dirent (Depends-on): Add link-warning.
51400         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51401         definition of GL_LINK_WARNING.
51402         * NEWS: Mention the change.
51403
51404 2008-10-18  Bruno Haible  <bruno@clisp.org>
51405
51406         Move the euidaccess() declaration to <unistd.h>.
51407         * lib/euidaccess.h: Remove file.
51408         * lib/unistd.in.h (euidaccess): New declaration.
51409         * lib/euidaccess.c: Don't include euidaccess.h.
51410         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51411         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51413         and HAVE_EUIDACCESS.
51414         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51415         (Depends-on): Add unistd.
51416         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51417         (Include): Specify <unistd.h> instead of euidaccess.h.
51418         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51419         HAVE_EUIDACCESS.
51420         * NEWS: Mention the change.
51421
51422 2008-10-18  Bruno Haible  <bruno@clisp.org>
51423
51424         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51425
51426         Move the getdomainname() declaration to <unistd.h>.
51427         * lib/getdomainname.h: Remove file.
51428         * lib/unistd.in.h (getdomainname): New declaration.
51429         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51430         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51431         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51432         HAVE_GETDOMAINNAME.
51433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51434         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51435         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51436         (Depends-on): Add unistd, extensions.
51437         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51438         (Includes): Specify <unistd.h> instead of getdomainname.h.
51439         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51440         HAVE_GETDOMAINNAME.
51441         * NEWS: Mention the change.
51442
51443 2008-10-18  Bruno Haible  <bruno@clisp.org>
51444
51445         * modules/dirent: New file.
51446         * m4/dirent_h.m4: New file.
51447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51448         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51449         * modules/fchdir (Files): Remove lib/dirent.in.h.
51450         (Depends-on): Add dirent.
51451         (Makefile.am): Move rules to modules/dirent.
51452         * doc/posix-headers/dirent.texi: Mention the new module.
51453
51454 2008-10-18  Bruno Haible  <bruno@clisp.org>
51455
51456         Avoid -Wunused-parameter warnings in public gnulib header files.
51457         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51458         macro.
51459         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51460
51461 2008-10-18  Bruno Haible  <bruno@clisp.org>
51462
51463         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51464         * doc/glibc-functions/error.texi: Mention the module 'error'.
51465         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51466         * doc/glibc-functions/getdomainname.texi: Mention the module
51467         'getdomainname'.
51468         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51469         * doc/glibc-functions/getpagesize.texi: Mention the module
51470         'getpagesize'.
51471         * doc/glibc-functions/getusershell.texi: Mention the module
51472         'getusershell'.
51473         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51474         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51475         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51476         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51477         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51478         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51479         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51480         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51481         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51482         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51483         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51484         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51485         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51486         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51487
51488 2008-10-17  Bruno Haible  <bruno@clisp.org>
51489
51490         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51491         HP-UX and IRIX, use -0.0L.
51492         * tests/test-ceill.c (minus_zero): Likewise.
51493         * tests/test-floorl.c (minus_zero): Likewise.
51494         * tests/test-frexpl.c (minus_zero): Likewise.
51495         * tests/test-isnan.c (minus_zerol): Likewise.
51496         * tests/test-isnanl.h (minus_zero): Likewise.
51497         * tests/test-ldexpl.c (minus_zero): Likewise.
51498         * tests/test-roundl.c (minus_zero): Likewise.
51499         * tests/test-signbit.c (minus_zerol): Likewise.
51500         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51501         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51502         * tests/test-truncl.c (minus_zero): Likewise.
51503         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51504         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51505         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51506         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51507
51508 2008-10-17  Bruno Haible  <bruno@clisp.org>
51509
51510         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51511         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51512         that it gets activated only for gcc >= 3.0.
51513         * lib/dirent.in.h: Likewise.
51514         * lib/errno.in.h: Likewise.
51515         * lib/fcntl.in.h: Likewise.
51516         * lib/float.in.h: Likewise.
51517         * lib/iconv.in.h: Likewise.
51518         * lib/inttypes.in.h: Likewise.
51519         * lib/locale.in.h: Likewise.
51520         * lib/math.in.h: Likewise.
51521         * lib/netdb.in.h: Likewise.
51522         * lib/netinet_in.in.h: Likewise.
51523         * lib/search.in.h: Likewise.
51524         * lib/signal.in.h: Likewise.
51525         * lib/spawn.in.h: Likewise.
51526         * lib/stdarg.in.h: Likewise.
51527         * lib/stdint.in.h: Likewise.
51528         * lib/stdio.in.h: Likewise.
51529         * lib/stdlib.in.h: Likewise.
51530         * lib/string.in.h: Likewise.
51531         * lib/strings.in.h: Likewise.
51532         * lib/sys_file.in.h: Likewise.
51533         * lib/sys_ioctl.in.h: Likewise.
51534         * lib/sys_select.in.h: Likewise.
51535         * lib/sys_socket.in.h: Likewise.
51536         * lib/sys_stat.in.h: Likewise.
51537         * lib/sys_time.in.h: Likewise.
51538         * lib/sysexits.in.h: Likewise.
51539         * lib/time.in.h: Likewise.
51540         * lib/unistd.in.h: Likewise.
51541         * lib/wchar.in.h: Likewise.
51542         * lib/wctype.in.h: Likewise.
51543         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51544
51545 2008-10-17  Jim Meyering  <meyering@redhat.com>
51546
51547         ignore-value: don't depend on inline module
51548         * modules/ignore-value (Depends-on): Remove 'inline'.
51549         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51550         Suggestion from Bruno Haible.
51551
51552 2008-10-17  Bruno Haible  <bruno@clisp.org>
51553
51554         New implementation of condition variables for Win32.
51555         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51556         (gl_linked_waitqueue_t): New type.
51557         (gl_cond_t): Use it.
51558         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51559         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51560         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51561         (glthread_cond_init_func, glthread_cond_wait_func,
51562         glthread_cond_timedwait_func, glthread_cond_signal_func,
51563         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51564         Reimplemented on the basis of gl_linked_waitqueue_t.
51565         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51566         gl_waitqueue_t.
51567         (gl_rwlock_t): Update.
51568         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51569
51570 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51571
51572         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51573         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51574
51575 2008-10-17  Jim Meyering  <meyering@redhat.com>
51576
51577         ignore-value: new module
51578         * modules/ignore-value: New file.
51579         * lib/ignore-value.h: New file.
51580         * MODULES.html.sh (Compiler warning management): New section,
51581         just for this module.  More to come.
51582
51583 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51586         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51587         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51588
51589 2008-10-16  Jim Meyering  <meyering@redhat.com>
51590
51591         openat-die.c: avoid 'no previous prototype' warning
51592         * lib/openat-die.c: Include "openat.h".
51593         Reported by Reuben Thomas <rrt@sc3d.org>.
51594
51595 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51596
51597         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51598         * lib/netdb.in.h: Fix typo.
51599         Reported by Bruno Haible  <bruno@clisp.org>
51600
51601         * lib/netdb.in.h: Include sys/socket.h for platforms without
51602         netdb.h, to get structures like hostent on MinGW.
51603         * modules/netdb (Depends-on): Add sys_socket.
51604
51605 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51606
51607         * modules/netdb, modules/netdb-tests: New file.
51608         * m4/netdb_h.m4: New file.
51609         * lib/netdb.in.h: Add, currently just an empty file pending
51610         definitions.
51611         * tests/test-netdb.c: New file.
51612         * doc/posix-headers/netdb.texi: Mention that we replace it if
51613         needed.
51614         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51615         netdb.
51616
51617 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51618
51619         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51620         with code.
51621
51622 2008-10-13  Bruno Haible  <bruno@clisp.org>
51623
51624         * lib/glthread/cond.c (glthread_cond_wait_func,
51625         glthread_cond_timedwait_func): Add a comment.
51626
51627 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51628
51629         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51630         * tests/test-select.c: Likewise,
51631
51632 2008-10-13  Bruno Haible  <bruno@clisp.org>
51633
51634         * lib/glthread/cond.c (glthread_cond_wait_func,
51635         glthread_cond_timedwait_func): Fix variable name.
51636         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51637
51638 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51639
51640         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51641         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51642         struct sockaddr.sa_len.
51643         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51644
51645 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51646
51647         * build-aux/pmccabe2html: Add css and css_url parameters.
51648
51649 2008-10-12  Bruno Haible  <bruno@clisp.org>
51650
51651         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51652         calling aclx_get.
51653         Reported by Rainer Tammer <tammer@tammer.net>.
51654
51655 2008-10-12  Bruno Haible  <bruno@clisp.org>
51656
51657         Use msvcrt aware primitives for creation/termination of Win32 threads.
51658         * lib/glthread/thread.c: Include <process.h>.
51659         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51660         (wrapper_func): Update signature.
51661         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51662
51663 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51664             Bruno Haible  <bruno@clisp.org>
51665
51666         Provide a Win32 implementation of the 'cond' module.
51667         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51668         * lib/glthread/cond.c (glthread_cond_init_func,
51669         glthread_cond_wait_func, glthread_cond_timedwait_func,
51670         glthread_cond_signal_func, glthread_cond_broadcast_func,
51671         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51672         * modules/cond (Dependencies): Add gettimeofday.
51673
51674 2008-10-11  Bruno Haible  <bruno@clisp.org>
51675
51676         Make sleep work on older versions of mingw.
51677         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51678         only whether it exists.
51679         * doc/posix-functions/sleep.texi: Mention the problem with older
51680         versions of mingw.
51681
51682 2008-10-11  Bruno Haible  <bruno@clisp.org>
51683
51684         New module 'shutdown'.
51685         * modules/shutdown: New file.
51686         * lib/sys_socket.in.h (shutdown): New declaration.
51687         * lib/winsock.c (shutdown): New function.
51688         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51689         GNULIB_SHUTDOWN.
51690         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51691         * doc/posix-functions/shutdown.texi: Document the new module.
51692
51693 2008-10-11  Jim Meyering  <meyering@redhat.com>
51694
51695         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51696
51697 2008-10-11  Bruno Haible  <bruno@clisp.org>
51698
51699         New module 'fclose'.
51700         * modules/fclose: New file.
51701         * lib/stdio.in.h (fclose): New declaration.
51702         * lib/fclose.c: New file.
51703         * m4/fclose.m4: New file.
51704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51705         REPLACE_FCLOSE.
51706         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51707         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51708         REPLACE_FCLOSE.
51709         * modules/close (Depends-on): fclose.
51710         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51711
51712 2008-10-11  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51715         set errno and don't call _close.
51716
51717 2008-10-10  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51720         ACL, not afterwards. Fixes test failure on Cygwin.
51721
51722 2008-10-09  Ben Pfaff  <blp@gnu.org>
51723
51724         * build-aux/announce-gen: Fix gnulib version related part of usage
51725         message.  Die with a useful error message if no tarballs are
51726         found.
51727
51728 2008-10-10  Jim Meyering  <meyering@redhat.com>
51729
51730         bootstrap: use git's --depth=N option only if it's supported
51731         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51732         recognize the --depth option.  Reported by Pádraig Brady.
51733
51734 2008-10-09  Bruno Haible  <bruno@clisp.org>
51735
51736         New module 'ioctl'.
51737         * modules/ioctl: New file.
51738         * lib/sys_socket.in.h (ioctl): Remove declaration.
51739         * lib/winsock.c: Include <sys/ioctl.h>.
51740         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51741         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51742         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51743         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51744         * doc/posix-functions/ioctl.texi: Mention the new module.
51745
51746 2008-10-09  Bruno Haible  <bruno@clisp.org>
51747
51748         New module 'sys_ioctl'.
51749         * lib/sys_ioctl.in.h: New file.
51750         * m4/sys_ioctl_h.m4: New file.
51751         * modules/sys_ioctl: New file.
51752         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51753
51754 2008-10-09  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51757         * lib/winsock.c: Include <stdarg.h>.
51758         (rpl_ioctl): Change to second argument 'int' and then varargs.
51759
51760 2008-10-09  Bruno Haible  <bruno@clisp.org>
51761
51762         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51763         when the sys_socket module is present and the system has <winsock2.h>.
51764
51765 2008-10-09  Bruno Haible  <bruno@clisp.org>
51766
51767         * doc/posix-functions/close.texi: Mention module 'close' instead of
51768         module 'sys_socket'.
51769
51770 2008-10-09  Bruno Haible  <bruno@clisp.org>
51771
51772         * doc/glibc-headers/sys_ioctl.texi: New file.
51773         * doc/gnulib.texi: Include it.
51774
51775 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51776             Bruno Haible  <bruno@clisp.org>
51777
51778         Combine the two replacements of 'close'.
51779         * lib/sys_socket.in.h (close): Define to a reminder to include
51780         <unistd.h>.
51781         (_gl_close_fd_maybe_socket): New declaration.
51782         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51783         * lib/winsock.c (close): Remove undefinition.
51784         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51785         needed for the gnulib module 'close'.
51786         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51787         define to an error symbol or to a warning, if suitable.
51788         * lib/close.c: Include <sys/socket.h>.
51789         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51790         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51791         UNISTD_H_HAVE_WINSOCK2_H.
51792         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51794         UNISTD_H_HAVE_WINSOCK2_H.
51795         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51796         (configure.ac): Set a module indicator.
51797         (Makefile.am): Substitute GNULIB_CLOSE.
51798         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51799         * modules/poll-tests (Depends-on): Add close.
51800         * modules/select-tests (Depends-on): Likewise.
51801
51802 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51803             Bruno Haible  <bruno@clisp.org>
51804
51805         New module 'close'.
51806         * modules/close: New file.
51807         * lib/unistd.in.h (close): Move declaration out of the
51808         FCHDIR_REPLACEMENT scope.
51809         (_gl_unregister_fd): New declaration.
51810         * lib/close.c: New file.
51811         * lib/fchdir.c (rpl_close): Remove function.
51812         * m4/close.m4: New file.
51813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51814         close.
51815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51816         REPLACE_CLOSE.
51817         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51818         REPLACE_CLOSE.
51819         * modules/fchdir (Depends-on): Add close.
51820
51821 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51822             Bruno Haible  <bruno@clisp.org>
51823
51824         * lib/fcntl.in.h (open): Simplify conditionals.
51825         (_gl_register_fd): New declaration.
51826         * lib/fchdir.c (rpl_open): Remove function.
51827         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51828         also.
51829         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51831         open.
51832
51833 2008-10-09  Jim Meyering  <meyering@redhat.com>
51834
51835         GNUmakefile: use the more name-space-friendly "_version"
51836         * top/GNUmakefile (_dummy): Update.
51837         (_version): Rename from "version".
51838
51839 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51840             Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51843         rpl_close.
51844         (_gl_register_fd): New function, extracted from rpl_open.
51845         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51846         (rpl_open, rpl_opendir): Use _gl_register_fd.
51847
51848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51849
51850         Fix organization of 'open' replacement.
51851         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51852         (gl_FUNC_OPEN): Use it.
51853         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51854
51855 2008-10-08  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51858
51859 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51860
51861         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51862         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51863         listen).
51864
51865 2008-10-08  Eric Blake  <ebb9@byu.net>
51866
51867         GNUmakefile: add 'make version' target
51868         * top/GNUmakefile (_curr-ver): Split version update rules...
51869         (version): ...into a target.
51870
51871 2008-10-07  Bruno Haible  <bruno@clisp.org>
51872
51873         Use a more portable replacement expression for -0.0L.
51874         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51875         instead of -0.0L. Fix m4 quotation.
51876
51877         * tests/test-signbit.c: Include <float.h>.
51878         (minus_zero): New variable.
51879         (test_signbitl): Use minus_zero instead of -zero.
51880         * modules/signbit-tests (Depends-on): Add float.
51881
51882         * tests/test-ceill.c: Include <float.h>.
51883         (zero): Remove variable.
51884         (minus_zero): New variable.
51885         (main): Use minus_zero instead of -zero.
51886         * modules/ceill-tests (Depends-on): Add float.
51887
51888         * tests/test-floorl.c: Include <float.h>.
51889         (zero): Remove variable.
51890         (minus_zero): New variable.
51891         (main): Use minus_zero instead of -zero.
51892         * modules/floorl-tests (Depends-on): Add float.
51893
51894         * tests/test-roundl.c: Include <float.h>.
51895         (zero): Remove variable.
51896         (minus_zero): New variable.
51897         (main): Use minus_zero instead of -zero.
51898         * modules/roundl-tests (Depends-on): Add float.
51899
51900         * tests/test-truncl.c: Include <float.h>.
51901         (zero): Remove variable.
51902         (minus_zero): New variable.
51903         (main): Use minus_zero instead of -zero.
51904         * modules/truncl-tests (Depends-on): Add float.
51905
51906         * tests/test-frexpl.c (zero): Remove variable.
51907         (minus_zero): New variable.
51908         (main): Use minus_zero instead of -zero.
51909         * modules/frexpl-tests (Depends-on): Add float.
51910
51911         * tests/test-isnan.c (zerol): Remove variable.
51912         (minus_zerol): New variable.
51913         (test_long_double): Use minus_zerol instead of -zerol.
51914         * modules/isnan-tests (Depends-on): Add float.
51915
51916         * tests/test-isnanl.h (zero): Remove variable.
51917         (minus_zero): New variable.
51918         (main): Use minus_zero instead of -zero.
51919         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51920         * modules/isnanl-tests (Depends-on): Add float.
51921
51922         * tests/test-ldexpl.c (zero): Remove variable.
51923         (minus_zero): New variable.
51924         (main): Use minus_zero instead of -zero.
51925         * modules/ldexpl-tests (Depends-on): Add float.
51926
51927         * tests/test-snprintf-posix.h (zerol): Remove variable.
51928         (minus_zerol): New variable.
51929         (test_function): Use minus_zerol instead of -zerol.
51930         * modules/snprintf-posix-tests (Depends-on): Add float.
51931         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51932
51933         * tests/test-sprintf-posix.h (zerol): Remove variable.
51934         (minus_zerol): New variable.
51935         (test_function): Use minus_zerol instead of -zerol.
51936         * modules/sprintf-posix-tests (Depends-on): Add float.
51937         * modules/vsprintf-posix-tests (Depends-on): Add float.
51938
51939         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51940         (minus_zerol): New variable.
51941         (test_function): Use minus_zerol instead of -zerol.
51942         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51943
51944         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51945         (minus_zerol): New variable.
51946         (test_function): Use minus_zerol instead of -zerol.
51947         * modules/vasprintf-posix-tests (Depends-on): Add float.
51948
51949 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51950
51951         * MODULES.html.sh (Support for building documentation): Mention
51952         pmccabe2html.  Sort entries.
51953
51954         Add pmccabe2html module, from gnupdf.
51955         * build-aux/pmccabe.css: New file.
51956         * build-aux/pmccabe2html: New file.
51957         * m4/pmccabe2html.m4: New file.
51958         * modules/pmccabe2html: New file.
51959
51960 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51961
51962         flock: new module
51963         * MODULES.html.sh: Add to list of modules.
51964         * lib/flock.c: flock implementation for Windows and Unix systems
51965         which have fcntl.
51966         * doc/glibc-functions/flock.texi: Update documentation.
51967         * lib/sys_file.in.h: <sys/file.h> header file.
51968         * m4/flock.m4: M4 macros.
51969         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51970         * modules/flock: flock module.
51971         * modules/flock-tests: flock tests module.
51972         * modules/sys_file: sys/file.h module.
51973         * tests/test-flock.c: test suite for flock.
51974
51975 2008-10-06  Jim Meyering  <meyering@redhat.com>
51976
51977         bootstrap: check for LT_INIT more portably still ;-)
51978         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51979         Spotted by Bruno Haible.
51980
51981 2008-10-06  Eric Blake  <ebb9@byu.net>
51982
51983         test-signbit: avoid tripping Irix cc bug on -0.0L
51984         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51985         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51986         entire testsuite consistent and avoids an Irix 6.2 bug.
51987
51988 2008-10-05  Bruno Haible  <bruno@clisp.org>
51989             Jim Meyering  <jim@meyering.net>
51990
51991         Add an option for ignoring EPIPE during close_stdout.
51992         * lib/closeout.h: Include <stdbool.h>.
51993         (close_stdout_set_ignore_EPIPE): New declaration.
51994         * lib/closeout.c: Include <stdbool.h>.
51995         (ignore_EPIPE): New variable.
51996         (close_stdout_set_ignore_EPIPE): New function.
51997         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51998         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51999         failure.
52000         * modules/closeout (Depends-on): Add stdbool.
52001
52002 2008-10-05  Bruno Haible  <bruno@clisp.org>
52003
52004         * modules/accept: New file.
52005         * modules/bind: New file.
52006         * modules/connect: New file.
52007         * modules/getpeername: New file.
52008         * modules/getsockname: New file.
52009         * modules/getsockopt: New file.
52010         * modules/listen: New file.
52011         * modules/recv: New file.
52012         * modules/recvfrom: New file.
52013         * modules/send: New file.
52014         * modules/sendto: New file.
52015         * modules/setsockopt: New file.
52016         * modules/socket: New file.
52017         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52018         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52019         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52020         the particular module is requested. Add a link warning when the
52021         particular module is not requested.
52022         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52023         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52024         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52025         the particular module is requested.
52026         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52027         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52028         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52029         * modules/sys_socket (Depends-on): Add link-warning.
52030         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52031         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52032         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52033         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52034         GL_LINK_WARNING.
52035         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52036         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52037         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52038         * doc/posix-functions/getpeername.texi: Mention the new module
52039         'getpeername'.
52040         * doc/posix-functions/getsockname.texi: Mention the new module
52041         'getsockname'.
52042         * doc/posix-functions/getsockopt.texi: Mention the new module
52043         'getsockopt'.
52044         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52045         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52046         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52047         * doc/posix-functions/send.texi: Mention the new module 'send'.
52048         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52049         * doc/posix-functions/setsockopt.texi: Mention the new module
52050         'setsockopt'.
52051         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52052         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52053         listen, connect, accept.
52054         * modules/select-tests (Depends-on): Likewise.
52055
52056 2008-10-05  Bruno Haible  <bruno@clisp.org>
52057
52058         * lib/winsock.c (strerror): Remove unused #undef.
52059         (rpl_close): Remove unused local variable.
52060
52061         * modules/sys_socket (Depends-on); Add errno.
52062
52063 2008-10-05  Bruno Haible  <bruno@clisp.org>
52064
52065         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52066         (select): Add a link warning when the 'select' module is not used.
52067         * modules/sys_select (Depends-on): Add link-warning.
52068         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52069         Suggested by Paolo Bonzini.
52070
52071 2008-10-05  Jim Meyering  <meyering@redhat.com>
52072
52073         bootstrap: check for LT_INIT more portably
52074         * build-aux/bootstrap: Avoid using grep -E, since it's not
52075         portable enough.  Suggestion from Bruno Haible.
52076
52077 2008-10-05  Bruno Haible  <bruno@clisp.org>
52078
52079         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52080         as being fixed by gnulib.
52081
52082 2008-10-05  Bruno Haible  <bruno@clisp.org>
52083
52084         * modules/select-tests: New file, mostly copied from
52085         modules/sys_select-tests.
52086         * tests/test-select.c: New file, mostly copied from
52087         tests/test-sys_select.c.
52088         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52089         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52090         (Makefile.am): Remove test_sys_select_LDADD.
52091
52092         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52093         to an undefined symbol, for an error message.
52094         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52095         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52096         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52097         winsock-select.c here.
52098         * modules/sys_select (Files): Remove lib/winsock-select.c.
52099         (Depends-on): Remove alloca.
52100         (Makefile.am): Substitute GNULIB_SELECT.
52101         * modules/select: New file.
52102         * doc/posix-functions/select.texi: Update.
52103
52104 2008-10-05  Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52107         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52108         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52109         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52110         getdtablesize.
52111         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52112         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52113
52114 2008-10-05  Bruno Haible  <bruno@clisp.org>
52115
52116         * modules/getdtablesize-tests: New file.
52117         * tests/test-getdtablesize.c: New file.
52118
52119         New module 'getdtablesize'.
52120         * lib/unistd.in.h (getdtablesize): New declaration.
52121         * lib/getdtablesize.c: New file.
52122         * m4/getdtablesize.m4: New file.
52123         * modules/getdtablesize: New file.
52124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52125         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52126         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52127         HAVE_GETDTABLESIZE.
52128         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52129
52130 2008-10-05  Bruno Haible  <bruno@clisp.org>
52131
52132         * modules/sched (Makefile.am): Fix typo.
52133         Reported by Simon Josefsson.
52134
52135 2008-10-05  Jim Meyering  <meyering@redhat.com>
52136
52137         bootstrap: check for LT_INIT, too
52138         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52139         are deprecated.  Suggestion from Ralf Wildenhues.
52140
52141 2008-10-05  Bruno Haible  <bruno@clisp.org>
52142
52143         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52144         overriding them by ours.
52145         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52146
52147 2008-10-05  Jim Meyering  <meyering@redhat.com>
52148
52149         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52150         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52151         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52152
52153 2008-10-04  Bruno Haible  <bruno@clisp.org>
52154
52155         * modules/dup2 (License): Change to LGPLv2+.
52156         * modules/sleep (License): Likewise.
52157         * modules/perror (License): Likewise.
52158         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52159         Blake.
52160         * modules/signal (License): Likewise.
52161         * modules/sigprocmask (License): Likewise.
52162         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52163         Meyering.
52164
52165 2008-10-04  Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52168         Reported by Rainer Tammer <tammer@tammer.net>.
52169
52170 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52171             Bruno Haible  <bruno@clisp.org>
52172
52173         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52174         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52175         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52176
52177 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52178
52179         filevercmp: new module
52180         * lib/filevercmp.h: New function filevercmp comparing version strings.
52181         * lib/filevercmp.c: Implementation of filevercmp function.
52182         * modules/filevercmp: Module metadata.
52183         * tests/test-filevercmp.c: Unit test for new module.
52184         * modules/filevercmp-tests: Unit test metadata.
52185         * MODULES.html.sh: Add filevercmp module.
52186
52187 2008-10-03  Bruno Haible  <bruno@clisp.org>
52188
52189         * lib/c-ctype.h: Add comment.
52190         Reported by Jim Meyering.
52191
52192 2008-10-02  Bruno Haible  <bruno@clisp.org>
52193
52194         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52195
52196 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52197
52198         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52199         name of bootstrap.conf accordingly.
52200
52201 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52202
52203         * build-aux/bootstrap: Install git-merge-changelog configuration
52204         items into .gitconfig if needed.
52205
52206 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52207
52208         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52209         git repository, and initialize/update it accordingly.
52210
52211 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52212
52213         * modules/fsync-tests: New file.
52214         * tests/test-fsync.c: New file.
52215
52216         New module 'fsync'.
52217         * lib/fsync.c: New file.
52218         * m4/fsync.m4: New file.
52219         * modules/fsync: New file.
52220         * lib/unistd.in.h (fsync): New declaration.
52221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52222         GNULIB_FSYNC and HAVE_FSYNC.
52223         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52224         * MODULES.html.sh (posix_functions): Add fsync.
52225         * doc/posix-functions/fsync.texi: Mention the new module.
52226
52227 2008-10-02  Jim Meyering  <meyering@redhat.com>
52228
52229         fts.c: sync with similar code from coreutils' remove.c
52230         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52231         Guard also with "#if defined __linux__", since for now at least,
52232         this code is Linux-kernel-specific.
52233
52234 2008-10-02  Jim Meyering  <meyering@redhat.com>
52235
52236         fts: bug fixes
52237         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52238         Include <sys/vfs.h>, not <sys/statfs.h>.
52239
52240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52241         Include <sys/vfs.h>, not <sys/statfs.h>.
52242
52243 2008-10-01  Bruno Haible  <bruno@clisp.org>
52244
52245         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52246         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52247         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52248         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52249         * doc/posix-functions/posix_spawnp.texi: Likewise.
52250         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52251         whether posix_spawn actually works.
52252         * m4/pipe.m4 (gl_PIPE): Likewise.
52253         * modules/execute (Files): Add m4/posix_spawn.m4.
52254         * modules/pipe (Files): Add m4/posix_spawn.m4.
52255         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52256
52257 2008-10-01  Jim Meyering  <meyering@redhat.com>
52258
52259         remove trailing spaces
52260         * NEWS: Likewise.
52261         * lib/poll.c (poll): Likewise.
52262         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52263         * lib/winsock.c (rpl_close): Likewise.
52264         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52265         * modules/yield: Likewise.
52266         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52267         * tests/test-sys_select.c (connect_to_socket): Likewise.
52268
52269         fts.c: adjust a new interface to be more generally useful
52270         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52271         (fts_build): Adjust caller.
52272
52273 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52274
52275         * modules/cond-tests: New file.
52276         * tests/test-cond.c: New file.
52277
52278 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52279             Bruno Haible  <bruno@clisp.org>
52280
52281         * modules/cond (Dependencies): Add errno, time.
52282         * lib/glthread/cond.h: Include <time.h>.
52283         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52284         across platforms.
52285
52286 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52287             Bruno Haible  <bruno@clisp.org>
52288
52289         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52290
52291 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52292             Bruno Haible  <bruno@clisp.org>
52293
52294         * modules/tls-tests (Depends-on): Add thread, yield.
52295         (configure.ac): Remove all checks.
52296         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52297         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52298         gl_thread_self): Remove definitions. Include glthread/thread.h and
52299         glthread/yield.h instead.
52300         (test_tls): Pass an additional NULL argument to gl_thread_join.
52301
52302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52303             Bruno Haible  <bruno@clisp.org>
52304
52305         * modules/lock-tests (Depends-on): Add thread, yield.
52306         (configure.ac): Remove all checks.
52307         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52308         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52309         gl_thread_self): Remove definitions. Include glthread/thread.h and
52310         glthread/yield.h instead.
52311         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52312         additional NULL argument to gl_thread_join.
52313
52314 2008-09-30  Bruno Haible  <bruno@clisp.org>
52315
52316         Fix the Win32 implementation of the 'thread' module.
52317         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52318         pointer type.
52319         (gl_thread_self): Invoke gl_thread_self_func.
52320         (gl_thread_self_func): New declaration.
52321         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52322         (do_init_self_key, init_self_key): New functions.
52323         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52324         Remove some fields.
52325         (running_threads, running_lock): Remove variables.
52326         (get_current_thread_handle): New function.
52327         (gl_thread_self_func, wrapper_func, glthread_create_func,
52328         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52329         simplified.
52330
52331 2008-09-30  Bruno Haible  <bruno@clisp.org>
52332
52333         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52334         files.
52335
52336 2008-09-30  Jim Meyering  <meyering@redhat.com>
52337
52338         fts.m4: correct the test for statfs.f_type
52339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52340         when checking for statfs.f_type.
52341
52342 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52343
52344         tests: avoid some compiler warnings
52345         * tests/test-memchr.c (main): Pass NULL indirectly.
52346         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52347
52348 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52349
52350         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52351         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52352         exactly specified dayshifts.
52353         (dayshift): New rule.
52354         (rel): Add dayshift.
52355         (relative_time_table) [tomorrow, yesterday, today, now]:
52356         Use tDAY_SHIFT in place of tDAY_UNIT.
52357         * tests/test-getdate.c: Add tests for now-disallowed countable
52358         dayshifts, e.g., "4 yesterday ago".
52359
52360 2008-09-29  Bruno Haible  <bruno@clisp.org>
52361
52362         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52363         * tests/test-posix_spawn1.in.sh: Renamed from
52364         tests/test-posix_spawn.in.sh.
52365         * tests/test-posix_spawn2.c: New file.
52366         * tests/test-posix_spawn2.in.sh: New file.
52367         * modules/posix_spawnp-tests (Files): Update.
52368         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52369
52370 2008-09-29  Bruno Haible  <bruno@clisp.org>
52371
52372         Propagate effects of putenv/setenv/unsetenv to child processes.
52373         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52374         * lib/pipe.c (create_pipe): Likewise.
52375
52376 2008-09-29  Bruno Haible  <bruno@clisp.org>
52377
52378         Enable use of shell scripts as executables in mingw.
52379         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52380         run the program as a shell script.
52381         * lib/pipe.c (create_pipe): Likewise.
52382         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52383         resulting array.
52384
52385 2008-09-29  Eric Blake  <ebb9@byu.net>
52386
52387         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52388
52389 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52390
52391         * doc/posix-functions/accept.texi: Update mingw problems.
52392         * doc/posix-functions/bind.texi: Update mingw problems.
52393         * doc/posix-functions/close.texi: Update mingw problems.
52394         * doc/posix-functions/connect.texi: Update mingw problems.
52395         * doc/posix-functions/getpeername.texi: Update mingw problems.
52396         * doc/posix-functions/getsockname.texi: Update mingw problems.
52397         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52398         * doc/posix-functions/ioctl.texi: Update mingw problems.
52399         * doc/posix-functions/listen.texi: Update mingw problems.
52400         * doc/posix-functions/recv.texi: Update mingw problems.
52401         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52402         * doc/posix-functions/select.texi: Update mingw problems.
52403         * doc/posix-functions/send.texi: Update mingw problems.
52404         * doc/posix-functions/sendto.texi: Update mingw problems.
52405         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52406         * doc/posix-functions/socket.texi: Update mingw problems.
52407
52408 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52409             Bruno Haible  <bruno@clisp.org>
52410
52411         * lib/sys_select.in.h: Include sys/time.h.
52412         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52413         * modules/sys_select: Depend on sys_time.
52414         * tests/test-sys_select.c: Test that sys/select.h defines struct
52415         timeval fully.
52416
52417 2008-09-29  Bruno Haible  <bruno@clisp.org>
52418
52419         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52420         * lib/sys_select.in.h: Likewise.
52421
52422 2008-09-29  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52425
52426 2008-09-29  Bruno Haible  <bruno@clisp.org>
52427
52428         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52429         Set LIBSOCKET instead of augmenting LIBS.
52430         * modules/sockets (Link): New section.
52431         * modules/sockets-tests (test_sockets_LDADD): New variable.
52432         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52433         * modules/poll-tests (test_poll_LDADD): New variable.
52434         * NEWS: Document the change.
52435
52436 2008-09-29  Bruno Haible  <bruno@clisp.org>
52437
52438         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52439         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52440         ARPA_INET_H directly.
52441         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52442
52443 2008-09-28  Bruno Haible  <bruno@clisp.org>
52444
52445         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52446         from gl_HEADER_SYS_SOCKET.
52447         (gl_HEADER_SYS_SOCKET): Invoke it.
52448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52449
52450 2008-09-28  Bruno Haible  <bruno@clisp.org>
52451
52452         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52453         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52454         Needed on OSF/1 4.0.
52455
52456 2008-09-28  Bruno Haible  <bruno@clisp.org>
52457
52458         Override open more carefully.
52459         * lib/open.c (orig_open): New function.
52460         (rpl_open): Use orig_open instead of open.
52461         * lib/fcntl.in.h: Add special invocation convention.
52462         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52463         (gl_FUNC_OPEN): Invoke it.
52464
52465         Override freopen more carefully.
52466         * lib/freopen.c (orig_freopen): New function.
52467         (rpl_freopen): Use orig_freopen instead of freopen.
52468         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52469         (gl_FUNC_FREOPEN): Invoke it.
52470
52471         Override fopen more carefully.
52472         * lib/fopen.c (orig_fopen): New function.
52473         (rpl_fopen): Use orig_fopen instead of fopen.
52474         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52475         (gl_FUNC_FOPEN): Invoke it.
52476         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52477
52478 2008-09-28  Bruno Haible  <bruno@clisp.org>
52479
52480         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52481         SIGPIPE.
52482
52483 2008-09-28  Bruno Haible  <bruno@clisp.org>
52484
52485         * tests/test-sigaction.c (handler, main): Disable the check whether
52486         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52487         glibc systems with LinuxThreads.
52488
52489 2008-09-28  Bruno Haible  <bruno@clisp.org>
52490
52491         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52492
52493         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52494         with AIX xlc.
52495         * lib/fcntl.in.h (open): Likewise.
52496         Reported by Rainer Tammer <tammer@tammer.net>.
52497
52498 2008-09-28  Bruno Haible  <bruno@clisp.org>
52499
52500         * modules/posix_spawnp-tests: New file.
52501         * tests/test-posix_spawn.c: New file.
52502         * tests/test-posix_spawn.in.sh: New file.
52503
52504         New module 'posix_spawnp'.
52505         * modules/posix_spawnp: New file.
52506         * lib/spawnp.c: New file, from GNU libc with modifications.
52507         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52508
52509         New module 'posix_spawn'.
52510         * modules/posix_spawn: New file.
52511         * lib/spawn.c: New file, from GNU libc with modifications.
52512         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52513
52514         New module 'posix_spawnattr_destroy'.
52515         * modules/posix_spawnattr_destroy: New file.
52516         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52517         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52518         module.
52519
52520         New module 'posix_spawnattr_setsigmask'.
52521         * modules/posix_spawnattr_setsigmask: New file.
52522         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52523         modifications.
52524         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52525         new module.
52526
52527         New module 'posix_spawnattr_getsigmask'.
52528         * modules/posix_spawnattr_getsigmask: New file.
52529         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52530         modifications.
52531         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52532         new module.
52533
52534         New module 'posix_spawnattr_setsigdefault'.
52535         * modules/posix_spawnattr_setsigdefault: New file.
52536         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52537         modifications.
52538         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52539         new module.
52540
52541         New module 'posix_spawnattr_getsigdefault'.
52542         * modules/posix_spawnattr_getsigdefault: New file.
52543         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52544         modifications.
52545         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52546         new module.
52547
52548         New module 'posix_spawnattr_setschedpolicy'.
52549         * modules/posix_spawnattr_setschedpolicy: New file.
52550         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52551         modifications.
52552         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52553         new module.
52554
52555         New module 'posix_spawnattr_getschedpolicy'.
52556         * modules/posix_spawnattr_getschedpolicy: New file.
52557         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52558         modifications.
52559         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52560         new module.
52561
52562         New module 'posix_spawnattr_setschedparam'.
52563         * modules/posix_spawnattr_setschedparam: New file.
52564         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52565         modifications.
52566         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52567         new module.
52568
52569         New module 'posix_spawnattr_getschedparam'.
52570         * modules/posix_spawnattr_getschedparam: New file.
52571         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52572         modifications.
52573         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52574         new module.
52575
52576         New module 'posix_spawnattr_setpgroup'.
52577         * modules/posix_spawnattr_setpgroup: New file.
52578         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52579         modifications.
52580         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52581         module.
52582
52583         New module 'posix_spawnattr_getpgroup'.
52584         * modules/posix_spawnattr_getpgroup: New file.
52585         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52586         modifications.
52587         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52588         module.
52589
52590         New module 'posix_spawnattr_setflags'.
52591         * modules/posix_spawnattr_setflags: New file.
52592         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52593         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52594         module.
52595
52596         New module 'posix_spawnattr_getflags'.
52597         * modules/posix_spawnattr_getflags: New file.
52598         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52599         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52600         module.
52601
52602         New module 'posix_spawnattr_init'.
52603         * modules/posix_spawnattr_init: New file.
52604         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52605         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52606         module.
52607
52608         New module 'posix_spawn_file_actions_destroy'.
52609         * modules/posix_spawn_file_actions_destroy: New file.
52610         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52611         modifications.
52612         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52613         the new module.
52614
52615         New module 'posix_spawn_file_actions_addopen'.
52616         * modules/posix_spawn_file_actions_addopen: New file.
52617         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52618         modifications.
52619         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52620         the new module.
52621
52622         New module 'posix_spawn_file_actions_adddup2'.
52623         * modules/posix_spawn_file_actions_adddup2: New file.
52624         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52625         modifications.
52626         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52627         the new module.
52628
52629         New module 'posix_spawn_file_actions_addclose'.
52630         * modules/posix_spawn_file_actions_addclose: New file.
52631         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52632         modifications.
52633         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52634         the new module.
52635
52636         New module 'posix_spawn_file_actions_init'.
52637         * modules/posix_spawn_file_actions_init: New file.
52638         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52639         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52640         new module.
52641
52642         New module 'posix_spawn-internal'.
52643         * modules/posix_spawn-internal: New file.
52644         * lib/spawn_int.h: New file, from GNU libc with modifications.
52645         * lib/spawni.c: New file, from GNU libc with modifications.
52646         * m4/posix_spawn.m4: New file.
52647
52648         New module 'spawn'.
52649         * modules/spawn: New file.
52650         * lib/spawn.in.h: New file, from GNU libc with modifications.
52651         * m4/spawn_h.m4: New file.
52652         * doc/posix-headers/spawn.texi: Mention the new module.
52653
52654 2008-09-28  Bruno Haible  <bruno@clisp.org>
52655
52656         * modules/sched-tests: New file.
52657         * tests/test-sched.c: New file.
52658
52659         New module 'sched'.
52660         * modules/sched: New file.
52661         * lib/sched.in.h: New file.
52662         * m4/sched_h.m4: New file.
52663         * doc/posix-headers/sched.texi: Mention the new module.
52664
52665 2008-09-27  Eric Blake  <ebb9@byu.net>
52666
52667         Fix previous patch, and tweak references to $0.
52668         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52669         (func_version, func_gnulib_dir): Don't call this program
52670         gnulib-tool.
52671         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52672         with using $0 in function.
52673         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52674         (func_fatal_error): Reuse the name the user invoked us with.
52675
52676 2008-09-27  Bruno Haible  <bruno@clisp.org>
52677
52678         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52679         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52680         (gl_ICONV_H): Not here.
52681         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52682         instead of assigning ICONV_H directly.
52683
52684         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52686         WCHAR_H directly.
52687
52688 2008-09-27  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52691         * modules/arpa_inet (Depends-on): Add link-warning.
52692         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52693         * modules/unistd (Makefile.am): Likewise.
52694
52695 2008-09-26  Bruno Haible  <bruno@clisp.org>
52696
52697         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52698         variables.
52699         (func_version): Essentially copied from gnulib-tool.
52700         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52701         func_readlink): Copied from gnulib-tool.
52702
52703 2008-09-26  Bruno Haible  <bruno@clisp.org>
52704
52705         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52706         invoking git-version-gen.
52707
52708 2008-09-26  Bruno Haible  <bruno@clisp.org>
52709
52710         * posix-modules: Update to directory names changed on 2008-01-19.
52711         Remove commas in output before splitting into words. No more need to
52712         avoid 'ftruncate' since 2007-02-19.
52713
52714 2008-09-26  Bruno Haible  <bruno@clisp.org>
52715
52716         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52717
52718 2008-09-26  Bruno Haible  <bruno@clisp.org>
52719
52720         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52721         * modules/fwriteerror (Depends-on): Add errno.
52722
52723 2008-09-26  Bruno Haible  <bruno@clisp.org>
52724
52725         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52726         * tests/test-vc-list-files-cvs.sh: Likewise.
52727
52728 2008-09-26  Bruno Haible  <bruno@clisp.org>
52729
52730         * doc/posix-headers/sys_resource.texi: Reorder items.
52731
52732 2008-09-26  Jim Meyering  <meyering@redhat.com>
52733
52734         fts: tweak inode comparison function
52735         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52736         inode numbers, as documented.
52737
52738         fts: sort dirent entries on inode number before traversing
52739         This avoids a quadratic, seek-related performance penalty when
52740         operating on a directory containing many entries (measurable at 10k;
52741         3.5 hours at 2 million entries with a cold cache) on certain types
52742         of file systems, including ext3 and ext4, but not tmpfs.
52743         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52744         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52745         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52746         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52747         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52748         (fts_build): Set the stat.st_ino member from D_INO.
52749         If it is likely to be useful, sort dirent entries on inode number.
52750
52751         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52752         and the struct statfs.f_type member.
52753         * modules/fts (Depends-on): Add d-ino.
52754
52755 2008-09-26  Bruno Haible  <bruno@clisp.org>
52756
52757         * modules/sigpipe-die (Depends-on): Add sigpipe.
52758
52759         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52760         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52761         and GNULIB_STDIO_H_SIGPIPE are set.
52762         * lib/stdio-write.c: New file.
52763         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52764         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52765         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52766         REPLACE_STDIO_WRITE_FUNCS.
52767         (gl_STDIO_H_DEFAULTS): Initialize 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         * modules/stdio (Files): Add lib/stdio-write.c.
52772         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52773         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52774         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52775         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52776         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52777         REPLACE_FPRINTF_POSIX.
52778         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52779         REPLACE_PRINTF_POSIX.
52780         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52781         REPLACE_VFPRINTF_POSIX.
52782         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52783         REPLACE_VPRINTF_POSIX.
52784         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52785         SIGPIPE issue.
52786         * doc/posix-functions/fputc.texi: Likewise.
52787         * doc/posix-functions/fputs.texi: Likewise.
52788         * doc/posix-functions/fwrite.texi: Likewise.
52789         * doc/posix-functions/printf.texi: Likewise.
52790         * doc/posix-functions/putc.texi: Likewise.
52791         * doc/posix-functions/putchar.texi: Likewise.
52792         * doc/posix-functions/puts.texi: Likewise.
52793         * doc/posix-functions/vfprintf.texi: Likewise.
52794         * doc/posix-functions/vprintf.texi: Likewise.
52795
52796         * modules/safe-write (Depends-on): Add write.
52797
52798         * modules/sigpipe-tests: New file.
52799         * tests/test-sigpipe.c: New file.
52800         * tests/test-sigpipe.sh: New file.
52801
52802         * modules/write: New file.
52803         * lib/unistd.in.h: Include <sys/types.h>.
52804         (write): New declaration.
52805         * lib/write.c: New file.
52806         * m4/write.m4: New file.
52807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52808         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52809         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52810         GNULIB_WRITE, REPLACE_WRITE.
52811         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52812         and the SIGPIPE issue.
52813
52814         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52815         (raise): New declaration.
52816         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52817         (ext_signal): New function.
52818         (rpl_raise): New function.
52819         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52820         GNULIB_SIGNAL_H_SIGPIPE.
52821         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52822         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52823
52824         * modules/sigpipe: New file.
52825         * m4/sigpipe.m4: New file.
52826
52827 2008-09-25  Derek Price  <derek@ximbiot.com>
52828             Bruno Haible  <bruno@clisp.org>
52829
52830         * gnulib-tool (func_import): Report all license incompatibilities, not
52831         just the first one.
52832
52833 2008-09-25  Bruno Haible  <bruno@clisp.org>
52834
52835         * gnulib-tool (func_import): When computing the edits, consider not
52836         only the Makefile.ams that exist but also those that will be generated.
52837
52838 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52839
52840         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52841         fixes gnulib-tool --test warning about duplicate dependency.
52842
52843 2008-09-25  Bruno Haible  <bruno@clisp.org>
52844
52845         * gnulib-tool: Don't ask the user to perform edits in the generated
52846         Makefile.ams.
52847         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52848         apply to the Makefile.am being generated.
52849         (func_emit_tests_Makefile_am): Execute edits that apply to the
52850         Makefile.am being generated.
52851         (func_import): Setup list of Makefile.am edits before emitting the
52852         Makefile.ams, not at the end.
52853         (func_create_testdir): Update.
52854         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52855
52856 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52857
52858         * gnulib-tool (func_import): Store the --tests-base option in the
52859         comment in gnulib-cache.m4.
52860
52861 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52862
52863         * NEWS: Document increased portability that sys_select now provides.
52864
52865         * lib/sys_select.in.h: Install select wrapper.
52866         * lib/sys_socket.in.h: Use more descriptive name when there is no
52867         select wrapper.
52868         * lib/winsock-select.c: New.
52869         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52870         Require gl_HEADER_SYS_SOCKET.
52871         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52872         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52873         * tests/test-sys_select.c: Add functional tests.
52874
52875 2008-09-24  Eric Blake  <ebb9@byu.net>
52876
52877         open, fopen: close fd leak in last patch
52878         * lib/open.c (rpl_open): Close fd before returning error.
52879         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52880         * doc/posix-functions/open.texi (open): Document that Irix also
52881         has the bug.
52882         * doc/posix-functions/fopen.texi (fopen): Likewise.
52883         Reported by Paolo Bonzini.
52884
52885 2008-09-24  Bruno Haible  <bruno@clisp.org>
52886
52887         Ensure that a filename ending in a slash cannot be used to access a
52888         non-directory.
52889         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52890         to check whether it's really a directory.
52891         * lib/fopen.c: Include fcntl.h, unistd.h.
52892         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52893         and fdopen().
52894         * modules/fopen (Depends-on): Add unistd.
52895         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52896         * tests/test-fopen.c (main): Likewise.
52897         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52898         * doc/posix-functions/fopen.texi: Likewise.
52899         Reported by Eric Blake.
52900
52901 2008-09-23  Eric Blake  <ebb9@byu.net>
52902
52903         c-stack: avoid compiler optimizations when provoking overflow
52904         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52905         recursion harder to optimize, to ensure a stack overflow occurs.
52906         * tests/test-c-stack.c (recurse): Likewise.
52907         Borrowed from libsigsegv.
52908
52909         c-stack: work around Irix sigaltstack bug
52910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52911         whether sigaltstack uses wrong end of stack_t (copied in part from
52912         libsigsegv).
52913         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52914         Irix bug, without requiring an over-allocation.
52915         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52916         bug.
52917
52918         fopen: document mingw bug on directories
52919         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52920         not allowing a stream visiting a directory, even though reading
52921         from such a stream is not portable.
52922
52923 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52924
52925         * lib/poll.c: Rewrite.
52926         * modules/poll: Depend on alloca.
52927
52928 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52929
52930         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52931         instead define prototypes for a full set of wrappers.  Ensure
52932         that Cygwin does not use the compatibility code, which is only
52933         for MinGW.
52934         * lib/winsock.c: New.
52935         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52936         * modules/sys_socket: Add lib/winsock.c.
52937
52938         * modules/poll-tests: Add errno and perror.
52939         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52940
52941 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52942
52943         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52944
52945 2008-09-23  Bruno Haible  <bruno@clisp.org>
52946
52947         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52948         * doc/glibc-functions/*: Likewise.
52949
52950 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52951
52952         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52953         success.
52954
52955 2008-09-22  Eric Blake  <ebb9@byu.net>
52956             Bruno Haible  <bruno@clisp.org>
52957
52958         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52959         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52960         supply %A but mishandle pseudo-NaN.
52961         Reported by Simon Josefsson.
52962
52963 2008-09-21  Bruno Haible  <bruno@clisp.org>
52964
52965         * tests/test-lock.c (main): Tweak skip message.
52966         * tests/test-tls.c (main): Likewise.
52967
52968 2008-09-21  Bruno Haible  <bruno@clisp.org>
52969
52970         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52971         whether 'struct sigaction' has sa_sigaction here...
52972         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52973         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52974
52975 2008-09-21  Bruno Haible  <bruno@clisp.org>
52976
52977         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52978         section.
52979         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52980         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52981         the new section.
52982         (Support for obsolete systems lacking POSIX:2001): New section.
52983         (String handling <string.h>): Move strdup to the new section.
52984         Suggested by Simon Josefsson and Paolo Bonzini.
52985
52986 2008-09-21  Bruno Haible  <bruno@clisp.org>
52987
52988         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52989         exponents in %e and %g results on 'long double'. Needed for mingw's
52990         improved *printf functions.
52991         * tests/test-vasprintf-posix.c (test_function): Likewise.
52992         * tests/test-snprintf-posix.h (test_function): Likewise.
52993         * tests/test-sprintf-posix.h (test_function): Likewise.
52994         Reported by Eric Blake.
52995
52996 2008-09-21  Bruno Haible  <bruno@clisp.org>
52997
52998         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52999         * tests/test-sprintf-posix.h (test_function): Likewise.
53000
53001 2008-09-21  Bruno Haible  <bruno@clisp.org>
53002
53003         * modules/getpass (Depends-on): Add strdup-posix.
53004
53005         New module 'strdup-posix'.
53006         * modules/strdup-posix: New file.
53007         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53008         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53010         REPLACE_STRDUP.
53011         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53012         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53014         strdup-posix.
53015
53016         * modules/strdup (Depends-on): Remove malloc-posix.
53017
53018 2008-09-20  Bruno Haible  <bruno@clisp.org>
53019
53020         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53021         Wildenhues.
53022
53023 2008-09-20  Bruno Haible  <bruno@clisp.org>
53024
53025         Ensure that wint_t gets defined on IRIX 5.3.
53026         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53027         * lib/wctype.in.h (wint_t): Likewise.
53028         (__wctype_wint_t): Remove type.
53029         (isw*): Use wint_t instead of __wctype_wint_t.
53030         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53031         * modules/wchar (Files): Add m4/wint_t.m4.
53032         (Makefile.am): Substitute HAVE_WINT_T.
53033         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53034         * tests/test-wctype.c: Check that wint_t is defined.
53035         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53036         * doc/posix-headers/wctype.texi: Likewise.
53037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53038
53039 2008-09-18  Bruno Haible  <bruno@clisp.org>
53040
53041         * gnulib-tool (func_exit): Update comment.
53042
53043 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53044
53045         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53046         assumes strdup exists and does not depend on strdup to return
53047         ENOMEM on out of memory conditions.
53048
53049 2008-09-18  Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53052         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53053         digits for the exponent.
53054
53055 2008-09-18  Jim Meyering  <meyering@redhat.com>
53056             Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/vasnprintf.c (decimal_point_char): Define also if
53059         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53060
53061 2008-09-16  Bruno Haible  <bruno@clisp.org>
53062         and Eric Blake  <ebb9@byu.net>
53063
53064         vasnprintf: support Irix 5.3
53065         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53066         that mishandle long double infinity.
53067         Reported by Tom G. Christensen.
53068
53069 2008-09-16  Bruno Haible  <bruno@clisp.org>
53070
53071         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53072         Solaris 9.
53073         * doc/glibc-functions/alphasort.texi: Likewise.
53074         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53075
53076 2008-09-16  Jim Meyering  <meyering@redhat.com>
53077
53078         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53079         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53080         a umask modification leak out of a subshell.  Otherwise, the
53081         opensolaris /bin/sh would be accepted and thus cause unwarranted
53082         failures in the coreutils test suite.
53083
53084 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53085
53086         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53087         to succeed.
53088
53089 2008-09-16  Jim Meyering  <meyering@redhat.com>
53090
53091         avoid spurious test failure when library is built without ACL support
53092         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53093         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53094         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53095         * tests/test-copy-acl.sh: Likewise.
53096
53097 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53098
53099         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53100         based on character occurrence counts.
53101
53102 2008-09-15  Eric Blake  <ebb9@byu.net>
53103
53104         tests: avoid some compiler warnings
53105         * tests/test-memchr.c (main): Pass NULL indirectly.
53106         * tests/test-closein.c (main): Avoid unused variable.
53107
53108 2008-09-15  Bruno Haible  <bruno@clisp.org>
53109
53110         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53111         are missing on OpenBSD 4.0 individually.
53112         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53113
53114 2008-09-15  Bruno Haible  <bruno@clisp.org>
53115
53116         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53117         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53118         * doc/posix-functions/perror.texi: Likewise.
53119         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53120         is missing.
53121         Reported by Eric Blake.
53122
53123         * lib/errno.in.h: Use replacement values >= 2000.
53124         Reported by Eric Blake.
53125
53126 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53127
53128         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53129         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53130         limit.
53131         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53132         compareseq was aborted.
53133
53134 2008-09-14  Bruno Haible  <bruno@clisp.org>
53135
53136         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53137         yvec_edit_count.
53138         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53139         (fstrcmp_bounded): Simplify result computation accordingly.
53140
53141 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53142
53143         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53144         (fstrcmp): Define in terms of fstrcmp_bounded.
53145         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53146         lower_bound argument.
53147         Return quickly if the result is certainly < lower_bound.
53148         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53149
53150 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53151
53152         * lib/diffseq.h (EARLY_ABORT): New macro.
53153         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53154         evaluates to true.
53155
53156 2008-09-14  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/perror-tests: New file.
53159         * tests/test-perror.sh: New file.
53160         * tests/test-perror.c: New file.
53161
53162         New module 'perror'.
53163         * lib/stdio.in.h (perror): New declaration.
53164         * lib/perror.c: New file.
53165         * m4/perror.m4: New file.
53166         * modules/perror: New file.
53167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53168         * doc/posix-functions/perror.texi: Mention the perror module.
53169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53170         REPLACE_PERROR.
53171         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53172         REPLACE_PERROR.
53173
53174 2008-09-14  Bruno Haible  <bruno@clisp.org>
53175
53176         * modules/stdio (Makefile.am): Reorder to match the order in
53177         lib/stdio.in.h.
53178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53179
53180 2008-09-13  Bruno Haible  <bruno@clisp.org>
53181
53182         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53183
53184 2008-09-13  Bruno Haible  <bruno@clisp.org>
53185
53186         Extend strerror to cover the added errno values.
53187         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53188         (rpl_strerror): Provide error messages for the added errno values and
53189         for the WSA* values.
53190         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53191         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53192         strerror.
53193         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53194         * modules/strerror (Depends-on): Add errno.
53195         * doc/posix-functions/strerror.texi: Document the change.
53196         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53197         and EOVERFLOW.
53198
53199 2008-09-13  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/EOVERFLOW: Remove file.
53202         * m4/eoverflow.m4: Remove file.
53203         * modules/EOVERFLOW-tests: Remove file.
53204         * tests/test-EOVERFLOW.c: Remove file.
53205         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53206         * modules/ftell (Depends-on): Likewise.
53207         * modules/getdelim (Depends-on): Likewise.
53208         * modules/getugroups (Depends-on): Likewise.
53209         * modules/poll (Depends-on): Likewise.
53210         * modules/snprintf (Depends-on): Likewise.
53211         * modules/sprintf-posix (Depends-on): Likewise.
53212         * modules/vasnprintf (Depends-on): Likewise.
53213         * modules/vasprintf (Depends-on): Likewise.
53214         * modules/vfprintf-posix (Depends-on): Likewise.
53215         * modules/vsnprintf (Depends-on): Likewise.
53216         * modules/vsprintf-posix (Depends-on): Likewise.
53217         * modules/xvasprintf (Depends-on): Likewise.
53218         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53219         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53220         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53221         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53222         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53223         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53224         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53225         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53226         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53227         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53228         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53229         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53230         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53231         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53232         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53233         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53234         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53235         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53236         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53237         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53238         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53239         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53240         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53241         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53242         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53243         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53244         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53245         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53246         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53247         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53248         * MODULES.html.sh: Remove EOVERFLOW.
53249         * NEWS: Mention the change.
53250
53251 2008-09-13  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/errno-tests: New file.
53254         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53255
53256         * lib/errno.in.h: New file.
53257         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53258         * modules/errno: New file.
53259         * doc/posix-headers/errno.texi: Update documentation.
53260         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53261
53262 2008-09-13  Bruno Haible  <bruno@clisp.org>
53263
53264         * tests/test-poll.c: Use #if for native Windows, rather than testing
53265         __MSVCRT__.
53266
53267 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53268             Bruno Haible  <bruno@clisp.org>
53269
53270         * lib/glob.c: Don't include <pwd.h> on native Windows.
53271         (WINDOWS32): New macro.
53272         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53273
53274 2008-09-13  Bruno Haible  <bruno@clisp.org>
53275
53276         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53277         (ETIMEDOUT): Remove macro.
53278         (glthread_cond_timedwait_multithreaded): New declaration.
53279         (glthread_cond_timedwait): Use it.
53280         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53281         (glthread_cond_timedwait_multithreaded): New function.
53282
53283 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53284
53285         * modules/poll-tests: Do not check for io.h.
53286         * tests/test-poll.c: Check for __MSVCRT__ instead.
53287
53288 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53289
53290         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53291         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53292         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53293
53294 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53295
53296         * modules/poll-tests: New.
53297         * tests/test-poll.c: New.
53298
53299 2008-09-12  Eric Blake  <ebb9@byu.net>
53300
53301         frexp: test for NetBSD failure on -0.0
53302         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53303         not all, bugs from NetBSD 3.0 have been fixed.
53304         * doc/posix-functions/frexp.texi (frexp): Document bug.
53305         Reported by Thomas Klausner.
53306
53307         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53308         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53309         literal -0.0.
53310         Reported by Jonathan C. Patschke <jp@centtech.com>.
53311
53312 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53313
53314         * lib/glthread/cond.h: Use dummy implementation also if
53315         USE_WIN32_THREADS.
53316
53317 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53318
53319         * modules/fnmatch-posix (License): Change to LGPLv2+.
53320         * modules/fnmatch-gnu (License): Likewise.
53321
53322 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53323
53324         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53325
53326 2008-09-11  Jim Meyering  <meyering@redhat.com>
53327
53328         * users.txt: Add gtk-vnc.
53329
53330 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53331
53332         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53333         rotate amounts.
53334
53335         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53336         required for 16-bit and 8-bit rotates.
53337         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53338         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53339         UINT8_MAX instead of hard-coded constants.
53340         Suggested by Paul Eggert.
53341
53342 2008-09-07  Bruno Haible  <bruno@clisp.org>
53343
53344         * tests/test-striconveh.c (main): Check behaviour when converting from
53345         UTF-7.
53346
53347         Make striconveh work better with stateful encodings.
53348         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53349         that iconv does not increment the inptr when returning -1/EINVAL.
53350
53351 2008-09-07  Bruno Haible  <bruno@clisp.org>
53352
53353         * build-aux/config.rpath: Update according to libtool-2.2.6.
53354         * build-aux/config.libpath: Likewise.
53355
53356 2008-09-06  Bruno Haible  <bruno@clisp.org>
53357
53358         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53359         * lib/freadptr.c (freadptr): Likewise.
53360         * lib/freadseek.c (freadptrinc): Likewise.
53361         Reported by Simon Josefsson.
53362
53363 2008-09-06  Bruno Haible  <bruno@clisp.org>
53364
53365         * modules/freadptr (License): Change to LGPLv2+.
53366         * modules/freadseek (License): Likewise.
53367         Suggested by Eric Blake.
53368
53369         * modules/memchr2 (License): Change to LGPLv2+.
53370         Approved by Eric Blake.
53371
53372 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53373             Bruno Haible  <bruno@clisp.org>
53374
53375         Make gnulib-tool work with native 'sed' on AIX.
53376         * gnulib-tool (sed_noop): New variable.
53377         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53378         func_add_or_update, func_create_testdir): Use it to initialize sed
53379         script variables.
53380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53381
53382 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53383             Bruno Haible  <bruno@clisp.org>
53384
53385         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53386         also works after #include directives.
53387
53388 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53389
53390         getdate.y: reject an out-of-range timezone value
53391         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53392         the range [-24...+24].  When specified with only one or two digits,
53393         * tests/test-getdate.c: Tests for the fix.
53394         * doc/getdate.texi: Document this change.
53395
53396 2008-09-03  Bruno Haible  <bruno@clisp.org>
53397
53398         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53399
53400 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53401
53402         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53403         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53404         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53405         Blake <ebb9@byu.net>.
53406
53407         * tests/test-bitrotate.c: Add more test vectors.
53408
53409 2008-09-02  Eric Blake  <ebb9@byu.net>
53410
53411         vasnprintf-posix: handle large precision via %.*d
53412         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53413         when handling it ourselves.
53414         * tests/test-vasnprintf-posix.c (test_function): Add test.
53415         * tests/test-snprintf-posix.h (test_function): Likewise.
53416         * tests/test-sprintf-posix.h (test_function): Likewise.
53417         * tests/test-vasprintf-posix.c (test_function): Likewise.
53418         Reported by Alain Guibert.
53419
53420 2008-09-01  Eric Blake  <ebb9@byu.net>
53421
53422         c-stack: make configure-time check more robust
53423         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53424         successful sigaction call.
53425         Reported by Tom G. Christensen.
53426
53427 2008-09-01  Bruno Haible  <bruno@clisp.org>
53428
53429         New module 'findprog-lgpl'.
53430         * modules/findprog-lgpl: New file.
53431         * lib/findprog-lgpl.c: New file.
53432         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53433         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53434         to decide whether to use strdup or xstrdup, concatenated_filename or
53435         xconcatenated_filename.
53436
53437 2008-09-01  Bruno Haible  <bruno@clisp.org>
53438
53439         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53440         'xconcat-filename' (GPL).
53441         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53442         (License): Change to LGPLv2+.
53443         * modules/xconcat-filename: New file.
53444         * lib/concat-filename.h (concatenated_filename): Change specification.
53445         (xconcatenated_filename): New declaration.
53446         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53447         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53448         memory situations.
53449         * lib/xconcat-filename.c: New file.
53450         * NEWS: Mention the change.
53451         * lib/findprog.c: Include concat-filename.h, not filename.h.
53452         (find_in_path): Use xconcatenated_filename instead of
53453         concatenated_filename.
53454         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53455         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53456         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53457         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53458         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53459         instead of concatenated_filename.
53460         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53461         (execute_java_class): Use xconcatenated_filename instead of
53462         concatenated_filename.
53463         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53464         * modules/javacomp (Depends-on): Likewise.
53465         * modules/javaexec (Depends-on): Likewise.
53466
53467 2008-09-01  Bruno Haible  <bruno@clisp.org>
53468
53469         Split module 'filename' into 'filename' and 'concat-filename'.
53470         * modules/filename: Keep only lib/filename.h.
53471         (License): Change to LGPLv2+.
53472         * modules/concat-filename: New file, extracted from modules/filename.
53473         * lib/filename.h (concatenated_filename): Remove declaration.
53474         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53475         * lib/concat-filename.c: Include concat-filename.h.
53476         * NEWS: Mention the change.
53477
53478 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53479
53480         * lib/bitrotate.h (rotl8, rotr8): Add.
53481
53482         * modules/bitrotate (configure.ac): Need
53483         AC_REQUIRE([AC_C_INLINE]).
53484         (Description): Mention stdint.h.  Reported by Bruno Haible
53485         <bruno@clisp.org>.
53486
53487         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53488         Paolo Bonzini <bonzini@gnu.org>.
53489
53490 2008-08-31  Bruno Haible  <bruno@clisp.org>
53491
53492         Assume Solaris specific bi-arch conventions on Solaris systems.
53493         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53494         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53495         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53496         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53497         like acl_libdirstem.
53498         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53499         acl_libdirstem.
53500         * NEWS: Mention the change.
53501         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53502
53503 2008-08-31  Jim Meyering  <meyering@redhat.com>
53504
53505         * lib/strftime.h: Add comments describing the two added arguments.
53506
53507         remove duplicate #include directives
53508         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53509         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53510
53511 2008-08-31  Bruno Haible  <bruno@clisp.org>
53512
53513         New module 'sigpipe-die'.
53514         * modules/sigpipe-die: New file.
53515         * lib/sigpipe-die.h: New file.
53516         * lib/sigpipe-die.c: New file.
53517         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53518
53519 2008-08-31  Bruno Haible  <bruno@clisp.org>
53520
53521         Don't override previously installed signal handlers.
53522         * lib/fatal-signal.c (saved_sigactions): New variable.
53523         (uninstall_handlers): Reset the signal to the saved handler, not
53524         to SIG_DFL (except when ignored).
53525         (install_handlers): Save the previous handlers.
53526
53527 2008-08-30  Bruno Haible  <bruno@clisp.org>
53528
53529         * gnulib-tool (func_reset_sigpipe): New function.
53530         (func_get_automake_snippet, func_modules_transitive_closure,
53531         func_import): Invoke it before a join command that reads from stdin,
53532         to avoid "echo: write error: Broken pipe" error messages on stderr.
53533         Reported by Sam Steingold <sds@gnu.org>.
53534
53535 2008-08-30  Bruno Haible  <bruno@clisp.org>
53536
53537         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53538         Code copied from m4/open.m4.
53539         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53540         access and the filename ends in a slash. Code copied from lib/open.c.
53541         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53542         * tests/test-fopen.c (main): Check against bug with trailing slash.
53543
53544 2008-08-29  Bruno Haible  <bruno@clisp.org>
53545
53546         Avoid some "gcc -pedantic" warnings.
53547         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53548         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53549         * lib/dirent.in.h: Likewise.
53550         * lib/fcntl.in.h: Likewise.
53551         * lib/float.in.h: Likewise.
53552         * lib/iconv.in.h: Likewise.
53553         * lib/inttypes.in.h: Likewise.
53554         * lib/locale.in.h: Likewise.
53555         * lib/math.in.h: Likewise.
53556         * lib/netinet_in.in.h: Likewise.
53557         * lib/search.in.h: Likewise.
53558         * lib/signal.in.h: Likewise.
53559         * lib/stdarg.in.h: Likewise.
53560         * lib/stdint.in.h: Likewise.
53561         * lib/stdio.in.h: Likewise.
53562         * lib/stdlib.in.h: Likewise.
53563         * lib/string.in.h: Likewise.
53564         * lib/strings.in.h: Likewise.
53565         * lib/sys_select.in.h: Likewise.
53566         * lib/sys_socket.in.h: Likewise.
53567         * lib/sys_stat.in.h: Likewise.
53568         * lib/sys_time.in.h: Likewise.
53569         * lib/sysexits.in.h: Likewise.
53570         * lib/time.in.h: Likewise.
53571         * lib/unistd.in.h: Likewise.
53572         * lib/wchar.in.h: Likewise.
53573         * lib/wctype.in.h: Likewise.
53574         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53575         * modules/fchdir (Makefile.am): Likewise.
53576         * modules/fcntl (Makefile.am): Likewise.
53577         * modules/float (Makefile.am): Likewise.
53578         * modules/iconv_open (Makefile.am): Likewise.
53579         * modules/inttypes (Makefile.am): Likewise.
53580         * modules/locale (Makefile.am): Likewise.
53581         * modules/math (Makefile.am): Likewise.
53582         * modules/netinet_in (Makefile.am): Likewise.
53583         * modules/search (Makefile.am): Likewise.
53584         * modules/signal (Makefile.am): Likewise.
53585         * modules/stdarg (Makefile.am): Likewise.
53586         * modules/stdint (Makefile.am): Likewise.
53587         * modules/stdio (Makefile.am): Likewise.
53588         * modules/stdlib (Makefile.am): Likewise.
53589         * modules/string (Makefile.am): Likewise.
53590         * modules/strings (Makefile.am): Likewise.
53591         * modules/sys_select (Makefile.am): Likewise.
53592         * modules/sys_socket (Makefile.am): Likewise.
53593         * modules/sys_stat (Makefile.am): Likewise.
53594         * modules/sys_time (Makefile.am): Likewise.
53595         * modules/sysexits (Makefile.am): Likewise.
53596         * modules/time (Makefile.am): Likewise.
53597         * modules/unistd (Makefile.am): Likewise.
53598         * modules/wchar (Makefile.am): Likewise.
53599         * modules/wctype (Makefile.am): Likewise.
53600         Reported by Reuben Thomas <rrt@sc3d.org>.
53601
53602 2008-08-29  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53605         any more.
53606
53607 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53608
53609         * MODULES.html.sh (Misc): Add bitrotate.
53610
53611         * modules/bitrotate: New file.
53612
53613         * lib/bitrotate.h: New file.
53614
53615         * modules/bitrotate-tests: New file.
53616
53617         * tests/test-bitrotate.c: New file.
53618
53619         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53620         on the bitrotate module.
53621
53622         * lib/arctwo.c: Use new bitrotate module.
53623
53624 2008-08-29  Jim Meyering  <meyering@redhat.com>
53625
53626         bootstrap: merge changes from coreutils
53627         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53628         of copied files.  Remove a kludge, now that this is fixed.
53629         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53630         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53631         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53632
53633 2008-08-29  Bruno Haible  <bruno@clisp.org>
53634
53635         * MODULES.html.sh: Remove --cvs-urls option.
53636
53637 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53638
53639         maint.mk: adjust to file name change
53640         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53641
53642 2008-08-28  Jim Meyering  <meyering@redhat.com>
53643
53644         * modules/getndelim2 (License): Relicense to LGPLv2+.
53645         Approved by Richard Stallman for the version of 1995, and by
53646         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53647
53648 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53649
53650         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53651         dummy if one is not available.  Do not touch them if
53652         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53653         (getc_maybe_unlocked): New.
53654         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53655
53656 2008-08-26  Eric Blake  <ebb9@byu.net>
53657
53658         doc/INSTALL: resync from autoconf
53659         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53660         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53661         moving...
53662         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53663         * INSTALL: Regenerate.
53664         * INSTALL.ISO: New file.
53665         * INSTALL.UTF-8: Likewise.
53666
53667 2008-08-26  Jim Meyering  <meyering@redhat.com>
53668
53669         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53670         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53671         these definitions conditional, so that they may be overridden, too.
53672
53673 2008-08-26  Bruno Haible  <bruno@clisp.org>
53674
53675         Generate INSTALL file variants with prettier quotes.
53676         * doc/Makefile (INSTALL_PRELUDE): New macro.
53677         (INSTALL): Use it.
53678         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53679
53680 2008-08-26  Bruno Haible  <bruno@clisp.org>
53681
53682         Run makeinfo in an English locale.
53683         * doc/Makefile (MAKEINFO): New variable.
53684
53685 2008-08-26  Bruno Haible  <bruno@clisp.org>
53686
53687         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53688         Suggested by Eric Blake.
53689
53690 2008-08-25  Bruno Haible  <bruno@clisp.org>
53691
53692         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53693
53694 2008-08-25  Eric Blake  <ebb9@byu.net>
53695
53696         c-stack: test that stack overflow can be caught
53697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53698         that platform allows handling stack overflow; at least OS/2 EMX
53699         has sigaltstack, but crashes before transferring control to
53700         handler on stack overflow.
53701         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53702         check for HAVE_STACK_OVERFLOW_HANDLING.
53703         Reported by Elbert Pol.
53704
53705 2008-08-25  Bruno Haible  <bruno@clisp.org>
53706
53707         * doc/posix-functions/strftime.texi: Fix description of strftime
53708         module.
53709
53710 2008-08-24  Bruno Haible  <bruno@clisp.org>
53711
53712         * tests/uniwidth/test-uc_width2.c: New file.
53713         * tests/uniwidth/test-uc_width2.sh: New file.
53714         * modules/uniwidth/width-tests (Files): Add the new files.
53715         (TESTS): Add uniwidth/test-uc_width2.sh.
53716         (TESTS_ENVIRONMENT): New variable.
53717         (check_PROGRAMS): Add test-uc_width2.
53718         (test_uc_width2_SOURCES): New variable.
53719
53720         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53721         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53722         not 0x00AB.
53723         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53724
53725 2008-08-22  Eric Blake  <ebb9@byu.net>
53726
53727         test-lock, test-tls: mention why a test is skipped
53728         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53729         skipped.
53730         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53731
53732         count-one-bits: relax license
53733         * modules/count-one-bits (License): Relicense to LGPLv2+.
53734         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53735
53736 2008-08-22  Andreas Schwab  <schwab@suse.de>
53737
53738         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53739         Remove spurious space in assignment.
53740
53741 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53742
53743         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53744         Paul Eggert <eggert@CS.UCLA.EDU>.
53745
53746 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53747
53748         * modules/gettext: Add m4/threadlib.m4.
53749
53750 2008-08-19  Eric Blake  <ebb9@byu.net>
53751
53752         test-c-stack: fix compilation failure on FreeBSD 5.0
53753         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53754         headers before <sys/resource.h>.
53755         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53756         the bug.
53757         Reported by Nelson H. F. Beebe.
53758
53759         strverscmp: migrate from "strverscmp.h" to <string.h>
53760         * modules/string (Makefile.am): Add new hooks.
53761         * modules/strverscmp (Files): Remove strverscmp.h.
53762         (Depends-on): Add string.
53763         (configure.ac): Add indicator.
53764         (Include): Mention new header.
53765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53766         defaults.
53767         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53768         results.
53769         * lib/strverscmp.h: Delete.
53770         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53771         * tests/test-strverscmp.c (includes): Adjust client.
53772         * lib/check-version.c (includes): Likewise.
53773         * NEWS: Document the change.
53774
53775         strverscmp: add unit test
53776         * modules/strverscmp-tests: New file.
53777         * tests/test-strverscmp.c: Likewise.
53778
53779 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53780
53781         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53782         regarding Windows crypto stuff, from Mono.
53783
53784 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53785
53786         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53787         if present, for intel RND.  Return error on failures.
53788
53789 2008-08-18  Ben Pfaff  <blp@gnu.org>
53790
53791         gitlog-to-changelog: give better diagnostic for failed pipe-open
53792         * build-aux/gitlog-to-changelog: Improve error message: suggest
53793         that the version of Git may be too old.
53794
53795 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53796
53797         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53798         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53799
53800 2008-08-18  Bruno Haible  <bruno@clisp.org>
53801
53802         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53803         pthread_in_use().
53804
53805 2008-08-18  Bruno Haible  <bruno@clisp.org>
53806
53807         * lib/glthread/threadlib.c: Include <pthread.h>.
53808
53809 2008-08-18  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53812         glthread_recursive_lock_* macros.
53813         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53814         Fix syntax error.
53815
53816 2008-08-18  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/glthread/thread.c: Avoid forcing a context switch right after
53819         thread creation.
53820
53821 2008-08-17  Bruno Haible  <bruno@clisp.org>
53822
53823         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53824         * lib/glthread/thread.h: Provide Win32 specific implementation.
53825         * modules/thread (Files): Add lib/glthread/thread.c.
53826         (Depends-on): Add lock.
53827         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53828
53829 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53830
53831         New module 'yield'.
53832         * modules/yield: New file.
53833         * lib/glthread/yield.h: New file.
53834         * m4/yield.m4: New file.
53835         * MODULES.html.sh (Multithreading): Add yield.
53836
53837 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53838
53839         New module 'thread'.
53840         * modules/thread: New file.
53841         * lib/glthread/thread.h: New file.
53842         * m4/thread.m4: New file.
53843         * MODULES.html.sh (Multithreading): Add thread.
53844
53845 2008-08-17  Bruno Haible  <bruno@clisp.org>
53846
53847         * lib/glthread/lock.h: Include <stdlib.h> always.
53848         * lib/glthread/tls.h: Likewise.
53849         * lib/glthread/cond.h: Likewise.
53850
53851 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53852
53853         New module 'cond'.
53854         * modules/cond: New file.
53855         * lib/glthread/cond.h: New file.
53856         * lib/glthread/cond.c: New file.
53857         * m4/cond.m4: New file.
53858         * MODULES.html.sh (Multithreading): Add cond.
53859
53860 2008-08-16  Eric Blake  <ebb9@byu.net>
53861
53862         c-stack: fix regression on Irix 5.3 from 2008-06-21
53863         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53864         sa_sigaction...
53865         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53866         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53867         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53868         * modules/signal (Makefile.am): Use the value.
53869         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53870         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53871         * doc/posix-headers/signal.texi (signal.h): Document this
53872         portability issue.
53873         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53874         Reported by Tom G. Christensen.
53875
53876 2008-08-17  Bruno Haible  <bruno@clisp.org>
53877
53878         New module 'threadlib'.
53879         * modules/threadlib: New file.
53880         * lib/glthread/threadlib.c: New file, extracted from
53881         lib/glthread/lock.c.
53882         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53883         functions.
53884         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53885         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53886         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53887         macros.
53888         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53889         (gl_DISABLE_THREADS): Remove macro.
53890         * modules/lock (Files): Remove build-aux/config.rpath.
53891         (Depends-on): Remove havelib. Add threadlib.
53892         (configure.ac-early): Remove section.
53893         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53894         * modules/tls (Depends-on): Remove lock. Add threadlib.
53895         (Link): New section, copied from threadlib.
53896         * MODULES.html.sh (Multithreading): Add threadlib.
53897
53898 2008-08-14  Bruno Haible  <bruno@clisp.org>
53899
53900         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53901         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53902         glthread_rwlock_unlock, glthread_rwlock_destroy,
53903         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53904         glthread_recursive_lock_destroy): Define as macros always.
53905         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53906         glthread_lock_lock.
53907         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53908         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53909         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53910         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53911         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53912         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53913         (glthread_recursive_lock_lock_func): Renamed from
53914         glthread_recursive_lock_lock.
53915         (glthread_recursive_lock_unlock_func): Renamed from
53916         glthread_recursive_lock_unlock.
53917         (glthread_recursive_lock_destroy_func): Renamed from
53918         glthread_recursive_lock_destroy.
53919
53920 2008-08-14  Bruno Haible  <bruno@clisp.org>
53921
53922         * lib/glthread/lock.h: Renamed from lib/lock.h.
53923         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53924         * lib/glthread/tls.h: Renamed from lib/tls.h.
53925         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53926         * lib/fstrcmp.c: Update includes.
53927         * lib/strsignal.c: Update includes.
53928         * modules/lock (Files, Makefile.am): Update.
53929         (Include): Change to "glthread/lock.h".
53930         * modules/tls (Files, Makefile.am): Update.
53931         (Include): Change to "glthread/tls.h".
53932         * tests/test-lock.c: Update includes.
53933         * tests/test-tls.c: Update includes.
53934         * NEWS: Mention the renamed header files.
53935
53936 2008-08-11  Jim Meyering  <meyering@redhat.com>
53937
53938         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53939
53940 2008-08-11  Eric Blake  <ebb9@byu.net>
53941
53942         test-c-stack: avoid C99-ism
53943         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53944         before statement.
53945         Reported by Alain Guibert.
53946
53947 2008-08-10  Jim Meyering  <meyering@redhat.com>
53948
53949         ensure that return value of uinttostr et al are not ignored
53950         * lib/inttostr.h (__GNUC_PREREQ): Define.
53951         (__attribute_warn_unused_result__): Define.
53952         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53953
53954 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53955
53956         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53957         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53958
53959 2008-08-07  Jim Meyering  <meyering@redhat.com>
53960
53961         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53962
53963         * modules/mkstemp (License): Relicense under LGPLv2+.
53964         * modules/tempname (License): Likewise.
53965
53966 2008-08-06  Bruno Haible  <bruno@clisp.org>
53967
53968         * lib/poll.c (poll): Further micro-optimization.
53969
53970 2008-08-06  Jim Meyering  <meyering@redhat.com>
53971
53972         inet_pton.c: use locale-independent tolower
53973         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53974         (inet_pton6): Use c_tolower rather than tolower.
53975         * modules/inet_pton (Depends-on): Add c-ctype.
53976
53977 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53978
53979         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53980         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53981
53982 2008-08-06  Jim Meyering  <meyering@redhat.com>
53983
53984         * modules/inet_pton (License): Relicense under LGPLv2+.
53985
53986 2008-08-03  Bruno Haible  <bruno@clisp.org>
53987
53988         Additional non-aborting API for lock and tls.
53989         * lib/lock.h: Include <errno.h>.
53990         (glthread_lock_init): New macro/function.
53991         (gl_lock_init): Define as wrapper around glthread_lock_init.
53992         (glthread_lock_lock): New macro/function.
53993         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53994         (glthread_lock_unlock): New macro/function.
53995         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53996         (glthread_lock_destroy): New macro/function.
53997         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53998         (glthread_rwlock_init): New macro/function.
53999         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54000         (glthread_rwlock_rdlock): New macro/function.
54001         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54002         (glthread_rwlock_wrlock): New macro/function.
54003         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54004         (glthread_rwlock_unlock): New macro/function.
54005         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54006         (glthread_rwlock_destroy): New macro/function.
54007         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54008         (glthread_recursive_lock_init): New macro/function.
54009         (gl_recursive_lock_init): Define as wrapper around
54010         glthread_recursive_lock_init.
54011         (glthread_recursive_lock_lock): New macro/function.
54012         (gl_recursive_lock_lock): Define as wrapper around
54013         glthread_recursive_lock_lock.
54014         (glthread_recursive_lock_unlock): New macro/function.
54015         (gl_recursive_lock_unlock): Define as wrapper around
54016         glthread_recursive_lock_unlock.
54017         (glthread_recursive_lock_destroy): New macro/function.
54018         (gl_recursive_lock_destroy): Define as wrapper around
54019         glthread_recursive_lock_destroy.
54020         (glthread_once): New macro/function.
54021         (gl_once): Define as wrapper around glthread_once.
54022         Update function declarations.
54023         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54024         glthread_rwlock_init. Return error code.
54025         (glthread_rwlock_rdlock_multithreaded): Renamed from
54026         glthread_rwlock_rdlock. Return error code.
54027         (glthread_rwlock_wrlock_multithreaded): Renamed from
54028         glthread_rwlock_wrlock. Return error code.
54029         (glthread_rwlock_unlock_multithreaded): Renamed from
54030         glthread_rwlock_unlock. Return error code.
54031         (glthread_rwlock_destroy_multithreaded): Renamed from
54032         glthread_rwlock_destroy. Return error code.
54033         (glthread_recursive_lock_init_multithreaded): Renamed from
54034         glthread_recursive_lock_init. Return error code.
54035         (glthread_recursive_lock_lock_multithreaded): Renamed from
54036         glthread_recursive_lock_lock. Return error code.
54037         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54038         glthread_recursive_lock_unlock. Return error code.
54039         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54040         glthread_recursive_lock_destroy. Return error code.
54041         (glthread_once_call): Make static.
54042         (glthread_once_multithreaded): Renamed from glthread_once.
54043         * lib/tls.h: Include <errno.h>.
54044         (glthread_tls_key_init): New macro/function.
54045         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54046         (glthread_tls_set): New macro/function.
54047         (gl_tls_set): Define as wrapper around glthread_tls_set.
54048         (glthread_tls_key_destroy): New macro/function.
54049         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54050         Update function declarations.
54051         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54052         glthread_tls_get.
54053         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54054
54055 2008-08-04  Eric Blake  <ebb9@byu.net>
54056
54057         gnumakefile: use space, not TAB, outside of targets
54058         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54059
54060 2008-08-02  Jim Meyering  <meyering@redhat.com>
54061
54062         getdate.y: avoid locale-dependent date parsing failure
54063         In Turkish locales, getdate would fail to recognize keywords
54064         containing a lowercase "i".  The solution is not to rely on
54065         locale-sensitive case-conversion.
54066         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54067         (lookup_word): Use c_toupper in place of toupper.
54068         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54069         Reported by Vefa Bicakci <bicave@superonline.com> in
54070         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54071         * modules/getdate (Depends-on): Add c-ctype.
54072
54073 2008-08-02  Bruno Haible  <bruno@clisp.org>
54074
54075         * gnulib-tool (func_import): When updating or creating a .gitignore
54076         file, prepend each added line with a slash, and ignore leading slashes
54077         from the existing lines.
54078         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54079
54080 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54081
54082         Portability fix for GNU make 3.79.1.
54083         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54084         versions do not understand.
54085
54086 2008-08-01  Bruno Haible  <bruno@clisp.org>
54087
54088         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54089         * tests/test-isnanf.h (zero): New variable.
54090         (main): Avoid literal -0.0f.
54091         * tests/test-isnand.h (zero): New variable.
54092         (main): Avoid literal -0.0.
54093         * tests/test-isnanl.h (zero): New variable.
54094         (main): Avoid literal -0.0L.
54095         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54096         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54097         -0.0, -0.0L.
54098         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54099         (test_signbitd): Avoid literal -0.0.
54100         (test_signbitl): Avoid literal -0.0L.
54101         * tests/test-ceilf1.c (zero): New variable.
54102         (main): Avoid literal -0.0f.
54103         * tests/test-ceill.c (zero): New variable.
54104         (main): Avoid literal -0.0L.
54105         * tests/test-floorf1.c (zero): New variable.
54106         (main): Avoid literal -0.0f.
54107         * tests/test-floorl.c (zero): New variable.
54108         (main): Avoid literal -0.0L.
54109         * tests/test-roundf1.c (zero): New variable.
54110         (main): Avoid literal -0.0f.
54111         * tests/test-round1.c (zero): New variable.
54112         (main): Avoid literal -0.0.
54113         * tests/test-roundl.c (zero): New variable.
54114         (main): Avoid literal -0.0L.
54115         * tests/test-truncf1.c (zero): New variable.
54116         (main): Avoid literal -0.0f.
54117         * tests/test-trunc1.c (zero): New variable.
54118         (main): Avoid literal -0.0.
54119         * tests/test-truncl.c (zero): New variable.
54120         (main): Avoid literal -0.0L.
54121         * tests/test-frexp.c (zero): New variable.
54122         (main): Avoid literal -0.0.
54123         * tests/test-frexpl.c (zero): New variable.
54124         (main): Avoid literal -0.0L.
54125         * tests/test-ldexpl.c (zero): New variable.
54126         (main): Avoid literal -0.0L.
54127         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54128         (zerod, zerol): New variables.
54129         (test_function): Avoid literals -0.0, -0.0L.
54130         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54131         (zerod, zerol): New variables.
54132         (test_function): Avoid literals -0.0, -0.0L.
54133         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54134         (zerod, zerol): New variables.
54135         (test_function): Avoid literals -0.0, -0.0L.
54136         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54137         (zerod, zerol): New variables.
54138         (test_function): Avoid literals -0.0, -0.0L.
54139         * tests/test-strtod.c (zero): New variable.
54140         (main): Avoid literal -0.0.
54141         Reported by Jonathan C. Patschke <jp@centtech.com>.
54142
54143 2008-07-31  Jim Meyering  <meyering@redhat.com>
54144
54145         sha256.h: correct definition of SHA224_DIGEST_SIZE
54146         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54147         Reported by Paulie Pena IV <paulie4@gmail.com>.
54148         Define as 224 / 8, rather than as a literal.
54149         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54150         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54151         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54152
54153 2008-07-31  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54156         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54157         Reported by Jonathan Patschke <jp@centtech.com>.
54158
54159 2008-07-31  Bruno Haible  <bruno@clisp.org>
54160
54161         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54162         Reported by Paolo Bonzini <bonzini@gnu.org>.
54163
54164 2008-07-30  Eric Blake  <ebb9@byu.net>
54165
54166         test-strtod: allow compilation without -lm
54167         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54168         Reported by Dennis Clarke <blastwave@gmail.com>.
54169
54170 2008-07-28  Jim Meyering  <meyering@redhat.com>
54171
54172         bootstrap: work also when there are no .po files in po/
54173         * build-aux/bootstrap (update_po_files): Complete the change
54174         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54175
54176 2008-07-27  Jim Meyering  <meyering@redhat.com>
54177
54178         * users.txt: Add zile.
54179
54180 2008-07-26  Ben Pfaff  <blp@gnu.org>
54181
54182         Add missing dependencies on new m4/exponent[fdl].m4 files.
54183         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54184         * modules/isnand-nolibm: Add m4/exponentd.m4.
54185         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54186         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54187         m4/isnan[fdl].m4, because the macros actually used moved.
54188         Reported by Jim Meyering.
54189
54190 2008-07-14  Ben Pfaff  <blp@gnu.org>
54191
54192         Add isinf module.
54193         * lib/isinf.c: New file.
54194         * lib/math.in.h: Define isinf macro if we have decided to replace
54195         it.
54196         * m4/isinf.m4: New file.
54197         * m4/math_h.m4: Initialize and substitute variables for isinf
54198         module.
54199         * modules/isinf: New file.
54200         * modules/isinf-tests: New file.
54201         * modules/math: Add substitutions for new module.
54202         * tests/test-isinf.c: New file.
54203         * doc/posix-functions/isinf.texi: Mention new module.
54204         * MODULES.html.sh: Mention new module.
54205
54206 2008-07-14  Ben Pfaff  <blp@gnu.org>
54207
54208         Factor out some macros for use by additional modules.
54209         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54210         exponentf.m4.
54211         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54212         exponentd.m4.
54213         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54214         file exponentl.m4.
54215         * m4/exponentf.m4: New file.
54216         * m4/exponentd.m4: New file.
54217         * m4/exponentl.m4: New file.
54218         * modules/isnanf: Use new file m4/exponentf.m4.
54219         * modules/isnand: Use new file m4/exponentd.m4.
54220         * modules/isnanl: Use new file m4/exponentl.m4.
54221
54222 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54223
54224         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54225         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54226         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54227         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54228
54229         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54230         readlink on platforms without PATH_MAX.
54231
54232 2008-07-21  Eric Blake  <ebb9@byu.net>
54233
54234         Warn, not fail, on stale version.
54235         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54236
54237         Don't allow installation with stale devel version number.
54238         * top/GNUmakefile (_is-install-target): New macro.
54239         (_curr-ver): Forbid installation with stale version number.
54240
54241 2008-07-20  Bruno Haible  <bruno@clisp.org>
54242
54243         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54244         TESTS_ENVIRONMENT.
54245         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54246
54247 2008-07-20  Bruno Haible  <bruno@clisp.org>
54248
54249         * lib/c-stack.h (c_stack_action): Add documentation.
54250         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54251
54252 2008-07-20  Bruno Haible  <bruno@clisp.org>
54253
54254         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54255         * modules/readlink (License): Likewise.
54256
54257 2008-07-17  Eric Blake  <ebb9@byu.net>
54258
54259         * modules/c-stack (Link): Fix typo.
54260
54261         Make c-stack use libsigsegv, when available.
54262         * modules/c-stack (Depends-on): Add libsigsegv.
54263         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54264         needed.
54265         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54266         (segv_handler, overflow_handler, c_stack_action)
54267         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54268         implementation when libsigsegv is available, but only when using
54269         the library is necessary.
54270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54271         comment, explaining why XSI check fails on Linux.
54272         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54273         * tests/test-c-stack2.sh: Tweak skip message.
54274         * NEWS: Document new link-time requirements.
54275
54276 2008-07-16  Eric Blake  <ebb9@byu.net>
54277
54278         c-stack: Expose false positives when not using libsigsegv.
54279         * modules/c-stack-tests (Files): Expand test.
54280         * tests/test-c-stack.c (main): Add means to conditionally trigger
54281         non-overflow SIGSEGV.
54282         * tests/test-c-stack2.sh: New file.
54283
54284 2008-07-14  Bruno Haible  <bruno@clisp.org>
54285
54286         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54287         Reported by Eric Blake.
54288
54289 2008-07-14  Sam Steingold  <sds@gnu.org>
54290             Bruno Haible  <bruno@clisp.org>
54291
54292         New module libsigsegv.
54293         * modules/libsigsegv: New file.
54294         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54295         modifications.
54296         * MODULES.html.sh (Signal handling): New section.
54297
54298 2008-07-14  Bruno Haible  <bruno@clisp.org>
54299
54300         * modules/unictype/ctype-* (Description): Add the word "function".
54301         Improves the resulting doc in MODULES.html.
54302
54303 2008-07-12  Ben Pfaff  <blp@gnu.org>
54304
54305         Add longlong module.
54306         * modules/longlong: New file.
54307
54308 2008-07-12  Bruno Haible  <bruno@clisp.org>
54309
54310         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54311         to empty.
54312
54313 2008-07-10  Ben Pfaff  <blp@gnu.org>
54314
54315         Add isnan module.
54316         * doc/posix-functions/isnan.texi: Mention new module.
54317         * lib/math.in.h: Define isnan macro if we have decided to replace
54318         it.
54319         * m4/isnan.m4: New file.
54320         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54321         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54322         also.
54323         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54324         redundancy.
54325         * m4/math_h.m4: Initialize and substitute variables for isnan
54326         module.
54327         * modules/isnan: New file.
54328         * modules/isnan-tests: New file.
54329         * modules/math: Add substitutions for new module.
54330         * tests/test-isnan.c: New file.
54331         * MODULES.html.sh: Mention new module.
54332
54333 2008-07-10  Ben Pfaff  <blp@gnu.org>
54334
54335         Add isnanf module.
54336         * lib/isnanf.m4: New file.
54337         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54338         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54339         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54340         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54341         * modules/isnanf: New file.
54342         * modules/isnanf-tests: New file.
54343         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54344         files.
54345         * tests/test-isnanf-nolibm.c: factored most of its contents into
54346         new file tests/test-isnanf.h.
54347         * tests/test-isnanf.h: New file.
54348         * tests/test-isnanf.c: New file.
54349         * MODULES.html.sh: Mention new module.
54350         * doc/glibc-functions/isnanf.texi: Mention new module.
54351
54352 2008-07-10  Ben Pfaff  <blp@gnu.org>
54353
54354         Add isnand module.
54355         * lib/isnand.h: New file.
54356         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54357         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54358         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54359         functionality also.
54360         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54361         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54362         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54363         * modules/isnand: New file.
54364         * modules/isnand-tests: New file.
54365         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54366         files.
54367         * tests/test-isnand-nolibm.c: factored most of its contents into
54368         new file tests/test-isnand.h.
54369         * tests/test-isnand.h: New file.
54370         * tests/test-isnand.c: New file.
54371         * MODULES.html.sh: Mention new module.
54372
54373 2008-07-10  Ben Pfaff  <blp@gnu.org>
54374
54375         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54376         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54377         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54378         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54379         * modules/isnanf-nolibm: Update references to renamed files.
54380         * modules/isnand-nolibm: Likewise.
54381         * modules/isnanf-nolibm-tests: Likewise.
54382         * modules/isnand-nolibm-tests: Likewise.
54383         * lib/frexp.c: Likewise.
54384         * lib/isfinite.c: Likewise.
54385         * lib/signbitd.c: Likewise.
54386         * lib/signbitf.c: Likewise.
54387         * lib/vasnprintf.c: Likewise.
54388         * tests/test-ceilf1.c: Likewise.
54389         * tests/test-ceilf2.c: Likewise.
54390         * tests/test-floorf1.c: Likewise.
54391         * tests/test-floorf2.c: Likewise.
54392         * tests/test-frexp.c: Likewise.
54393         * tests/test-round1.c: Likewise.
54394         * tests/test-round2.c: Likewise.
54395         * tests/test-roundf1.c: Likewise.
54396         * tests/test-strtod.c: Likewise.
54397         * tests/test-trunc1.c: Likewise.
54398         * tests/test-trunc2.c: Likewise.
54399         * tests/test-truncf1.c: Likewise.
54400         * tests/test-truncf2.c: Likewise.
54401         * NEWS: Mention the renamed header files.
54402
54403 2008-07-11  Jim Meyering  <meyering@redhat.com>
54404
54405         vc-list-files: make the last-resort awk code more portable
54406         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54407         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54408         does not support it.
54409
54410 2008-07-10  Eric Blake  <ebb9@byu.net>
54411
54412         Work with tar's bootstrap.
54413         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54414         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54415         an m4 comment.
54416
54417 2008-07-09  Jim Meyering  <meyering@redhat.com>
54418
54419         posix-shell.m4: fix typo that made this test malfunction
54420         * m4/posix-shell.m4: Remove capitalization in variable name.
54421
54422 2008-07-08  Bruno Haible  <bruno@clisp.org>
54423
54424         * m4/onceonly.m4: Update comments.
54425         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54426
54427 2008-07-04  Jim Meyering  <meyering@redhat.com>
54428
54429         * users.txt: Add vc-dwim.
54430         (bison, coreutils): Use the gitweb URL.
54431
54432 2008-07-03  Jim Meyering  <meyering@redhat.com>
54433
54434         * users.txt: Add libffcall.  From Sam Steingold.
54435
54436 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54437
54438         getdate.y: do not ignore TZ with relative day, month or year offset
54439         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54440         relative-date-handling, since otherwise, the latter would clobber the
54441         sole output (an updated Start value) of the tz-handling block.
54442         * tests/test-getdate.c: Tests for the fix
54443
54444 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54445
54446         Recognize 'foo_LIBRARIES += libgnu.a'.
54447         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54448         makefile snippet has already specified an installation location,
54449         also using '+='.
54450
54451 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54452
54453         getdate.y: factor out common actions
54454         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54455         Use them in place of open-coded actions.
54456
54457 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54458
54459         Add self-test for getdate module.
54460         * modules/getdate-tests: New file.
54461         * tests/test-getdate.c: New file.
54462
54463 2008-06-29  Bruno Haible  <bruno@clisp.org>
54464
54465         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54466         .gitignore.
54467         Reported by Sylvain Beucler <beuc@beuc.net>.
54468
54469 2008-06-29  Bruno Haible  <bruno@clisp.org>
54470
54471         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54472         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54473
54474 2008-06-29  Bruno Haible  <bruno@clisp.org>
54475
54476         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54477         EXTRA_DIST.
54478         Reported by Sylvain Beucler <beuc@beuc.net>.
54479
54480 2008-06-26  Jim Meyering  <meyering@redhat.com>
54481
54482         make several modules depend on the "open" module
54483         This provides slightly increased consistency when opening-for-write
54484         the name of a non-directory spelled with a trailing slash.
54485         * modules/chdir-safer: Likewise.
54486         * modules/chown: Likewise.
54487         * modules/clean-temp: Likewise.
54488         * modules/copy-file: Likewise.
54489         * modules/fchdir: Likewise.
54490         * modules/fcntl-safer: Likewise.
54491         * modules/pipe: Likewise.
54492         * modules/utime: Likewise.
54493         Prompted by Eric Blake and Bruno Haible.
54494
54495 2008-06-24  Andreas Schwab  <schwab@suse.de>
54496
54497         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54498         literals can be used as initializers for global variables.
54499
54500 2008-06-23  Eric Blake  <ebb9@byu.net>
54501
54502         Make gnulib-cache.m4 easier to diff.
54503         * gnulib-tool (func_import): Allow newlines when reading cached
54504         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54505
54506 2008-06-23  Bruno Haible  <bruno@clisp.org>
54507
54508         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54509         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54510         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54511         m4/signalblocking.m4.
54512         (gl_PREREQ_SIGACTION): Don't invoke it.
54513         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54514         gl_PREREQ_SIG_HANDLER_H.
54515         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54516         Don't check for sigaction here.
54517
54518 2008-06-23  Bruno Haible  <bruno@clisp.org>
54519
54520         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54521         (install_handlers): Don't set the SA_RESETHAND flag.
54522
54523 2008-06-23  Bruno Haible  <bruno@clisp.org>
54524
54525         * m4/sigaction.m4: Comment fixes.
54526         * lib/signal.in.h: Likewise.
54527
54528 2008-06-23  Eric Blake  <ebb9@byu.net>
54529
54530         Fix typo.
54531         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54532
54533         Avoid SA_ namespace.
54534         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54535         Reported by Ralf Wildenhues.
54536
54537         Avoid test failure due to SA_RESTORER.
54538         * tests/test-sigaction.c (SA_MASK): New macro.
54539         (main): Avoid failing due to extension flags being set.
54540         Reported by Jim Meyering.
54541
54542         Revert use of sig-handler.h in sigprocmask.c.
54543         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54544         it requires the existence of struct sigaction.
54545         * lib/sigprocmask.c (handler_t): Restore typedef.
54546         (rpl_signal, old_handlers): Use local type.
54547
54548 2008-06-22  Bruno Haible  <bruno@clisp.org>
54549
54550         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54551         conditionally.
54552         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54553
54554 2008-06-22  Bruno Haible  <bruno@clisp.org>
54555
54556         * doc/posix-functions/siginterrupt.texi: Move note.
54557
54558         * lib/signal.in.h (SA_RESTART): New macro.
54559         * lib/sigaction.c: Update comment.
54560
54561         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54562
54563         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54564         (gl_PREREQ_SIGPROCMASK): Invoke it.
54565         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54566
54567         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54568
54569         * lib/sigprocmask.c: Update a comment.
54570
54571 2008-06-21  Eric Blake  <ebb9@byu.net>
54572
54573         Use sigaction module rather than signal().
54574         * modules/c-stack (Depends-on): Add sigaction.
54575         * modules/fatal-signal (Depends-on): Likewise.
54576         * modules/nanosleep (Depends-on): Likewise.
54577         * modules/sigprocmask (Files): Add sig-handler.h.
54578         * modules/sigaction (Files): Likewise.
54579         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54580         Eggert.
54581         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54582         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54583         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54584         (init_fatal_signals): Likewise.
54585         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54586         (siginterrupt): Delete fallback.
54587         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54588         instead.
54589         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54590         siginterrupt.
54591
54592         New module sigaction, for mingw.
54593         * modules/sigaction: New module...
54594         * modules/sigaction-tests: ...and its test.
54595         * m4/sigaction.m4: New file.
54596         * lib/sigaction.c: Likewise.
54597         * tests/test-sigaction.c: Likewise.
54598         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54599         * modules/signal (Makefile.am): Likewise.
54600         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54601         needed.
54602         * doc/posix-headers/signal.texi (signal.h): Mention provided
54603         types.
54604         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54605         that sigaction is preferable.
54606         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54607         module.
54608         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54609         sigaction.
54610
54611         Improve robustness of sigprocmask by overriding signal.
54612         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54613         is in use.
54614         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54615         (SIGKILL, SIGSTOP): Provide fallbacks.
54616         (rpl_signal): Implement.
54617         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54618         signal can be called inside handlers.
54619
54620         Fix nanosleep module on mingw.
54621         * modules/nanosleep (Depends-on): Add sys_select.
54622         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54623
54624         Fix licensing of sigprocmask.
54625         * modules/raise (License): Relicense as LGPL.
54626
54627 2008-06-21  Bruno Haible  <bruno@clisp.org>
54628
54629         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54630         result if it contains question marks.
54631         Reported by Michael Geng <linux@michaelgeng.de>.
54632
54633 2008-06-19  Bruno Haible  <bruno@clisp.org>
54634
54635         Fix CVS-ism.
54636         * doc/gnulib.texi: Include updated-stamp.texi.
54637         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54638         (updated-stamp.texi): New rule.
54639         (gnulib.info): Depend on it.
54640         * doc/.gitignore: Add updated-stamp.texi.
54641         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54642
54643 2008-06-19  Bruno Haible  <bruno@clisp.org>
54644
54645         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54646         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54647
54648 2008-06-19  Eric Blake  <ebb9@byu.net>
54649
54650         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54651         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54652         Reported by Stepan Kasal.
54653
54654 2008-06-18  Bruno Haible  <bruno@clisp.org>
54655
54656         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54657         Reported by Eric Blake.
54658
54659 2008-06-18  Eric Blake  <ebb9@byu.net>
54660
54661         Work around cygwin 1.5.25 strsignal bug.
54662         * tests/test-strsignal.c: Allow for const char *.
54663         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54664
54665 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54666
54667         * users.txt: Update URL to article and add author/date
54668         information.
54669
54670 2008-06-17  Bruno Haible  <bruno@clisp.org>
54671
54672         New macro gl_DISABLE_THREADS.
54673         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54674         if the user did not pass --enable-threads or --disable-threads option.
54675         (gl_DISABLE_THREADS): New macro.
54676         Reported by Eric Blake <ebb9@byu.net>.
54677
54678 2008-06-17  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54681         when the macro ignores it.
54682         Based on a patch by Eric Blake <ebb9@byu.net>.
54683
54684 2008-06-17  Bruno Haible  <bruno@clisp.org>
54685
54686         * modules/tls (License): Change to LGPLv2+.
54687         Reported by Eric Blake.
54688
54689 2008-06-17  Eric Blake  <ebb9@byu.net>
54690
54691         Simplify c-stack prerequisites.
54692         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54693         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54694         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54695         check.
54696         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54697         <sys/resource.h>.
54698
54699         Move c-stack test into testsuite.
54700         * modules/c-stack-tests: New file.
54701         * lib/c-stack.c [DEBUG]: Move test program...
54702         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54703         fail test if sigaltstack is lacking.
54704         * tests/test-c-stack.sh: New driver file.
54705
54706 2008-06-16  Eric Blake  <ebb9@byu.net>
54707
54708         Use raise module consistently.
54709         * modules/fatal-signal (Depends-on): Add raise.
54710         * modules/sigprocmask (Depends-on): Likewise.
54711         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54712         * lib/sigprocmask.c (sigprocmask): Likewise.
54713         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54714         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54715
54716         Fix compliance bug in sigpending.
54717         * lib/sigprocmask.c (sigpending): Return pending array via
54718         parameter, not return value.
54719
54720 2008-06-14  Eric Blake  <ebb9@byu.net>
54721
54722         Improve obstack-printf test code.
54723         * tests/test-obstack-printf.c (test_function): Fix comment, and
54724         simplify usage of obstack_* in macros.  Add a test for coverage.
54725         Reported by Bruno Haible.
54726
54727 2008-06-14  Bruno Haible  <bruno@clisp.org>
54728
54729         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54730         array size as a constant, not as a const variable.
54731         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54732         AC_USE_SYSTEM_EXTENSIONS.
54733         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54734         Test whether the obstack_printf function actually exists.
54735         * modules/obstack-printf (Depends-on): Add extensions.
54736         (Include): Remove obstack.h.
54737         * modules/obstack-printf-posix (Depends-on): Add extensions.
54738         (Include): Remove obstack.h.
54739
54740 2008-06-13  Eric Blake  <ebb9@byu.net>
54741
54742         Add obstack-printf and obstack-printf-posix modules.
54743         * modules/obstack-printf: New file.
54744         * modules/obstack-printf-posix: Likewise.
54745         * MODULES.html.sh (Misc): Mention them.
54746         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54747         Likewise.
54748         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54749         Likewise.
54750         * modules/stdio (Makefile.am): Accomodate new modules.
54751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54752         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54753         Declare.
54754         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54755         functions.
54756         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54757         (gl_REPLACE_OBSTACK_PRINTF): New macros
54758         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54759         * tests/test-obstack-printf.c: New file.
54760         * modules/obstack-printf-tests: Likewise.
54761         * modules/obstack-printf-posix-tests: Likewise.
54762
54763 2008-06-11  Bruno Haible  <bruno@clisp.org>
54764
54765         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54766         * lib/open.c: Include errno.h.
54767         (open): Fail when attempting to write to a file that has a trailing
54768         slash.
54769         * tests/test-open.c (main): Test against trailing slash bug.
54770         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54771
54772 2008-06-10  Bruno Haible  <bruno@clisp.org>
54773
54774         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54775         for $? to work inside the trap command, with various /bin/sh-s.
54776         * tests/test-vc-list-files-cvs.sh: Likewise.
54777
54778 2008-06-10  Bruno Haible  <bruno@clisp.org>
54779
54780         * lib/acl-internal.h: Don't include gettext.h here.
54781         * lib/set-mode-acl.c: Include gettext.h here.
54782         * lib/copy-acl.c: Likewise.
54783
54784 2008-06-10  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54787         * lib/wait-process.c (wait_subprocess): Likewise.
54788         * lib/execute.h (execute): Add termsigp argument.
54789         * lib/execute.c (execute): Likewise.
54790         * lib/csharpcomp.c (compile_csharp_using_pnet,
54791         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54792         * lib/csharpexec.c (execute_csharp_using_pnet,
54793         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54794         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54795         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54796         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54797         is_jikes_present): Update.
54798         * lib/javaexec.c (execute_java_class): Update.
54799         * lib/javaversion.c (execute_and_read_line): Update.
54800         * NEWS: Document the changes.
54801         Reported by Eric Blake.
54802
54803 2008-06-10  Eric Blake  <ebb9@byu.net>
54804
54805         Add missing include.
54806         * tests/test-strstr.c (includes): Add <signal.h>.
54807         * tests/test-strcasestr.c (includes): Likewise.
54808         * tests/test-memmem.c (includes): Likewise.
54809
54810 2008-06-10  Bruno Haible  <bruno@clisp.org>
54811
54812         * lib/wait-process.c (wait_subprocess): Add an assertion.
54813
54814 2008-06-10  Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54817
54818 2008-06-10  Bruno Haible  <bruno@clisp.org>
54819
54820         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54821         using alarm().
54822         * tests/test-strcasestr.c (main): Likewise.
54823         * tests/test-strstr.c (main): Likewise.
54824
54825 2008-06-09  Bruno Haible  <bruno@clisp.org>
54826
54827         Work around the Solaris 10 ACE ACLs ABI change.
54828         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54829         declare if ACL_NO_TRIVIAL is present.
54830         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54831         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54832         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54833         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54834         define if ACL_NO_TRIVIAL is present.
54835         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54836         and use the current ABI.
54837         (file_has_acl): Use same #if condition as elsewhere.
54838         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54839         in use, and use the current ABI.
54840         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54841         Reported by Jim Meyering.
54842
54843 2008-06-09  Eric Blake  <ebb9@byu.net>
54844
54845         Work around environments that (stupidly) ignore SIGALRM.
54846         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54847         before using alarm().
54848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54849         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54850         Reported by Ian Beckwith <ianb@erislabs.net>.
54851
54852         Produce autobuild blurb earlier in log.
54853         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54854
54855 2008-06-09  Jim Meyering  <meyering@redhat.com>
54856         and Ondřej Vašík  <ovasik@redhat.com>
54857
54858         utimens.c: correct kernel bug work-around
54859         Ondřej Vašík found that the invalid return value of 280 indicates
54860         failure, not success, and the kernel bug we're trying to work
54861         around affects not just the utimensat call, but also the fallback
54862         futimens call.
54863         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54864         not success.
54865         [HAVE_FUTIMENS]: Use the same work-around, here.
54866
54867 2008-06-09  Jim Meyering  <meyering@redhat.com>
54868
54869         add more guards around definition of ACE_-related code
54870         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54871         ALLOW and ACE_OWNER are also defined.
54872
54873 2008-06-08  Bruno Haible  <bruno@clisp.org>
54874
54875         * lib/acl-internal.h: Add me as co-author.
54876         * lib/file-has-acl.c: Likewise.
54877         * lib/set-mode-acl.c: Likewise.
54878         * lib/copy-acl.c: Likewise.
54879
54880 2008-06-08  Bruno Haible  <bruno@clisp.org>
54881
54882         Add support for AIX ACLs.
54883         * lib/acl-internal.h (acl_nontrivial): New declaration.
54884         * lib/file-has-acl.c (acl_nontrivial): New function.
54885         (file_has_acl): Add implementation using AIX 4 ACL API.
54886         * lib/set-mode-acl.c (qset_acl): Likewise.
54887         * lib/copy-acl.c (qcopy_acl): Likewise.
54888
54889 2008-06-08  Bruno Haible  <bruno@clisp.org>
54890
54891         Add support for HP-UX ACLs.
54892         * lib/acl-internal.h (acl_nontrivial): New declaration.
54893         * lib/file-has-acl.c (acl_nontrivial): New function.
54894         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54895         * lib/set-mode-acl.c (qset_acl): Likewise.
54896         * lib/copy-acl.c (qcopy_acl): Likewise.
54897
54898 2008-06-08  Bruno Haible  <bruno@clisp.org>
54899
54900         Add support for Cygwin ACLs.
54901         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54902         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54903         the chmod_or_fchmod call.
54904         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54905
54906 2008-06-08  Bruno Haible  <bruno@clisp.org>
54907
54908         Fix bug with setuid modes in Solaris 10+ code.
54909         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54910         succeeded, when the mode contains some special bits.
54911
54912 2008-06-08  Bruno Haible  <bruno@clisp.org>
54913
54914         Add support for Solaris 7..10 ACLs.
54915         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54916         declarations.
54917         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54918         functions.
54919         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54920         * lib/set-mode-acl.c (qset_acl): Likewise.
54921         * lib/copy-acl.c (qcopy_acl): Likewise.
54922
54923 2008-06-08  Bruno Haible  <bruno@clisp.org>
54924
54925         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54926         declaration.
54927         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54928         (acl_access_nontrivial): Remove MacOS X case.
54929         (file_has_acl): Use acl_extended_nontrivial.
54930         * lib/copy-acl.c (qcopy_acl): Likewise.
54931
54932 2008-06-08  Bruno Haible  <bruno@clisp.org>
54933
54934         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54935
54936 2008-06-08  Jim Meyering  <meyering@redhat.com>
54937
54938         * modules/acl (Maintainer): Add Bruno Haible.
54939
54940 2008-06-07  Bruno Haible  <bruno@clisp.org>
54941
54942         Improve support for Tru64 ACLs.
54943         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54944         ACL on OSF/1.
54945
54946 2008-06-07  Bruno Haible  <bruno@clisp.org>
54947
54948         Add support for MacOS X ACLs.
54949         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54950         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54951         * lib/set-mode-acl.c (qset_acl): Likewise.
54952         * lib/copy-acl.c (qcopy_acl): Likewise.
54953
54954 2008-06-07  Bruno Haible  <bruno@clisp.org>
54955
54956         Fix memory leak introduced on 2008-05-22.
54957         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54958         use.
54959
54960 2008-06-07  Bruno Haible  <bruno@clisp.org>
54961
54962         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54963         to construct an empty ACL.
54964
54965 2008-06-07  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54968         precisely.
54969         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54970
54971 2008-06-07  Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54974         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54975
54976 2008-06-07  Bruno Haible  <bruno@clisp.org>
54977
54978         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54979         regardless of POSIX.
54980         * doc/posix-functions/_longjmp.texi: Likewise.
54981         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54982         SystemV platform in this case.
54983
54984 2008-06-06  Eric Blake  <ebb9@byu.net>
54985
54986         Document abort() bugs.
54987         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54988
54989         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54990         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54991         sigsetjmp.
54992         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54993         siglongjmp, but only as a macro.
54994         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54995         is obsolete.
54996         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54997
54998         Tweak documentation to cover cygwin argz bugs.
54999         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55000         argz bug fix; no code change needed since no cygwin releases
55001         occurred between the last fix and the bug being tested.
55002         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55003         module and recently fixed cygwin bugs.
55004         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55005         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55006         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55007         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55008         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55009         Likewise.
55010         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55011         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55012         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55013         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55014         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55015         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55016         Likewise.
55017
55018         Avoid gcc warning on cygwin.
55019         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55020         !ACL_NO_TRIVIAL]: Avoid unused variable.
55021
55022 2008-06-05  Eric Blake  <ebb9@byu.net>
55023
55024         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55025         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55026         git-version-gen fails to come up with a version.
55027         Reported by Simon Josefsson.
55028
55029 2008-06-05  Jim Meyering  <meyering@redhat.com>
55030             Paul Eggert  <eggert@cs.ucla.edu>
55031
55032         utimens.c: work around a probable Linux kernel bug
55033         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55034         appears to be a kernel bug that causes utimensat to return 280
55035         instead of 0, indicating success.
55036
55037 2008-06-04  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55040         2008-06-01 commit.
55041
55042 2008-06-04  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55045         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55046         (file_has_acl): Use it. Save errno afterwards.
55047         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55048
55049 2008-06-03  Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55052         draft code. Simplify #ifs.
55053         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55054         Put Solaris code after POSIX-draft code. Fix comments regarding
55055         Solaris 10, HP-UX. Mention Cygwin.
55056         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55057
55058 2008-06-03  Eric Blake  <ebb9@byu.net>
55059
55060         Provide fallback for older kernels.
55061         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55062         Provide runtime fallback if kernel lacks support.
55063         Reported by Mike Frysinger.
55064
55065 2008-06-02  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55068         it exists.
55069
55070 2008-06-02  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55073         * lib/copy-acl.c (qcopy_acl): Update comment.
55074
55075 2008-06-02  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55078         like ACL APIs.
55079
55080 2008-06-02  Bruno Haible  <bruno@clisp.org>
55081
55082         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55083         * tests/test-set-mode-acl.sh: Likewise.
55084         * tests/test-copy-acl.sh: Likewise.
55085         * tests/test-copy-file.sh: Likewise.
55086
55087 2008-06-02  Bruno Haible  <bruno@clisp.org>
55088
55089         * tests/test-file-has-acl.sh: Remove unused code.
55090
55091 2008-06-01  Bruno Haible  <bruno@clisp.org>
55092
55093         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55094         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55095         messages.
55096         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55097
55098 2008-06-01  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55101         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55102         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55103         APIs.
55104         * modules/acl-tests (configure.ac): Remove tests now contained in
55105         m4/acl.m4.
55106
55107 2008-06-02  Jim Meyering  <meyering@redhat.com>
55108
55109         announce-gen: use a better key-server host name
55110         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55111         it may be more consistently reliable.  Suggested by Werner Koch
55112         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55113
55114 2008-06-01  Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55117         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55118
55119 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55120
55121         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55122
55123 2008-06-01  Bruno Haible  <bruno@clisp.org>
55124
55125         New ACL tests.
55126         * tests/test-file-has-acl.sh: New file.
55127         * tests/test-file-has-acl.c: New file.
55128         * tests/test-set-mode-acl.sh: New file.
55129         * tests/test-set-mode-acl.c: New file.
55130         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55131         * tests/test-copy-acl.c: New file.
55132         * modules/acl-tests: New file, based on modules/copy-file-tests.
55133         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55134         (Depends-on): Add acl-tests.
55135         (configure.ac): Remove checks.
55136         (Makefile.am): Don't create test-sameacls program here any more.
55137
55138 2008-06-01  Bruno Haible  <bruno@clisp.org>
55139
55140         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55141         * tests/test-sameacls.c: Include progname.h.
55142         (main): Invoke set_program_name. Portability fixes for MacOS X,
55143         Solaris, HP-UX.
55144
55145 2008-06-01  Bruno Haible  <bruno@clisp.org>
55146
55147         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55148         function.
55149         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55150
55151 2008-06-01  Bruno Haible  <bruno@clisp.org>
55152
55153         * modules/rpmatch (Depends-on): Add strdup.
55154
55155 2008-06-01  Bruno Haible  <bruno@clisp.org>
55156
55157         * lib/pipe.c: Include unistd-safer.h.
55158         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55159         * modules/pipe (Depends-on): Add unistd-safer.
55160
55161 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55162
55163         * modules/autobuild (configure.ac): Call AB_INIT.
55164
55165 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55166
55167         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55168         Suggested by Bruno Haible <bruno@clisp.org>.
55169
55170 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55171
55172         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55173         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55174         <bruno@clisp.org>.
55175
55176 2008-05-29  Eric Blake  <ebb9@byu.net>
55177
55178         Prefer new POSIX 200x interfaces over futimesat.
55179         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55180         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55181         when available.
55182         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55183
55184 2008-05-28  Bruno Haible  <bruno@clisp.org>
55185
55186         * modules/stpcpy (License): Change to LGPLv2+.
55187         Requested by David Lutterkort <dlutter@redhat.com>.
55188
55189 2008-05-27  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55192         current mingw.
55193         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55194
55195 2008-05-27  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/iconv_open (Link): New section, from module 'iconv'.
55198         * modules/striconv (Link): Likewise.
55199         * modules/striconveh (Link): Likewise.
55200         * modules/xstriconv (Link): Likewise.
55201         * modules/unicodeio (Link): Likewise.
55202         * modules/propername (Link): Likewise.
55203         Reported by Jim Meyering.
55204
55205 2008-05-26  Jim Meyering  <meyering@redhat.com>
55206
55207         sha256: do not artificially restrict buffer length to be < 2^32
55208         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55209         uint32_t to size_t.
55210         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55211         to match.
55212
55213         avoid unaligned access errors, e.g., on sparc
55214         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55215         direct access through a possibly-unaligned uint64* pointer.
55216         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55217         direct access through a possibly-unaligned uint32* pointer.
55218         Prompted by this patch from Tom "spot" Callaway:
55219         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55220
55221         sha512.c: fix typo in comment
55222         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55223
55224 2008-05-25  Bruno Haible  <bruno@clisp.org>
55225
55226         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55227         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55228         (Makefile.am): Update lib_SOURCES.
55229
55230 2008-05-25  Bruno Haible  <bruno@clisp.org>
55231
55232         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55233
55234 2008-05-25  Jim Meyering  <meyering@redhat.com>
55235
55236         useless-if-before-free: freed expr may have white-space differences
55237         * build-aux/useless-if-before-free: Recognize cases in which the
55238         freed expression differs from the tested one in embedded white
55239         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55240         $1 was used, so we can't make any regexp shy.  Improved tests now
55241         detect this.
55242
55243         useless-if-before-free: accept white space in the expression.
55244         * build-aux/useless-if-before-free: For now, any white space
55245         in the expression must be identical in the free argument.
55246
55247         useless-if-before-free: efficiency tweak
55248         * build-aux/useless-if-before-free: Make the expression-matching
55249         regexp "shy".
55250         Make the *outer* regexp shy, not the expr-matching one.
55251
55252         update code-in-comment to accept cast of free arg
55253         * build-aux/useless-if-before-free: Update regexp.
55254
55255 2008-05-25  Bruno Haible  <bruno@clisp.org>
55256
55257         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55258         * modules/copy-file-tests (Files, Makefile.am): Update.
55259         * tests/test-copy-file.c (func_test_copy): Update.
55260
55261 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55262
55263         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55264
55265 2008-05-23  Bruno Haible  <bruno@clisp.org>
55266
55267         Improve support for ACLs on OSF/1.
55268         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55269         Remove fallback for unknown flavors of ACLs.
55270
55271 2008-05-22  Bruno Haible  <bruno@clisp.org>
55272
55273         Add support for ACLs on OSF/1.
55274         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55275         replacements.
55276         (acl_free_text): New macro fallback.
55277         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55278         acl_free.
55279         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55280         acl_free_text function. Require AC_C_INLINE.
55281
55282 2008-05-22  Bruno Haible  <bruno@clisp.org>
55283
55284         Make copy_acl work on MacOS X 10.5.
55285         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55286         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55287         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55288         If MODE_INSIDE_ACL, don't assume that every system has the same text
55289         representation for ACLs as FreeBSD.
55290         * lib/copy-acl.c (copy_acl): Add support for platforms with
55291         !MODE_INSIDE_ACL.
55292         * lib/file-has-acl.c (file_has_acl): Likewise.
55293         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55294         FreeBSD, MacOS X, or IRIX, respectively.
55295
55296 2008-05-22  Bruno Haible  <bruno@clisp.org>
55297
55298         * lib/acl.h: Don't include <sys/acl.h>.
55299         (GETACLCNT): Move fallback to lib/acl-internal.h.
55300         * lib/acl-internal.h: Include <sys/acl.h> here.
55301         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55302
55303 2008-05-22  Bruno Haible  <bruno@clisp.org>
55304
55305         Split off copy_acl function to separate file.
55306         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55307         * lib/acl.c (copy_acl): Moved function to separate file.
55308         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55309         * modules/acl (Files): Add lib/copy-acl.c.
55310         (Makefiles.am): Augment lib_SOURCES.
55311
55312 2008-05-22  Bruno Haible  <bruno@clisp.org>
55313
55314         * modules/copy-file-tests: New file.
55315         * tests/test-copy-file.sh: New file.
55316         * tests/test-copy-file.c: New file.
55317         * tests/test-copy-file-sameacls.c: New file.
55318
55319 2008-05-22  Eric Blake  <ebb9@byu.net>
55320
55321         Avoid gcc warning.
55322         * tests/test-memcmp.c (main): Pass NULL indirectly.
55323
55324 2008-05-21  Bruno Haible  <bruno@clisp.org>
55325
55326         Add reference doc about ACLs.
55327         * doc/acl-resources.txt: New file.
55328         * doc/acl-cygwin.txt: New file.
55329
55330 2008-05-21  Bruno Haible  <bruno@clisp.org>
55331
55332         Avoid one more warning from gcc.
55333         * lib/vasnprintf.c (IF_LINT): Update comments.
55334         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55335
55336 2008-05-21  Jim Meyering  <meyering@redhat.com>
55337
55338         avoid a warning from gcc
55339         * lib/vasnprintf.c (IF_LINT): Define.
55340         (scale10_round_decimal_long_double):
55341         Use it to avoid a "may be used uninitialized" warning.
55342         (scale10_round_decimal_double): Likewise.
55343
55344 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55345
55346         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55347         declared.
55348
55349 2008-05-20  Bruno Haible  <bruno@clisp.org>
55350
55351         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55352         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55353
55354 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55355
55356         * modules/memcmp-tests: New file.
55357         * tests/test-memcmp.c: New file.
55358
55359 2008-05-19  Bruno Haible  <bruno@clisp.org>
55360
55361         * modules/propername (Notice, configure.ac): Put quoted "..." into
55362         --keyword option.
55363         * lib/propername.h: Update comments accordingly.
55364         Reported by Eric Blake.
55365
55366 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55367
55368         * modules/getpass-gnu (Depends-on): Add fseeko.
55369
55370 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55371
55372         * modules/base64-tests: New file.
55373
55374 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55375
55376         * lib/base64.c (base64_decode_ctx): If a decode context structure
55377         was passed in use it to ignore newlines.  If a context structure
55378         was _not_ passed in, continue to treat newlines as garbage (this
55379         is the historical behavior).  Formerly base64_decode.
55380         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55381         takes a decode context structure.
55382         * lib/base64.h (base64_decode): Macro for four-argument calls.
55383         (base64_decode_alloc): Likewise.
55384         * lib/base64.c (base64_decode_ctx): If a decode context structure
55385         was passed in use it to ignore newlines.  If a context structure
55386         was _not_ passed in, continue to treat newlines as garbage (this
55387         is the historical behavior).  Formerly base64_decode.
55388         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55389         takes a decode context structure.
55390         * lib/base64.h (base64_decode): Macro for four-argument calls.
55391         (base64_decode_alloc): Likewise.
55392
55393 2008-05-19  Jim Meyering  <meyering@redhat.com>
55394
55395         avoid a warning from gcc
55396         * lib/trim.c (IF_LINT): Define.
55397         (trim2): Use it to avoid a "may be used uninitialized" warning.
55398
55399         Fix doc typo.
55400         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55401
55402 2008-05-19  Bruno Haible  <bruno@clisp.org>
55403
55404         * doc/glibc-functions/getpass.texi: Document limits of other
55405         implementations.
55406
55407 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55408             Bruno Haible <bruno@clisp.org>
55409
55410         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55411
55412 2008-05-18  Bruno Haible  <bruno@clisp.org>
55413
55414         * modules/propername: New file, from GNU gettext.
55415         * lib/propername.h: New file, from GNU gettext.
55416         * lib/propername.c: New file, from GNU gettext.
55417         * MODULES.html.sh (Internationalization functions): Add propername.
55418
55419 2008-05-16  Jim Meyering  <meyering@redhat.com>
55420             Bruno Haible  <bruno@clisp.org>
55421
55422         Avoid some warnings from "gcc -Wshadow".
55423         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55424
55425 2008-05-15  Eric Blake  <ebb9@byu.net>
55426
55427         Extend previous patch to cygwin 1.7.0.
55428         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55429         fast implementation in cygwin >= 1.7.0.
55430         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55432
55433 2008-05-15  Bruno Haible  <bruno@clisp.org>
55434
55435         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55436         implementation in glibc >= 2.9.
55437         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55439
55440 2008-05-15  Bruno Haible  <bruno@clisp.org>
55441
55442         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55443         (Unicode string functions): Add unilbrk/*.
55444         Reported by Karl Berry.
55445
55446 2008-05-15  Eric Blake  <ebb9@byu.net>
55447
55448         Fix violation of <stdbool.h> replacement in regex.
55449         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55450         * lib/regexec.c (re_search_internal): Likewise.
55451         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55452
55453 2008-05-15  Jim Meyering  <meyering@redhat.com>
55454
55455         avoid distracting test output when git or cvs is not found
55456         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55457         * tests/test-vc-list-files-git.sh: Likewise.
55458
55459 2008-05-15  Eric Blake  <ebb9@byu.net>
55460
55461         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55462         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55463         glibc version.
55464         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55465         * doc/posix-functions/strstr.texi (strstr): Likewise.
55466         * lib/str-two-way.h (MAX): Sychronize with glibc.
55467
55468 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55469
55470         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55471         opr.ctx_type.
55472         (calc_first): Initialize constraint field.
55473         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55474         Fix grammar.
55475         (duplicate_node): Merge constraint field for all node types.
55476         (calc_eclosure_iter): Look at constraint field for all node types.
55477         * lib/regex_internal.c (create_cd_newstate): Don't look at
55478         opr.ctx_type.
55479
55480 2008-05-14  Bruno Haible  <bruno@clisp.org>
55481
55482         Help GCC to do better code generation.
55483         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55484         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55485         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55486         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55487         Declare with attribute 'malloc' if supported.
55488
55489 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55490
55491         use "echo STR|wc -c" rather than unportable "expr length STR"
55492         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55493         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55494
55495 2008-05-14  Jim Meyering  <meyering@redhat.com>
55496
55497         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55498         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55499         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55500         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55501         via Collin Lasse.
55502
55503 2008-05-14  Eric Blake  <ebb9@byu.net>
55504
55505         Avoid quadratic growth in gl_LIBSOURCES.
55506         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55507         Suggested by Bruno Haible.
55508
55509         Test xmemdup0.
55510         * modules/xmemdup0-tests: New file.
55511         * tests/test-xmemdup0.c: Likewise.
55512
55513 2008-05-13  Eric Blake  <ebb9@byu.net>
55514
55515         Split xmemdup0 into its own module.
55516         * modules/xmemdup0: New file.
55517         * lib/xmemdup0.h: Likewise.
55518         * lib/xmemdup0.c: Likewise.
55519         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55520         * lib/xalloc.h (xmemdup0): Remove.
55521         * lib/xmalloc.c (xmemdup0): Likewise.
55522
55523 2008-05-13  Eric Blake  <ebb9@byu.net>
55524             Bruno Haible  <bruno@clisp.org>
55525
55526         Reduce number of forks required during autoconf.
55527         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55528         and gl_LIBSOURCES_DIR.
55529         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55530         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55531         m4_syscmd per file.
55532         <m4_foreach_w>: Move...
55533         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55534
55535 2008-05-13  Eric Blake  <ebb9@byu.net>
55536
55537         * gnulib-tool: Fix various comment typos.
55538
55539 2008-05-12  Bruno Haible  <bruno@clisp.org>
55540
55541         Tailor the linebreaking algorithm.
55542         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55543
55544 2008-05-12  Bruno Haible  <bruno@clisp.org>
55545
55546         Update to Unicode 5.0.0.
55547         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55548         LBP_JV, LBP_JT. Redistribute values.
55549         (unilbrk_table): Change size.
55550         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55551         Unicode TR#14 rev. 22.
55552         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55553         LBP_JV, LBP_JT. Redistribute values.
55554         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55555         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55556         Update.
55557         * lib/unilbrk/lbrkprop1.h: Regenerated.
55558         * lib/unilbrk/lbrkprop2.h: Regenerated.
55559         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55560         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55561         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55562         Likewise.
55563         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55564         Likewise.
55565         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55566         result.
55567         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55568         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55569         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55570         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55571         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55572         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55573
55574 2008-05-11  Bruno Haible  <bruno@clisp.org>
55575
55576         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55577
55578 2008-05-11  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55581         * modules/unilbrk/gen-lbrk: New file.
55582
55583 2008-05-11  Bruno Haible  <bruno@clisp.org>
55584
55585         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55586         * m4/sha512.m4 (gl_SHA512): Likewise.
55587
55588 2008-05-11  Jim Meyering  <meyering@redhat.com>
55589
55590         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55591         * modules/crypto/sha256: New file.
55592         * modules/crypto/sha512: Likewise.
55593         * lib/sha256.c: Likewise.
55594         * lib/sha256.h: Likewise.
55595         * lib/sha512.c: Likewise.
55596         * lib/sha512.h: Likewise.
55597         * lib/u64.h: Likewise.
55598         * m4/sha256.m4: Likewise.
55599         * m4/sha512.m4: Likewise.
55600         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55601
55602 2008-05-10  Bruno Haible  <bruno@clisp.org>
55603
55604         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55605         (Input/Output <stdio.h>): Add xprintf.
55606         (Signal handling <signal.h>): Add strsignal.
55607         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55608         (Core language properties): Add func.
55609         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55610         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55611         strings.
55612         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55613         (Input/output): New section.
55614         (File system functions): Add openat-die, stat-macros.
55615         (Networking functions): Add sockets.
55616         (Unicode string functions): Add unictype/*.
55617         (Support for building libraries and executables): Add gperf.
55618         (Support for building documentation): Add agpl-3.0.
55619         (Misc): Add nocrash.
55620
55621 2008-05-10  Bruno Haible  <bruno@clisp.org>
55622
55623         * modules/unictype/gen-ctype: New file.
55624
55625 2008-05-10  Jim Meyering  <meyering@redhat.com>
55626
55627         Make chdir-safer.c more efficient on a system with no symlinks.
55628         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55629         also if ELOOP is zero.  Suggested by Bruno Haible.
55630
55631         Make chdir-safer.c slightly safer.
55632         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55633         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55634
55635         Avoid compile failure on systems without ELOOP (like mingw).
55636         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55637         Reported by Bruno Haible.
55638
55639 2008-05-10  Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55642         (is_utf8_encoding): Use a case-insensitive comparison.
55643         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55644         streq.
55645
55646 2008-05-10  Bruno Haible  <bruno@clisp.org>
55647
55648         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55649         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55650         * lib/unilbrk/ulc-common.h (iconv_string_length,
55651         iconv_string_keeping_offsets): Remove declarations.
55652         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55653         Don't include <iconv.h>, streq.h, xsize.h.
55654         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55655         conversion.
55656         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55657         <iconv.h>, streq.h, xsize.h.
55658         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55659         conversion.
55660         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55661         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55662         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55663         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55664
55665 2008-05-10  Bruno Haible  <bruno@clisp.org>
55666
55667         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55668         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55669
55670         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55671         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55672
55673         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55674         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55675
55676         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55677         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55678
55679         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55680         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55681
55682         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55683         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55684
55685         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55686         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55687
55688         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55689         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55690
55691 2008-05-10  Bruno Haible  <bruno@clisp.org>
55692
55693         Split up 'linebreak' module.
55694         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55695         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55696         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55697         modifications.
55698         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55699         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55700         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55701         lib/linebreak.c.
55702         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55703         lib/linebreak.c.
55704         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55705         lib/linebreak.c.
55706         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55707         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55708         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55709         lib/linebreak.c.
55710         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55711         lib/linebreak.c.
55712         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55713         lib/linebreak.c.
55714         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55715         lib/linebreak.c.
55716         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55717         lib/linebreak.c.
55718         * modules/unilbrk/base: New file.
55719         * modules/unilbrk/tables: New file.
55720         * modules/unilbrk/u8-possible-linebreaks: New file.
55721         * modules/unilbrk/u16-possible-linebreaks: New file.
55722         * modules/unilbrk/u32-possible-linebreaks: New file.
55723         * modules/unilbrk/ulc-common: New file.
55724         * modules/unilbrk/ulc-possible-linebreaks: New file.
55725         * modules/unilbrk/u8-width-linebreaks: New file.
55726         * modules/unilbrk/u16-width-linebreaks: New file.
55727         * modules/unilbrk/u32-width-linebreaks: New file.
55728         * modules/unilbrk/ulc-width-linebreaks: New file.
55729         * lib/linebreak.h: Remove file.
55730         * lib/linebreak.c: Remove file.
55731         * m4/linebreak.m4: Remove file.
55732         * modules/linebreak: Remove file.
55733         * NEWS: Mention the changes.
55734
55735 2008-05-09  Eric Blake  <ebb9@byu.net>
55736
55737         Add xmemdup0.
55738         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55739         implementation.
55740         * lib/xmalloc.c (xmemdup0): New C implementation.
55741
55742 2008-05-08  Bruno Haible  <bruno@clisp.org>
55743
55744         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55745
55746 2008-05-07  Eric Blake  <ebb9@byu.net>
55747
55748         Support cross-compilation of <wctype.h>.
55749         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55750         AC_CACHE_CHECK.
55751
55752 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55753
55754         * build-aux/vc-list-files: Add support for bzr.
55755
55756 2008-05-03  Jim Meyering  <meyering@redhat.com>
55757
55758         avoid failed assertion with tight malloc
55759         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55760
55761 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55762
55763         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55764         are needed from arpa/inet.h.
55765         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55766         Reported by Bruno Haible.
55767
55768 2008-05-02  Jim Meyering  <meyering@redhat.com>
55769
55770         avoid compilation error on FreeBSD 6
55771         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55772
55773 2008-05-01  Jim Meyering  <meyering@redhat.com>
55774
55775         useless-if-before-free: correct --help's exit status description
55776         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55777         for one or more matches, etc.  Reported by Bruno Haible.
55778
55779         vc-list-files: make the stand-alone gnulib test work
55780         * modules/vc-list-files-tests (configure.ac):
55781         Define and AC_SUBST abs_aux_dir.
55782         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55783         $(abs_top_srcdir) to each script and having each of them
55784         duplicate the work of setting PATH, set PATH here, using
55785         the new variable, abs_aux_dir instead.
55786         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55787         * tests/test-vc-list-files-git.sh: Likewise.
55788         Reported by Bruno Haible.
55789
55790 2008-05-01  Bruno Haible  <bruno@clisp.org>
55791
55792         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55793         reallocation. Rename 'done' to 'found_delimiter'.
55794
55795 2008-05-01  Jim Meyering  <meyering@redhat.com>
55796
55797         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55798         * build-aux/vc-list-files: Use `...`, not $(...).
55799
55800 2008-04-30  Jim Meyering  <meyering@redhat.com>
55801
55802         add tests for vc-list-files
55803         * modules/vc-list-files-tests: New module.
55804         * tests/test-vc-list-files-cvs.sh: New file.
55805         * tests/test-vc-list-files-git.sh: New file.
55806
55807         avoid a warning from gcc
55808         * lib/getndelim2.c (IF_LINT): Define.
55809         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55810
55811         vc-list-files: work properly with build-aux/cvsu, too
55812         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55813         to all cvs-based clauses.
55814
55815         vc-list-files: work properly in the CVS+awk case, too
55816         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55817
55818         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55819         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55820         take more than one file argument, so .  Add quotes, just in case $dir
55821         ever contains a shell meta-character.  Prompted by Soren Hansen in
55822         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55823
55824 2008-04-29  Eric Blake  <ebb9@byu.net>
55825
55826         Optimize getndelim2 to use block operations when possible.
55827         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55828         freadseek, and memchr2.
55829         * lib/getndelim2.c (getndelim2): Use them for block reads.
55830
55831 2008-04-29  Bruno Haible  <bruno@clisp.org>
55832
55833         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55834         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55835         * modules/inet_ntop (Depends-on): Add extensions.
55836         * modules/inet_pton (Depends-on): Likewise.
55837         Reported by Simon Josefsson.
55838
55839 2008-04-29  Jim Meyering  <meyering@redhat.com>
55840
55841         When the is more than one match in a block, match all of them.
55842         * build-aux/useless-if-before-free: Iterate through each block
55843         until there are no more matches.
55844
55845         Fix broken useless-if-before-free script.
55846         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55847         the expression to match cast of argument to free-like function.
55848
55849 2008-04-29  Eric Blake  <ebb9@byu.net>
55850
55851         Use new header.
55852         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55853
55854 2008-04-29  Jim Meyering  <meyering@redhat.com>
55855
55856         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55857         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55858         by gnulib to exist and to declare e.g., inet_ntop.
55859         Don't include "inet_ntop.h", now removed.
55860
55861         * m4/arpa_inet_h.m4: Remove trailing blanks.
55862
55863 2008-04-29  Eric Blake  <ebb9@byu.net>
55864
55865         Silence valgrind on safe reads beyond potential array bounds.
55866         * lib/rawmemchr.valgrind: New file.
55867         * lib/strchrnul.valgrind: Likewise.
55868         * modules/rawmemchr (Files): Distribute new file.
55869         * modules/strchrnul (Files): Likewise.
55870         Suggested by Bruno Haible.
55871
55872 2008-04-29  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55875         (inet_ntop, inet_pton): Change portability warning's wording.
55876         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55877         Invoke gl_CHECK_NEXT_HEADERS.
55878         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55879         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55880         set ARPA_INET_H.
55881         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55882         * modules/arpa_inet (Description): No longer only for systems that
55883         lack it.
55884         (Depends-on): Add include_next.
55885         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55886         HAVE_ARPA_INET_H.
55887
55888 2008-04-29  Jim Meyering  <meyering@redhat.com>
55889
55890         * modules/mkdir (License): Re-license as LGPLv2+.
55891
55892 2008-04-29  Bruno Haible  <bruno@clisp.org>
55893
55894         * modules/rawmemchr (Maintainer): Set to Eric.
55895         * modules/strchrnul (Maintainer): Likewise.
55896
55897 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55898
55899         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55900         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55901
55902         * modules/arpa_inet (arpa/inet.h): Use them.
55903
55904 2008-04-28  Eric Blake  <ebb9@byu.net>
55905
55906         Test getndelim2.
55907         * modules/getndelim2-tests: New file.
55908         * tests/test-getndelim2.c: Likewise.
55909         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55910         stream.
55911         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55912
55913         * MODULES.html.sh: Document new module.
55914
55915 2008-04-20  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/c-stack.c (die): Use raise.
55918         * modules/c-stack (Depends-on): Add raise.
55919
55920 2008-04-28  Bruno Haible  <bruno@clisp.org>
55921
55922         Expect rpmatch to be declared.
55923         * lib/yesno.c (rpmatch): Remove declaration.
55924
55925         Declare rpmatch.
55926         * lib/stdlib.in.h (rpmatch): New declaration.
55927         * lib/rpmatch.c: Include <stdlib.h> first.
55928         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55929         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55931         HAVE_RPMATCH.
55932         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55933         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55934         (Include): Set to <stdlib.h>.
55935         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55936         HAVE_RPMATCH.
55937         * NEWS: Document the change.
55938
55939 2008-04-28  Bruno Haible  <bruno@clisp.org>
55940
55941         Change rpmatch to use nl_langinfo when appropriate.
55942         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55943         (N_): New macro.
55944         (localized_pattern): New function/macro.
55945         (try): Remove match, nomatch arguments. Copy the pattern into safe
55946         memory before caching it.
55947         (rpmatch): Use localized_pattern. Add translator comments.
55948         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55949         Suggested by Eric Blake.
55950         * modules/rpmatch (Depends-on): Add stdbool.
55951
55952 2008-04-28  Eric Blake  <ebb9@byu.net>
55953
55954         Add rawmemchr module, matching glibc.
55955         * modules/string (Makefile.am): New indicator.
55956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55957         * lib/string.in.h (rawmemchr): Declare when appropriate.
55958         * modules/rawmemchr: New file.
55959         * m4/rawmemchr.m4: Likewise.
55960         * lib/rawmemchr.c: Likewise.
55961         * modules/rawmemchr-tests: Likewise.
55962         * tests/test-rawmemchr.c: Likewise.
55963         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55964         module.
55965         * modules/strchrnul (Depends-on): Add rawmemchr.
55966         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55967
55968         Whitespace cleanup.
55969         * tests/test-strchrnul.c: Reindent.
55970         * lib/strchrnul.c: Likewise.
55971
55972         Optimize and test strchrnul.
55973         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55974         * modules/strchrnul-tests: New file.
55975         * tests/test-strchrnul.c: Likewise.
55976
55977         Remove intprops dependency.
55978         * modules/memchr (Depends-on): Remove intprops.
55979         * modules/memrchr (Depends-on): Likewise.
55980         * modules/memchr2 (Depends-on): Likewise.
55981         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55982         * lib/memrchr.c (__memrchr): Likewise.
55983         * lib/memrchr2.c (memchr2): Likewise.
55984         Reported by Simon Josefsson.
55985
55986 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55987
55988         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55989         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55990
55991 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55992
55993         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55994
55995         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55996
55997         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55998
55999         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56000         declarations.
56001         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56002
56003         * m4/inet_pton.m4: Don't check for header files.
56004
56005         * m4/inet_ntop.m4: Don't check for header files.
56006
56007 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56008
56009         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56010         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56011         trigger for cygwin).
56012         Reported by Bruno Haible  <bruno@clisp.org>.
56013
56014 2008-04-28  Bruno Haible  <bruno@clisp.org>
56015
56016         * doc/posix-functions/strdup.texi: Mention mingw problem.
56017
56018 2008-04-27  Bruno Haible  <bruno@clisp.org>
56019
56020         * modules/stat-time-tests (Depends-on): Add sleep.
56021         * tests/test-stat-time.c (force_unlink): New function.
56022         (cleanup): Use it.
56023         (test_mtime): Remove the ctime related tests.
56024         (test_ctime): New function, containing the ctime related tests.
56025         (main): Call test_ctime, except on native Windows platforms.
56026
56027 2008-04-27  Bruno Haible  <bruno@clisp.org>
56028
56029         * lib/rpmatch.c (rpmatch): Add some comments.
56030         Reported by James Youngman <jay@gnu.org>.
56031
56032 2008-04-27  Bruno Haible  <bruno@clisp.org>
56033
56034         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56035         quiet NaNs.
56036
56037 2008-04-27  Bruno Haible  <bruno@clisp.org>
56038
56039         Make test-yesno.sh work on mingw.
56040         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56041         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56042         (main): Set stdin to binary mode.
56043         * modules/yesno-tests (Depends-on): Add binary-io.
56044
56045 2008-04-27  Bruno Haible  <bruno@clisp.org>
56046
56047         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56048         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56049         argument that lie outside the IEEE 854 domain.
56050         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56051         (gl_ISFINITE): Use it.
56052         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56053
56054 2008-04-27  Bruno Haible  <bruno@clisp.org>
56055
56056         Allow local renaming in config.h.
56057         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56058
56059 2008-04-27  Bruno Haible  <bruno@clisp.org>
56060
56061         * lib/memchr.c (__memchr): Change type of 'i'.
56062         * lib/memchr2.c (memchr2): Likewise.
56063
56064 2008-04-26  Eric Blake  <ebb9@byu.net>
56065         and Bruno Haible  <bruno@clisp.org>
56066
56067         Optimize and test memrchr.
56068         * modules/memrchr (Depends-on): Add intprops.
56069         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56070         * modules/memrchr-tests: New file.
56071         * tests/test-memrchr.c: New file.
56072
56073 2008-04-26  Bruno Haible  <bruno@clisp.org>
56074
56075         Add tentative support for DragonFly BSD.
56076         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56077         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56078         fp.
56079         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56080         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56081         * lib/fpurge.c (fpurge): Likewise.
56082         * lib/freadable.c (freaadable): Likewise.
56083         * lib/freadahead.c (freadahead): Likewise.
56084         * lib/freading.c (freading): Likewise.
56085         * lib/freadptr.c (freadptr): Likewise.
56086         * lib/freadseek.c (freadptrinc): Likewise.
56087         * lib/fseeko.c (fseeko): Likewise.
56088         * lib/fseterr.c (fseterr): Likewise.
56089         * lib/fwritable.c (fwritable): Likewise.
56090         * lib/fwriting.c (fwriting): Likewise.
56091
56092 2008-04-26  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/stdio-impl.h: New file.
56095         * lib/fbufmode.c: Include stdio-impl.h.
56096         (fbufmode): Use fp_, remove redundant #defines.
56097         * lib/fflush.c: Include stdio-impl.h.
56098         (clear_ungetc_buffer): Remove redundant #defines.
56099         * lib/fpurge.c: Include stdio-impl.h.
56100         (fpurge): Remove redundant #defines.
56101         * lib/freadable.c: Include stdio-impl.h.
56102         (freadable): Remove redundant #defines.
56103         * lib/freadahead.c: Include stdio-impl.h.
56104         (freadahead): Remove redundant #defines.
56105         * lib/freading.c: Include stdio-impl.h.
56106         (freading): Remove redundant #defines.
56107         * lib/freadptr.c: Include stdio-impl.h.
56108         (freadptr): Remove redundant #defines.
56109         * lib/freadseek.c: Include stdio-impl.h.
56110         (freadptrinc): Remove redundant #defines.
56111         * lib/fseeko.c: Include stdio-impl.h.
56112         (rpl_fseeko): Remove redundant #defines.
56113         * lib/fseterr.c: Include stdio-impl.h.
56114         (fseterr): Remove redundant #defines.
56115         * lib/fwritable.c: Include stdio-impl.h.
56116         (fwritable: Remove redundant #defines.
56117         * lib/fwriting.c: Include stdio-impl.h.
56118         (fwriting): Remove redundant #defines.
56119         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56120         * modules/fflush (Files): Likewise.
56121         * modules/fpurge (Files): Likewise.
56122         * modules/freadable (Files): Likewise.
56123         * modules/freadahead (Files): Likewise.
56124         * modules/freading (Files): Likewise.
56125         * modules/freadptr (Files): Likewise.
56126         * modules/freadseek (Files): Likewise.
56127         * modules/fseeko (Files): Likewise.
56128         * modules/fseterr (Files): Likewise.
56129         * modules/fwritable (Files): Likewise.
56130         * modules/fwriting (Files): Likewise.
56131
56132 2008-04-26  Bruno Haible  <bruno@clisp.org>
56133
56134         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56135         restore_seek_optimization, update_fpos_cache): New functions, extracted
56136         from rpl_fflush.
56137         (rpl_fflush): Use them.
56138         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56139         (gl_REPLACE_FFLUSH): Use it.
56140
56141 2008-04-26  Bruno Haible  <bruno@clisp.org>
56142
56143         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56144         on Solaris.
56145         * tests/test-xstrtoimax.sh: Likewise.
56146         * tests/test-xstrtoumax.sh: Likewise.
56147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56148
56149 2008-04-26  Bruno Haible  <bruno@clisp.org>
56150
56151         * modules/memchr-tests: New file.
56152         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56153
56154 2008-04-26  Eric Blake  <ebb9@byu.net>
56155             Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/memchr.c: Include intprops.h.
56158         (__memchr): Optimize parallel detection of matching bytes. Rename local
56159         variables. Add explanatory comments.
56160
56161 2008-04-26  Bruno Haible  <bruno@clisp.org>
56162
56163         Fix module 'memchr', broken since 2000-10-28.
56164         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56165
56166 2008-04-26  Bruno Haible  <bruno@clisp.org>
56167
56168         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56169         comments.
56170
56171 2008-04-25  Eric Blake  <ebb9@byu.net>
56172
56173         Use native fstatat on cygwin 1.7.0.
56174         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56175         first.
56176
56177 2008-04-23  Eric Blake  <ebb9@byu.net>
56178
56179         Improve memchr2 performance.
56180         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56181         NUL bytes.
56182         * modules/memchr2 (Depends-on): Use intprops.h.
56183
56184 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56185
56186         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56187         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56188         <blp@cs.stanford.edu>.
56189
56190 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56191
56192         * lib/arpa_inet.in.h: New file.
56193
56194         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56195         (Makefile.am): Sed in substitute header file.
56196
56197         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56198         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56199
56200         * modules/inet_ntop (configure.ac): Use
56201         gl_ARPA_INET_MODULE_INDICATOR.
56202
56203         * modules/inet_pton (configure.ac): Use
56204         gl_ARPA_INET_MODULE_INDICATOR.
56205
56206 2008-04-22  Jim Meyering  <meyering@redhat.com>
56207
56208         * modules/verify (License): Re-license as LGPLv2+.
56209
56210 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56211
56212         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56213         parameter to void* as per POSIX standard (MinGW uses char*).
56214
56215 2008-04-21  Bruno Haible  <bruno@clisp.org>
56216
56217         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56218         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56219         Define to replacements if REPLACE_ISWCNTRL is 1.
56220         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56221         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56222         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56223         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56224         what it fixes.
56225         * doc/posix-functions/iswalpha.texi: Likewise.
56226         * doc/posix-functions/iswblank.texi: Likewise.
56227         * doc/posix-functions/iswcntrl.texi: Likewise.
56228         * doc/posix-functions/iswdigit.texi: Likewise.
56229         * doc/posix-functions/iswgraph.texi: Likewise.
56230         * doc/posix-functions/iswlower.texi: Likewise.
56231         * doc/posix-functions/iswprint.texi: Likewise.
56232         * doc/posix-functions/iswpunct.texi: Likewise.
56233         * doc/posix-functions/iswspace.texi: Likewise.
56234         * doc/posix-functions/iswupper.texi: Likewise.
56235         * doc/posix-functions/iswxdigit.texi: Likewise.
56236         Reported by Alain Guibert.
56237
56238 2008-04-21  Bruno Haible  <bruno@clisp.org>
56239
56240         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56241         Patch by Alain Guibert.
56242
56243 2008-04-21  Bruno Haible  <bruno@clisp.org>
56244
56245         Fix test failures on mingw.
56246         * tests/test-xstrtol.c (print_no_progname): New function.
56247         (main): Install it in error_print_progname hook.
56248         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56249         * tests/test-xstrtoimax.sh: Likewise.
56250         * tests/test-xstrtoumax.sh: Likewise.
56251
56252 2008-04-21  Bruno Haible  <bruno@clisp.org>
56253
56254         Fix test failure on mingw.
56255         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56256
56257 2008-04-21  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56260         Actually assign a value.
56261
56262 2008-04-20  Bruno Haible  <bruno@clisp.org>
56263
56264         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56265         take 2.
56266         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56267         'canonicalize-lgpl' module is also used.
56268         * lib/canonicalize-lgpl.c: Undo last change.
56269         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56270
56271 2008-04-20  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56274         config.h. Provide _mkdir based fallback for mingw.
56275         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56276         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56277         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56278         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56279         rather than defining mkdir in config.h.
56280         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56281         (gl_SYS_STAT_H_DEFAULTS): New macro.
56282         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56283         HAVE_IO_H any more.
56284         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56285         HAVE_DECL_MKDIR and HAVE_IO_H.
56286
56287 2008-04-20  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/isapipe.c: Port to native Windows platforms.
56290
56291 2008-04-20  Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56294
56295 2008-04-21  Eric Blake  <ebb9@byu.net>
56296
56297         Work around preprocessors that don't handle UINTMAX_MAX.
56298         * lib/memchr2.c (memchr2): Avoid embedded #if.
56299         Reported by Alain Guibert, fix suggested by Bruno Haible.
56300
56301 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56302
56303         * doc/posix-functions/strftime.texi (strftime): Explain better
56304         Windows incompatibility.  Suggested by Micah Cowan
56305         <micah@cowan.name>.
56306
56307 2008-04-20  Bruno Haible  <bruno@clisp.org>
56308
56309         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56310         unistr/u8-mblen.
56311
56312 2008-04-20  Bruno Haible  <bruno@clisp.org>
56313
56314         Fix test failure on platforms with non-GNU iconv.
56315         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56316         (U_TO_U8): Use it, rather than u16_to_u8.
56317         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56318         units at the end of the input string.
56319         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56320
56321 2008-04-20  Bruno Haible  <bruno@clisp.org>
56322
56323         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56324         when the resulting length is 0.
56325         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56326
56327 2008-04-20  Bruno Haible  <bruno@clisp.org>
56328
56329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56330         works.
56331         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56332
56333 2008-04-20  Bruno Haible  <bruno@clisp.org>
56334
56335         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56336         * modules/tsearch-tests (configure.ac): Test for initstate function.
56337
56338 2008-04-20  Bruno Haible  <bruno@clisp.org>
56339
56340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56341         for nlink_t if missing.
56342         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56343
56344 2008-04-19  Bruno Haible  <bruno@clisp.org>
56345
56346         Work around snprintf bug on Linux libc5.
56347         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56349         gl_SNPRINTF_SIZE1.
56350         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56351         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56352         that test failed.
56353         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56354         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56355         * modules/snprintf (Files): Add m4/printf.m4.
56356         * modules/vsnprintf (Files): Likewise.
56357         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56358         * doc/posix-functions/vsnprintf.texi: Likewise.
56359
56360 2008-04-19  Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56363         from 0.0058 to less than 10^-7.
56364
56365 2008-04-19  Bruno Haible  <bruno@clisp.org>
56366
56367         Fix rounding when a precision is given.
56368         * lib/vasnprintf.c (is_borderline): New function.
56369         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56370         9...9x.
56371         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56372         %e, %g.
56373         * tests/test-vasprintf-posix.c (test_function): Likewise.
56374         * tests/test-snprintf-posix.h (test_function): Likewise.
56375         * tests/test-sprintf-posix.h (test_function): Likewise.
56376         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56377         * tests/test-printf-posix.h (test_function): Likewise.
56378         * tests/test-printf-posix.output: Update.
56379         Reported by John Darrington <john@darrington.wattle.id.au> via
56380         Ben Pfaff <blp@cs.stanford.edu>.
56381
56382 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56383
56384         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56385         Suggested by Bruno Haible <bruno@clisp.org>.
56386
56387 2008-04-17  Bruno Haible  <bruno@clisp.org>
56388
56389         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56390         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56391         implementation.
56392         Patch by Bruce Merry <bmerry@gmail.com>.
56393
56394 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56395
56396         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56397         doesn't work under Windows.
56398
56399 2008-04-16  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56402         New macros.
56403         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56404         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56405         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56406         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56407         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56408         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56409         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56410         macros.
56411         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56412         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56413         Northern Sotho, Uighur.
56414
56415 2008-04-16  Bruno Haible  <bruno@clisp.org>
56416
56417         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56418         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56419         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56420         Reported by Daniel Bergström <daniel@octocode.com>.
56421
56422 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56423             Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56426         function.
56427         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56428         New functions, mostly extracted from gl_locale_name_default.
56429         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56430
56431 2008-04-16  Eric Blake  <ebb9@byu.net>
56432
56433         Adjust strtod detection to catch glibc 2.7 bug.
56434         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56435         Reported by John Gatewood Ham.
56436
56437 2008-04-16  Bruno Haible  <bruno@clisp.org>
56438
56439         Add tentative support for Linux libc5.
56440         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56441         * lib/fpurge.c (fpurge): Likewise.
56442         * lib/freadable.c (freadable): Likewise.
56443         * lib/freadahead.c (freadahead): Likewise.
56444         * lib/freading.c (freading): Likewise.
56445         * lib/freadptr.c (freadptr): Likewise.
56446         * lib/freadseek.c (freadptrinc): Likewise.
56447         * lib/fseeko.c (rpl_fseeko): Likewise.
56448         * lib/fseterr.c (fseterr): Likewise.
56449         * lib/fwritable.c (fwritable): Likewise.
56450         * lib/fwriting.c (fwriting): Likewise.
56451         Reported by Alain Guibert <alguibert+bts@free.fr>.
56452
56453 2008-04-15  Bruno Haible  <bruno@clisp.org>
56454
56455         * modules/mathl (configure.ac): Define module indicator.
56456
56457 2008-04-15  Bruno Haible  <bruno@clisp.org>
56458
56459         * lib/logl.c (logl): Remove unused variables.
56460
56461 2008-04-15  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56464         fails.
56465
56466 2008-04-15  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/trim.c (trim2): Fix argument of isspace() macro.
56469
56470 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56471
56472         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56473         to 0.
56474         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56475
56476 2008-04-14  Bruno Haible  <bruno@clisp.org>
56477
56478         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56479         AC_LANG_PROGRAM argument.
56480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56481         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56483         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56484         * m4/math_h.m4 (gl_MATH_H): Likewise.
56485         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56486         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56487         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56488         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56489         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56490         * m4/regex.m4 (gl_REGEX): Likewise.
56491         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56492         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56494         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56495         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56496         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56499
56500 2008-04-14  Jim Meyering  <meyering@redhat.com>
56501
56502         test-strtod: fix typos: s/abs/fabs/
56503         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56504
56505 2008-04-13  Bruno Haible  <bruno@clisp.org>
56506
56507         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56508         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56509         module is also used and while not building the reloc-wrapper.
56510
56511 2008-04-13  Bruno Haible  <bruno@clisp.org>
56512
56513         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56514
56515 2008-04-13  Bruno Haible  <bruno@clisp.org>
56516
56517         Fix AIX compilation failure introduced on 2008-04-02.
56518         * tests/test-frexp.c (exp): Undefine before redefining.
56519         * tests/test-frexpl.c (exp): Likewise.
56520
56521 2008-04-13  Bruno Haible  <bruno@clisp.org>
56522
56523         Work around a HP-UX stdio bug.
56524         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56525         * tests/test-ftello.c (main): Likewise.
56526         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56527         * doc/posix-functions/ftello.texi: Likewise.
56528
56529 2008-04-13  Bruno Haible  <bruno@clisp.org>
56530
56531         Make test-signbit pass on HP-UX/hppa.
56532         * tests/test-signbit.c (minus_zerol): New variable.
56533         (test_signbitl): Use it.
56534
56535 2008-04-13  Bruno Haible  <bruno@clisp.org>
56536
56537         Make truncl work on OSF/1 4.0.
56538         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56539         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56540         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56542         HAVE_DECL_TRUNCL.
56543         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56544         HAVE_DECL_TRUNCL.
56545         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56546
56547 2008-04-13  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56550
56551 2008-04-13  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56554         expression, so as to avoid HP-UX 11 cc compiler bug.
56555
56556 2008-04-13  Bruno Haible  <bruno@clisp.org>
56557
56558         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56559
56560 2008-04-13  Bruno Haible  <bruno@clisp.org>
56561
56562         * lib/git-merge-changelog.c: Remove empty declaration outside of
56563         functions.
56564
56565 2008-04-13  Bruno Haible  <bruno@clisp.org>
56566
56567         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56568
56569 2008-04-13  Bruno Haible  <bruno@clisp.org>
56570
56571         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56572         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56573         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56574         also if it exists but lacks definitions of the SHUT_* macros.
56575         * modules/sys_socket (Description): Update.
56576         Reported by Elbert Pol <e.pol@chello.nl>.
56577
56578 2008-04-13  Bruno Haible  <bruno@clisp.org>
56579
56580         * lib/localcharset.c (OS2): Don't redefine if already defined.
56581         Reported by Elbert Pol <e.pol@chello.nl>.
56582
56583 2008-04-13  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/binary-io.h [__EMX__]: Include <io.h>.
56586         Reported by Elbert Pol <e.pol@chello.nl>.
56587
56588 2008-04-12  Bruno Haible  <bruno@clisp.org>
56589
56590         * lib/fpucw.h: Enable the definitions also for x86_64.
56591         Needed for NetBSD/x86_64.
56592         Reported by Thomas Klausner <tk@giga.or.at>.
56593
56594 2008-04-12  Bruno Haible  <bruno@clisp.org>
56595
56596         * tests/test-strtod.c: Include isnand.h.
56597         (main): Use isnand instead of isnan.
56598         Reported by Jim Meyering.
56599
56600 2008-04-12  Bruno Haible  <bruno@clisp.org>
56601
56602         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56603         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56604
56605 2008-04-12  Jim Meyering  <meyering@redhat.com>
56606
56607         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56608
56609 2008-04-12  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56612         Reported by Elbert Pol <e.pol@chello.nl>.
56613
56614 2008-04-12  Eric Blake  <ebb9@byu.net>
56615
56616         Work around Solaris 10 math.h bug.
56617         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56618         (gl_MATH_H_DEFAULTS): Set up default.
56619         * modules/math (Makefile.am): Replace new indicators.
56620         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56621         * tests/test-math.c (main): Test this.
56622         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56623         * doc/posix-headers/math.texi (math.h): Mention bug.
56624         Reported by Nelson H. F. Beebe and Jim Meyering.
56625
56626 2008-04-11  Bruno Haible  <bruno@clisp.org>
56627
56628         Adapt to future versions of Apple GCC.
56629         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56630         Reported by Peter O'Gorman <peter@pogma.com>.
56631
56632 2008-04-11  Bruno Haible  <bruno@clisp.org>
56633
56634         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56635
56636 2008-04-11  Bruno Haible  <bruno@clisp.org>
56637
56638         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56639
56640         * modules/getaddrinfo-tests (Makefile.am): Define
56641         test_getaddrinfo_LDADD.
56642
56643 2008-04-11  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56646         (init): Fix syntax error.
56647         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56648         is declared.
56649
56650 2008-04-11  Bruno Haible  <bruno@clisp.org>
56651
56652         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56653         * modules/glob (Depends-on): Add stdbool.
56654
56655 2008-04-11  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/trim.c: Include <string.h>.
56658
56659 2008-04-11  Eric Blake  <ebb9@byu.net>
56660
56661         Avoid compile failure on OS/2.
56662         * lib/regex_internal.h (internal_function): Disable optimization
56663         on OS/2 (__EMX__), where it caused compiler error.
56664         Reported by Elbert Pol.
56665
56666 2008-04-11  Bruno Haible  <bruno@clisp.org>
56667
56668         Flush the standard error stream before aborting. Needed on mingw.
56669         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56670         * tests/test-array_list.c (ASSERT): Likewise.
56671         * tests/test-array_oset.c (ASSERT): Likewise.
56672         * tests/test-avltree_list.c (ASSERT): Likewise.
56673         * tests/test-avltree_oset.c (ASSERT): Likewise.
56674         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56675         * tests/test-binary-io.c (ASSERT): Likewise.
56676         * tests/test-byteswap.c (ASSERT): Likewise.
56677         * tests/test-c-ctype.c (ASSERT): Likewise.
56678         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56679         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56680         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56681         * tests/test-c-strstr.c (ASSERT): Likewise.
56682         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56683         * tests/test-canonicalize.c (ASSERT): Likewise.
56684         * tests/test-carray_list.c (ASSERT): Likewise.
56685         * tests/test-ceilf1.c (ASSERT): Likewise.
56686         * tests/test-ceilf2.c (ASSERT): Likewise.
56687         * tests/test-ceill.c (ASSERT): Likewise.
56688         * tests/test-count-one-bits.c (ASSERT): Likewise.
56689         * tests/test-fbufmode.c (ASSERT): Likewise.
56690         * tests/test-fflush2.c (ASSERT): Likewise.
56691         * tests/test-floorf1.c (ASSERT): Likewise.
56692         * tests/test-floorf2.c (ASSERT): Likewise.
56693         * tests/test-floorl.c (ASSERT): Likewise.
56694         * tests/test-fopen.c (ASSERT): Likewise.
56695         * tests/test-fpending.c (ASSERT): Likewise.
56696         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56697         * tests/test-fpurge.c (ASSERT): Likewise.
56698         * tests/test-freadable.c (ASSERT): Likewise.
56699         * tests/test-freadahead.c (ASSERT): Likewise.
56700         * tests/test-freading.c (ASSERT): Likewise.
56701         * tests/test-freadptr.c (ASSERT): Likewise.
56702         * tests/test-freadptr2.c (ASSERT): Likewise.
56703         * tests/test-freadseek.c (ASSERT): Likewise.
56704         * tests/test-freopen.c (ASSERT): Likewise.
56705         * tests/test-frexp.c (ASSERT): Likewise.
56706         * tests/test-frexpl.c (ASSERT): Likewise.
56707         * tests/test-fseek.c (ASSERT): Likewise.
56708         * tests/test-fseeko.c (ASSERT): Likewise.
56709         * tests/test-fstrcmp.c (ASSERT): Likewise.
56710         * tests/test-ftell.c (ASSERT): Likewise.
56711         * tests/test-ftello.c (ASSERT): Likewise.
56712         * tests/test-func.c (ASSERT): Likewise.
56713         * tests/test-fwritable.c (ASSERT): Likewise.
56714         * tests/test-fwriting.c (ASSERT): Likewise.
56715         * tests/test-getdelim.c (ASSERT): Likewise.
56716         * tests/test-getline.c (ASSERT): Likewise.
56717         * tests/test-i-ring.c (ASSERT): Likewise.
56718         * tests/test-iconv-utf.c (ASSERT): Likewise.
56719         * tests/test-iconv.c (ASSERT): Likewise.
56720         * tests/test-isfinite.c (ASSERT): Likewise.
56721         * tests/test-isnand.c (ASSERT): Likewise.
56722         * tests/test-isnanf.c (ASSERT): Likewise.
56723         * tests/test-isnanl.h (ASSERT): Likewise.
56724         * tests/test-ldexpl.c (ASSERT): Likewise.
56725         * tests/test-linked_list.c (ASSERT): Likewise.
56726         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56727         * tests/test-localename.c (ASSERT): Likewise.
56728         * tests/test-lseek.c (ASSERT): Likewise.
56729         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56730         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56731         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56732         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56733         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56734         * tests/test-mbschr.c (ASSERT): Likewise.
56735         * tests/test-mbscspn.c (ASSERT): Likewise.
56736         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56737         * tests/test-mbspbrk.c (ASSERT): Likewise.
56738         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56739         * tests/test-mbsrchr.c (ASSERT): Likewise.
56740         * tests/test-mbsspn.c (ASSERT): Likewise.
56741         * tests/test-mbsstr1.c (ASSERT): Likewise.
56742         * tests/test-mbsstr2.c (ASSERT): Likewise.
56743         * tests/test-mbsstr3.c (ASSERT): Likewise.
56744         * tests/test-memchr2.c (ASSERT): Likewise.
56745         * tests/test-memmem.c (ASSERT): Likewise.
56746         * tests/test-open.c (ASSERT): Likewise.
56747         * tests/test-printf-frexp.c (ASSERT): Likewise.
56748         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56749         * tests/test-printf-posix.c (ASSERT): Likewise.
56750         * tests/test-quotearg.c (ASSERT): Likewise.
56751         * tests/test-rbtree_list.c (ASSERT): Likewise.
56752         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56753         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56754         * tests/test-round1.c (ASSERT): Likewise.
56755         * tests/test-roundf1.c (ASSERT): Likewise.
56756         * tests/test-roundl.c (ASSERT): Likewise.
56757         * tests/test-signbit.c (ASSERT): Likewise.
56758         * tests/test-sleep.c (ASSERT): Likewise.
56759         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56760         * tests/test-snprintf.c (ASSERT): Likewise.
56761         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56762         * tests/test-stat-time.c (ASSERT): Likewise.
56763         * tests/test-strcasestr.c (ASSERT): Likewise.
56764         * tests/test-strerror.c (ASSERT): Likewise.
56765         * tests/test-striconv.c (ASSERT): Likewise.
56766         * tests/test-striconveh.c (ASSERT): Likewise.
56767         * tests/test-striconveha.c (ASSERT): Likewise.
56768         * tests/test-strsignal.c (ASSERT): Likewise.
56769         * tests/test-strstr.c (ASSERT): Likewise.
56770         * tests/test-strtod.c (ASSERT): Likewise.
56771         * tests/test-trunc1.c (ASSERT): Likewise.
56772         * tests/test-trunc2.c (ASSERT): Likewise.
56773         * tests/test-truncf1.c (ASSERT): Likewise.
56774         * tests/test-truncf2.c (ASSERT): Likewise.
56775         * tests/test-truncl.c (ASSERT): Likewise.
56776         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56777         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56778         * tests/test-vasnprintf.c (ASSERT): Likewise.
56779         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56780         * tests/test-vasprintf.c (ASSERT): Likewise.
56781         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56782         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56783         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56784         * tests/test-vsnprintf.c (ASSERT): Likewise.
56785         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56786         * tests/test-wcwidth.c (ASSERT): Likewise.
56787         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56788         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56789         * tests/test-xvasprintf.c (ASSERT): Likewise.
56790         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56791         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56792         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56793         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56794         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56795         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56796         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56797         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56798         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56799         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56800         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56801         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56802         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56803         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56804         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56805         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56806         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56807         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56808         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56809         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56810         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56811         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56812         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56813         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56814         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56815         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56816         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56817         * tests/unictype/test-combining.c (ASSERT): Likewise.
56818         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56819         * tests/unictype/test-digit.c (ASSERT): Likewise.
56820         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56821         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56822         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56823         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56824         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56825         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56826         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56827         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56828         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56829         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56830         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56831         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56832         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56833         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56834         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56835         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56836         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56837         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56838         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56839         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56840         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56841         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56842         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56843         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56844         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56845         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56846         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56847         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56848         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56849         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56850         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56851         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56852         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56853         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56854         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56855         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56856         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56857         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56858         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56859         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56860         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56861         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56862         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56863         Reported by Eric Blake.
56864
56865 2008-04-11  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/wchar.in.h: Tweak comment.
56868
56869 2008-04-11  Bruno Haible  <bruno@clisp.org>
56870
56871         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56872         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56873         gl_COMMON.
56874         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56875
56876 2008-04-11  Bruno Haible  <bruno@clisp.org>
56877
56878         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56879
56880 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56881
56882         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56883         of attempting to use non-existing /dev/*random.  Based on patch
56884         from Adam Strzelecki <ono@java.pl> in
56885         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56886
56887 2008-04-08  Bruno Haible  <bruno@clisp.org>
56888
56889         Add tentative support for emx+gcc.
56890         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56891         * lib/fpurge.c (fpurge): Likewise.
56892         * lib/freadable.c (freadable): Likewise.
56893         * lib/freadahead.c (freadahead): Likewise.
56894         * lib/freading.c (freading): Likewise.
56895         * lib/freadptr.c (freadptr): Likewise.
56896         * lib/freadseek.c (freadptrinc): Likewise.
56897         * lib/fseeko.c (rpl_fseeko): Likewise.
56898         * lib/fseterr.c (fseterr): Likewise.
56899         * lib/fwritable.c (fwritable): Likewise.
56900         * lib/fwriting.c (fwriting): Likewise.
56901         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56902
56903 2008-04-09  Eric Blake  <ebb9@byu.net>
56904
56905         Avoid some autoconf warnings.
56906         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56907         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56908         * m4/afs.m4 (gl_AFS): Likewise.
56909         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56910         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56911         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56912         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56913         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56914         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56915         (AC_CHECK_DECLS_ONCE): Likewise.
56916         Rename file...
56917         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56918         gnulib-tool requires autoconf 2.59 or better.
56919         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56920
56921 2008-04-08  Eric Blake  <ebb9@byu.net>
56922
56923         Use 'git describe --match' if present (added in git 1.5.5).
56924         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56925         if possible.
56926
56927 2008-04-08  Bruno Haible  <bruno@clisp.org>
56928
56929         Add tentative support for OpenServer.
56930         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56931         _ptr, _cnt.
56932         * lib/fpurge.c (fpurge): Likewise.
56933         * lib/freadable.c (freadable): Likewise.
56934         * lib/freadahead.c (freadahead): Likewise.
56935         * lib/freading.c (freading): Likewise.
56936         * lib/freadptr.c (freadptr): Likewise.
56937         * lib/freadseek.c (freadptrinc): Likewise.
56938         * lib/fseeko.c (rpl_fseeko): Likewise.
56939         * lib/fseterr.c (fseterr): Likewise.
56940         * lib/fwritable.c (fwritable): Likewise.
56941         * lib/fwriting.c (fwriting): Likewise.
56942         Reported by Roger Cornelius <rac@tenzing.org> and
56943         Brian K. White <brian@aljex.com>.
56944
56945 2008-04-06  Jim Meyering  <meyering@redhat.com>
56946
56947         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56948
56949 2008-04-06  Bruno Haible  <bruno@clisp.org>
56950
56951         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56952         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56953         * tests/test-printf-posix.sh: Likewise.
56954         * tests/test-vfprintf-posix.sh: Likewise.
56955         * tests/test-vprintf-posix.sh: Likewise.
56956         * tests/test-xprintf-posix.sh: Likewise.
56957
56958 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56959
56960         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56961         hide error from 'ls', needed on OS/2.
56962         Report by Elbert Pol <elbert.pol@gmail.com>.
56963
56964 2008-04-04  Eric Blake  <ebb9@byu.net>
56965
56966         Make test-fseeko.c failures meaningful.
56967         * tests/test-fseeko.c: Print line number on failure.
56968         * tests/test-fseek.c: Likewise.
56969         Reported by Nelson H. F. Beebe.
56970
56971         Improve strtod bug detection check.
56972         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56973         required for Solaris 10.
56974         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56975
56976 2008-04-04  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56979         by m4/setenv.m4.
56980
56981 2008-04-03  Eric Blake  <ebb9@byu.net>
56982
56983         Ensure sane .version contents.
56984         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56985         version string.
56986         * build-aux/git-version-gen: Improve documentation.
56987
56988         Make GNU make output nicer.
56989         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56990         MAKECMDGOALS to enforce message for all command line targets.  Set
56991         srcdir for use in maint.mk.
56992
56993         Another maintainer tweak.
56994         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56995         a target that regenerates version.
56996
56997 2008-04-03  Jim Meyering  <meyering@redhat.com>
56998
56999         vc-list-files: don't cause coreutils "make po-check" failure
57000         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57001
57002 2008-04-03  Eric Blake  <ebb9@byu.net>
57003
57004         Allow VPATH usage of vc-list-files.
57005         * build-aux/vc-list-files (scriptversion): Add timestamp.
57006         (options): Add --help, --version, -C.
57007         (CVS): Support installed cvsu.
57008
57009 2008-04-02  Bruno Haible  <bruno@clisp.org>
57010
57011         Avoid some "statement with no effect" warnings from gcc.
57012         * tests/test-wctype.c (main): Explicitly ignore unused values.
57013         Reported by Jim Meyering.
57014
57015 2008-04-02  Jim Meyering  <meyering@redhat.com>
57016
57017         Avoid some warnings from "gcc -Wshadow".
57018         * tests/test-frexp.c (exp): Define to a different identifier.
57019         * tests/test-frexpl.c (exp): Likewise.
57020
57021 2008-04-03  Jim Meyering  <meyering@redhat.com>
57022
57023         bootstrap: remove dangling *.[ch] symlinks from lib
57024         * build-aux/bootstrap [dangling symlink removal]: Move find's
57025         -depth option to precede all others, to avoid a warning.
57026         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57027
57028 2008-04-02  Bruno Haible  <bruno@clisp.org>
57029
57030         Avoid some warnings from "gcc -Wshadow".
57031         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57032         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57033         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57034         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57035         Reported by Jim Meyering.
57036
57037 2008-04-01  Bruno Haible  <bruno@clisp.org>
57038
57039         Fix test to work on IRIX 6.5 with cc.
57040         * tests/test-math.c (numeric_equal): New function.
57041         (main): Use it.
57042
57043 2008-04-01  Bruno Haible  <bruno@clisp.org>
57044
57045         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57046
57047 2008-04-01  Bruno Haible  <bruno@clisp.org>
57048
57049         * tests/test-vasnprintf-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/vasnprintf-posix-tests (Files): Add tests/nan.h.
57052         (Depends-on): Remove math.
57053
57054         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57055         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57056         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57057         (Depends-on): Remove math.
57058
57059         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57060         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57061         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57062         (Depends-on): Remove math.
57063         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57064         (Depends-on): Remove math.
57065
57066         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57067         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57068         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57069         (Depends-on): Remove math.
57070         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57071         (Depends-on): Remove math.
57072
57073         * tests/test-round1.c: Include nan.h.
57074         (main): Use NaNd instead of NAN.
57075         * modules/round-tests (Files): Add tests/nan.h.
57076
57077         * tests/test-trunc1.c: Include nan.h.
57078         (main): Use NaNd instead of NAN.
57079         * modules/trunc-tests (Files): Add tests/nan.h.
57080
57081         * tests/test-roundf1.c: Include nan.h.
57082         (main): Use NaNf instead of NAN.
57083         * modules/roundf-tests (Files): Add tests/nan.h.
57084
57085         * tests/test-truncf1.c: Include nan.h.
57086         (main): Use NaNf instead of NAN.
57087         * modules/truncf-tests (Files): Add tests/nan.h.
57088
57089         * tests/test-ceilf1.c: Include nan.h.
57090         (main): Use NaNf instead of NAN.
57091         * modules/ceilf-tests (Files): Add tests/nan.h.
57092
57093         * tests/test-floorf1.c: Include nan.h.
57094         (main): Use NaNf instead of NAN.
57095         * modules/floorf-tests (Files): Add tests/nan.h.
57096
57097         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57098         (main): Use NaNf instead of NAN.
57099         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57100
57101         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57102         (main): Use NaNd instead of NAN.
57103         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57104
57105         * tests/test-frexp.c: Include nan.h.
57106         (main): Use NaNd instead of NAN.
57107         * modules/frexp-tests (Files): Add tests/nan.h.
57108
57109         * lib/isnan.c: Don't include <math.h>.
57110         (FUNC): Don't use NAN macro.
57111         * modules/isnand-nolibm (Depends-on): Remove math.
57112         * modules/isnanf-nolibm (Depends-on): Remove math.
57113         * modules/isnanl (Depends-on): Remove math.
57114         * modules/isnanl-nolibm (Depends-on): Remove math.
57115
57116         * tests/nan.h: New file.
57117
57118 2008-04-01  Eric Blake  <ebb9@byu.net>
57119
57120         Fix typos.
57121         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57122         values to be the right type.
57123
57124         For now, cater to gnulib strtod inaccuracies.
57125         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57126         fractional results.  While not as nice from a QoI perspective, it
57127         is a quicker patch than correctly implementing decimal to binary
57128         rounding.
57129
57130 2008-03-31  Eric Blake  <ebb9@byu.net>
57131
57132         Guarantee a definition of NAN.
57133         * lib/math.in.h (NAN): Define if missing.
57134         * tests/test-math.c (main): Test it.
57135         * doc/posix-headers/math.texi (math.h): Document this.
57136         * lib/isnan.c (rpl_isnand): Use it.
57137         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57138         * tests/test-floorf1.c (NaN): Likewise.
57139         * tests/test-frexp.c (NaN): Likewise.
57140         * tests/test-isnand.c (NaN): Likewise.
57141         * tests/test-isnanf.c (NaN): Likewise.
57142         * tests/test-round1.c (NaN): Likewise.
57143         * tests/test-roundf1.c (NaN): Likewise.
57144         * tests/test-snprintf-posix.h (NaN): Likewise.
57145         * tests/test-sprintf-posix.h (NaN): Likewise.
57146         * tests/test-trunc1.c (NaN): Likewise.
57147         * tests/test-truncf1.c (NaN): Likewise.
57148         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57149         * tests/test-vasprintf-posix.c (NaN): Likewise.
57150         * modules/isnand-nolibm (Depends-on): Add math.
57151         * modules/isnanf-nolibm (Depends-on): Likewise.
57152         * modules/isnanl (Depends-on): Likewise.
57153         * modules/isnanl-nolibm (Depends-on): Likewise.
57154         * modules/snprintf-posix-tests (Depends-on): Likewise.
57155         * modules/sprintf-posix-tests (Depends-on): Likewise.
57156         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57157         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57158         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57159         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57160
57161 2008-03-31  Bruno Haible  <bruno@clisp.org>
57162
57163         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57164         * doc/posix-functions/strtod.texi: Likewise.
57165
57166 2008-03-31  Bruno Haible  <bruno@clisp.org>
57167
57168         * tests/test-strtod.c (main): Don't use C99 syntax.
57169
57170 2008-03-31  Bruno Haible  <bruno@clisp.org>
57171
57172         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57173         Reported by Eric Blake.
57174
57175 2008-03-31  Jim Meyering  <meyering@redhat.com>
57176
57177         Don't compare actual signbit return values.
57178         * tests/test-strtod.c (main): Rather, compare only their
57179         zero/non-zero nature.
57180
57181 2008-03-31  Eric Blake  <ebb9@byu.net>
57182
57183         More strtod documentation.
57184         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57185         failures as distinct bugs.
57186
57187 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57188
57189         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57190         Problem reported by Erik Benada in
57191         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57192
57193 2008-03-30  Bruno Haible  <bruno@clisp.org>
57194
57195         * tests/test-strtod.c: Add comments about which assertion fails on which
57196         platform.
57197         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57198
57199 2008-03-30  Eric Blake  <ebb9@byu.net>
57200
57201         Test signbit behavior on zeros.
57202         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57203         (test_signbitd, test_signbitl): Likewise.
57204
57205         More strtod touchups.
57206         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57207         sign of negative underflow, for now.  Use .5, not .1.
57208         * doc/posix-functions/strtod.texi (strtod): Mention these
57209         limitations.
57210         Reported by Jim Meyering.
57211
57212 2008-03-30  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57215         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57216
57217 2008-03-30  Bruno Haible  <bruno@clisp.org>
57218
57219         Avoid failure when attempting to return empty iconv results on some
57220         platforms.
57221         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57222         allocation, don't report ENOMEM when the resulting string is empty.
57223
57224 2008-03-30  Bruno Haible  <bruno@clisp.org>
57225
57226         Fix buffer overrun.
57227         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57228         Don't consider the width for tmp_length. Check count against tmp_length
57229         before doing the padding. Ensure enough allocation during padding.
57230
57231 2008-03-30  Eric Blake  <ebb9@byu.net>
57232
57233         strtod touchups.
57234         * lib/strtod.c (strtod): Avoid compiler warnings.
57235         Reported by Jim Meyering.
57236
57237 2008-03-30  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57240         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57241         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57242         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57243         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57244         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57245         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57246         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57247
57248         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57249         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57250         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57251         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57252         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57253         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57254         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57255         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57256
57257         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57258         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57259         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57260         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57261         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57262         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57263         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57264         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57265
57266         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57267         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57268
57269         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57270         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57271
57272         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57273         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57274
57275         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57277         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57278
57279         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57281         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57282
57283         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57285         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57286
57287         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57289         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57290
57291         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57292         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57293         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57294         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57295         (Depends-on): Add EOVERFLOW.
57296         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57297         (Depends-on): Add EOVERFLOW.
57298         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57299         (Depends-on): Add EOVERFLOW.
57300         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57301         (Depends-on): Add EOVERFLOW.
57302         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57303         (Depends-on): Add EOVERFLOW.
57304         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57305         (Depends-on): Add EOVERFLOW.
57306         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57307         (Depends-on): Add EOVERFLOW.
57308         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57309         (Depends-on): Add EOVERFLOW.
57310
57311         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57313         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57314
57315         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57317         * modules/snprintf (Depends-on): Add EOVERFLOW.
57318
57319         * lib/poll.c (EOVERFLOW): Remove fallback.
57320         * modules/poll (Depends-on): Add EOVERFLOW.
57321
57322         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57323         * modules/getugroups (Depends-on): Add EOVERFLOW.
57324
57325         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57326         * modules/getdelim (Depends-on): Add EOVERFLOW.
57327
57328         * lib/ftell.c (EOVERFLOW): Remove fallback.
57329         * modules/ftell (Depends-on): Add EOVERFLOW.
57330
57331         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57332         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57333         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57334
57335         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57336
57337         * modules/EOVERFLOW-tests: New file.
57338         * tests/test-EOVERFLOW.c: New file.
57339
57340         * modules/EOVERFLOW: New file.
57341         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57342
57343 2008-03-30  Bruno Haible  <bruno@clisp.org>
57344
57345         Fix bug introduced on 2007-06-10.
57346         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57347         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57348
57349 2008-03-30  Bruno Haible  <bruno@clisp.org>
57350
57351         Improve freadseek's efficiency after ungetc.
57352         * lib/freadseek.c: Include freadahead.h.
57353         (freadptrinc): New function, extracted from freadseek.
57354         (freadseek): Use it in a loop. Use freadahead to determine the number
57355         of loop iterations.
57356         * modules/freadseek (Depends-on): Add freadahead.
57357         (configure.ac): Require AC_C_INLINE.
57358
57359 2008-03-30  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/freadseek.c (freadseek): Don't ignore the return value of
57362         freadptr.
57363
57364 2008-03-29  Eric Blake  <ebb9@byu.net>
57365
57366         Add hex float support.
57367         * modules/strtod (Depends-on): Add c-ctype.
57368         (Link): Mention POW_LIB.
57369         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57370         whitespace between 'e' and exponent.
57371         * tests/test-strtod.c (main): Enable hex float tests.
57372         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57373         now provides.
57374
57375         Document various strtod bugs, with some fixes.
57376         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57377         "-0x", "inf", "nan", and hex constants.
57378         * doc/posix-functions/atof.texi (atof): Likewise.
57379         * modules/stdlib (Makefile.am): Support strtod.
57380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57381         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57382         detect additional strtod bugs.
57383         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57384         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57385         bool where appropriate.  Parse 'inf' and 'nan'.
57386         * tests/test-strtod.c: New file.
57387         * modules/strtod (Depends-on): Add stdbool, stdlib.
57388         (configure.ac): Turn on module indicator.
57389         * modules/strtod-tests: New module.
57390
57391 2008-03-29  Eric Blake  <ebb9@byu.net>
57392
57393         Fix ftell on mingw.
57394         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57395         * modules/ftell-tests (Depends-on): Add binary-io.
57396         * modules/ftello-tests (Depends-on): Likewise.
57397         * tests/test-ftell.c (main): Enhance test to cover behavior after
57398         ungetc.  Enforce binary mode.
57399         * tests/test-ftello.c (main): Likewise.
57400
57401         Pass test-freadseek on cygwin.
57402         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57403         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57404         ungetc buffer.
57405
57406         * tests/test-fflush2.c (main): Fix typo.
57407
57408 2008-03-29  Bruno Haible  <bruno@clisp.org>
57409
57410         * tests/test-fflush2.c (main): Temporarily disable the contents of
57411         this test.
57412         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57413         Reported by Eric Blake.
57414
57415 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57416
57417         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57418         (GC_SHA224_DIGEST_SIZE): Add.
57419
57420         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57421         (gc_hash_digest_length): Likewise.
57422         (gc_hash_buffer): Likewise.
57423
57424 2008-03-25  Bruno Haible  <bruno@clisp.org>
57425
57426         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57427         detail which gettext release to use.
57428         Reported by Simon Josefsson.
57429
57430 2008-03-26  Jim Meyering  <meyering@redhat.com>
57431
57432         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57433         * modules/gnumakefile (clean-GNUmakefile): Also, use
57434         test ... && ... || : syntax rather than if-then ... fi.
57435
57436         gnumakefile: Don't double-quote-expand $(VPATH) value.
57437         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57438
57439 2008-03-24  Eric Blake  <ebb9@byu.net>
57440
57441         Alter GNUmakefile to install into top directory.
57442         * modules/maintainer-makefile: Split, and add dependency...
57443         * modules/gnumakefile: to this new module.
57444         * build-aux/GNUmakefile: Move...
57445         * top/GNUmakefile: ...here.
57446         * build-aux/maint.mk: Move...
57447         * top/maint.mk: ...here.
57448         * MODULES.html.sh (Support for maintaining...): Document new
57449         module.
57450
57451 2008-03-23  Bruno Haible  <bruno@clisp.org>
57452
57453         * gnulib-tool: New options --vc-files, --no-vc-files.
57454         (func_usage): Document them.
57455         (vc_files): New variable.
57456         (func_import): Consider vc_files.
57457         (func_create_testdir): Set vc_files to empty.
57458         Suggested by Jim Meyering and Karl Berry.
57459
57460 2008-03-23  Bruno Haible  <bruno@clisp.org>
57461
57462         Fix regex compilation error on HP-UX 11.
57463         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57464         * modules/regex (Files): Add m4/mbstate_t.m4.
57465         Reported by Ton Voon <ton.voon@altinity.com>.
57466
57467 2008-03-23  Bruno Haible  <bruno@clisp.org>
57468
57469         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57470
57471 2008-03-23  Eric Blake  <ebb9@byu.net>
57472             Bruno Haible  <bruno@clisp.org>
57473
57474         Install files from top/ in the destination directory.
57475         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57476         augmentation also for the files from top/.
57477         (func_import, func_create_testdir): Rewrite file names:
57478         top/filename -> filename.
57479
57480 2008-03-23  Bruno Haible  <bruno@clisp.org>
57481
57482         Tweak "gnulib --version" output.
57483         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57484
57485 2008-03-23  Bruno Haible  <bruno@clisp.org>
57486
57487         Tweak "gnulib --version" output.
57488         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57489         rather than contents of ChangeLog, when possible.
57490
57491 2008-03-21  Eric Blake  <ebb9@byu.net>
57492
57493         More --version tweaks.
57494         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57495         date of last ChangeLog entry.
57496
57497 2008-03-21  Jim Meyering  <meyering@redhat.com>
57498
57499         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57500
57501 2008-03-20  Eric Blake  <ebb9@byu.net>
57502
57503         VPATH fix.
57504         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57505
57506 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57507
57508         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57509         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57510
57511 2008-03-20  Eric Blake  <ebb9@byu.net>
57512
57513         Sync GNUmakefile with coreutils.
57514         * build-aux/GNUmakefile (have-Makefile): Rename...
57515         (_have-Makefile): ...to this, for namespace consideration.
57516         (GNUmakefile.cfg): Include, if present.
57517         (_autoreconf): Define a default.
57518         (_is-dist-target): New rule for rebuilds to pick up intra-release
57519         version.
57520         (maint-cfg.mk): Rename...
57521         (cfg.mk): ...to this.
57522
57523 2008-03-18  Jim Meyering  <meyering@redhat.com>
57524
57525         New script and module: mktempd
57526         * MODULES.html.sh (maint+release support): Add mktempd.
57527         * build-aux/mktempd: New file.
57528         * modules/mktempd: New file.
57529
57530 2008-03-15  Jim Meyering  <meyering@redhat.com>
57531
57532         Undo last change.
57533         * lib/sha1.c, lib/md5.c: 63 != ~63.
57534         Reported by Andreas Schwab.
57535
57536         sha1.c, md5.c: Hoist a redundant expression.
57537         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57538         "ctx->buflen" only once, before calling *_process_block.
57539         * lib/md5.c (md5_process_bytes): Likewise.
57540
57541 2008-03-14  Eric Blake  <ebb9@byu.net>
57542
57543         Bump copyright year in files generated by gnulib-tool.
57544         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57545         gnulib-tool, rather than hard-coding it.
57546
57547         Fix 'gnulib-tool --version' output to work with git.
57548         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57549         (startup): ...here.
57550         (func_version): Use it to invoke git-version-gen, rather than
57551         relying on CVS keyword expansion.  Modernize wording.
57552         (cvsdatestamp, last_checkin_date, version): Kill unused
57553         variables.
57554
57555 2008-03-12  Jim Meyering  <meyering@redhat.com>
57556
57557         Recognize optional cast of the argument to free.
57558         * build-aux/useless-if-before-free: Update regexps.
57559
57560         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57561
57562 2008-03-11  Bruno Haible  <bruno@clisp.org>
57563
57564         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57565         by a single package.
57566         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57567         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57568         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57569         Reported by Sam Steingold <sds@gnu.org>.
57570
57571 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57572
57573         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57574         repositories.
57575
57576 2008-03-11  Bruno Haible  <bruno@clisp.org>
57577
57578         Avoid conflicts between local macro definitions.
57579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57580         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57581
57582 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57583             Bruno Haible  <bruno@clisp.org>
57584
57585         Make va_copy work with some version of xlc on AIX 5.1.
57586         * lib/stdarg.in.h: New file.
57587         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57588         On AIX, use a <stdarg.h> file substitute.
57589         * modules/stdarg (Files): Add lib/stdarg.in.h.
57590         (Depends-on): Add include_next.
57591         (Makefile.am): Build a stdarg.h substitute if requested.
57592         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57593
57594 2008-03-10  Bruno Haible  <bruno@clisp.org>
57595
57596         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57597         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57598         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57599
57600 2008-03-10  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/stdlib (Depends-on): Add include_next, remove
57603         absolute-header.
57604
57605 2008-03-09  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/freadahead.h (freadahead): Document more precisely.
57608         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57609         the sum of both buffer sizes.
57610         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57611         * NEWS: Document the change.
57612
57613 2008-03-09  Bruno Haible  <bruno@clisp.org>
57614
57615         Extend freadptr to return also the buffer size.
57616         * lib/freadptr.h (freadptr): Add sizep argument.
57617         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57618         (freadptr): Add sizep argument. Determine buffer size like freadahead
57619         does.
57620         * tests/test-freadptr.c: Don't include freadahead.h.
57621         (main): Adapt for new calling convention of freadptr.
57622         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57623         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57624         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57625         tests/test-freadptr2.sh.
57626         (Depends): Remove freadahead.
57627         (TESTS): Add test-freadptr2.sh.
57628         (check_PROGRAMS): Add test-freadptr2.
57629
57630 2008-03-09  Bruno Haible  <bruno@clisp.org>
57631
57632         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57633         Report and solution by Simon Josefsson.
57634
57635 2008-03-06  Bruno Haible  <bruno@clisp.org>
57636
57637         Make fflush after ungetc work on BSD platforms.
57638         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57639         * tests/test-fflush2.c: New file.
57640         * tests/test-fflush2.sh: New file.
57641         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57642         tests/test-fflush2.c.
57643         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57644         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57645
57646 2008-03-06  Eric Blake  <ebb9@byu.net>
57647
57648         Likewise for ftello.
57649         * modules/ftello (Dependencies): Add extensions.
57650         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57651
57652 2008-03-06  Bruno Haible  <bruno@clisp.org>
57653
57654         * modules/fseeko (Dependencies): Add extensions.
57655         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57656         Needed on glibc systems.
57657
57658 2008-03-06  Bruno Haible  <bruno@clisp.org>
57659
57660         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57661         email address.
57662         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57663
57664 2008-03-06  Bruno Haible  <bruno@clisp.org>
57665
57666         * users.txt: Add libgnupdf.
57667
57668 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57669
57670         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57671         (Header File Substitutes, Function Substitutes,
57672         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57673         (Build robot for gnulib): Fix typo.
57674
57675 2008-03-06  Bruno Haible  <bruno@clisp.org>
57676
57677         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57678         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57679
57680 2008-03-06  Bruno Haible  <bruno@clisp.org>
57681
57682         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57683         * doc/gnulib.texi: Include it.
57684
57685 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57686
57687         * modules/func (License): Change license to unlimited; there was
57688         no LGPL parts in the module anyway.
57689
57690 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57691
57692         * modules/__func__: Renamed to modules/func.
57693         * modules/__func__-tests: Renamed to modules/func-tests.
57694         * tests/test-__func__.c: Renamed to tests/test-func.c.
57695         * m4/__func__.m4: Renamed to m4/func.m4.
57696         * doc/gnulib.texi (__func__): Section renamed to func.
57697         Suggested by Eric Blake <ebb9@byu.net>.
57698
57699 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57700
57701         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57702         about __func__.  Make example self-contained.  Suggested by Eric
57703         Blake <ebb9@byu.net>.
57704
57705         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57706         Suggested by Eric Blake <ebb9@byu.net>.
57707
57708 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57709
57710         * modules/__func__: New file.
57711         * modules/__func__-tests: New file.
57712         * tests/test-__func__.c: New file.
57713         * m4/__func__.m4: New file.
57714         * doc/gnulib.texi (__func__): Document __func__ module.
57715
57716 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57717
57718         * modules/byteswap (License): Re-license as LGPLv2+.
57719
57720 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57721
57722         * doc/Makefile: Add pdf target.
57723
57724 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57725
57726         * modules/inline (License): Use 'unlimited', since there are only
57727         *.m4 files in this module.
57728
57729 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57730             Bruno Haible  <bruno@clisp.org>
57731
57732         Add support for HP C 7.1 on OpenVMS 8.3.
57733         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57734
57735 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57736
57737         Update VMS specifics.
57738         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57739
57740 2008-03-02  Jim Meyering  <meyering@redhat.com>
57741
57742         Remove the last dependency on the "free" module.
57743         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57744         Reported by Bob Proulx.
57745
57746         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57747
57748         Remove useless "if" tests before free.  Deprecate "free" module.
57749         * doc/posix-functions/free.texi: Mention that this
57750         module is no longer useful.
57751         * modules/free (Notice): Say this module is obsolete.
57752         * modules/readutmp (Depends-on): Remove free.
57753         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57754         * lib/putenv.c (putenv): Likewise.
57755         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57756         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57757         * tests/test-c-strcasestr.c (main): Likewise.
57758         * tests/test-c-strstr.c (main): Likewise.
57759         * tests/test-mbscasestr1.c (main): Likewise.
57760         * tests/test-mbscasestr2.c (main): Likewise.
57761         * tests/test-mbsstr1.c (main): Likewise.
57762         * tests/test-mbsstr2.c (main): Likewise.
57763         * tests/test-memmem.c (main): Likewise.
57764         * tests/test-strcasestr.c (main): Likewise.
57765         * tests/test-striconv.c (main): Likewise.
57766         * tests/test-striconveh.c (main): Likewise.
57767         * tests/test-striconveha.c (main): Likewise.
57768         * tests/test-strstr.c (main): Likewise.
57769
57770         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57771
57772         bootstrap: sync from coreutils again
57773         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57774
57775 2008-03-01  Jim Meyering  <meyering@redhat.com>
57776
57777         bootstrap: sync from coreutils
57778         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57779         also when the target doesn't exist.
57780
57781 2008-03-01  Eric Blake  <ebb9@byu.net>
57782
57783         Fix bugs in last patch.
57784         * lib/memchr2.c (memchr2): Fix typo.
57785         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57786         extension.
57787         Reported by Bruce Korb.
57788
57789         New module 'memchr2'.
57790         * modules/memchr2: New file.
57791         * modules/memchr2-tests: Likewise.
57792         * lib/memchr2.h: Likewise.
57793         * lib/memchr2.c: Likewise, based on memchr.c.
57794         * tests/test-memchr2.c: New test.
57795         * MODULES.html.sh (String handling): Add memchr2.
57796
57797 2008-02-29  Bruno Haible  <bruno@clisp.org>
57798
57799         * modules/freadseek-tests: New file.
57800         * tests/test-freadseek.sh: New file.
57801         * tests/test-freadseek.c: New file.
57802
57803         New module 'freadseek'.
57804         * modules/freadseek: New file.
57805         * lib/freadseek.h: New file.
57806         * lib/freadseek.c: New file.
57807         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57808
57809 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57810
57811         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57812         wydawca.
57813
57814         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57815         program_invocation_name and program_invocation_short_name are
57816         present.
57817
57818 2008-02-28  Bruno Haible  <bruno@clisp.org>
57819
57820         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57821         * tests/test-freadptr.sh: Also test non-seekable stdin.
57822
57823 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57824
57825         * build-aux/bootstrap (source_base, m4_base)
57826         (doc_base, tests_base): New variables.
57827         (gnulib_tool_options): Do not hardcode base directories, use
57828         the above variables instead.
57829
57830 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57831
57832         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57833
57834 2008-02-28  Bruno Haible  <bruno@clisp.org>
57835
57836         * modules/freadptr-tests: New file.
57837         * tests/test-freadptr.sh: New file.
57838         * tests/test-freadptr.c: New file.
57839
57840         New module 'freadptr'.
57841         * modules/freadptr: New file.
57842         * lib/freadptr.h: New file.
57843         * lib/freadptr.c: New file.
57844         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57845
57846 2008-02-26  Karl Berry  <karl@freefriends.org>
57847
57848         Sync from Libtool:
57849         * libltdl/argz.c (argz_add, argz_count): New functions.
57850         * libltdl/argz.in.h: Declare them.
57851         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57852
57853 2008-02-22  Bruno Haible  <bruno@clisp.org>
57854
57855         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57856         is a pointer type.  Needed for HP-UX 10.
57857         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57858         * doc/posix-functions/gmtime_r.texi: Likewise.
57859         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57860
57861 2008-02-24  Bruno Haible  <bruno@clisp.org>
57862
57863         * modules/environ-tests: New file.
57864         * tests/test-environ.c: New file.
57865
57866         New module 'environ'.
57867         * modules/environ: New file.
57868         * lib/unistd.in.h (environ): New declaration.
57869         * m4/environ.m4: New file.
57870         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57871         after use.
57872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57873         HAVE_DECL_ENVIRON.
57874         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57875         HAVE_DECL_ENVIRON.
57876         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57877         wrong claim that 'environ' is missing on some systems.
57878         * modules/execute (Depends-on): Add environ.
57879         * lib/execute.c (environ): Remove fallback declaration.
57880         * modules/pipe (Depends-on): Add environ.
57881         * lib/pipe.c (environ): Remove fallback declaration.
57882         * modules/setenv (Depends-on): Add environ.
57883         * lib/setenv.c (environ): Remove fallback declaration.
57884         * modules/unsetenv (Depends-on): Add environ.
57885         * lib/unsetenv.c (environ): Remove fallback declaration.
57886         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57887         m4/environ.m4.
57888         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57889         (gl_PREREQ_UNSETENV): Likewise.
57890
57891 2008-02-24  Bruno Haible  <bruno@clisp.org>
57892
57893         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57894
57895 2008-02-20  Bob Proulx  <bob@proulx.com>
57896
57897         Enable use of older two part flavor 'git describe'.
57898         * build-aux/git-version-gen: If using the older two part flavor of
57899         git version then recreate the third part now present in the
57900         newer three part flavor of git describe.
57901
57902 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57903
57904         * lib/fts.c (fts_build): Typo correction to comment.
57905
57906 2008-02-17  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57909         generating no-op conflicts.
57910
57911 2008-02-17  Bruno Haible  <bruno@clisp.org>
57912
57913         Speed up by 10%.
57914         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57915         result_entries, rather than an index-based loop.
57916
57917 2008-02-17  Bruno Haible  <bruno@clisp.org>
57918
57919         Speed up by 25%.
57920         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57921         'hashcode_cached'.
57922         (entry_create): New function.
57923         (entry_hashcode): Use the cached hashcode if possible.
57924         (read_changelog_file, try_split_merged_entry): Use entry_create.
57925
57926 2008-02-17  Bruno Haible  <bruno@clisp.org>
57927
57928         Speed up from O(n^2) to O(n) for long ChangeLog files.
57929         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57930         (read_changelog_file): Change implementation of entries_reversed list
57931         to rbtreehash.
57932         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57933
57934 2008-02-17  Bruno Haible  <bruno@clisp.org>
57935
57936         New option --split-merged-entry.
57937         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57938         (find_paragraph_end, try_split_merged_entry): New functions.
57939         (long_options): Add option --split-merged-entry.
57940         (usage): Document option --split-merged-entry.
57941         (main): Implement option --split-merged-entry.
57942         Reported by Eric Blake.
57943
57944 2008-02-17  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/git-merge-changelog.c: Include c-strstr.h.
57947         (main): Support the "git pull --rebase" situation.
57948         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57949         Reported by Eric Blake.
57950
57951 2008-02-16  Eric Blake  <ebb9@byu.net>
57952
57953         Avoid doubling \ in common case of "c-maybe" quoting style.
57954         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57955         eliding outer quotes.
57956         * lib/quotearg.h: Document this.
57957         * tests/test-quotearg.c (result_strings, inputs, results_g)
57958         (flag_results, locale_results): Test it by adding a new string to
57959         each test group.
57960         (compare_strings): Test new string.
57961
57962 2008-02-13  Eric Blake  <ebb9@byu.net>
57963
57964         Avoid trigraph quoting in default output.
57965         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57966         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57967         unless explicitly requested.
57968         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57969
57970 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57971
57972         Don't rely on signed integer overflowing to negative value.
57973         * lib/getugroups.c (getugroups): Include <limits.h>.
57974         Instead, compare against INT_MAX, and increment only if the test passes.
57975
57976 2008-02-13  Jim Meyering  <meyering@redhat.com>
57977         and Eric Blake  <ebb9@byu.net>
57978
57979         Avoid shadowing warning and compile errors on Linux.
57980         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57981         forwarding macros on Linux.
57982         (dcgettext): Define a stub, for Linux.
57983         (results_g, main): Avoid warnings.
57984
57985 2008-02-12  Eric Blake  <ebb9@byu.net>
57986
57987         Silence warning in last patch.
57988         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57989
57990         Quotearg part 4: add tests, fix c-maybe colon quoting.
57991         * lib/quotearg.h: Improve documentation.
57992         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57993         escapes when adding outer quotes.  When quoting trigraphs, use
57994         valid C notation.  When quoting NUL, omit extra characters if next
57995         character is not digit.  Alter prototype.
57996         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57997         callers.
57998         * modules/quotearg-tests: New module.
57999         * tests/test-quotearg.c: New test.
58000
58001 2008-02-07  Eric Blake  <ebb9@byu.net>
58002
58003         Quotearg part 3: add flag to control outer quote elision.
58004         * lib/quotearg.h (c_maybe_quoting_style): New style.
58005         (enum quoting_flags): Better documentation of flags.
58006         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58007         c-maybe style.
58008         (quotearg_buffer_restyled): Handle new flag to elide outer
58009         quotes.
58010
58011         Quotearg part 2: add flag that can control NUL elision.
58012         * lib/quotearg.h (set_quoting_flags): New prototype.
58013         * lib/quotearg.c (struct quoting_options): Add flag field.
58014         (set_quoting_flags): New function.
58015         (quotearg_buffer_restyled): Add flags parameter.
58016         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58017         (quotearg_n_options): Set the flag, since length cannot be
58018         returned.
58019         (quoting_options_from_style): Default flags correctly.
58020
58021         Quotearg part 1: more wrappers, restore quotearg_char state.
58022         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58023         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58024         (quotearg_colon_mem): New wrappers.
58025         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58026         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58027         functions.
58028         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58029         (quotearg_colon_mem): New functions.
58030
58031 2008-02-11  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58034         library in the current directory: it does not work with parallel make.
58035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58036
58037 2008-02-11  Bruno Haible  <bruno@clisp.org>
58038
58039         * .gitattributes: New file.
58040
58041 2008-02-11  Jim Meyering  <meyering@redhat.com>
58042
58043         useless-if-before-free: Fix reversed exit values.
58044         * build-aux/useless-if-before-free: Use correct values
58045         for EXIT_MATCH and EXIT_NO_MATCH.
58046
58047         * build-aux/useless-if-before-free: Close stdout carefully.
58048
58049 2008-02-10  Bruno Haible  <bruno@clisp.org>
58050
58051         New module 'git-merge-changelog'.
58052         * modules/git-merge-changelog: New file.
58053         * lib/git-merge-changelog.c: New file.
58054
58055 2008-02-10  Jim Meyering  <meyering@redhat.com>
58056
58057         useless-if-before-free: New option: --list (-l).
58058
58059         useless-if-before-free: Don't exit immediately upon open failure.
58060         * build-aux/useless-if-before-free: Exit 2 for errors.
58061         Upon failure to open a file, don't exit immediately.
58062         Rather, just warn and continue with any remaining files.
58063
58064 2008-02-10  Bruno Haible  <bruno@clisp.org>
58065
58066         New abstract list operation 'node_set_value'.
58067         * lib/gl_list.h (gl_list_node_set_value): New function.
58068         (struct gl_list_implementation): New field node_set_value.
58069         * lib/gl_list.c (gl_list_node_set_value): New function.
58070         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58071         (gl_array_list_implementation): Update.
58072         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58073         (gl_carray_list_implementation): Update.
58074         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58075         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58076         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58077         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58078         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58079         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58080         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58081         Update.
58082         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58083         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58084         (gl_sublist_list_implementation): Update.
58085
58086 2008-02-10  Bruno Haible  <bruno@clisp.org>
58087
58088         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58089         Needed when ELEMENT is #defined to 'some_type *'.
58090
58091 2008-02-10  Jim Meyering  <meyering@redhat.com>
58092
58093         New script and module: useless-if-before-free
58094         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58095         * build-aux/useless-if-before-free: New file.
58096         * modules/useless-if-before-free: New file.
58097
58098         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58099
58100         xstrtol_error: Fix typo.
58101         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58102         s/exit_failure/exit_status/.
58103
58104 2008-02-09  Jim Meyering  <meyering@redhat.com>
58105
58106         New script and module: gitlog-to-changelog
58107         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58108         * modules/gitlog-to-changelog: New file.
58109         * build-aux/gitlog-to-changelog: New file.
58110
58111 2008-02-08  Jim Meyering  <meyering@redhat.com>
58112
58113         Avoid two "parameter unused" warnings.
58114         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58115         Mark "st" as used.
58116
58117         Use "git COMMAND", not "git-COMMAND".
58118         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58119         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58120         * build-aux/git-version-gen: Use "git status", not "git-status".
58121
58122 2008-02-07  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58125         Avoids a crash on Windows Vista.
58126         Reported by Adam Strzelecki <ono@java.pl> via
58127         Simon Josefsson <simon@josefsson.org>.
58128
58129 2008-02-06  Bruno Haible  <bruno@clisp.org>
58130
58131         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58132         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58133         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58135         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58137         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58138         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58143         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58146         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58147         left-adjust flag.
58148         * tests/test-snprintf-posix.h (test_function): Likewise.
58149         * tests/test-sprintf-posix.h (test_function): Likewise.
58150         * tests/test-vasprintf-posix.c (test_function): Likewise.
58151         * doc/posix-functions/fprintf.texi: Update.
58152         * doc/posix-functions/printf.texi: Update.
58153         * doc/posix-functions/snprintf.texi: Update.
58154         * doc/posix-functions/sprintf.texi: Update.
58155         * doc/posix-functions/vfprintf.texi: Update.
58156         * doc/posix-functions/vprintf.texi: Update.
58157         * doc/posix-functions/vsnprintf.texi: Update.
58158         * doc/posix-functions/vsprintf.texi: Update.
58159         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58160
58161 2008-02-06  Bruno Haible  <bruno@clisp.org>
58162
58163         Fix bug introduced on 2008-01-26.
58164         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58165
58166 2008-02-06  Bruno Haible  <bruno@clisp.org>
58167
58168         Fix bug introduced on 2007-06-10.
58169         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58170         !NEED_PRINTF_FLAG_ZERO.
58171
58172 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58173
58174         getloadavg: use libperfstat on AIX5
58175         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58176
58177 2008-02-03  Bruno Haible  <bruno@clisp.org>
58178
58179         * lib/diffseq.h: Add comments about required #includes.
58180         Reported by Michael Biggs <gnulib@doubleplum.net>.
58181
58182 2008-02-01  Bruno Haible  <bruno@clisp.org>
58183
58184         * users.txt: Add gnuit.
58185
58186 2008-01-31  Bruno Haible  <bruno@clisp.org>
58187
58188         * lib/md4.c (set_uint32): Mark as inline.
58189         * lib/md5.c (set_uint32): Likewise.
58190         * lib/sha1.c (set_uint32): Likewise.
58191         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58192         * m4/md5.m4 (gl_MD5): Likewise.
58193         * m4/sha1.m4 (gl_SHA1): Likewise.
58194
58195 2008-01-31  Jim Meyering  <meyering@redhat.com>
58196
58197         Use "sizeof VAR", rather than a literal "4".
58198         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58199         * lib/md4.c (md4_read_ctx): Likewise.
58200         * lib/sha1.c (sha1_read_ctx): Likewise.
58201
58202 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58203
58204         * tests/test-sha1.c: New file, based on test-md5.c.
58205
58206         * modules/crypto/sha1-tests: New file.
58207
58208 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58209
58210         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58211
58212 2008-01-31  Jim Meyering  <meyering@redhat.com>
58213
58214         Prefer "sizeof v" over the equivalent "4".
58215         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58216         * lib/md5.c (set_uint32): Likewise.
58217         * lib/sha1.c (set_uint32): Likewise.
58218
58219 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58220
58221         * lib/sha1.c (set_uint32): Mark function as static.
58222
58223 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58224
58225         md2: clarify comments to say that alignment is not required.
58226         * lib/md2.h: Remove warning about alignment in comment.
58227         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58228         never been required.
58229
58230 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58231
58232         md4: adapt alignment constraint fix from sha1.
58233         * lib/md4.c (set_uint32): New function, from sha1.c
58234         (md4_read_ctx): Use it.
58235         (md4_finish_ctx): Doc fix.
58236         * lib/md4.h: Doc fix.
58237
58238 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58239
58240         md5: adapt alignment constraint fix from sha1.
58241         * lib/md5.c (set_uint32): New function, from sha1.c
58242         (md5_read_ctx): Use it.
58243         (md5_finish_ctx): Doc fix.
58244         * lib/md5.h: Doc fix.
58245
58246 2008-01-30  Peter Palfrader  <weasel@debian.org>
58247
58248         sha1: remove the result buffer alignment constraint
58249         * lib/sha1.c (set_uint32): New function.
58250         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58251         constraint.
58252         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58253         * lib/sha1.h: Likewise.
58254
58255 2008-01-30  Andreas Schwab  <schwab@suse.de>
58256             Bruno Haible  <bruno@clisp.org>
58257
58258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58259         correct definition of LDBL_MIN_EXP.
58260
58261 2008-01-30  Karl Berry  <karl@gnu.org>
58262
58263         * config/srclist-update: try to preserve x bit on updates.
58264         * config/srclistvars.sh: update for karl.
58265
58266 2008-01-29  Jim Meyering  <meyering@redhat.com>
58267
58268         vasnprintf.c: Avoid warning about unused label
58269         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58270         "overflow" label definition and associated code with the
58271         same cpp condition that guards the sole use of that label.
58272
58273 2008-01-26  Bruno Haible  <bruno@clisp.org>
58274
58275         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58276         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58277         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58278         * lib/isnanl-nolibm.h (isnanl): Likewise.
58279         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58280
58281 2008-01-26  Bruno Haible  <bruno@clisp.org>
58282
58283         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58284         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58285
58286 2008-01-26  Bruno Haible  <bruno@clisp.org>
58287
58288         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58289         GCC >= 4.0 built-in.
58290         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58291
58292 2008-01-26  Bruno Haible  <bruno@clisp.org>
58293
58294         Rename isnan, applicable to 'double' only, to isnand.
58295         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58296         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58297         (configure.ac): Update.
58298         (Include): Replace "isnan.h" with "isnand.h".
58299         * m4/isnand.m4: Renamed from m4/isnan.m4.
58300         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58301         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58302         instead of isnan.c.
58303         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58304         instead of HAVE_ISNAN_IN_LIBC.
58305         (isnand): Renamed from isnan.
58306         * lib/isnand.c: New file.
58307         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58308         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58309         (Makefile.am): Update.
58310         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58311         Include isnand.h instead of isnan.h.
58312         (main): Test isnand instead of isnan.
58313         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58314         isnan-nolibm.
58315         * modules/frexp (Depends-on): Likewise.
58316         * modules/frexp-tests (Depends-on): Likewise.
58317         * modules/frexp-nolibm (Depends-on): Likewise.
58318         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58319         * modules/isfinite (Depends-on): Likewise.
58320         * modules/round-tests (Depends-on): Likewise.
58321         * modules/signbit (Depends-on): Likewise.
58322         * modules/signbit-tests (Depends-on): Likewise.
58323         * modules/snprintf-posix (Depends-on): Likewise.
58324         * modules/sprintf-posix (Depends-on): Likewise.
58325         * modules/trunc-tests (Depends-on): Likewise.
58326         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58327         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58328         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58329         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58330         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58331         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58332         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58333         * modules/vasnprintf-posix (Depends-on): Likewise.
58334         * modules/vasprintf-posix (Depends-on): Likewise.
58335         * modules/vfprintf-posix (Depends-on): Likewise.
58336         * modules/vsnprintf-posix (Depends-on): Likewise.
58337         * modules/vsprintf-posix (Depends-on): Likewise.
58338         * lib/frexp.c: Include isnand.h instead of isnan.h.
58339         (ISNAN): Set to isnand instead of isnan.
58340         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58341         (gl_isfinited): Use isnand instead of isnan.
58342         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58343         (gl_signbitd): Use isnand instead of isnan.
58344         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58345         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58346         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58347         (main): Use isnand instead of isnan.
58348         * tests/test-round1.c: Include isnand.h.
58349         (main): Use isnand instead of isnan.
58350         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58351         (ISNAN): Set to isnand instead of isnan.
58352         * tests/test-trunc1.c: Include isnand.h.
58353         (main): Use isnand instead of isnan.
58354         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58355         (equal): Use isnand instead of isnan.
58356         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58357         isnand-nolibm.
58358         * NEWS: Mention the change.
58359
58360 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58361             Bruno Haible  <bruno@clisp.org>
58362
58363         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58364         the GCC builtins for signbits are present and set
58365         REPLACE_SIGNBIT_USING_GCC if so.
58366         * lib/math.in.h (signbit): Define using GCC builtins if
58367         REPLACE_SIGNBIT_USING_GCC is set.
58368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58369         REPLACE_SIGNBIT_USING_GCC.
58370         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58371
58372 2008-01-25  Jim Meyering  <meyering@redhat.com>
58373
58374         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58375         * lib/poll.c: Include <config.h>, not "config.h".
58376         * tests/test-getaddrinfo.c: Likewise.
58377
58378 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58379
58380         * modules/sockets-tests: New file.
58381
58382 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58383
58384         * modules/sockets: New module, can be used to call WSA_Startup and
58385         WSA_Cleanup when needed.
58386
58387         * lib/sockets.h, lib/sockets.c: New files.
58388
58389         * m4/sockets.m4: New file.
58390
58391         * tests/test-sockets.c: New file.
58392
58393 2008-01-19  Bruno Haible  <bruno@clisp.org>
58394
58395         * doc/posix-headers: Renamed from doc/headers.
58396         * doc/posix-functions: Renamed from doc/functions.
58397         * doc/gnulib.texi: Update.
58398
58399 2008-01-19  Bruno Haible  <bruno@clisp.org>
58400
58401         * doc/glibc-functions/strcasestr.texi: Include contents of
58402         doc/functions/strcasestr.texi, fixing the list of platforms.
58403         * doc/functions/strcasestr.texi: Remove file.
58404
58405 2008-01-19  Bruno Haible  <bruno@clisp.org>
58406
58407         * doc/glibc-functions/memmem.texi: Include contents of
58408         doc/functions/memmem.texi.
58409         * doc/functions/memmem.texi: Remove file.
58410
58411 2008-01-18  Bruno Haible  <bruno@clisp.org>
58412
58413         * doc/glibc-functions/*.texi: New files.
58414         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58415         to use the new files.
58416
58417 2008-01-17  Bruno Haible  <bruno@clisp.org>
58418
58419         * tests/test-gethostname.c (main): Fix printf statement.
58420
58421 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58422
58423         * modules/gethostname-tests: New file.
58424
58425         * tests/test-gethostname.c: New file.
58426
58427 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58428
58429         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58430         used by the UNAME case.  Reported by Bruno Haible
58431         <bruno@clisp.org>.
58432
58433 2008-01-17  Eric Blake  <ebb9@byu.net>
58434
58435         Convert c-strcasestr to be more efficient.
58436         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58437         (Depends-on): Add c-strcase, remove malloca, strnlen.
58438         * tests/test-c-strcasestr.c (main): Enhance test.
58439         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58440
58441 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58442
58443         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58444         Use it in creating po/Makevars.
58445
58446 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58447
58448         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58449         Applications that requires it should initialize libgcrypt
58450         manually.
58451
58452 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58453
58454         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58455
58456 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         Fix problem with getdate on mingw32 reported by Simon Josefsson
58459         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58460         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58461         tzname", when deciding whether to declare tzname.
58462         * lib/strftime.c (tzname): Likewise.
58463
58464 2008-01-15  Bruno Haible  <bruno@clisp.org>
58465
58466         Work around a MacOS X 10.5 bug in frexpl().
58467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58468         * doc/functions/frexpl.texi: Document the bug.
58469         Reported by Elias Pipping <pipping@gentoo.org>.
58470
58471 2008-01-14  Eric Blake  <ebb9@byu.net>
58472
58473         Touch up previous patch.
58474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58475         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58476
58477         Convert strcasestr module to use Two-Way algorithm.
58478         * modules/strcasestr-simple: New module, based on the old
58479         strcasestr, but with Two-Way rather than KMP.
58480         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58481         * lib/string.in.h (rpl_strcasestr): Declare.
58482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58483         performance.
58484         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58485         * modules/string (Makefile.am): Support strcasestr.
58486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58487         * modules/strcasestr-tests (Depends-on): Check for alarm.
58488         * tests/test-strcasestr.c: Augment test.
58489         * lib/str-two-way.h: Clean up stray macro.
58490         * NEWS: Document new module.
58491         * MODULES.html.sh (string handling): Likewise.
58492         * doc/functions/strcasestr.texi: New file.
58493         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58494         here, since it is not a POSIX function.
58495
58496 2008-01-14  Colin Watson  <cjwatson@debian.org>
58497             Bruno Haible  <bruno@clisp.org>
58498
58499         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58500         works fine; if not, set REPLACE_STRSIGNAL.
58501         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58503         REPLACE_STRSIGNAL.
58504         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58505         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58506         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58507
58508 2008-01-14  Bruno Haible  <bruno@clisp.org>
58509
58510         * modules/strsignal (Include): Change to <string.h>.
58511
58512 2008-01-14  Colin Watson  <cjwatson@debian.org>
58513
58514         * modules/argp (Notice): Add a notice recommending to change
58515         XGETTEXT_OPTIONS.
58516         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58517
58518 2008-01-13  Colin Watson  <cjwatson@debian.org>
58519
58520         * modules/strsignal-tests: New file.
58521         * tests/test-strsignal.c: New file.
58522
58523         * lib/strsignal.c: New file, from glibc with modifications.
58524         * lib/siglist.h: New file, from glibc with modifications.
58525         * lib/string.in.h (strsignal): New declaration.
58526         * m4/strsignal.m4: New file.
58527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58528         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58529         * modules/strsignal: New file.
58530         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58531         HAVE_DECL_STRSIGNAL.
58532
58533 2008-01-13  Bruno Haible  <bruno@clisp.org>
58534
58535         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58536         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58537         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58539
58540 2008-01-13  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58543         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58544         * lib/argp.h (__attribute__): Likewise.
58545         * lib/c-stack.c (__attribute__): Likewise.
58546         * lib/error.h (__attribute__): Likewise.
58547         * lib/fts.c (__attribute__): Likewise.
58548         * lib/openat.h (__attribute__): Likewise.
58549         * lib/stdio.in.h (__attribute__): Likewise.
58550         * lib/string.in.h (__attribute__): Likewise.
58551         * lib/utimens.c (__attribute__): Likewise.
58552         * lib/vasnprintf.h (__attribute__): Likewise.
58553         * lib/xalloc.h (__attribute__): Likewise.
58554         * lib/xprintf.h (__attribute__): Likewise.
58555         * lib/xstrtol.h (__attribute__): Likewise.
58556         * lib/xvasprintf.h (__attribute__): Likewise.
58557
58558 2008-01-12  Bruno Haible  <bruno@clisp.org>
58559
58560         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58561         * doc/glibc-headers/a.out.texi: New file.
58562         * doc/glibc-headers/aliases.texi: New file.
58563         * doc/glibc-headers/alloca.texi: New file.
58564         * doc/glibc-headers/ar.texi: New file.
58565         * doc/glibc-headers/argp.texi: New file.
58566         * doc/glibc-headers/argz.texi: New file.
58567         * doc/glibc-headers/byteswap.texi: New file.
58568         * doc/glibc-headers/crypt.texi: New file.
58569         * doc/glibc-headers/endian.texi: New file.
58570         * doc/glibc-headers/envz.texi: New file.
58571         * doc/glibc-headers/err.texi: New file.
58572         * doc/glibc-headers/error.texi: New file.
58573         * doc/glibc-headers/execinfo.texi: New file.
58574         * doc/glibc-headers/fpu_control.texi: New file.
58575         * doc/glibc-headers/fstab.texi: New file.
58576         * doc/glibc-headers/fts.texi: New file.
58577         * doc/glibc-headers/getopt.texi: New file.
58578         * doc/glibc-headers/ieee754.texi: New file.
58579         * doc/glibc-headers/ifaddrs.texi: New file.
58580         * doc/glibc-headers/libintl.texi: New file.
58581         * doc/glibc-headers/mcheck.texi: New file.
58582         * doc/glibc-headers/mntent.texi: New file.
58583         * doc/glibc-headers/obstack.texi: New file.
58584         * doc/glibc-headers/paths.texi: New file.
58585         * doc/glibc-headers/printf.texi: New file.
58586         * doc/glibc-headers/pty.texi: New file.
58587         * doc/glibc-headers/resolv.texi: New file.
58588         * doc/glibc-headers/shadow.texi: New file.
58589         * doc/glibc-headers/sysexits.texi: New file.
58590         * doc/glibc-headers/ttyent.texi: New file.
58591
58592 2008-01-12  Jim Meyering  <meyering@redhat.com>
58593
58594         announce-gen: emit Gnulib's git-based version string.
58595         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58596         New option --gnulib-version=V, where V is expected to be
58597         the output of running git describe in the gnulib directory.
58598         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58599         not useful, and plan to stop publishing an xdelta file with each
58600         coreutils release.
58601
58602         * build-aux/announce-gen: Also check for lzma-compressed files.
58603
58604 2008-01-11  Bruno Haible  <bruno@clisp.org>
58605
58606         * tests/test-memmem.c (main): Increase maximum allowed time.
58607         * tests/test-strstr.c (main): Likewise.
58608
58609 2008-01-11  Bruno Haible  <bruno@clisp.org>
58610
58611         * doc/functions/memmem.texi: Add more precisions about platforms.
58612         * doc/functions/strstr.texi: Likewise.
58613
58614 2008-01-10  Eric Blake  <ebb9@byu.net>
58615
58616         * m4/strstr.m4: Delete cruft from copy-n-paste.
58617         Reported by Bruno Haible.
58618
58619 2008-01-10  Bruno Haible  <bruno@clisp.org>
58620
58621         Make c-strstr rely on strstr.
58622         * lib/c-strstr.c: Don't include str-kmp.h.
58623         (c_strstr): Define in terms of strstr.
58624         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58625         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58626
58627 2008-01-10  Bruno Haible  <bruno@clisp.org>
58628
58629         * doc/gnulib.texi (String Functions in C Locale): New section.
58630         * doc/c-ctype.texi: New file.
58631         * doc/c-strcase.texi: New file.
58632         * doc/c-strcaseeq.texi: New file.
58633         * doc/c-strcasestr.texi: New file.
58634         * doc/c-strstr.texi: New file.
58635         * doc/c-strtod.texi: New file.
58636         * doc/c-strtold.texi: New file.
58637
58638 2008-01-10  Eric Blake  <ebb9@byu.net>
58639
58640         * lib/relocatable.h: Fix a comment.
58641
58642 2008-01-10  Eric Blake  <ebb9@byu.net>
58643
58644         Share two-way algorithm.
58645         * lib/str-two-way.h: New file, merged from...
58646         * lib/memmem.c: ...here...
58647         * lib/strstr.c: ...and here.
58648         * modules/memmem (Files): Use it.
58649         * modules/strstr (Files): Likewise.
58650
58651         Avoid quadratic strstr implementations.
58652         * lib/strstr.c: New file.
58653         * m4/strstr.m4: Likewise.
58654         * modules/strstr: Likewise.
58655         * modules/strstr-tests: Likewise.
58656         * tests/test-strstr.c: Likewise.
58657         * lib/string.in.h (rpl_strstr): Declare.
58658         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58660         * modules/string (Makefile.am): Likewise.
58661         * MODULES.html.sh (string handling): Mention new module.
58662         * doc/functions/strstr.texi (strstr): Document the bug.
58663
58664 2008-01-10  Bruno Haible  <bruno@clisp.org>
58665
58666         * lib/relocatable.h (relocate): State whether result is freshly
58667         allocated or not.
58668         * lib/relocatable.c (relocate): Return a freshly allocated string
58669         instead of a pointer to a privately held string.
58670         Reported by Sylvain Beucler <beuc@gnu.org>.
58671
58672 2008-01-10  Colin Watson  <cjwatson@debian.org>
58673
58674         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58675         s/S_ISNLK/S_ISLNK/.
58676
58677 2008-01-09  Bruno Haible  <bruno@clisp.org>
58678
58679         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58680         and other files.
58681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58682         if it's only a guess.
58683         * modules/memmem: Simplify by depending on memmem-simple.
58684
58685 2008-01-09  Bruno Haible  <bruno@clisp.org>
58686
58687         Work around OpenBSD 4.0 tdelete() bug.
58688         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58689         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58690         macros and don't redefine the enum values.
58691         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58692         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58693         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58694
58695 2008-01-09  Bruno Haible  <bruno@clisp.org>
58696
58697         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58698         (main): Don't perform the tests if setlocale did not install a UTF-8
58699         locale. Needed on OpenBSD 4.0.
58700         * modules/wcwidth-tests (Depends-on): Add localcharset.
58701
58702 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58705         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58706         * NEWS: announce this.
58707         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58708
58709 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58710         and Eric Blake  <ebb9@byu.net>
58711
58712         Add memmem-simple module.
58713         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58714         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58715         * modules/memmem-simple: New file.
58716         * modules/memmem (Description): Tweak.
58717         * MODULES.html.sh (string handling): Mention new module.
58718         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58719         addressed by memmem-simple.
58720         * NEWS: Document the difference.
58721
58722 2008-01-09  Eric Blake  <ebb9@byu.net>
58723
58724         Give gcc some memmem optimization hints.
58725         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58726         (strcasestr): Declare as pure.
58727         * modules/memmem (Maintainer): Claim my implementation.
58728
58729 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58730
58731         Support AIX 6.1 and higher.
58732         * build-aux/config.libpath: Likewise.
58733         * build-aux/config.rpath: Likewise.
58734
58735 2008-01-08  Jim Meyering  <meyering@redhat.com>
58736             Bruno Haible  <bruno@clisp.org>
58737
58738         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58739         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58740         Reported by Peter Fales in
58741         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58742
58743 2008-01-08  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/unictype/category-of (Depends-on): Add
58746         unictype/category-none.
58747         * modules/unictype/category-and-tests (Depends-on): Add
58748         unictype/category-{L,N,Lu,Nd}.
58749         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58750         * modules/unictype/category-or-tests (Depends-on): Add
58751         unictype/category-{L,N}.
58752         * modules/unictype/category-name-tests (Depends-on): Add
58753         unictype/category-{Z,Nl}.
58754         Reported by Simon Josefsson.
58755
58756 2008-01-08  Bruno Haible  <bruno@clisp.org>
58757
58758         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58759         convention better.
58760         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58761         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58762         Reported by Peter Miller <millerp@canb.auug.org.au>.
58763
58764 2008-01-08  Eric Blake  <ebb9@byu.net>
58765
58766         Rewrite memmem to guarantee linear complexity without malloc.
58767         * lib/memmem.c (memmem): Use Two-Way rather than
58768         Knuth-Morris-Pratt, to allow O(1) space usage.
58769         (critical_factorization, two_way_short_needle)
58770         (two_way_long_needle): New functions.
58771         (knuth_morris_pratt): Delete.
58772         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58773         Add stdint.
58774         * tests/test-memmem.c (main): Add tests for periodic needle and
58775         sublinear performance.
58776         * doc/functions/memmem.texi (memmem): Document other deficiencies
58777         in cygwin and older glibc.
58778
58779 2008-01-08  Bruno Haible  <bruno@clisp.org>
58780
58781         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58782         augmentation.
58783
58784 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58785
58786         Add a configure time option: --disable-acl.
58787         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58788         AC_ARG_ENABLE(acl).
58789
58790 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58791
58792         * tests/test-localename.c: Don't include obsolete "setenv.h".
58793
58794         * modules/localename-tests (Depends-on): Need unsetenv.
58795
58796 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58797
58798         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58799
58800 2008-01-06  Colin Watson  <cjwatson@debian.org>
58801
58802         * users.txt: Add man-db.
58803
58804 2008-01-07  Bruno Haible  <bruno@clisp.org>
58805
58806         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58807         previous section name.
58808
58809 2008-01-07  Bruno Haible  <bruno@clisp.org>
58810
58811         * lib/progname.c (set_program_name): Don't strip off a leading
58812         "lt-" prefix outside a .libs directory.
58813         Suggested by Paul Eggert.
58814
58815 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58816             Bruno Haible  <bruno@clisp.org>
58817
58818         Improve memory cleanup in 'relocatable' module.
58819         * lib/relocatable.h (compute_curr_prefix): Change return type to
58820         'char *'.
58821         * lib/relocatable.c (compute_curr_prefix): Change return type to
58822         'char *'. Free curr_installdir after use.
58823         (relocate): Free curr_prefix_better after use.
58824         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58825
58826 2008-01-01  Bruno Haible  <bruno@clisp.org>
58827
58828         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58829         failure on older glibc systems.
58830         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58831
58832 2008-01-05  Eric Blake  <ebb9@byu.net>
58833
58834         Avoid quadratic system memmem.
58835         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58836         Reported by Ralf Wildenhues.
58837
58838         Fix memmem test for mingw.
58839         * modules/memmem-tests (configure.ac): Check for alarm.
58840         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58841         it.
58842         * doc/functions/memmem.texi: New file.
58843         * doc/gnulib.texi (Function Substitutes): Add memmem.
58844         Reported by Bruno Haible.
58845
58846 2008-01-04  Bruno Haible  <bruno@clisp.org>
58847
58848         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58849         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58850         gl_HEADER_STRING_H_DEFAULTS.
58851
58852 2008-01-04  Eric Blake  <ebb9@byu.net>
58853
58854         Shorten duration of memmem test.
58855         * tests/test-memmem.c (main): Use alarm to declare failure if test
58856         is taking too long.
58857         Reported by Ralf Wildenhues.
58858
58859 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58860
58861         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58862         string, needed by strerror.
58863
58864 2008-01-03  Colin Watson  <cjwatson@debian.org>
58865             Bruno Haible  <bruno@clisp.org>
58866
58867         * doc/gnulib-tool.texi (Localization): New section.
58868
58869 2008-01-02  Bruno Haible  <bruno@clisp.org>
58870
58871         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58872         variables to 'unsigned char *' type.
58873         Reported by Paul Eggert.
58874
58875 2008-01-02  Jim Meyering  <jim@meyering.net>
58876
58877         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58878
58879 2007-12-31  Jim Meyering  <jim@meyering.net>
58880
58881         Avoid use of private FTS type name.
58882         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58883
58884 2007-12-30  Karl Berry  <karl@gnu.org>
58885
58886         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58887         work around defect in Texinfo and/or the standalone Info browser.
58888
58889 2007-12-30  Bruno Haible  <bruno@clisp.org>
58890
58891         Unify 5 copies of the KMP code.
58892         * lib/str-kmp.h: New file.
58893         * lib/c-strcasestr.c: Include str-kmp.h.
58894         (knuth_morris_pratt): Remove function.
58895         (c_strcasestr): Update.
58896         * lib/c-strstr.c: Include str-kmp.h.
58897         (knuth_morris_pratt): Remove function.
58898         (c_strcasestr): Update.
58899         * lib/mbscasestr.c: Include str-kmp.h.
58900         (knuth_morris_pratt_unibyte): Remove function.
58901         * lib/mbsstr.c: Include str-kmp.h.
58902         (knuth_morris_pratt_unibyte): Remove function.
58903         * lib/strcasestr.c: Include str-kmp.h.
58904         (knuth_morris_pratt): Remove function.
58905         (strcasestr): Update.
58906         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58907         * modules/c-strstr (Files): Likewise.
58908         * modules/mbscasestr (Files): Likewise.
58909         * modules/mbsstr (Files): Likewise.
58910         * modules/strcasestr (Files): Likewise.
58911         Suggested by Paul Eggert.
58912
58913 2007-12-30  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58916         defined.
58917
58918 2007-12-30  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/xmalloca.h: Include xalloc.h.
58921         (xnmalloca): New macro.
58922
58923 2007-12-30  Bruno Haible  <bruno@clisp.org>
58924
58925         * lib/malloca.h (nmalloca): New macro.
58926         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58927         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58928         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58929         knuth_morris_pratt_multibyte): Likewise.
58930         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58931         knuth_morris_pratt_multibyte): Likewise.
58932         * lib/memmem.c (knuth_morris_pratt): Likewise.
58933         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58934
58935 2007-12-25  Bruno Haible  <bruno@clisp.org>
58936
58937         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58938         * lib/glob.c: Don't include openat.h.
58939         (link_exists2_p): Add back the code that deals with the
58940         !GLOB_ALTDIRFUNC case.
58941         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58942         let it do the filename concatenation.
58943         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58944         * modules/glob (Depends-on): Remove openat.
58945
58946 2007-12-31  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/dirfd (License): Change to LGPLv2+.
58949         Approved by Jim Meyering.
58950
58951 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58952
58953         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58954         when multiplying M by sizeof (size_t).
58955
58956 2007-12-10  Martin Lambers  <marlam@marlam.de>
58957
58958         Override getpagesize on mingw.
58959         * lib/getpagesize.c: New file.
58960         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58961         * modules/getpagesize (Files): Add lib/getpagesize.c.
58962         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58964         REPLACE_GETPAGESIZE.
58965         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58966
58967 2007-12-25  Bruno Haible  <bruno@clisp.org>
58968
58969         * modules/localcharset (Notice): New field.
58970         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58971         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58972
58973 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58974             Bruno Haible  <bruno@clisp.org>
58975
58976         Avoid using the syntax symbol() in formatted documentation.
58977         * MODULES.html.sh (func_module): When replacing symbol() with a
58978         hyperlink, remove the parentheses. Show an error if some remain.
58979         Recognize and render the '...' syntax.
58980         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58981         Rework. Add paragraph about GCC's inlining.
58982         * doc/alloca.texi: Likewise.
58983         * doc/error.texi: Remove parentheses from symbol reference.
58984         * doc/gnulib-intro.texi: Likewise.
58985         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58986         * modules/fnmatch (Description): Reword to say "the ... function".
58987         * modules/full-read (Description): Likewise.
58988         * modules/full-write (Description): Likewise.
58989         * modules/safe-read (Description): Likewise.
58990         * modules/safe-write (Description): Likewise.
58991         * modules/strchrnul (Description): Likewise.
58992         * modules/trim (Description): Likewise.
58993         * modules/error (Description): Remove parentheses from symbol
58994         references.
58995         * modules/verror (Description): Likewise.
58996         Reported by Karl Berry.
58997
58998 2007-12-25  Bruno Haible  <bruno@clisp.org>
58999
59000         Fixup after 2007-10-16 commit.
59001         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59002
59003 2007-12-24  Bruno Haible  <bruno@clisp.org>
59004
59005         Make --enable-relocatable work with DESTDIR.
59006         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59007         to compute installdir from destprog.
59008         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59009         also set the RELOC_DESTDIR variable.
59010         Reported by Левашев Иван <octagram@bluebottle.com>.
59011
59012 2007-12-24  Bruno Haible  <bruno@clisp.org>
59013
59014         Fix link error due to xalloc_die().
59015         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59016         of xreadlink.
59017         * lib/relocwrapper.c: Update comments.
59018         * build-aux/install-reloc: Remove xreadlink.c from file list.
59019         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59020         xreadlink.c.
59021         Reported by Левашев Иван <octagram@bluebottle.com>.
59022
59023 2007-12-24  Bruno Haible  <bruno@clisp.org>
59024
59025         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59026         * lib/setenv.h: Remove file.
59027         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59028         lib/setenv.h.
59029         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59030         (Depends-on): Add stdlib.
59031         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59032         gl_FUNC_UNSETENV.
59033         (Include): Replace setenv.h with <stdlib.h>.
59034         * modules/unsetenv: New file.
59035         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59036         * lib/unsetenv.c: Include <stdlib.h> first.
59037         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59038         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59039         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59040         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59041         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59042         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59044         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59045         * doc/functions/unsetenv.texi: Update.
59046         * modules/xsetenv (Depends-on): Add unsetenv.
59047         * modules/getdate (Depends-on): Likewise.
59048         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59049         * lib/xsetenv.c: Don't include setenv.h.
59050         * lib/getdate.y: Likewise.
59051         * lib/relocwrapper.c: Likewise.
59052         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59053         (Depends-on): Add stdlib.
59054         * NEWS: Mention the changes.
59055         Reported by Левашев Иван <octagram@bluebottle.com>.
59056
59057 2007-12-23  Bruno Haible  <bruno@clisp.org>
59058
59059         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59060         indentation.
59061
59062 2007-12-23  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/c-strcasestr.c: Add more comments.
59065         * lib/c-strstr.c: Likewise.
59066         * lib/mbscasestr.c: Likewise.
59067         * lib/mbsstr.c: Likewise.
59068         * lib/strcasestr.c: Likewise.
59069         * lib/memmem.c: Likewise.
59070
59071 2007-12-23  Bruno Haible  <bruno@clisp.org>
59072
59073         * tests/test-memmem.c: Include <string.h> first.
59074
59075 2007-12-22  Bruno Haible  <bruno@clisp.org>
59076
59077         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59078         the contents of $testsbase.
59079         Reported by Ralf Wildenhues.
59080
59081 2007-12-22  Bruno Haible  <bruno@clisp.org>
59082
59083         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59084         two variables local_ldadd_before, local_ldadd_last.
59085
59086 2007-12-20  Eric Blake  <ebb9@byu.net>
59087
59088         Work around circular library issue when cross-compiling.
59089         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59090         that progname.o does not need to pull in rpl_memcmp.
59091
59092 2007-12-19  Eric Blake  <ebb9@byu.net>
59093
59094         Fix memmem to avoid O(n^2) worst-case complexity.
59095         * lib/memmem.c (knuth_morris_pratt): New function.
59096         (memmem): Use it if first few naive iterations fail.
59097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59098         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59099         * modules/memchr (License): Likewise.
59100         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59101         malloca.
59102         * tests/test-memmem.c: Rewrite, borrowing ideas from
59103         test-mbsstr1.c; the old version wouldn't even compile!
59104         * modules/memmem-tests: New file.
59105         * lib/string.in.h (rpl_memmem): Add declaration.
59106         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59108         REPLACE_MEMMEM.
59109
59110 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59111
59112         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59113         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59114         before any system include files, and undef after them all.  This
59115         should fix a problem on VMS reported by John E. Malmberg in
59116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59117
59118 2007-12-17  Eric Blake  <ebb9@byu.net>
59119
59120         Revert addition of verify, for BSD/OS.
59121         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59122         can't handle large files, for the sake of obsolete platforms.
59123         * modules/fseeko (Depends-on): Remove verify.
59124         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59125         * doc/functions/ftello.texi (ftello): Likewise.
59126         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59127         Reported by Larry Jones.
59128
59129 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59130
59131         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59132         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59133
59134 2007-12-17  Jim Meyering  <meyering@redhat.com>
59135
59136         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59137         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59138         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59139         * modules/getcwd (Depends-on): Add openat.
59140         Reported by Petr Salinger.
59141
59142 2007-12-17  Bruno Haible  <bruno@clisp.org>
59143
59144         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59145         avoid a segmentation fault of the configure test on x86_64 systems.
59146
59147 2007-12-15  Jim Meyering  <meyering@redhat.com>
59148
59149         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59150
59151 2007-12-13  Eric Blake  <ebb9@byu.net>
59152
59153         Another fseek test.
59154         * tests/test-fseek.c (main): Also test ungetc handling.
59155         * tests/test-fseeko.c (main): Likewise.
59156         * modules/fseeko (Depends-on): Add verify.
59157         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59158         large.
59159         Reported by Larry Jones.
59160
59161         Fix fseeko on mingw.
59162         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59163         seek.
59164
59165         Beef up fseek tests.
59166         * tests/test-fseek.c (main): Also test eof handling.
59167         * tests/test-fseeko.c (main): Likewise.
59168         Reported by Larry Jones.
59169
59170 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59171
59172         Fix fseeko on BSD-based platforms.
59173         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59174         successful seek.
59175
59176 2007-12-12  Eric Blake  <ebb9@byu.net>
59177
59178         Allow circular dependency of separate libtests.a
59179         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59180         when use_libtests.
59181
59182 2007-12-11  Eric Blake  <ebb9@byu.net>
59183
59184         Fix bug with -0.0L in previous patch.
59185         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59186         * tests/test-isnan.c (main): Also test on zeroes.
59187         * tests/test-isnanf.c (main): Likewise.
59188         * tests/test-isnanl.h (main): Likewise.
59189
59190         Detect pseudo-denormals on x86 even when cross-compiling.
59191         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59192         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59193         invalid bit patterns that happen to satisfy ==.
59194
59195         Avoid link failures with separate libtests.a.
59196         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59197         last, to satisfy circular dependencies.
59198
59199 2007-12-11  Eric Blake  <ebb9@byu.net>
59200         and Bruno Haible  <bruno@clisp.org>
59201
59202         Fix OpenBSD 4.0 <float.h> handling of long double.
59203         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59204         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59205         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59206
59207 2007-12-11  Jim Meyering  <meyering@redhat.com>
59208
59209         * users.txt: Add libvirt.
59210
59211         Support versions of autoconf prior to 2.59c.
59212         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59213         if it is not already defined.
59214
59215 2007-12-09  Bruno Haible  <bruno@clisp.org>
59216
59217         Let 'gnulib-tool --import' collect sources needed for the tests in
59218         tests/ rather than in lib/.
59219         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59220         argument. If true, add rules to generate libtests.a, and put libtests.a
59221         into $(LDADD). Consider source files in subdirectories and set
59222         uses_subdirs.
59223         (func_emit_initmacro_start, func_emit_initmacro_end,
59224         func_emit_initmacro_done): Pass all arguments explicitly.
59225         (func_import): Determine two module lists main_modules,
59226         testsrelated_modules. Determine use_libtests. Determine two variables
59227         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59228         instead of just sed_transform_lib_file. Determine two variables
59229         main_files and testsrelated_files. Compute 'files' as the union of
59230         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59231         func_add_or_update. In the generated gnulib-comp.m4, collect the
59232         object files for tests/ in different variables than those for lib/.
59233         Substitute LIBTESTS_LIBDEPS.
59234         (func_create_testdir): Combine the uses_subdirs results from
59235         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59236
59237 2007-12-09  Bruno Haible  <bruno@clisp.org>
59238
59239         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59240         the build-aux directory.
59241
59242 2007-12-09  Bruno Haible  <bruno@clisp.org>
59243
59244         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59245         introduced on 2006-09-09.
59246
59247 2007-12-07  Jim Meyering  <meyering@redhat.com>
59248
59249         Let these macros work also with autoconf-2.59.
59250         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59251         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59252         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59253
59254 2007-12-06  Jim Meyering  <meyering@redhat.com>
59255
59256         Avoid a configure-time syntax error in gl_FUNC_ACL.
59257         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59258         function in each branch, before testing the cache variable.
59259
59260 2007-12-04  Eric Blake  <ebb9@byu.net>
59261
59262         Make scripts executable.
59263         * build-aux/config.guess: Add execute permissions.
59264         * build-aux/config.sub: Likewise.
59265         * build-aux/gendocs.sh: Likewise.
59266
59267         Fix frexp on mingw.
59268         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59269         cross-compiling.
59270         * doc/functions/frexp.texi (frexp): Document the bug.
59271
59272         Make cygwin fseeko check more reliable.
59273         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59274         version numbers, rather than unrelated feature check.
59275         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59276         * doc/functions/ftello.texi (ftello): Likewise.
59277         Reported by Bruno Haible.
59278
59279         * m4/strerror.m4: Bump version number.
59280
59281 2007-12-03  Bruno Haible  <bruno@clisp.org>
59282
59283         * doc/functions/mprotect.texi: Mention the mingw problem.
59284
59285 2007-12-03  Eric Blake  <ebb9@byu.net>
59286
59287         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59288         REPLACE_STRERROR is initialized before this macro.
59289
59290 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59291
59292         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59293         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59294         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59295         put -lsec in even for programs other than 'ls'.  This fixes a problem
59296         for gettext reported by Bruno Haible in
59297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59298         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59299         Add support for Solaris 10.  This isn't efficient, but should get the
59300         job done for now.
59301
59302 2007-12-03  James Youngman  <jay@gnu.org>
59303
59304         * doc/regexprops-generic.texi: change "an close-group" to "a
59305         close-group" and "illegal" to "not allowed".
59306
59307 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59308
59309         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59310         pr_byname.h. Needed for the rare case when the maintainer has done
59311         "make maintainer-clean" in the source directory and then attempts a
59312         build outside the source directory.
59313         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59314         scripts_byname.h.
59315
59316 2007-12-02  Martin Lambers <marlam@marlam.de>
59317             Bruno Haible  <bruno@clisp.org>
59318
59319         * lib/getpagesize.h: Remove file.
59320         * lib/unistd.in.h: Include declaration of getpagesize here.
59321         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59322         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59323         HAVE_SYS_PARAM_H.
59324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59325         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59326         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59327         (Depends-on): Add unistd.
59328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59329         (Include): Use <unistd.h> instead of getpagesize.h.
59330         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59331         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59332         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59333         gl_GETPAGESIZE invocation, already handled by module dependency.
59334         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59335
59336 2007-12-02  Bruno Haible  <bruno@clisp.org>
59337
59338         * modules/strings-tests: New file.
59339         * tests/test-strings.c: New file.
59340
59341         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59342         * lib/strings.in.h: New file.
59343         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59344         * m4/strings_h.m4: New file.
59345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59346         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59347         * modules/strings: New file.
59348         * modules/string (Makefile.am): Update.
59349         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59350         Reported by Karl Berry.
59351
59352 2007-12-01  Eric Blake  <ebb9@byu.net>
59353
59354         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59355         accomodate fix in cygwin 1.5.25.
59356
59357 2007-12-01  Jim Meyering  <meyering@redhat.com>
59358
59359         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59360         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59361         that would inhibit utf8-optimization of a regexp containing line-
59362         or buffer-anchors, e.g., `^', `$'.
59363
59364 2007-11-30  Bruno Haible  <bruno@clisp.org>
59365
59366         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59367         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59368         glthread_recursive_lock_init.
59369         * lib/lock.c (glthread_recursive_lock_init)
59370         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59371         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59372
59373 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         New function qset_acl, like set_acl but with syscall semantics.
59376         * lib/acl.h (qset_acl): New decl.
59377         * lib/acl.c (qset_acl): New function.
59378         (set_acl): Use new function.  Use more-consistent diagnostics.
59379
59380 2007-11-28  Jim Meyering  <meyering@redhat.com>
59381
59382         * modules/physmem (License): Change from GPL to LGPLv2+.
59383
59384 2007-11-26  Bruno Haible  <bruno@clisp.org>
59385
59386         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59387         'long double' type has excess precision.
59388         Reported by Jim Meyering in
59389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59390
59391 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59392
59393         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59394         Sync from <http://gnu.org/licenses>.
59395         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59396         with license text from same location.
59397         * doc/maintain.texi, doc/standards.texi:  Sync from
59398         <http://savannah.gnu.org/projects/gnustandards>.
59399
59400 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59401         and Jim Meyering  <meyering@redhat.com>
59402
59403         Adjust getdate' grammar to accept a slightly more regular language.
59404         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59405         Before, the former was rejected.
59406         * lib/getdate.y (digits_to_date_time): New function, factored
59407         out of ...
59408         (number): ...here.  Just call digits_to_date_time.
59409         (hybrid): New non-terminal to handle an <unsigned number,
59410         signed relative offset> sequence consistently.
59411
59412 2007-11-18  Jim Meyering  <meyering@redhat.com>
59413
59414         Pull my changes from coreutils:
59415         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59416         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59417         use of $gnulib_tool_option_extras, so that it's separated from the
59418         preceding argument.
59419
59420         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59421         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59422         parent destination directories before copying a file into place.
59423
59424 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59425
59426         bootstrap: work also with 4-argument variant of AC_INIT
59427         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59428
59429 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59430
59431         Port test-getaddrinfo to Solaris.
59432         Problem reported by Bruno Haible in
59433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59434         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59435         explanation of setting 'hints'.
59436         Don't reject an implementation merely because it returns EAI_SERVICE.
59437         (EAI_SERVICE): Define to 0 if not defined.
59438
59439 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59440
59441         The license of gnu-make and posix-shell is now "GPLed build tool".
59442         * modules/gnu-make (License): Likewise.
59443         * modules/posix-shell (License): Likewise.
59444
59445         New module posix-shell, for determining a POSIX shell
59446         or perhaps something that is close enough to a POSIX shell.
59447         * m4/posix-shell.m4: New file.
59448         * modules/posix-shell: New file.
59449
59450         * MODULES.html.sh: Mention new module.
59451
59452         New module gnu-make, for determining whether we're using GNU Make.
59453         * m4/gnu-make.m4: New file.
59454         * modules/gnu-make: New file.
59455         * MODULES.html.sh: Mention new module.
59456
59457 2007-11-14  Jim Meyering  <meyering@redhat.com>
59458
59459         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59460         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59461         use this macro to create a function _definition_.
59462         Remove useless "#undef ARGMATCH_DIE".
59463
59464 2007-11-14  Bruno Haible  <bruno@clisp.org>
59465
59466         * lib/config.charset: Update for OpenBSD 4.1.
59467         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59468
59469 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59470
59471         Document 64-bit #if problems in stdint.texi.
59472         * doc/headers/stdint.texi (stdint.h): Mention problems with
59473         64-bit-#if, and how to work around them.
59474
59475         Don't insist on 'long long int' support in the preprocessor.  It
59476         breaks too many things.  For example, PRIdMAX still uses a 'long
59477         long int' format with the latest Sun compiler, even though
59478         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59479         preprocessor problem.  This causes the latest coreutils to dump
59480         core on Solaris 10 sparc with the Sun C compiler.
59481         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59482         the troublesome expressions at configure-time, not at #if-time.
59483         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59484         preprocessor.
59485         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59486         compile-time C checks, done at 'configure'-time.
59487         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59488         * modules/inttypes (Makefile): Substitute the new symbols that
59489         gl_INTTYPES_H now generates.
59490         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59491
59492 2007-11-12  Bruno Haible  <bruno@clisp.org>
59493
59494         Tests for Unicode character classification functions.
59495
59496         * modules/unictype/bidicategory-byname-tests: New file.
59497         * modules/unictype/bidicategory-name-tests: New file.
59498         * modules/unictype/bidicategory-of-tests: New file.
59499         * modules/unictype/bidicategory-test-tests: New file.
59500         * modules/unictype/block-list-tests: New file.
59501         * modules/unictype/block-of-tests: New file.
59502         * modules/unictype/block-test-tests: New file.
59503         * modules/unictype/category-C-tests: New file.
59504         * modules/unictype/category-Cc-tests: New file.
59505         * modules/unictype/category-Cf-tests: New file.
59506         * modules/unictype/category-Cn-tests: New file.
59507         * modules/unictype/category-Co-tests: New file.
59508         * modules/unictype/category-Cs-tests: New file.
59509         * modules/unictype/category-L-tests: New file.
59510         * modules/unictype/category-Ll-tests: New file.
59511         * modules/unictype/category-Lm-tests: New file.
59512         * modules/unictype/category-Lo-tests: New file.
59513         * modules/unictype/category-Lt-tests: New file.
59514         * modules/unictype/category-Lu-tests: New file.
59515         * modules/unictype/category-M-tests: New file.
59516         * modules/unictype/category-Mc-tests: New file.
59517         * modules/unictype/category-Me-tests: New file.
59518         * modules/unictype/category-Mn-tests: New file.
59519         * modules/unictype/category-N-tests: New file.
59520         * modules/unictype/category-Nd-tests: New file.
59521         * modules/unictype/category-Nl-tests: New file.
59522         * modules/unictype/category-No-tests: New file.
59523         * modules/unictype/category-P-tests: New file.
59524         * modules/unictype/category-Pc-tests: New file.
59525         * modules/unictype/category-Pd-tests: New file.
59526         * modules/unictype/category-Pe-tests: New file.
59527         * modules/unictype/category-Pf-tests: New file.
59528         * modules/unictype/category-Pi-tests: New file.
59529         * modules/unictype/category-Po-tests: New file.
59530         * modules/unictype/category-Ps-tests: New file.
59531         * modules/unictype/category-S-tests: New file.
59532         * modules/unictype/category-Sc-tests: New file.
59533         * modules/unictype/category-Sk-tests: New file.
59534         * modules/unictype/category-Sm-tests: New file.
59535         * modules/unictype/category-So-tests: New file.
59536         * modules/unictype/category-Z-tests: New file.
59537         * modules/unictype/category-Zl-tests: New file.
59538         * modules/unictype/category-Zp-tests: New file.
59539         * modules/unictype/category-Zs-tests: New file.
59540         * modules/unictype/category-and-not-tests: New file.
59541         * modules/unictype/category-and-tests: New file.
59542         * modules/unictype/category-byname-tests: New file.
59543         * modules/unictype/category-name-tests: New file.
59544         * modules/unictype/category-none-tests: New file.
59545         * modules/unictype/category-of-tests: New file.
59546         * modules/unictype/category-or-tests: New file.
59547         * modules/unictype/category-test-withtable-tests: New file.
59548         * modules/unictype/combining-class-tests: New file.
59549         * modules/unictype/ctype-alnum-tests: New file.
59550         * modules/unictype/ctype-alpha-tests: New file.
59551         * modules/unictype/ctype-blank-tests: New file.
59552         * modules/unictype/ctype-cntrl-tests: New file.
59553         * modules/unictype/ctype-digit-tests: New file.
59554         * modules/unictype/ctype-graph-tests: New file.
59555         * modules/unictype/ctype-lower-tests: New file.
59556         * modules/unictype/ctype-print-tests: New file.
59557         * modules/unictype/ctype-punct-tests: New file.
59558         * modules/unictype/ctype-space-tests: New file.
59559         * modules/unictype/ctype-upper-tests: New file.
59560         * modules/unictype/ctype-xdigit-tests: New file.
59561         * modules/unictype/decimal-digit-tests: New file.
59562         * modules/unictype/digit-tests: New file.
59563         * modules/unictype/mirror-tests: New file.
59564         * modules/unictype/numeric-tests: New file.
59565         * modules/unictype/property-alphabetic-tests: New file.
59566         * modules/unictype/property-ascii-hex-digit-tests: New file.
59567         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59568         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59569         * modules/unictype/property-bidi-block-separator-tests: New file.
59570         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59571         * modules/unictype/property-bidi-common-separator-tests: New file.
59572         * modules/unictype/property-bidi-control-tests: New file.
59573         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59574         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59575         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59576         * modules/unictype/property-bidi-european-digit-tests: New file.
59577         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59578         * modules/unictype/property-bidi-left-to-right-tests: New file.
59579         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59580         * modules/unictype/property-bidi-other-neutral-tests: New file.
59581         * modules/unictype/property-bidi-pdf-tests: New file.
59582         * modules/unictype/property-bidi-segment-separator-tests: New file.
59583         * modules/unictype/property-bidi-whitespace-tests: New file.
59584         * modules/unictype/property-byname-tests: New file.
59585         * modules/unictype/property-combining-tests: New file.
59586         * modules/unictype/property-composite-tests: New file.
59587         * modules/unictype/property-currency-symbol-tests: New file.
59588         * modules/unictype/property-dash-tests: New file.
59589         * modules/unictype/property-decimal-digit-tests: New file.
59590         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59591         * modules/unictype/property-deprecated-tests: New file.
59592         * modules/unictype/property-diacritic-tests: New file.
59593         * modules/unictype/property-extender-tests: New file.
59594         * modules/unictype/property-format-control-tests: New file.
59595         * modules/unictype/property-grapheme-base-tests: New file.
59596         * modules/unictype/property-grapheme-extend-tests: New file.
59597         * modules/unictype/property-grapheme-link-tests: New file.
59598         * modules/unictype/property-hex-digit-tests: New file.
59599         * modules/unictype/property-hyphen-tests: New file.
59600         * modules/unictype/property-id-continue-tests: New file.
59601         * modules/unictype/property-id-start-tests: New file.
59602         * modules/unictype/property-ideographic-tests: New file.
59603         * modules/unictype/property-ids-binary-operator-tests: New file.
59604         * modules/unictype/property-ids-trinary-operator-tests: New file.
59605         * modules/unictype/property-ignorable-control-tests: New file.
59606         * modules/unictype/property-iso-control-tests: New file.
59607         * modules/unictype/property-join-control-tests: New file.
59608         * modules/unictype/property-left-of-pair-tests: New file.
59609         * modules/unictype/property-line-separator-tests: New file.
59610         * modules/unictype/property-logical-order-exception-tests: New file.
59611         * modules/unictype/property-lowercase-tests: New file.
59612         * modules/unictype/property-math-tests: New file.
59613         * modules/unictype/property-non-break-tests: New file.
59614         * modules/unictype/property-not-a-character-tests: New file.
59615         * modules/unictype/property-numeric-tests: New file.
59616         * modules/unictype/property-other-alphabetic-tests: New file.
59617         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59618         * modules/unictype/property-other-grapheme-extend-tests: New file.
59619         * modules/unictype/property-other-id-continue-tests: New file.
59620         * modules/unictype/property-other-id-start-tests: New file.
59621         * modules/unictype/property-other-lowercase-tests: New file.
59622         * modules/unictype/property-other-math-tests: New file.
59623         * modules/unictype/property-other-uppercase-tests: New file.
59624         * modules/unictype/property-paired-punctuation-tests: New file.
59625         * modules/unictype/property-paragraph-separator-tests: New file.
59626         * modules/unictype/property-pattern-syntax-tests: New file.
59627         * modules/unictype/property-pattern-white-space-tests: New file.
59628         * modules/unictype/property-private-use-tests: New file.
59629         * modules/unictype/property-punctuation-tests: New file.
59630         * modules/unictype/property-quotation-mark-tests: New file.
59631         * modules/unictype/property-radical-tests: New file.
59632         * modules/unictype/property-sentence-terminal-tests: New file.
59633         * modules/unictype/property-soft-dotted-tests: New file.
59634         * modules/unictype/property-space-tests: New file.
59635         * modules/unictype/property-terminal-punctuation-tests: New file.
59636         * modules/unictype/property-test-tests: New file.
59637         * modules/unictype/property-titlecase-tests: New file.
59638         * modules/unictype/property-unassigned-code-value-tests: New file.
59639         * modules/unictype/property-unified-ideograph-tests: New file.
59640         * modules/unictype/property-uppercase-tests: New file.
59641         * modules/unictype/property-variation-selector-tests: New file.
59642         * modules/unictype/property-white-space-tests: New file.
59643         * modules/unictype/property-xid-continue-tests: New file.
59644         * modules/unictype/property-xid-start-tests: New file.
59645         * modules/unictype/property-zero-width-tests: New file.
59646         * modules/unictype/scripts-tests: New file.
59647         * modules/unictype/syntax-c-ident-tests: New file.
59648         * modules/unictype/syntax-c-whitespace-tests: New file.
59649         * modules/unictype/syntax-java-ident-tests: New file.
59650         * modules/unictype/syntax-java-whitespace-tests: New file.
59651         * tests/unictype/test-bidi_byname.c: New file.
59652         * tests/unictype/test-bidi_name.c: New file.
59653         * tests/unictype/test-bidi_of.c: New file.
59654         * tests/unictype/test-bidi_test.c: New file.
59655         * tests/unictype/test-block_list.c: New file.
59656         * tests/unictype/test-block_of.c: New file.
59657         * tests/unictype/test-block_test.c: New file.
59658         * tests/unictype/test-categ_and.c: New file.
59659         * tests/unictype/test-categ_and_not.c: New file.
59660         * tests/unictype/test-categ_byname.c: New file.
59661         * tests/unictype/test-categ_name.c: New file.
59662         * tests/unictype/test-categ_none.c: New file.
59663         * tests/unictype/test-categ_of.c: New file.
59664         * tests/unictype/test-categ_or.c: New file.
59665         * tests/unictype/test-categ_test_withtable.c: New file.
59666         * tests/unictype/test-combining.c: New file.
59667         * tests/unictype/test-decdigit.c: New file.
59668         * tests/unictype/test-digit.c: New file.
59669         * tests/unictype/test-mirror.c: New file.
59670         * tests/unictype/test-numeric.c: New file.
59671         * tests/unictype/test-pr_byname.c: New file.
59672         * tests/unictype/test-pr_test.c: New file.
59673         * tests/unictype/test-predicate-part1.h: New file.
59674         * tests/unictype/test-predicate-part2.h: New file.
59675         * tests/unictype/test-scripts.c: New file.
59676         * tests/unictype/test-sy_c_ident.c: New file.
59677         * tests/unictype/test-sy_java_ident.c: New file.
59678
59679         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59680         for Unicode 5.0.0.
59681         * tests/unictype/test-categ_Cc.c: Likewise.
59682         * tests/unictype/test-categ_Cf.c: Likewise.
59683         * tests/unictype/test-categ_Cn.c: Likewise.
59684         * tests/unictype/test-categ_Co.c: Likewise.
59685         * tests/unictype/test-categ_Cs.c: Likewise.
59686         * tests/unictype/test-categ_L.c: Likewise.
59687         * tests/unictype/test-categ_Ll.c: Likewise.
59688         * tests/unictype/test-categ_Lm.c: Likewise.
59689         * tests/unictype/test-categ_Lo.c: Likewise.
59690         * tests/unictype/test-categ_Lt.c: Likewise.
59691         * tests/unictype/test-categ_Lu.c: Likewise.
59692         * tests/unictype/test-categ_M.c: Likewise.
59693         * tests/unictype/test-categ_Mc.c: Likewise.
59694         * tests/unictype/test-categ_Me.c: Likewise.
59695         * tests/unictype/test-categ_Mn.c: Likewise.
59696         * tests/unictype/test-categ_N.c: Likewise.
59697         * tests/unictype/test-categ_Nd.c: Likewise.
59698         * tests/unictype/test-categ_Nl.c: Likewise.
59699         * tests/unictype/test-categ_No.c: Likewise.
59700         * tests/unictype/test-categ_P.c: Likewise.
59701         * tests/unictype/test-categ_Pc.c: Likewise.
59702         * tests/unictype/test-categ_Pd.c: Likewise.
59703         * tests/unictype/test-categ_Pe.c: Likewise.
59704         * tests/unictype/test-categ_Pf.c: Likewise.
59705         * tests/unictype/test-categ_Pi.c: Likewise.
59706         * tests/unictype/test-categ_Po.c: Likewise.
59707         * tests/unictype/test-categ_Ps.c: Likewise.
59708         * tests/unictype/test-categ_S.c: Likewise.
59709         * tests/unictype/test-categ_Sc.c: Likewise.
59710         * tests/unictype/test-categ_Sk.c: Likewise.
59711         * tests/unictype/test-categ_Sm.c: Likewise.
59712         * tests/unictype/test-categ_So.c: Likewise.
59713         * tests/unictype/test-categ_Z.c: Likewise.
59714         * tests/unictype/test-categ_Zl.c: Likewise.
59715         * tests/unictype/test-categ_Zp.c: Likewise.
59716         * tests/unictype/test-categ_Zs.c: Likewise.
59717         * tests/unictype/test-ctype_alnum.c: Likewise.
59718         * tests/unictype/test-ctype_alpha.c: Likewise.
59719         * tests/unictype/test-ctype_blank.c: Likewise.
59720         * tests/unictype/test-ctype_cntrl.c: Likewise.
59721         * tests/unictype/test-ctype_digit.c: Likewise.
59722         * tests/unictype/test-ctype_graph.c: Likewise.
59723         * tests/unictype/test-ctype_lower.c: Likewise.
59724         * tests/unictype/test-ctype_print.c: Likewise.
59725         * tests/unictype/test-ctype_punct.c: Likewise.
59726         * tests/unictype/test-ctype_space.c: Likewise.
59727         * tests/unictype/test-ctype_upper.c: Likewise.
59728         * tests/unictype/test-ctype_xdigit.c: Likewise.
59729         * tests/unictype/test-decdigit.h: Likewise.
59730         * tests/unictype/test-digit.h: Likewise.
59731         * tests/unictype/test-numeric.h: Likewise.
59732         * tests/unictype/test-pr_alphabetic.c: Likewise.
59733         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59734         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59735         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59736         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59737         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59738         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59739         * tests/unictype/test-pr_bidi_control.c: Likewise.
59740         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59741         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59742         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59743         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59744         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59745         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59746         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59747         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59748         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59749         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59750         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59751         * tests/unictype/test-pr_combining.c: Likewise.
59752         * tests/unictype/test-pr_composite.c: Likewise.
59753         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59754         * tests/unictype/test-pr_dash.c: Likewise.
59755         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59756         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59757         * tests/unictype/test-pr_deprecated.c: Likewise.
59758         * tests/unictype/test-pr_diacritic.c: Likewise.
59759         * tests/unictype/test-pr_extender.c: Likewise.
59760         * tests/unictype/test-pr_format_control.c: Likewise.
59761         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59762         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59763         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59764         * tests/unictype/test-pr_hex_digit.c: Likewise.
59765         * tests/unictype/test-pr_hyphen.c: Likewise.
59766         * tests/unictype/test-pr_id_continue.c: Likewise.
59767         * tests/unictype/test-pr_id_start.c: Likewise.
59768         * tests/unictype/test-pr_ideographic.c: Likewise.
59769         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59770         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59771         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59772         * tests/unictype/test-pr_iso_control.c: Likewise.
59773         * tests/unictype/test-pr_join_control.c: Likewise.
59774         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59775         * tests/unictype/test-pr_line_separator.c: Likewise.
59776         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59777         * tests/unictype/test-pr_lowercase.c: Likewise.
59778         * tests/unictype/test-pr_math.c: Likewise.
59779         * tests/unictype/test-pr_non_break.c: Likewise.
59780         * tests/unictype/test-pr_not_a_character.c: Likewise.
59781         * tests/unictype/test-pr_numeric.c: Likewise.
59782         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59783         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59784         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59785         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59786         * tests/unictype/test-pr_other_id_start.c: Likewise.
59787         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59788         * tests/unictype/test-pr_other_math.c: Likewise.
59789         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59790         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59791         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59792         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59793         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59794         * tests/unictype/test-pr_private_use.c: Likewise.
59795         * tests/unictype/test-pr_punctuation.c: Likewise.
59796         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59797         * tests/unictype/test-pr_radical.c: Likewise.
59798         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59799         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59800         * tests/unictype/test-pr_space.c: Likewise.
59801         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59802         * tests/unictype/test-pr_titlecase.c: Likewise.
59803         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59804         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59805         * tests/unictype/test-pr_uppercase.c: Likewise.
59806         * tests/unictype/test-pr_variation_selector.c: Likewise.
59807         * tests/unictype/test-pr_white_space.c: Likewise.
59808         * tests/unictype/test-pr_xid_continue.c: Likewise.
59809         * tests/unictype/test-pr_xid_start.c: Likewise.
59810         * tests/unictype/test-pr_zero_width.c: Likewise.
59811         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59812         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59813
59814 2007-11-12  Bruno Haible  <bruno@clisp.org>
59815
59816         Unicode character classification functions.
59817         * lib/unictype.h: New file.
59818         * modules/unictype/base: New file.
59819         * modules/unictype/category-L: New file.
59820         * modules/unictype/category-Lu: New file.
59821         * modules/unictype/category-Ll: New file.
59822         * modules/unictype/category-Lt: New file.
59823         * modules/unictype/category-Lm: New file.
59824         * modules/unictype/category-Lo: New file.
59825         * modules/unictype/category-M: New file.
59826         * modules/unictype/category-Mn: New file.
59827         * modules/unictype/category-Mc: New file.
59828         * modules/unictype/category-Me: New file.
59829         * modules/unictype/category-N: New file.
59830         * modules/unictype/category-Nd: New file.
59831         * modules/unictype/category-Nl: New file.
59832         * modules/unictype/category-No: New file.
59833         * modules/unictype/category-P: New file.
59834         * modules/unictype/category-Pc: New file.
59835         * modules/unictype/category-Pd: New file.
59836         * modules/unictype/category-Ps: New file.
59837         * modules/unictype/category-Pe: New file.
59838         * modules/unictype/category-Pi: New file.
59839         * modules/unictype/category-Pf: New file.
59840         * modules/unictype/category-Po: New file.
59841         * modules/unictype/category-S: New file.
59842         * modules/unictype/category-Sm: New file.
59843         * modules/unictype/category-Sc: New file.
59844         * modules/unictype/category-Sk: New file.
59845         * modules/unictype/category-So: New file.
59846         * modules/unictype/category-Z: New file.
59847         * modules/unictype/category-Zs: New file.
59848         * modules/unictype/category-Zl: New file.
59849         * modules/unictype/category-Zp: New file.
59850         * modules/unictype/category-C: New file.
59851         * modules/unictype/category-Cc: New file.
59852         * modules/unictype/category-Cf: New file.
59853         * modules/unictype/category-Cs: New file.
59854         * modules/unictype/category-Co: New file.
59855         * modules/unictype/category-Cn: New file.
59856         * modules/unictype/category-or: New file.
59857         * modules/unictype/category-of: New file.
59858         * modules/unictype/category-test: New file.
59859         * modules/unictype/category-test-withtable: New file.
59860         * modules/unictype/category-byname: New file.
59861         * modules/unictype/category-none: New file.
59862         * modules/unictype/category-and: New file.
59863         * modules/unictype/category-and-not: New file.
59864         * modules/unictype/category-name: New file.
59865         * modules/unictype/combining-class: New file.
59866         * modules/unictype/category-all: New file.
59867         * modules/unictype/bidicategory-all: New file.
59868         * modules/unictype/bidicategory-byname: New file.
59869         * modules/unictype/bidicategory-name: New file.
59870         * modules/unictype/bidicategory-of: New file.
59871         * modules/unictype/bidicategory-test: New file.
59872         * modules/unictype/decimal-digit: New file.
59873         * modules/unictype/digit: New file.
59874         * modules/unictype/numeric: New file.
59875         * modules/unictype/mirror: New file.
59876         * modules/unictype/property-white-space: New file.
59877         * modules/unictype/property-alphabetic: New file.
59878         * modules/unictype/property-other-alphabetic: New file.
59879         * modules/unictype/property-not-a-character: New file.
59880         * modules/unictype/property-default-ignorable-code-point: New file.
59881         * modules/unictype/property-other-default-ignorable-code-point: New
59882         file.
59883         * modules/unictype/property-deprecated: New file.
59884         * modules/unictype/property-logical-order-exception: New file.
59885         * modules/unictype/property-variation-selector: New file.
59886         * modules/unictype/property-private-use: New file.
59887         * modules/unictype/property-unassigned-code-value: New file.
59888         * modules/unictype/property-uppercase: New file.
59889         * modules/unictype/property-other-uppercase: New file.
59890         * modules/unictype/property-lowercase: New file.
59891         * modules/unictype/property-other-lowercase: New file.
59892         * modules/unictype/property-titlecase: New file.
59893         * modules/unictype/property-soft-dotted: New file.
59894         * modules/unictype/property-id-start: New file.
59895         * modules/unictype/property-other-id-start: New file.
59896         * modules/unictype/property-id-continue: New file.
59897         * modules/unictype/property-other-id-continue: New file.
59898         * modules/unictype/property-xid-start: New file.
59899         * modules/unictype/property-xid-continue: New file.
59900         * modules/unictype/property-pattern-white-space: New file.
59901         * modules/unictype/property-pattern-syntax: New file.
59902         * modules/unictype/property-join-control: New file.
59903         * modules/unictype/property-grapheme-base: New file.
59904         * modules/unictype/property-grapheme-extend: New file.
59905         * modules/unictype/property-other-grapheme-extend: New file.
59906         * modules/unictype/property-grapheme-link: New file.
59907         * modules/unictype/property-bidi-control: New file.
59908         * modules/unictype/property-bidi-left-to-right: New file.
59909         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59910         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59911         * modules/unictype/property-bidi-european-digit: New file.
59912         * modules/unictype/property-bidi-eur-num-separator: New file.
59913         * modules/unictype/property-bidi-eur-num-terminator: New file.
59914         * modules/unictype/property-bidi-arabic-digit: New file.
59915         * modules/unictype/property-bidi-common-separator: New file.
59916         * modules/unictype/property-bidi-block-separator: New file.
59917         * modules/unictype/property-bidi-segment-separator: New file.
59918         * modules/unictype/property-bidi-whitespace: New file.
59919         * modules/unictype/property-bidi-non-spacing-mark: New file.
59920         * modules/unictype/property-bidi-boundary-neutral: New file.
59921         * modules/unictype/property-bidi-pdf: New file.
59922         * modules/unictype/property-bidi-embedding-or-override: New file.
59923         * modules/unictype/property-bidi-other-neutral: New file.
59924         * modules/unictype/property-hex-digit: New file.
59925         * modules/unictype/property-ascii-hex-digit: New file.
59926         * modules/unictype/property-ideographic: New file.
59927         * modules/unictype/property-unified-ideograph: New file.
59928         * modules/unictype/property-radical: New file.
59929         * modules/unictype/property-ids-binary-operator: New file.
59930         * modules/unictype/property-ids-trinary-operator: New file.
59931         * modules/unictype/property-zero-width: New file.
59932         * modules/unictype/property-space: New file.
59933         * modules/unictype/property-non-break: New file.
59934         * modules/unictype/property-iso-control: New file.
59935         * modules/unictype/property-format-control: New file.
59936         * modules/unictype/property-dash: New file.
59937         * modules/unictype/property-hyphen: New file.
59938         * modules/unictype/property-punctuation: New file.
59939         * modules/unictype/property-line-separator: New file.
59940         * modules/unictype/property-paragraph-separator: New file.
59941         * modules/unictype/property-quotation-mark: New file.
59942         * modules/unictype/property-sentence-terminal: New file.
59943         * modules/unictype/property-terminal-punctuation: New file.
59944         * modules/unictype/property-currency-symbol: New file.
59945         * modules/unictype/property-math: New file.
59946         * modules/unictype/property-other-math: New file.
59947         * modules/unictype/property-paired-punctuation: New file.
59948         * modules/unictype/property-left-of-pair: New file.
59949         * modules/unictype/property-combining: New file.
59950         * modules/unictype/property-composite: New file.
59951         * modules/unictype/property-decimal-digit: New file.
59952         * modules/unictype/property-numeric: New file.
59953         * modules/unictype/property-diacritic: New file.
59954         * modules/unictype/property-extender: New file.
59955         * modules/unictype/property-ignorable-control: New file.
59956         * modules/unictype/property-test: New file.
59957         * modules/unictype/property-byname: New file.
59958         * modules/unictype/property-all: New file.
59959         * modules/unictype/scripts: New file.
59960         * modules/unictype/scripts-all: New file.
59961         * modules/unictype/block-of: New file.
59962         * modules/unictype/block-test: New file.
59963         * modules/unictype/block-list: New file.
59964         * modules/unictype/block-all: New file.
59965         * modules/unictype/syntax-c-whitespace: New file.
59966         * modules/unictype/syntax-java-whitespace: New file.
59967         * modules/unictype/syntax-c-ident: New file.
59968         * modules/unictype/syntax-java-ident: New file.
59969         * modules/unictype/ctype-alnum: New file.
59970         * modules/unictype/ctype-alpha: New file.
59971         * modules/unictype/ctype-cntrl: New file.
59972         * modules/unictype/ctype-digit: New file.
59973         * modules/unictype/ctype-graph: New file.
59974         * modules/unictype/ctype-lower: New file.
59975         * modules/unictype/ctype-print: New file.
59976         * modules/unictype/ctype-punct: New file.
59977         * modules/unictype/ctype-space: New file.
59978         * modules/unictype/ctype-upper: New file.
59979         * modules/unictype/ctype-xdigit: New file.
59980         * modules/unictype/ctype-blank: New file.
59981         * lib/unictype/bidi_byname.c: New file.
59982         * lib/unictype/bidi_name.c: New file.
59983         * lib/unictype/bidi_of.c: New file.
59984         * lib/unictype/bidi_test.c: New file.
59985         * lib/unictype/bitmap.h: New file.
59986         * lib/unictype/block_test.c: New file.
59987         * lib/unictype/blocks.c: New file.
59988         * lib/unictype/categ_C.c: New file.
59989         * lib/unictype/categ_Cc.c: New file.
59990         * lib/unictype/categ_Cf.c: New file.
59991         * lib/unictype/categ_Cn.c: New file.
59992         * lib/unictype/categ_Co.c: New file.
59993         * lib/unictype/categ_Cs.c: New file.
59994         * lib/unictype/categ_L.c: New file.
59995         * lib/unictype/categ_Ll.c: New file.
59996         * lib/unictype/categ_Lm.c: New file.
59997         * lib/unictype/categ_Lo.c: New file.
59998         * lib/unictype/categ_Lt.c: New file.
59999         * lib/unictype/categ_Lu.c: New file.
60000         * lib/unictype/categ_M.c: New file.
60001         * lib/unictype/categ_Mc.c: New file.
60002         * lib/unictype/categ_Me.c: New file.
60003         * lib/unictype/categ_Mn.c: New file.
60004         * lib/unictype/categ_N.c: New file.
60005         * lib/unictype/categ_Nd.c: New file.
60006         * lib/unictype/categ_Nl.c: New file.
60007         * lib/unictype/categ_No.c: New file.
60008         * lib/unictype/categ_P.c: New file.
60009         * lib/unictype/categ_Pc.c: New file.
60010         * lib/unictype/categ_Pd.c: New file.
60011         * lib/unictype/categ_Pe.c: New file.
60012         * lib/unictype/categ_Pf.c: New file.
60013         * lib/unictype/categ_Pi.c: New file.
60014         * lib/unictype/categ_Po.c: New file.
60015         * lib/unictype/categ_Ps.c: New file.
60016         * lib/unictype/categ_S.c: New file.
60017         * lib/unictype/categ_Sc.c: New file.
60018         * lib/unictype/categ_Sk.c: New file.
60019         * lib/unictype/categ_Sm.c: New file.
60020         * lib/unictype/categ_So.c: New file.
60021         * lib/unictype/categ_Z.c: New file.
60022         * lib/unictype/categ_Zl.c: New file.
60023         * lib/unictype/categ_Zp.c: New file.
60024         * lib/unictype/categ_Zs.c: New file.
60025         * lib/unictype/categ_and.c: New file.
60026         * lib/unictype/categ_and_not.c: New file.
60027         * lib/unictype/categ_byname.c: New file.
60028         * lib/unictype/categ_name.c: New file.
60029         * lib/unictype/categ_none.c: New file.
60030         * lib/unictype/categ_of.c: New file.
60031         * lib/unictype/categ_or.c: New file.
60032         * lib/unictype/categ_test.c: New file.
60033         * lib/unictype/combining.c: New file.
60034         * lib/unictype/ctype_alnum.c: New file.
60035         * lib/unictype/ctype_alpha.c: New file.
60036         * lib/unictype/ctype_blank.c: New file.
60037         * lib/unictype/ctype_cntrl.c: New file.
60038         * lib/unictype/ctype_digit.c: New file.
60039         * lib/unictype/ctype_graph.c: New file.
60040         * lib/unictype/ctype_lower.c: New file.
60041         * lib/unictype/ctype_print.c: New file.
60042         * lib/unictype/ctype_punct.c: New file.
60043         * lib/unictype/ctype_space.c: New file.
60044         * lib/unictype/ctype_upper.c: New file.
60045         * lib/unictype/ctype_xdigit.c: New file.
60046         * lib/unictype/decdigit.c: New file.
60047         * lib/unictype/digit.c: New file.
60048         * lib/unictype/identsyntaxmap.h: New file.
60049         * lib/unictype/mirror.c: New file.
60050         * lib/unictype/numeric.c: New file.
60051         * lib/unictype/pr_alphabetic.c: New file.
60052         * lib/unictype/pr_ascii_hex_digit.c: New file.
60053         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60054         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60055         * lib/unictype/pr_bidi_block_separator.c: New file.
60056         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60057         * lib/unictype/pr_bidi_common_separator.c: New file.
60058         * lib/unictype/pr_bidi_control.c: New file.
60059         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60060         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60061         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60062         * lib/unictype/pr_bidi_european_digit.c: New file.
60063         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60064         * lib/unictype/pr_bidi_left_to_right.c: New file.
60065         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60066         * lib/unictype/pr_bidi_other_neutral.c: New file.
60067         * lib/unictype/pr_bidi_pdf.c: New file.
60068         * lib/unictype/pr_bidi_segment_separator.c: New file.
60069         * lib/unictype/pr_bidi_whitespace.c: New file.
60070         * lib/unictype/pr_byname.c: New file.
60071         * lib/unictype/pr_byname.gperf: New file.
60072         * lib/unictype/pr_combining.c: New file.
60073         * lib/unictype/pr_composite.c: New file.
60074         * lib/unictype/pr_currency_symbol.c: New file.
60075         * lib/unictype/pr_dash.c: New file.
60076         * lib/unictype/pr_decimal_digit.c: New file.
60077         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60078         * lib/unictype/pr_deprecated.c: New file.
60079         * lib/unictype/pr_diacritic.c: New file.
60080         * lib/unictype/pr_extender.c: New file.
60081         * lib/unictype/pr_format_control.c: New file.
60082         * lib/unictype/pr_grapheme_base.c: New file.
60083         * lib/unictype/pr_grapheme_extend.c: New file.
60084         * lib/unictype/pr_grapheme_link.c: New file.
60085         * lib/unictype/pr_hex_digit.c: New file.
60086         * lib/unictype/pr_hyphen.c: New file.
60087         * lib/unictype/pr_id_continue.c: New file.
60088         * lib/unictype/pr_id_start.c: New file.
60089         * lib/unictype/pr_ideographic.c: New file.
60090         * lib/unictype/pr_ids_binary_operator.c: New file.
60091         * lib/unictype/pr_ids_trinary_operator.c: New file.
60092         * lib/unictype/pr_ignorable_control.c: New file.
60093         * lib/unictype/pr_iso_control.c: New file.
60094         * lib/unictype/pr_join_control.c: New file.
60095         * lib/unictype/pr_left_of_pair.c: New file.
60096         * lib/unictype/pr_line_separator.c: New file.
60097         * lib/unictype/pr_logical_order_exception.c: New file.
60098         * lib/unictype/pr_lowercase.c: New file.
60099         * lib/unictype/pr_math.c: New file.
60100         * lib/unictype/pr_non_break.c: New file.
60101         * lib/unictype/pr_not_a_character.c: New file.
60102         * lib/unictype/pr_numeric.c: New file.
60103         * lib/unictype/pr_other_alphabetic.c: New file.
60104         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60105         * lib/unictype/pr_other_grapheme_extend.c: New file.
60106         * lib/unictype/pr_other_id_continue.c: New file.
60107         * lib/unictype/pr_other_id_start.c: New file.
60108         * lib/unictype/pr_other_lowercase.c: New file.
60109         * lib/unictype/pr_other_math.c: New file.
60110         * lib/unictype/pr_other_uppercase.c: New file.
60111         * lib/unictype/pr_paired_punctuation.c: New file.
60112         * lib/unictype/pr_paragraph_separator.c: New file.
60113         * lib/unictype/pr_pattern_syntax.c: New file.
60114         * lib/unictype/pr_pattern_white_space.c: New file.
60115         * lib/unictype/pr_private_use.c: New file.
60116         * lib/unictype/pr_punctuation.c: New file.
60117         * lib/unictype/pr_quotation_mark.c: New file.
60118         * lib/unictype/pr_radical.c: New file.
60119         * lib/unictype/pr_sentence_terminal.c: New file.
60120         * lib/unictype/pr_soft_dotted.c: New file.
60121         * lib/unictype/pr_space.c: New file.
60122         * lib/unictype/pr_terminal_punctuation.c: New file.
60123         * lib/unictype/pr_test.c: New file.
60124         * lib/unictype/pr_titlecase.c: New file.
60125         * lib/unictype/pr_unassigned_code_value.c: New file.
60126         * lib/unictype/pr_unified_ideograph.c: New file.
60127         * lib/unictype/pr_uppercase.c: New file.
60128         * lib/unictype/pr_variation_selector.c: New file.
60129         * lib/unictype/pr_white_space.c: New file.
60130         * lib/unictype/pr_xid_continue.c: New file.
60131         * lib/unictype/pr_xid_start.c: New file.
60132         * lib/unictype/pr_zero_width.c: New file.
60133         * lib/unictype/scripts.c: New file.
60134         * lib/unictype/sy_c_ident.c: New file.
60135         * lib/unictype/sy_c_whitespace.c: New file.
60136         * lib/unictype/sy_java_ident.c: New file.
60137         * lib/unictype/sy_java_whitespace.c: New file.
60138
60139         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60140         Unicode 5.0.0.
60141         * lib/unictype/blocks.h: Likewise.
60142         * lib/unictype/categ_C.h: Likewise.
60143         * lib/unictype/categ_Cc.h: Likewise.
60144         * lib/unictype/categ_Cf.h: Likewise.
60145         * lib/unictype/categ_Cn.h: Likewise.
60146         * lib/unictype/categ_Co.h: Likewise.
60147         * lib/unictype/categ_Cs.h: Likewise.
60148         * lib/unictype/categ_L.h: Likewise.
60149         * lib/unictype/categ_Ll.h: Likewise.
60150         * lib/unictype/categ_Lm.h: Likewise.
60151         * lib/unictype/categ_Lo.h: Likewise.
60152         * lib/unictype/categ_Lt.h: Likewise.
60153         * lib/unictype/categ_Lu.h: Likewise.
60154         * lib/unictype/categ_M.h: Likewise.
60155         * lib/unictype/categ_Mc.h: Likewise.
60156         * lib/unictype/categ_Me.h: Likewise.
60157         * lib/unictype/categ_Mn.h: Likewise.
60158         * lib/unictype/categ_N.h: Likewise.
60159         * lib/unictype/categ_Nd.h: Likewise.
60160         * lib/unictype/categ_Nl.h: Likewise.
60161         * lib/unictype/categ_No.h: Likewise.
60162         * lib/unictype/categ_P.h: Likewise.
60163         * lib/unictype/categ_Pc.h: Likewise.
60164         * lib/unictype/categ_Pd.h: Likewise.
60165         * lib/unictype/categ_Pe.h: Likewise.
60166         * lib/unictype/categ_Pf.h: Likewise.
60167         * lib/unictype/categ_Pi.h: Likewise.
60168         * lib/unictype/categ_Po.h: Likewise.
60169         * lib/unictype/categ_Ps.h: Likewise.
60170         * lib/unictype/categ_S.h: Likewise.
60171         * lib/unictype/categ_Sc.h: Likewise.
60172         * lib/unictype/categ_Sk.h: Likewise.
60173         * lib/unictype/categ_Sm.h: Likewise.
60174         * lib/unictype/categ_So.h: Likewise.
60175         * lib/unictype/categ_Z.h: Likewise.
60176         * lib/unictype/categ_Zl.h: Likewise.
60177         * lib/unictype/categ_Zp.h: Likewise.
60178         * lib/unictype/categ_Zs.h: Likewise.
60179         * lib/unictype/categ_of.h: Likewise.
60180         * lib/unictype/combining.h: Likewise.
60181         * lib/unictype/ctype_alnum.h: Likewise.
60182         * lib/unictype/ctype_alpha.h: Likewise.
60183         * lib/unictype/ctype_blank.h: Likewise.
60184         * lib/unictype/ctype_cntrl.h: Likewise.
60185         * lib/unictype/ctype_digit.h: Likewise.
60186         * lib/unictype/ctype_graph.h: Likewise.
60187         * lib/unictype/ctype_lower.h: Likewise.
60188         * lib/unictype/ctype_print.h: Likewise.
60189         * lib/unictype/ctype_punct.h: Likewise.
60190         * lib/unictype/ctype_space.h: Likewise.
60191         * lib/unictype/ctype_upper.h: Likewise.
60192         * lib/unictype/ctype_xdigit.h: Likewise.
60193         * lib/unictype/decdigit.h: Likewise.
60194         * lib/unictype/digit.h: Likewise.
60195         * lib/unictype/mirror.h: Likewise.
60196         * lib/unictype/numeric.h: Likewise.
60197         * lib/unictype/pr_alphabetic.h: Likewise.
60198         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60199         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60200         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60201         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60202         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60203         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60204         * lib/unictype/pr_bidi_control.h: Likewise.
60205         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60206         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60207         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60208         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60209         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60210         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60211         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60212         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60213         * lib/unictype/pr_bidi_pdf.h: Likewise.
60214         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60215         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60216         * lib/unictype/pr_combining.h: Likewise.
60217         * lib/unictype/pr_composite.h: Likewise.
60218         * lib/unictype/pr_currency_symbol.h: Likewise.
60219         * lib/unictype/pr_dash.h: Likewise.
60220         * lib/unictype/pr_decimal_digit.h: Likewise.
60221         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60222         * lib/unictype/pr_deprecated.h: Likewise.
60223         * lib/unictype/pr_diacritic.h: Likewise.
60224         * lib/unictype/pr_extender.h: Likewise.
60225         * lib/unictype/pr_format_control.h: Likewise.
60226         * lib/unictype/pr_grapheme_base.h: Likewise.
60227         * lib/unictype/pr_grapheme_extend.h: Likewise.
60228         * lib/unictype/pr_grapheme_link.h: Likewise.
60229         * lib/unictype/pr_hex_digit.h: Likewise.
60230         * lib/unictype/pr_hyphen.h: Likewise.
60231         * lib/unictype/pr_id_continue.h: Likewise.
60232         * lib/unictype/pr_id_start.h: Likewise.
60233         * lib/unictype/pr_ideographic.h: Likewise.
60234         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60235         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60236         * lib/unictype/pr_ignorable_control.h: Likewise.
60237         * lib/unictype/pr_iso_control.h: Likewise.
60238         * lib/unictype/pr_join_control.h: Likewise.
60239         * lib/unictype/pr_left_of_pair.h: Likewise.
60240         * lib/unictype/pr_line_separator.h: Likewise.
60241         * lib/unictype/pr_logical_order_exception.h: Likewise.
60242         * lib/unictype/pr_lowercase.h: Likewise.
60243         * lib/unictype/pr_math.h: Likewise.
60244         * lib/unictype/pr_non_break.h: Likewise.
60245         * lib/unictype/pr_not_a_character.h: Likewise.
60246         * lib/unictype/pr_numeric.h: Likewise.
60247         * lib/unictype/pr_other_alphabetic.h: Likewise.
60248         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60249         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60250         * lib/unictype/pr_other_id_continue.h: Likewise.
60251         * lib/unictype/pr_other_id_start.h: Likewise.
60252         * lib/unictype/pr_other_lowercase.h: Likewise.
60253         * lib/unictype/pr_other_math.h: Likewise.
60254         * lib/unictype/pr_other_uppercase.h: Likewise.
60255         * lib/unictype/pr_paired_punctuation.h: Likewise.
60256         * lib/unictype/pr_paragraph_separator.h: Likewise.
60257         * lib/unictype/pr_pattern_syntax.h: Likewise.
60258         * lib/unictype/pr_pattern_white_space.h: Likewise.
60259         * lib/unictype/pr_private_use.h: Likewise.
60260         * lib/unictype/pr_punctuation.h: Likewise.
60261         * lib/unictype/pr_quotation_mark.h: Likewise.
60262         * lib/unictype/pr_radical.h: Likewise.
60263         * lib/unictype/pr_sentence_terminal.h: Likewise.
60264         * lib/unictype/pr_soft_dotted.h: Likewise.
60265         * lib/unictype/pr_space.h: Likewise.
60266         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60267         * lib/unictype/pr_titlecase.h: Likewise.
60268         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60269         * lib/unictype/pr_unified_ideograph.h: Likewise.
60270         * lib/unictype/pr_uppercase.h: Likewise.
60271         * lib/unictype/pr_variation_selector.h: Likewise.
60272         * lib/unictype/pr_white_space.h: Likewise.
60273         * lib/unictype/pr_xid_continue.h: Likewise.
60274         * lib/unictype/pr_xid_start.h: Likewise.
60275         * lib/unictype/pr_zero_width.h: Likewise.
60276         * lib/unictype/scripts.h: Likewise.
60277         * lib/unictype/scripts_byname.gperf: Likewise.
60278         * lib/unictype/sy_c_ident.h: Likewise.
60279         * lib/unictype/sy_c_whitespace.h: Likewise.
60280         * lib/unictype/sy_java_ident.h: Likewise.
60281         * lib/unictype/sy_java_whitespace.h: Likewise.
60282
60283         * lib/unictype/Makefile: New file.
60284         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60285         glibc.
60286         * lib/unictype/3level.h: New file, copied from glibc.
60287         * lib/unictype/3levelbit.h: New file.
60288
60289 2007-11-11  Bruno Haible  <bruno@clisp.org>
60290
60291         * modules/gperf: New file.
60292         * modules/iconv_open (Depends-on): Add it.
60293         (Makefile.am): Remove the GPERF definition.
60294
60295 2007-11-11  Bruno Haible  <bruno@clisp.org>
60296
60297         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60298         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60299
60300 2007-11-11  Bruno Haible  <bruno@clisp.org>
60301
60302         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60303         (usage): Remove function.
60304
60305 2007-11-11  Bruno Haible  <bruno@clisp.org>
60306
60307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60308         gl_FUNC_CEILF_LIBS.
60309         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60310         gl_FUNC_CEIL_LIBS.
60311         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60312         gl_FUNC_CEILL_LIBS.
60313         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60314         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60315         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60316
60317 2007-11-11  Bruno Haible  <bruno@clisp.org>
60318
60319         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60320         roundf were declared but do not exist on functions.
60321         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60322         roundl were declared but do not exist on functions.
60323         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60324         HAVE_FLOORL_AND_CEILL, respectively.
60325         Needed for Sun C on Solaris 10.
60326
60327 2007-11-11  Bruno Haible  <bruno@clisp.org>
60328
60329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60330         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60331         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60332         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60333         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60334         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60335         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60336         HAVE_DECL_ROUNDF.
60337         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60338         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60340         of HAVE_DECL_ROUND*.
60341         * modules/math (Makefile.am): Update.
60342
60343 2007-11-10  Bruno Haible  <bruno@clisp.org>
60344
60345         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60346         ptrdiff_t as m4/intl.m4.
60347
60348 2007-11-10  Jim Meyering  <meyering@redhat.com>
60349
60350         Avoid link failure for the argmatch test.
60351         * tests/test-argmatch.c (usage): Define function to avoid a link
60352         failure: argmatch_die requires a usage function.
60353
60354 2007-11-09  Bruno Haible  <bruno@clisp.org>
60355
60356         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60357         * doc/functions/vsnprintf.texi: Likewise.
60358         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60359         with a size argument < 2.
60360
60361 2007-11-09  Bruno Haible  <bruno@clisp.org>
60362
60363         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60364         buffer. Fixes an inefficiency introduced on 2007-11-03.
60365
60366 2007-11-09  Bruno Haible  <bruno@clisp.org>
60367
60368         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60369         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60370
60371 2007-11-08  Jim Meyering  <meyering@redhat.com>
60372
60373         Change cache variable name prefix "jm_" to "gl_" everywhere.
60374         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60375         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60376         * m4/uptime.m4: s/gl_/jm_/
60377
60378 2007-11-07  Bruno Haible  <bruno@clisp.org>
60379
60380         Update to GNU gettext 0.17.
60381         * m4/intl.m4: Update to GNU gettext 0.17.
60382         * m4/po.m4: Likewise.
60383         * modules/gettext (Files): Remove m4/ulonglong.m4.
60384         (configure.ac): Require gettext infrastructure from version 0.17.
60385
60386 2007-11-06  Bruno Haible  <bruno@clisp.org>
60387
60388         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60389         symbolic values are not defined in a public header.
60390         * lib/freadable.c (freadable) [QNX]: Likewise.
60391         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60392         * lib/freading.c (freading) [QNX]: Likewise.
60393         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60394         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60395         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60396         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60397         Reported by Alain Magloire.
60398
60399         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60400
60401 2007-11-05  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60404         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60405         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60406         Reported by Eric Blake.
60407
60408 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60409             Bruno Haible  <bruno@clisp.org>
60410
60411         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60412         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60413         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60414         (malloc): Undefine also before including <stdlib.h>.
60415         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60416         Needed on OSF/1 4.0.
60417
60418 2007-11-05  Jim Meyering  <meyering@redhat.com>
60419
60420         git-version-gen: sync from coreutils.
60421         * build-aux/git-version-gen: Add comments.
60422         Change the first '-' to '.' in the snapshot version string,
60423         e.g., 6.9-377-08144 -> 6.9.377-08144
60424         Remove first parameter.
60425         Don't declare a version "-dirty" merely because a time
60426         stamp has changed.
60427
60428 2007-11-04  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/lock.h: Protect all macro definitions containing an 'if'
60431         statement through a "do { ... } while (0)".
60432         * lib/tls.h: Likewise.
60433
60434 2007-11-04  Bruno Haible  <bruno@clisp.org>
60435
60436         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60437
60438 2007-11-04  Bruno Haible  <bruno@clisp.org>
60439
60440         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60441         * modules/fprintf-posix (Depends-on): Add nocrash.
60442         * modules/snprintf-posix (Depends-on): Likewise.
60443         * modules/sprintf-posix (Depends-on): Likewise.
60444         * modules/vasnprintf-posix (Depends-on): Likewise.
60445         * modules/vasprintf-posix (Depends-on): Likewise.
60446         * modules/vfprintf-posix (Depends-on): Likewise.
60447         * modules/vsnprintf-posix (Depends-on): Likewise.
60448         * modules/vsprintf-posix (Depends-on): Likewise.
60449         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60450         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60451         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60452         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60453         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60454         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60455         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60456
60457 2007-11-04  Bruno Haible  <bruno@clisp.org>
60458
60459         * modules/nocrash: New file.
60460         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60461         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60462
60463 2007-11-04  Bruno Haible  <bruno@clisp.org>
60464
60465         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60466         precision handling.
60467         * tests/test-vasprintf-posix.c (test_function): Likewise.
60468         * tests/test-snprintf-posix.h (test_function): Likewise.
60469         * tests/test-sprintf-posix.h (test_function): Likewise.
60470
60471         Fix *printf behaviour for large precisions on mingw and BeOS.
60472         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60473         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60475         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60477         gl_PRINTF_PRECISION and test its result. Invoke
60478         gl_PREREQ_VASNPRINTF_PRECISION.
60479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60486         * doc/functions/fprintf.texi: Update.
60487         * doc/functions/printf.texi: Update.
60488         * doc/functions/snprintf.texi: Update.
60489         * doc/functions/sprintf.texi: Update.
60490         * doc/functions/vfprintf.texi: Update.
60491         * doc/functions/vprintf.texi: Update.
60492         * doc/functions/vsnprintf.texi: Update.
60493         * doc/functions/vsprintf.texi: Update.
60494
60495 2007-11-04  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60498
60499 2007-11-04  Bruno Haible  <bruno@clisp.org>
60500
60501         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60502         Reported by Sylvain Beucler <beuc@gnu.org>.
60503
60504 2007-11-03  Bruno Haible  <bruno@clisp.org>
60505
60506         * tests/test-fprintf-posix2.sh: New file.
60507         * tests/test-fprintf-posix2.c: New file.
60508         * modules/fprintf-posix-tests (Files): Add them.
60509         (TESTS): Add test-fprintf-posix2.sh.
60510         (configure.ac): Check for getrlimit and setrlimit.
60511         (check_PROGRAMS): Add test-fprintf-posix2.
60512
60513         * tests/test-printf-posix2.sh: New file.
60514         * tests/test-printf-posix2.c: New file.
60515         * modules/printf-posix-tests (Files): Add them.
60516         (TESTS): Add test-printf-posix2.sh.
60517         (configure.ac): Check for getrlimit and setrlimit.
60518         (check_PROGRAMS): Add test-printf-posix2.
60519
60520         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60521         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60522         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60523         (decode_double): New function, copied from decode_long_double.
60524         (scale10_round_decimal_decoded): New function, extracted from
60525         scale10_round_decimal_long_double.
60526         (scale10_round_decimal_long_double): Use it.
60527         (scale10_round_decimal_double): New function.
60528         (floorlog10): New function.
60529         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60531         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60532         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60533         gl_PRINTF_ENOMEM and test its result. Invoke
60534         gl_PREREQ_VASNPRINTF_ENOMEM.
60535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60539         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60542         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60543         * modules/snprintf-posix (Depends-on): Likewise.
60544         * modules/sprintf-posix (Depends-on): Likewise.
60545         * modules/vasnprintf-posix (Depends-on): Likewise.
60546         * modules/vasprintf-posix (Depends-on): Likewise.
60547         * modules/vfprintf-posix (Depends-on): Likewise.
60548         * modules/vsnprintf-posix (Depends-on): Likewise.
60549         * modules/vsprintf-posix (Depends-on): Likewise.
60550         * doc/functions/fprintf.texi: Update.
60551         * doc/functions/printf.texi: Update.
60552         * doc/functions/snprintf.texi: Update.
60553         * doc/functions/sprintf.texi: Update.
60554         * doc/functions/vfprintf.texi: Update.
60555         * doc/functions/vprintf.texi: Update.
60556         * doc/functions/vsnprintf.texi: Update.
60557         * doc/functions/vsprintf.texi: Update.
60558
60559 2007-11-03  Bruno Haible  <bruno@clisp.org>
60560
60561         * modules/frexp-nolibm-tests: New file.
60562
60563         * modules/frexp-nolibm: New file.
60564         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60565
60566 2007-11-03  Bruno Haible  <bruno@clisp.org>
60567
60568         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60569         value is C99 compliant.
60570         Needed for OSF/1 5.1.
60571
60572 2007-11-03  Bruno Haible  <bruno@clisp.org>
60573
60574         Fix out-of-memory handling of vasnprintf.
60575         * lib/printf-parse.c: Include <errno.h>.
60576         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60577         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60578         is already set.
60579
60580 2007-11-02  Eric Blake  <ebb9@byu.net>
60581
60582         Fix tests on cygwin.
60583         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60584
60585 2007-11-01  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60588         warning.
60589         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60590         needed for POSIX compatibility.
60591
60592 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60593
60594         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60595         for compatibility with GNU.
60596
60597 2007-11-01  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60600         (putenv): Renamed from rpl_putenv. Change argument type from
60601         'const char *' to 'char *'.
60602         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60603         of defining putenv in config.h, just set REPLACE_PUTENV.
60604         * modules/putenv (Depends-on): Add stdlib.
60605         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60606         (Include): Use <stdlib.h>.
60607         * lib/stdlib.in.h (putenv): New declaration.
60608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60609         REPLACE_PUTENV.
60610         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60611         REPLACE_PUTENV.
60612         Needed for MacOS X 10.5.0.
60613         Reported by Peter O'Gorman <peter@pogma.com>.
60614
60615 2007-11-01  Jim Meyering  <meyering@redhat.com>
60616
60617         Treat an empty date string exactly like "0".
60618         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60619         if the remaining date string (to be parsed) is empty, use "0".
60620         Reported by Mischa Molhoek and discussed in this thread:
60621         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60622
60623 2007-10-31  Bruno Haible  <bruno@clisp.org>
60624
60625         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60626         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60627         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60628         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60629         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60630         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60631
60632 2007-10-31  Bruno Haible  <bruno@clisp.org>
60633
60634         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60635         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60636         (AC_TYPE_LONG_LONG_INT): Use it.
60637         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60638         it as well.
60639         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60640         to m4/longlong.m4.
60641         * modules/stdint (Files): Remove m4/ulonglong.m4.
60642         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60643         m4/ulonglong.m4.
60644         * modules/strtoumax (Files): Likewise.
60645
60646 2007-10-30  Bruno Haible  <bruno@clisp.org>
60647
60648         * modules/xvasprintf-posix: New file.
60649         Suggested by Eric Blake.
60650
60651 2007-10-30  Bruno Haible  <bruno@clisp.org>
60652
60653         * modules/xprintf-posix-tests: New file.
60654         * tests/test-xprintf-posix.sh: New file.
60655         * tests/test-xprintf-posix.c: New file.
60656         * tests/test-xfprintf-posix.c: New file.
60657
60658         * modules/xprintf-posix: New file.
60659
60660 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60661
60662         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60663         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60664         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60665
60666 2007-10-29  Bruno Haible  <bruno@clisp.org>
60667
60668         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60669         contain the special marker '_cv_'.
60670         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60671         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60672         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60673         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60674         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60675         Reported by Ralf Wildenhues.
60676
60677 2007-10-29  Bruno Haible  <bruno@clisp.org>
60678
60679         * gnulib-tool (func_import): When --lgpl is not specified, set
60680         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60681         GPLv3.
60682         Reported by Simon Josefsson.
60683
60684 2007-10-28  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60687         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60688         HAVE_DECL_ISFINITE.
60689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60690         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60691         HAVE_DECL_ISFINITE.
60692
60693 2007-10-28  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60696         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60697
60698 2007-10-28  Bruno Haible  <bruno@clisp.org>
60699
60700         Fix link errors with Sun C 5.0 on Solaris 10.
60701         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60702         function is declared but not present in the compiler's libm.
60703         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60704         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60705         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60706         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60707         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60708         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60709         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60711         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60712         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60713         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60714         HAVE_DECL_FLOORL.
60715
60716 2007-10-28  Bruno Haible  <bruno@clisp.org>
60717
60718         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60719         gl_FUNC_FLOORL. Cache the result.
60720         (gl_FUNC_FLOORL): Use it.
60721         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60722         gl_FUNC_CEILL. Cache the result.
60723         (gl_FUNC_CEILL): Use it.
60724
60725         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60726         gl_FUNC_FLOOR. Cache the result.
60727         (gl_FUNC_FLOOR): Use it.
60728         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60729         gl_FUNC_CEIL. Cache the result.
60730         (gl_FUNC_CEIL): Use it.
60731
60732         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60733         gl_FUNC_FLOORF. Cache the result.
60734         (gl_FUNC_FLOORF): Use it.
60735         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60736         gl_FUNC_CEILF. Cache the result.
60737         (gl_FUNC_CEILF): Use it.
60738
60739 2007-10-28  Bruno Haible  <bruno@clisp.org>
60740
60741         * gnulib-tool: Allow specifying the LGPL version number through
60742         --lgpl=2 or --lgpl=3.
60743         (func_usage): Document --lgpl with argument.
60744         Handle --lgpl=... arguments.
60745         (func_import): Recognize also gl_LGPL calls with an argument. When
60746         --lgpl=2 is used and the module's license is just LGPL, report an
60747         error. Set sed_transform_lib_file according to the lgpl variable. In
60748         the generated files, use --lgpl or gl_LGPL invocations with argument,
60749         if necessary.
60750         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60751         an LGPv2+ license.
60752         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60753         gl_LGPL macro.
60754
60755 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60756             Bruno Haible  <bruno@clisp.org>
60757
60758         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60759         (u16_uctomb_aux): Likewise.
60760         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60761         !HAVE_INLINE.
60762         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60763
60764 2007-10-28  Bruno Haible  <bruno@clisp.org>
60765
60766         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60767         Invoke AM_GETTEXT_OPTION if it exists.
60768         * modules/vasprintf: Likewise.
60769         * modules/verror: Likewise.
60770         * modules/xprintf: Likewise.
60771         * modules/xvasprintf: Likewise.
60772
60773 2007-10-27  Ben Pfaff  <blp@gnu.org>
60774
60775         * lib/math.in.h: Define isfinite macro and prototypes for
60776         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60777         implementations.
60778         * m4/math_h.m4: New substitutions for isfinite module.
60779         * lib/isfinite.c: New file.
60780         * m4/isfinite.m4: New file.
60781         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60782         * modules/isfinite: New file.
60783         * modules/isfinite-tests: New file.
60784         * tests/tests-isfinite.c: New file.
60785         * doc/functions/isfinite.texi: Mention isfinite module.
60786         * MODULES.html.sh: Mention new module.
60787
60788 2007-10-27  Ben Pfaff  <blp@gnu.org>
60789
60790         Ralf Wildenhues reported that Tru64 4.0D declares the round
60791         functions but does not have definitions.
60792         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60793         cannot be found in any library, set the output variable to
60794         "missing" instead of "".
60795         * m4/round.m4: Also use our substitute if we cannot find round in
60796         any library, even if it is declared.
60797         * m4/roundf.m4: Likewise for roundf.
60798         * m4/roundl.m4: Likewise for roundl.
60799         * lib/math.in.h: Undefine roundf, round, roundl before defining
60800         their replacements, to allow for hypothetical systems where these
60801         may be defined as macros but not available in libraries.
60802
60803 2007-10-27  Bruno Haible  <bruno@clisp.org>
60804
60805         * doc/gnulib.texi: Invoke @firstparagraphindent.
60806         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60807         changes in gnulib.
60808         (Source changes): New section.
60809
60810 2007-10-26  Bruno Haible  <bruno@clisp.org>
60811
60812         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60813         borrowed from autoconf.
60814
60815 2007-10-26  Bruno Haible  <bruno@clisp.org>
60816
60817         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60818         strerror returned the empty string. Needed on HP-UX 11.00.
60819
60820 2007-10-24  Micah Cowan  <micah@cowan.name>
60821
60822         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60823         * build-aux/bootstrap: Remove support for now-unnecessary option,
60824         --cvs-user, and envvars CVS_USER, CVS_RSH.
60825
60826 2007-10-24  Jim Meyering  <meyering@redhat.com>
60827
60828         Avoid diagnostics from sha1sum when there is no cached checksum.
60829         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60830         if the po.s1 file hasn't been created yet.
60831
60832         * build-aux/bootstrap: Sync from coreutils:
60833         2007-10-24  Jim Meyering  <meyering@redhat.com>
60834         Get gnulib from the git repository, not from an obsolete cvs one.
60835         * build-aux/bootstrap: Suggestion from Micah Cowan.
60836         2007-10-04  Jim Meyering  <jim@meyering.net>
60837         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60838         (update_po_files): Work also when there are no .po files in po/.
60839
60840 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * README: Append ".git" to git and cg examples.
60843         Problem reported by Benoit Sigoure.
60844
60845 2007-10-23  Micah Cowan  <micah@cowan.name>
60846
60847         * users.txt: Add wget.
60848
60849 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60850
60851         Fix linking of some unistdio tests on FreeBSD.
60852         * modules/unistdio/u16-vsnprintf-tests
60853         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60854         * modules/unistdio/u16-vsprintf-tests
60855         (test_u16_vsnprintf1_LDADD): Likewise.
60856         * modules/unistdio/u32-vsnprintf-tests
60857         (test_u32_vsnprintf1_LDADD): Likewise.
60858         * modules/unistdio/u32-vsprintf-tests
60859         (test_u32_vsprintf1_LDADD): Likewise.
60860         * modules/unistdio/u8-vsnprintf-tests
60861         (test_u8_vsnprintf1_LDADD): Likewise.
60862         * modules/unistdio/u8-vsprintf-tests
60863         (test_u8_vsprintf1_LDADD): Likewise.
60864         * modules/unistdio/ulc-vsnprintf-tests
60865         (test_ulc_vsnprintf1_LDADD): Likewise.
60866         * modules/unistdio/ulc-vsprintf-tests
60867         (test_ulc_vsprintf1_LDADD): Likewise.
60868
60869         Fix linking of some uniconv tests on FreeBSD.
60870         * modules/uniconv/u16-conv-from-enc-tests
60871         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60872         * modules/uniconv/u16-conv-to-enc-tests
60873         (test_u16_conv_to_enc_LDADD): Likewise.
60874         * modules/uniconv/u16-strconv-from-enc-tests
60875         (test_u16_strconv_from_enc_LDADD): Likewise.
60876         * modules/uniconv/u16-strconv-to-enc-tests
60877         (test_u16_strconv_to_enc_LDADD): Likewise.
60878         * modules/uniconv/u32-conv-from-enc-tests
60879         (test_u32_conv_from_enc_LDADD): Likewise.
60880         * modules/uniconv/u32-conv-to-enc-tests
60881         (test_u32_conv_to_enc_LDADD): Likewise.
60882         * modules/uniconv/u32-strconv-from-enc-tests
60883         (test_u32_strconv_from_enc_LDADD): Likewise.
60884         * modules/uniconv/u32-strconv-to-enc-tests
60885         (test_u32_strconv_to_enc_LDADD): Likewise.
60886         * modules/uniconv/u8-conv-from-enc-tests
60887         (test_u8_conv_from_enc_LDADD): Likewise.
60888         * modules/uniconv/u8-conv-to-enc-tests
60889         (test_u8_conv_to_enc_LDADD): Likewise.
60890         * modules/uniconv/u8-strconv-from-enc-tests
60891         (test_u8_strconv_from_enc_LDADD): Likewise.
60892         * modules/uniconv/u8-strconv-to-enc-tests
60893         (test_u8_strconv_to_enc_LDADD): Likewise.
60894
60895 2007-10-22  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60898         size.
60899
60900 2007-10-22  Eric Blake  <ebb9@byu.net>
60901
60902         Tweak x*printf documentation.
60903         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60904         variable name and comments.
60905         Suggested by Bruno Haible.
60906
60907 2007-10-22  Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/acl.c (copy_acl): Fix file name in comment.
60910
60911 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60912
60913         Fix Tru64 problem with stdbool.h.
60914         * lib/stdbool.in.h (false, true):
60915         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60916         Don't declare as an enum in this situation; it runs afoul of Tru64.
60917         Problem reported by Steven M. Schweda in
60918         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60919
60920 2007-10-22  Eric Blake  <ebb9@byu.net>
60921
60922         Also wrap vf?printf.
60923         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60924         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60925         (xvprintf, xvfprintf): New functions.
60926
60927 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60928
60929         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60930         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60931
60932         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60933         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60934
60935 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60936
60937         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60938         by Bruno Haible.
60939
60940 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60941
60942         * lib/getloadavg.c
60943         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60944         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60945
60946         * tests/test-i-ring.c: Work for C89.
60947
60948 2007-10-22  Bruno Haible  <bruno@clisp.org>
60949
60950         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60951         -1u, in preprocessor expression, so that we don't test for the bug
60952         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60953         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60954
60955 2007-10-22  Eric Blake  <ebb9@byu.net>
60956
60957         * tests/test-yesno.sh: Silence stderr during test.
60958
60959 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60960
60961         * modules/crypto/gc-camellia: New file.
60962
60963         * m4/gc-camellia.m4: New file.
60964
60965         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60966
60967         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60968
60969 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60970
60971         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60972         --help to stdout.  Reported by sms@antinode.org (Steven
60973         M. Schweda).
60974
60975 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60976
60977         * users.txt: Fix link to libksba.
60978
60979 2007-10-21  Ben Pfaff  <blp@gnu.org>
60980
60981         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60982         round.c roundf implementation that depends on floorf and ceilf to
60983         be tested unconditionally.
60984
60985 2007-10-21  Ben Pfaff  <blp@gnu.org>
60986
60987         * m4/check-libm-func.m4: Removed.
60988         * m4/check-math-lib.m4: New file.
60989         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60990         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60991         definition and lack of AC_LIBOBJ([roundf]).
60992         * m4/roundl.m4: Ditto, and similarly for roundl.
60993         * modules/round: Reference new m4 file.
60994         * modules/roundf: Ditto.
60995         * modules/roundl: Ditto.
60996         * tests/test-round2.c (main): Use ROUND instead of round.
60997         Bug report from Bruno Haible.
60998
60999 2007-10-21  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61002         context.
61003
61004 2007-10-21  Bruno Haible  <bruno@clisp.org>
61005
61006         * tests/test-wcwidth.c (main): Allow negative result for some control
61007         characters.
61008
61009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61010         Needed on OSF/1 5.1.
61011
61012 2007-10-21  Bruno Haible  <bruno@clisp.org>
61013
61014         * tests/test-floorf1.c: Include isnanf.h.
61015         (main): Use isnanf() instead of isnan().
61016         * tests/test-ceilf1.c: Include isnanf.h.
61017         (main): Use isnanf() instead of isnan().
61018         * tests/test-truncf1.c: Include isnanf.h.
61019         (main): Use isnanf() instead of isnan().
61020         * tests/test-roundf1.c: Include isnanf.h.
61021         (main): Use isnanf() instead of isnan().
61022
61023 2007-10-21  Eric Blake  <ebb9@byu.net>
61024
61025         * users.txt: Update URL for m4.
61026
61027 2007-10-21  Bruno Haible  <bruno@clisp.org>
61028
61029         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61030
61031 2007-10-21  Bruno Haible  <bruno@clisp.org>
61032
61033         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61034         Git's management files if the CVS files are not present.
61035
61036 2007-10-20  Bruno Haible  <bruno@clisp.org>
61037
61038         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61039         gcc-3.4.x.
61040
61041 2007-10-20  Ben Pfaff  <blp@gnu.org>
61042
61043         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61044         implementations.
61045         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61046         * lib/round.c: New file.
61047         * lib/roundf.c: New file.
61048         * lib/roundl.c: New file.
61049         * m4/round.m4: New file.
61050         * m4/roundf.m4: New file.
61051         * m4/roundl.m4: New file.
61052         * m4/check-libm-func-m4: New file.
61053         * modules/math: Replace round, roundf, roundl related @VARS@ in
61054         math.in.h.
61055         * modules/round: New file.
61056         * modules/round-tests: New file.
61057         * modules/roundf: New file.
61058         * modules/roundf-tests: New file.
61059         * modules/roundl: New file.
61060         * modules/roundl-tests: New file.
61061         * tests/test-round1.c: New file.
61062         * tests/test-round2.c: New file.
61063         * tests/test-roundf1.c: New file.
61064         * tests/test-roundf2.c: New file.
61065         * tests/test-roundl.c: New file.
61066         * doc/functions/round.texi: Mention round module.
61067         * doc/functions/roundf.texi: Mention roundf module.
61068         * doc/functions/roundl.texi: Mention roundl module.
61069         * MODULES.html.sh: Mention new modules.
61070         Thanks to Bruno Haible for suggestions.
61071
61072 2007-10-20  Jim Meyering  <meyering@redhat.com>
61073
61074         * lib/xprintf.c: Include <config.h> unconditionally.
61075
61076         Change xprintf's license to GPL.
61077         * modules/xprintf (License): s/LGPL/GPL/, since this module
61078         depends on modules (exit and exitfail) which are GPL.
61079         Suggestion from Bruno Haible.
61080
61081         xprintf fixes.
61082         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61083         Use a clearer diagnostic.
61084         Patch from Bruno Haible.
61085
61086 2007-10-20  Bruno Haible  <bruno@clisp.org>
61087
61088         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61089         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61091
61092 2007-10-20  Bruno Haible  <bruno@clisp.org>
61093
61094         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61095         precision in the comparison result > x - 1 or similar.
61096         * tests/test-ceilf2.c (correct_result_p): Likewise.
61097         * tests/test-truncf2.c (correct_result_p): Likewise.
61098         * tests/test-trunc2.c (correct_result_p): Likewise.
61099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61100
61101 2007-10-20  Bruno Haible  <bruno@clisp.org>
61102
61103         * modules/ceil: New file.
61104         * m4/ceil.m4: New file.
61105         * doc/functions/ceil.texi: Mention the 'ceil' module.
61106
61107 2007-10-20  Bruno Haible  <bruno@clisp.org>
61108
61109         * modules/floor: New file.
61110         * m4/floor.m4: New file.
61111         * doc/functions/floor.texi: Mention the 'floor' module.
61112
61113 2007-10-20  Bruno Haible  <bruno@clisp.org>
61114
61115         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61116         of %a.
61117         * modules/floorf-tests (Depends-on): Likewise.
61118         * modules/truncf-tests (Depends-on): Likewise.
61119         * modules/trunc-tests (Depends-on): Likewise.
61120         Reported by Ben Pfaff.
61121
61122 2007-10-19  Jim Meyering  <meyering@redhat.com>
61123
61124         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61125         Don't bother testing specific errno values.  Just test ferror.
61126
61127         New module: xprintf
61128         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61129
61130 2007-10-19  Bruno Haible  <bruno@clisp.org>
61131
61132         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61133         syntax.
61134         * modules/javaexec (Makefile.am): Likewise.
61135         * modules/relocatable-prog (Makefile.am): Likewise.
61136         Suggested by Jim Meyering.
61137
61138 2007-10-18  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61141         Reported by Jim Meyering.
61142
61143 2007-10-18  Eric Blake  <ebb9@byu.net>
61144
61145         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61146
61147 2007-10-18  Bruno Haible  <bruno@clisp.org>
61148
61149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61150         the format string into writable memory. Needed in Fortify conditions.
61151
61152 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61153             Bruno Haible  <bruno@clisp.org>
61154
61155         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61156         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61157         * modules/trim (Depends-on): Add mbchar.
61158         (configure.ac): Add gl_FUNC_MBRTOWC.
61159         (Makefile.am): Augment lib_SOURCES.
61160
61161 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61162
61163         Modify glob.c to use fstatat and dirfd, to simplify it.
61164         Suggested by Eric Blake.
61165         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61166         Don't include <stdbool.h>; not used.
61167         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61168         (link_exists_p): Simplify implementation, since we can now assume
61169         dirfd and fstatat.
61170         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61171
61172 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61173
61174         * gnulib-tool (func_get_dependencies): Fix sed script to
61175         match only tests.
61176
61177 2007-10-17  Bruno Haible  <bruno@clisp.org>
61178
61179         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61180         allow locale names without encoding suffix.
61181         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61182         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61183
61184 2007-10-16  Bruno Haible  <bruno@clisp.org>
61185
61186         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61187         * lib/getgroups.c (getgroups): Likewise.
61188         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61189
61190 2007-10-16  Bruno Haible  <bruno@clisp.org>
61191
61192         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61193         * modules/malloc-posix (License): Likewise.
61194         * modules/realloc-posix (License): Likewise.
61195         * modules/calloc-posix (License): Likewise.
61196         * modules/intprops (License): Change from GPL to LGPL, with
61197         Paul Eggert's approval.
61198
61199 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61200
61201         Merge glibc changes into lib/glob.c.
61202
61203         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61204         2007-10-15 04:59:03 UTC.  Here are the changes:
61205
61206         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61207
61208         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61209
61210         * lib/glob.c: Add some branch prediction throughout.
61211
61212         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61213
61214         [BZ #5103]
61215         * lib/glob.c (glob): Recognize patterns starting \/.
61216
61217         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61218
61219         [BZ #3996]
61220         * lib/glob.c (attribute_hidden): Define if not defined.
61221         (glob): Unescape dirname, filename or username when needed and not
61222         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61223         is NULL.  Handle unescaped [ in pattern without closing ].
61224         Don't pass GLOB_CHECK down to recursive glob for directories.
61225         (__glob_pattern_type): New function.
61226         (__glob_pattern_p): Implement using __glob_pattern_type.
61227         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61228         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61229         Remove unreachable code.
61230
61231         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61232
61233         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61234         explain why there are no leaks.
61235
61236         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61237
61238         [BZ #3253]
61239         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61240         time, rather allocate increasingly bigger arrays of pointers, if
61241         possible with alloca, if too large with malloc.
61242
61243 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61246         Problem reported by H.Merijn Brand in
61247         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61248         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61249         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61250
61251 2007-10-15  Bruno Haible  <bruno@clisp.org>
61252
61253         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61254         with explicit rpl_ prefix.
61255         * lib/fopen.c (fopen): Likewise.
61256         * lib/freopen.c (freopen): Likewise.
61257         * lib/iconv.c (iconv): Likewise.
61258         * lib/iconv_close.c (iconv_close): Likewise.
61259
61260 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61261
61262         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61263
61264 2007-10-15  Bruno Haible  <bruno@clisp.org>
61265
61266         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61267         <stddef.h> instead of <stdlib.h> since we only need NULL.
61268         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61269
61270 2007-10-15  Bruno Haible  <bruno@clisp.org>
61271
61272         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61273         Replace paragraph talking about LIBOBJS.
61274         Reported by Colin Watson <cjwatson@debian.org>.
61275
61276 2007-10-15  Bruno Haible  <bruno@clisp.org>
61277
61278         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61279         <stdlib.h> before using NULL.
61280
61281 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61282
61283         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61284         Reported by Albert Chin <china@thewrittenword.com>.
61285
61286 2007-10-14  Bruno Haible  <bruno@clisp.org>
61287
61288         * modules/iconv_open-utf-tests: New file.
61289         * tests/test-iconv-utf.c: New file.
61290
61291         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61292         * modules/iconv_open-utf: New file.
61293         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61294         (iconv, iconv_close): New declarations.
61295         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61296         be defined.
61297         (iconv_open): Add special handling of conversion between UTF-8 and
61298         UTF-{16,32}{BE,LE}.
61299         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61300         * lib/iconv_close.c: New file.
61301         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61302         gl_FUNC_ICONV_OPEN.
61303         (gl_FUNC_ICONV_OPEN): Use it.
61304         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61305         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61306         and REPLACE_ICONV_UTF.
61307         * modules/iconv_open (Depends-on): Add c-strcase.
61308         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61309         ICONV_CONST.
61310         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61311
61312 2007-10-13  Albert Chin  <china@thewrittenword.com>
61313             Bruno Haible  <bruno@clisp.org>
61314
61315         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61316         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61317
61318 2007-10-13  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61321         defined, use the ISO C99 inline semantics.
61322         * lib/argp.h (ARGP_EI): Likewise.
61323
61324 2007-10-13  Bruno Haible  <bruno@clisp.org>
61325
61326         Handle 'inline' change in gcc 4.3.0.
61327         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61328         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61329         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61330         argp_fmtstream_point): Disable 'extern' declaration if the function
61331         definition is going to be provided inline.
61332         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61333         semantics, not the ISO C99 inline semantics.
61334         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61335         'extern' declaration if the function definition is going to be provided
61336         inline.
61337         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61338         the GNU C inline semantics, not the ISO C99 inline semantics. With
61339         GCC 4.2, avoid a warning.
61340
61341 2007-10-13  Bruno Haible  <bruno@clisp.org>
61342
61343         * lib/freading.h (freading): Enable the use of __freading for
61344         glibc >= 2.7.
61345         * lib/freading.c (freading): Likewise.
61346
61347 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61350         "warning: C99 inline functions are not supported; using GNU89".
61351
61352 2007-10-12  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61355         of 2.
61356         * tests/test-ceilf2.c: New file.
61357         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61358
61359         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61360         * modules/ceilf-tests: Update.
61361
61362 2007-10-12  Bruno Haible  <bruno@clisp.org>
61363
61364         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61365         of 2.
61366         * tests/test-floorf2.c: New file.
61367         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61368
61369         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61370         * modules/floorf-tests: Update.
61371
61372 2007-10-12  Bruno Haible  <bruno@clisp.org>
61373
61374         * tests/test-trunc2.c: New file.
61375         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61376
61377         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61378         * modules/trunc-tests: Update.
61379
61380 2007-10-12  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61383         of 2.
61384         * tests/test-truncf2.c: New file.
61385         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61386
61387         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61388         * modules/truncf-tests: Update.
61389
61390 2007-10-11  Eric Blake  <ebb9@byu.net>
61391
61392         Don't claim strerror is broken on Interix.
61393         * doc/functions/strerror.texi (strerror): Known broken systems are
61394         now Solaris 8, and not Interix.
61395         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61396         Interix on cross-compile.
61397         Reported by Martin Koeppe in
61398         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61399
61400 2007-10-11  Bruno Haible  <bruno@clisp.org>
61401
61402         * modules/i-ring-tests: New file.
61403         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61404         instead of assert.
61405
61406 2007-10-11  Bruno Haible  <bruno@clisp.org>
61407
61408         * modules/filenamecat-tests: New file.
61409         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61410         * lib/filenamecat.c: Remove test code.
61411
61412 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61415
61416         * lib/strerror.c: Include <string.h> always, to test interface,
61417         and to remove the need for the dummy.
61418         Include intprops.h to compute width instead of doing it ourselves
61419         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61420         (strerror): Define it to return NULL if there's no system strerror.
61421         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61422         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61423         ancient pre-strerror Unix systems well any more.  Saying "unknown
61424         system error" is enough.
61425         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61426         simpler strerror.c implementation.
61427         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61428         Simplify the tests to reflect the simpler strerror implementation.
61429         * modules/strerror (Depends-on): Add intprops.
61430
61431 2007-10-09  Eric Blake  <ebb9@byu.net>
61432
61433         Silence test-fpending.
61434         * modules/fpending-tests (Files): Add wrapper script.
61435         * tests/test-fpending.sh: New file.
61436
61437 2007-10-09  Bruno Haible  <bruno@clisp.org>
61438
61439         * MODULES.html.sh (func_module): Don't create a hyperlink for
61440         function names like 'printf_frexp'.
61441         (Misc): Add crc, memxor.
61442         (Characteristics of floating types): New section.
61443         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61444         isnanf-nolibm, signbit, trunc, truncf, truncl.
61445         (Enhancements for ISO C 99 functions): New subsection Input/output.
61446         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61447         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61448         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61449         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61450         (Enhancements for POSIX:2001 functions): Add chdir-long.
61451         (File system functions): Add areadlink, chdir-safer, read-file.
61452         Remove cycle-check.
61453         (File system as inode set): New section.
61454         (Date and time): Add gethrxtime.
61455         (Multithreading): Add openmp.
61456         (Internationalization functions): Add localename.
61457         (Unicode string functions): Add unistr/u*-mbsnlen.
61458         (Support for maintaining and releasing projects): Add git-version-gen.
61459         (Lone files): Remove directories.
61460
61461 2007-10-08  Ben Pfaff  <blp@gnu.org>
61462
61463         * lib/xmalloca.h: Fix typo in comment.
61464
61465 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61468         when avoiding problems with integer overflow.  Use a portable test
61469         instead.
61470
61471 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61472
61473         * modules/dummy (License): Change to LGPLv2+.
61474         * modules/float (License): Likewise
61475         * modules/realloc (License): Likewise
61476         * modules/stdlib (License): Likewise
61477
61478 2007-10-07  Bruno Haible  <bruno@clisp.org>
61479
61480         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61481         * floor.c (TWO_MANT_DIG): Likewise.
61482         * ceil.c (TWO_MANT_DIG): Likewise.
61483         Reported by Ben Pfaff.
61484
61485 2007-10-07  Bruno Haible  <bruno@clisp.org>
61486
61487         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61488         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61489         * lib/frexp.c (FUNC): Likewise.
61490         * lib/printf-frexp.h (printf_frexp): Likewise.
61491         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61492         * lib/printf-frexp.c (FUNC): Likewise.
61493         Suggested by Jim Meyering.
61494
61495 2007-10-07  Jim Meyering  <meyering@redhat.com>
61496
61497         Make xnanosleep's integer overflow test more robust.
61498         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61499         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61500
61501 2007-10-07  Bruno Haible  <bruno@clisp.org>
61502
61503         * NEWS: Mention the license change.
61504
61505         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61506         abbreviations in the modules files.
61507
61508         Change copyright notice from GPLv2+ to GPLv3+.
61509         * README: Change copyright notice.
61510         * MODULES.html.sh: Likewise.
61511         * build-aux/bootstrap.conf: Likewise.
61512         * build-aux/config.libpath: Likewise.
61513         * build-aux/csharpcomp.sh.in: Likewise.
61514         * build-aux/csharpexec.sh.in: Likewise.
61515         * build-aux/install-reloc: Likewise.
61516         * build-aux/javacomp.sh.in: Likewise.
61517         * build-aux/javaexec.sh.in: Likewise.
61518         * build-aux/ldd.sh.in: Likewise.
61519         * build-aux/reloc-ldflags: Likewise.
61520         * build-aux/relocatable.sh.in: Likewise.
61521         * build-aux/x-to-1.in: Likewise.
61522         * check-module: Likewise.
61523         * config/srclistvars.sh: Likewise.
61524         * gnulib-tool: Likewise.
61525         * lib/acl-internal.h: Likewise.
61526         * lib/acl.c: Likewise.
61527         * lib/acl.h: Likewise.
61528         * lib/acl_entries.c: Likewise.
61529         * lib/areadlink-with-size.c: Likewise.
61530         * lib/areadlink.c: Likewise.
61531         * lib/areadlink.h: Likewise.
61532         * lib/argmatch.c: Likewise.
61533         * lib/argmatch.h: Likewise.
61534         * lib/argp-ba.c: Likewise.
61535         * lib/argp-eexst.c: Likewise.
61536         * lib/argp-fmtstream.c: Likewise.
61537         * lib/argp-fmtstream.h: Likewise.
61538         * lib/argp-fs-xinl.c: Likewise.
61539         * lib/argp-help.c: Likewise.
61540         * lib/argp-namefrob.h: Likewise.
61541         * lib/argp-parse.c: Likewise.
61542         * lib/argp-pin.c: Likewise.
61543         * lib/argp-pv.c: Likewise.
61544         * lib/argp-pvh.c: Likewise.
61545         * lib/argp-xinl.c: Likewise.
61546         * lib/argp.h: Likewise.
61547         * lib/at-func.c: Likewise.
61548         * lib/atanl.c: Likewise.
61549         * lib/backupfile.c: Likewise.
61550         * lib/backupfile.h: Likewise.
61551         * lib/basename.c: Likewise.
61552         * lib/binary-io.h: Likewise.
61553         * lib/byteswap.in.h: Likewise.
61554         * lib/c-stack.c: Likewise.
61555         * lib/c-stack.h: Likewise.
61556         * lib/c-strcasestr.c: Likewise.
61557         * lib/c-strcasestr.h: Likewise.
61558         * lib/c-strstr.c: Likewise.
61559         * lib/c-strstr.h: Likewise.
61560         * lib/c-strtod.c: Likewise.
61561         * lib/calloc.c: Likewise.
61562         * lib/canon-host.c: Likewise.
61563         * lib/canon-host.h: Likewise.
61564         * lib/canonicalize-lgpl.c: Likewise.
61565         * lib/canonicalize.c: Likewise.
61566         * lib/canonicalize.h: Likewise.
61567         * lib/ceil.c: Likewise.
61568         * lib/ceilf.c: Likewise.
61569         * lib/ceill.c: Likewise.
61570         * lib/chdir-long.c: Likewise.
61571         * lib/chdir-long.h: Likewise.
61572         * lib/chdir-safer.c: Likewise.
61573         * lib/chdir-safer.h: Likewise.
61574         * lib/chown.c: Likewise.
61575         * lib/classpath.c: Likewise.
61576         * lib/classpath.h: Likewise.
61577         * lib/clean-temp.c: Likewise.
61578         * lib/clean-temp.h: Likewise.
61579         * lib/cloexec.c: Likewise.
61580         * lib/close-stream.c: Likewise.
61581         * lib/closein.c: Likewise.
61582         * lib/closein.h: Likewise.
61583         * lib/closeout.c: Likewise.
61584         * lib/closeout.h: Likewise.
61585         * lib/concat-filename.c: Likewise.
61586         * lib/copy-file.c: Likewise.
61587         * lib/copy-file.h: Likewise.
61588         * lib/count-one-bits.h: Likewise.
61589         * lib/crc.c: Likewise.
61590         * lib/crc.h: Likewise.
61591         * lib/creat-safer.c: Likewise.
61592         * lib/csharpcomp.c: Likewise.
61593         * lib/csharpcomp.h: Likewise.
61594         * lib/csharpexec.c: Likewise.
61595         * lib/csharpexec.h: Likewise.
61596         * lib/cycle-check.c: Likewise.
61597         * lib/cycle-check.h: Likewise.
61598         * lib/diacrit.c: Likewise.
61599         * lib/diacrit.h: Likewise.
61600         * lib/diffseq.h: Likewise.
61601         * lib/dirchownmod.c: Likewise.
61602         * lib/dirent.in.h: Likewise.
61603         * lib/dirfd.c: Likewise.
61604         * lib/dirfd.h: Likewise.
61605         * lib/dirname.c: Likewise.
61606         * lib/dirname.h: Likewise.
61607         * lib/dummy.c: Likewise.
61608         * lib/dup-safer.c: Likewise.
61609         * lib/dup2.c: Likewise.
61610         * lib/eealloc.h: Likewise.
61611         * lib/error.c: Likewise.
61612         * lib/error.h: Likewise.
61613         * lib/euidaccess.c: Likewise.
61614         * lib/exclude.c: Likewise.
61615         * lib/exclude.h: Likewise.
61616         * lib/execute.c: Likewise.
61617         * lib/execute.h: Likewise.
61618         * lib/exitfail.c: Likewise.
61619         * lib/exitfail.h: Likewise.
61620         * lib/expl.c: Likewise.
61621         * lib/fatal-signal.c: Likewise.
61622         * lib/fatal-signal.h: Likewise.
61623         * lib/fbufmode.c: Likewise.
61624         * lib/fbufmode.h: Likewise.
61625         * lib/fchdir.c: Likewise.
61626         * lib/fchmodat.c: Likewise.
61627         * lib/fchownat.c: Likewise.
61628         * lib/fcntl--.h: Likewise.
61629         * lib/fcntl-safer.h: Likewise.
61630         * lib/fcntl.in.h: Likewise.
61631         * lib/fd-safer.c: Likewise.
61632         * lib/fflush.c: Likewise.
61633         * lib/file-has-acl.c: Likewise.
61634         * lib/file-set.c: Likewise.
61635         * lib/file-type.c: Likewise.
61636         * lib/file-type.h: Likewise.
61637         * lib/fileblocks.c: Likewise.
61638         * lib/filemode.c: Likewise.
61639         * lib/filemode.h: Likewise.
61640         * lib/filename.h: Likewise.
61641         * lib/filenamecat.c: Likewise.
61642         * lib/filenamecat.h: Likewise.
61643         * lib/findprog.c: Likewise.
61644         * lib/findprog.h: Likewise.
61645         * lib/float.in.h: Likewise.
61646         * lib/floor.c: Likewise.
61647         * lib/floorf.c: Likewise.
61648         * lib/floorl.c: Likewise.
61649         * lib/fopen-safer.c: Likewise.
61650         * lib/fopen.c: Likewise.
61651         * lib/fpending.c: Likewise.
61652         * lib/fpending.h: Likewise.
61653         * lib/fprintf.c: Likewise.
61654         * lib/fprintftime.h: Likewise.
61655         * lib/fpucw.h: Likewise.
61656         * lib/fpurge.c: Likewise.
61657         * lib/fpurge.h: Likewise.
61658         * lib/freadable.c: Likewise.
61659         * lib/freadable.h: Likewise.
61660         * lib/freadahead.c: Likewise.
61661         * lib/freadahead.h: Likewise.
61662         * lib/freading.c: Likewise.
61663         * lib/freading.h: Likewise.
61664         * lib/free.c: Likewise.
61665         * lib/freopen.c: Likewise.
61666         * lib/frexp.c: Likewise.
61667         * lib/frexpl.c: Likewise.
61668         * lib/fseek.c: Likewise.
61669         * lib/fseterr.c: Likewise.
61670         * lib/fseterr.h: Likewise.
61671         * lib/fstatat.c: Likewise.
61672         * lib/fstrcmp.c: Likewise.
61673         * lib/fstrcmp.h: Likewise.
61674         * lib/fsusage.c: Likewise.
61675         * lib/fsusage.h: Likewise.
61676         * lib/ftell.c: Likewise.
61677         * lib/ftello.c: Likewise.
61678         * lib/fts-cycle.c: Likewise.
61679         * lib/fts.c: Likewise.
61680         * lib/fts_.h: Likewise.
61681         * lib/full-read.c: Likewise.
61682         * lib/full-read.h: Likewise.
61683         * lib/full-write.c: Likewise.
61684         * lib/full-write.h: Likewise.
61685         * lib/fwritable.c: Likewise.
61686         * lib/fwritable.h: Likewise.
61687         * lib/fwriteerror.c: Likewise.
61688         * lib/fwriteerror.h: Likewise.
61689         * lib/fwriting.c: Likewise.
61690         * lib/fwriting.h: Likewise.
61691         * lib/gcd.c: Likewise.
61692         * lib/gcd.h: Likewise.
61693         * lib/getcwd.c: Likewise.
61694         * lib/getdate.h: Likewise.
61695         * lib/getdate.y: Likewise.
61696         * lib/getdomainname.c: Likewise.
61697         * lib/getdomainname.h: Likewise.
61698         * lib/getgroups.c: Likewise.
61699         * lib/gethostname.c: Likewise.
61700         * lib/gethrxtime.c: Likewise.
61701         * lib/gethrxtime.h: Likewise.
61702         * lib/getloadavg.c: Likewise.
61703         * lib/getndelim2.c: Likewise.
61704         * lib/getndelim2.h: Likewise.
61705         * lib/getnline.c: Likewise.
61706         * lib/getnline.h: Likewise.
61707         * lib/getopt.c: Likewise.
61708         * lib/getopt.in.h: Likewise.
61709         * lib/getopt1.c: Likewise.
61710         * lib/getopt_int.h: Likewise.
61711         * lib/getpagesize.h: Likewise.
61712         * lib/getsubopt.c: Likewise.
61713         * lib/gettime.c: Likewise.
61714         * lib/getugroups.c: Likewise.
61715         * lib/getugroups.h: Likewise.
61716         * lib/getusershell.c: Likewise.
61717         * lib/gl_anyavltree_list1.h: Likewise.
61718         * lib/gl_anyavltree_list2.h: Likewise.
61719         * lib/gl_anyhash_list1.h: Likewise.
61720         * lib/gl_anyhash_list2.h: Likewise.
61721         * lib/gl_anylinked_list1.h: Likewise.
61722         * lib/gl_anylinked_list2.h: Likewise.
61723         * lib/gl_anyrbtree_list1.h: Likewise.
61724         * lib/gl_anyrbtree_list2.h: Likewise.
61725         * lib/gl_anytree_list1.h: Likewise.
61726         * lib/gl_anytree_list2.h: Likewise.
61727         * lib/gl_anytree_oset.h: Likewise.
61728         * lib/gl_anytreehash_list1.h: Likewise.
61729         * lib/gl_anytreehash_list2.h: Likewise.
61730         * lib/gl_array_list.c: Likewise.
61731         * lib/gl_array_list.h: Likewise.
61732         * lib/gl_array_oset.c: Likewise.
61733         * lib/gl_array_oset.h: Likewise.
61734         * lib/gl_avltree_list.c: Likewise.
61735         * lib/gl_avltree_list.h: Likewise.
61736         * lib/gl_avltree_oset.c: Likewise.
61737         * lib/gl_avltree_oset.h: Likewise.
61738         * lib/gl_avltreehash_list.c: Likewise.
61739         * lib/gl_avltreehash_list.h: Likewise.
61740         * lib/gl_carray_list.c: Likewise.
61741         * lib/gl_carray_list.h: Likewise.
61742         * lib/gl_linked_list.c: Likewise.
61743         * lib/gl_linked_list.h: Likewise.
61744         * lib/gl_linkedhash_list.c: Likewise.
61745         * lib/gl_linkedhash_list.h: Likewise.
61746         * lib/gl_list.c: Likewise.
61747         * lib/gl_list.h: Likewise.
61748         * lib/gl_oset.c: Likewise.
61749         * lib/gl_oset.h: Likewise.
61750         * lib/gl_rbtree_list.c: Likewise.
61751         * lib/gl_rbtree_list.h: Likewise.
61752         * lib/gl_rbtree_oset.c: Likewise.
61753         * lib/gl_rbtree_oset.h: Likewise.
61754         * lib/gl_rbtreehash_list.c: Likewise.
61755         * lib/gl_rbtreehash_list.h: Likewise.
61756         * lib/gl_sublist.c: Likewise.
61757         * lib/gl_sublist.h: Likewise.
61758         * lib/group-member.c: Likewise.
61759         * lib/group-member.h: Likewise.
61760         * lib/hard-locale.c: Likewise.
61761         * lib/hard-locale.h: Likewise.
61762         * lib/hash-pjw.c: Likewise.
61763         * lib/hash-pjw.h: Likewise.
61764         * lib/hash-triple.c: Likewise.
61765         * lib/hash.c: Likewise.
61766         * lib/hash.h: Likewise.
61767         * lib/human.c: Likewise.
61768         * lib/human.h: Likewise.
61769         * lib/i-ring.c: Likewise.
61770         * lib/i-ring.h: Likewise.
61771         * lib/idcache.c: Likewise.
61772         * lib/imaxabs.c: Likewise.
61773         * lib/imaxdiv.c: Likewise.
61774         * lib/inet_pton.c: Likewise.
61775         * lib/inet_pton.h: Likewise.
61776         * lib/intprops.h: Likewise.
61777         * lib/inttostr.c: Likewise.
61778         * lib/inttostr.h: Likewise.
61779         * lib/inttypes.in.h: Likewise.
61780         * lib/isapipe.c: Likewise.
61781         * lib/isdir.c: Likewise.
61782         * lib/isnan.c: Likewise.
61783         * lib/isnan.h: Likewise.
61784         * lib/isnanf.c: Likewise.
61785         * lib/isnanf.h: Likewise.
61786         * lib/isnanl-nolibm.h: Likewise.
61787         * lib/isnanl.c: Likewise.
61788         * lib/isnanl.h: Likewise.
61789         * lib/javacomp.c: Likewise.
61790         * lib/javacomp.h: Likewise.
61791         * lib/javaexec.c: Likewise.
61792         * lib/javaexec.h: Likewise.
61793         * lib/javaversion.c: Likewise.
61794         * lib/javaversion.h: Likewise.
61795         * lib/javaversion.java: Likewise.
61796         * lib/lbrkprop.h: Likewise.
61797         * lib/lchmod.h: Likewise.
61798         * lib/lchown.c: Likewise.
61799         * lib/ldexpl.c: Likewise.
61800         * lib/linebreak.c: Likewise.
61801         * lib/linebreak.h: Likewise.
61802         * lib/linebuffer.c: Likewise.
61803         * lib/linebuffer.h: Likewise.
61804         * lib/locale.in.h: Likewise.
61805         * lib/logl.c: Likewise.
61806         * lib/long-options.c: Likewise.
61807         * lib/long-options.h: Likewise.
61808         * lib/lstat.c: Likewise.
61809         * lib/lstat.h: Likewise.
61810         * lib/math.in.h: Likewise.
61811         * lib/mbchar.c: Likewise.
61812         * lib/mbchar.h: Likewise.
61813         * lib/mbfile.h: Likewise.
61814         * lib/mbiter.h: Likewise.
61815         * lib/mbscasecmp.c: Likewise.
61816         * lib/mbscasestr.c: Likewise.
61817         * lib/mbschr.c: Likewise.
61818         * lib/mbscspn.c: Likewise.
61819         * lib/mbslen.c: Likewise.
61820         * lib/mbsncasecmp.c: Likewise.
61821         * lib/mbsnlen.c: Likewise.
61822         * lib/mbspbrk.c: Likewise.
61823         * lib/mbspcasecmp.c: Likewise.
61824         * lib/mbsrchr.c: Likewise.
61825         * lib/mbssep.c: Likewise.
61826         * lib/mbsspn.c: Likewise.
61827         * lib/mbsstr.c: Likewise.
61828         * lib/mbstok_r.c: Likewise.
61829         * lib/mbswidth.c: Likewise.
61830         * lib/mbswidth.h: Likewise.
61831         * lib/mbuiter.h: Likewise.
61832         * lib/memcasecmp.c: Likewise.
61833         * lib/memcasecmp.h: Likewise.
61834         * lib/memchr.c: Likewise.
61835         * lib/memcmp.c: Likewise.
61836         * lib/memcoll.c: Likewise.
61837         * lib/memcoll.h: Likewise.
61838         * lib/memcpy.c: Likewise.
61839         * lib/memrchr.c: Likewise.
61840         * lib/mkancesdirs.c: Likewise.
61841         * lib/mkdir-p.c: Likewise.
61842         * lib/mkdir-p.h: Likewise.
61843         * lib/mkdir.c: Likewise.
61844         * lib/mkdirat.c: Likewise.
61845         * lib/mkdtemp.c: Likewise.
61846         * lib/mkstemp-safer.c: Likewise.
61847         * lib/mkstemp.c: Likewise.
61848         * lib/modechange.c: Likewise.
61849         * lib/modechange.h: Likewise.
61850         * lib/mountlist.c: Likewise.
61851         * lib/mountlist.h: Likewise.
61852         * lib/mpsort.c: Likewise.
61853         * lib/nanosleep.c: Likewise.
61854         * lib/obstack.c: Likewise.
61855         * lib/obstack.h: Likewise.
61856         * lib/open-safer.c: Likewise.
61857         * lib/open.c: Likewise.
61858         * lib/openat-die.c: Likewise.
61859         * lib/openat-priv.h: Likewise.
61860         * lib/openat-proc.c: Likewise.
61861         * lib/openat.c: Likewise.
61862         * lib/openat.h: Likewise.
61863         * lib/pagealign_alloc.c: Likewise.
61864         * lib/pagealign_alloc.h: Likewise.
61865         * lib/physmem.c: Likewise.
61866         * lib/physmem.h: Likewise.
61867         * lib/pipe-safer.c: Likewise.
61868         * lib/pipe.c: Likewise.
61869         * lib/pipe.h: Likewise.
61870         * lib/posixtm.c: Likewise.
61871         * lib/posixtm.h: Likewise.
61872         * lib/posixver.c: Likewise.
61873         * lib/printf-frexp.c: Likewise.
61874         * lib/printf-frexp.h: Likewise.
61875         * lib/printf-frexpl.c: Likewise.
61876         * lib/printf-frexpl.h: Likewise.
61877         * lib/printf.c: Likewise.
61878         * lib/progname.c: Likewise.
61879         * lib/progname.h: Likewise.
61880         * lib/progreloc.c: Likewise.
61881         * lib/putenv.c: Likewise.
61882         * lib/quote.c: Likewise.
61883         * lib/quote.h: Likewise.
61884         * lib/quotearg.c: Likewise.
61885         * lib/quotearg.h: Likewise.
61886         * lib/raise.c: Likewise.
61887         * lib/readline.c: Likewise.
61888         * lib/readline.h: Likewise.
61889         * lib/readlink.c: Likewise.
61890         * lib/readtokens.c: Likewise.
61891         * lib/readtokens.h: Likewise.
61892         * lib/readtokens0.c: Likewise.
61893         * lib/readtokens0.h: Likewise.
61894         * lib/readutmp.c: Likewise.
61895         * lib/readutmp.h: Likewise.
61896         * lib/realloc.c: Likewise.
61897         * lib/relocwrapper.c: Likewise.
61898         * lib/rename-dest-slash.c: Likewise.
61899         * lib/rename.c: Likewise.
61900         * lib/rmdir.c: Likewise.
61901         * lib/rpmatch.c: Likewise.
61902         * lib/safe-read.c: Likewise.
61903         * lib/safe-read.h: Likewise.
61904         * lib/safe-write.c: Likewise.
61905         * lib/safe-write.h: Likewise.
61906         * lib/same-inode.h: Likewise.
61907         * lib/same.c: Likewise.
61908         * lib/same.h: Likewise.
61909         * lib/save-cwd.c: Likewise.
61910         * lib/save-cwd.h: Likewise.
61911         * lib/savedir.c: Likewise.
61912         * lib/savedir.h: Likewise.
61913         * lib/savewd.c: Likewise.
61914         * lib/savewd.h: Likewise.
61915         * lib/search.in.h: Likewise.
61916         * lib/setenv.c: Likewise.
61917         * lib/setenv.h: Likewise.
61918         * lib/settime.c: Likewise.
61919         * lib/sh-quote.c: Likewise.
61920         * lib/sh-quote.h: Likewise.
61921         * lib/sig2str.c: Likewise.
61922         * lib/sig2str.h: Likewise.
61923         * lib/signal.in.h: Likewise.
61924         * lib/signbitd.c: Likewise.
61925         * lib/signbitf.c: Likewise.
61926         * lib/signbitl.c: Likewise.
61927         * lib/sigprocmask.c: Likewise.
61928         * lib/sincosl.c: Likewise.
61929         * lib/sleep.c: Likewise.
61930         * lib/sprintf.c: Likewise.
61931         * lib/sqrtl.c: Likewise.
61932         * lib/stat-time.h: Likewise.
61933         * lib/stdio--.h: Likewise.
61934         * lib/stdio-safer.h: Likewise.
61935         * lib/stdlib--.h: Likewise.
61936         * lib/stdlib-safer.h: Likewise.
61937         * lib/stdlib.in.h: Likewise.
61938         * lib/stpcpy.c: Likewise.
61939         * lib/stpncpy.c: Likewise.
61940         * lib/strchrnul.c: Likewise.
61941         * lib/strcspn.c: Likewise.
61942         * lib/strerror.c: Likewise.
61943         * lib/strftime.c: Likewise.
61944         * lib/strftime.h: Likewise.
61945         * lib/striconveh.c: Likewise.
61946         * lib/striconveh.h: Likewise.
61947         * lib/striconveha.c: Likewise.
61948         * lib/striconveha.h: Likewise.
61949         * lib/stripslash.c: Likewise.
61950         * lib/strnlen1.c: Likewise.
61951         * lib/strnlen1.h: Likewise.
61952         * lib/strtod.c: Likewise.
61953         * lib/strtoimax.c: Likewise.
61954         * lib/strtok_r.c: Likewise.
61955         * lib/strtol.c: Likewise.
61956         * lib/strtoll.c: Likewise.
61957         * lib/strtoul.c: Likewise.
61958         * lib/strtoull.c: Likewise.
61959         * lib/sysexits.in.h: Likewise.
61960         * lib/tempname.c: Likewise.
61961         * lib/tempname.h: Likewise.
61962         * lib/timespec.h: Likewise.
61963         * lib/tls.c: Likewise.
61964         * lib/tls.h: Likewise.
61965         * lib/tmpdir.c: Likewise.
61966         * lib/tmpdir.h: Likewise.
61967         * lib/tmpfile-safer.c: Likewise.
61968         * lib/tmpfile.c: Likewise.
61969         * lib/trigl.c: Likewise.
61970         * lib/trigl.h: Likewise.
61971         * lib/trim.c: Likewise.
61972         * lib/trim.h: Likewise.
61973         * lib/trunc.c: Likewise.
61974         * lib/truncf.c: Likewise.
61975         * lib/truncl.c: Likewise.
61976         * lib/tsearch.c: Likewise.
61977         * lib/unicodeio.c: Likewise.
61978         * lib/unicodeio.h: Likewise.
61979         * lib/unistd--.h: Likewise.
61980         * lib/unistd-safer.h: Likewise.
61981         * lib/unistdio/ulc-fprintf.c: Likewise.
61982         * lib/unistdio/ulc-vfprintf.c: Likewise.
61983         * lib/unlinkdir.c: Likewise.
61984         * lib/unlinkdir.h: Likewise.
61985         * lib/unlocked-io.h: Likewise.
61986         * lib/unsetenv.c: Likewise.
61987         * lib/userspec.c: Likewise.
61988         * lib/utime.c: Likewise.
61989         * lib/utimecmp.c: Likewise.
61990         * lib/utimecmp.h: Likewise.
61991         * lib/utimens.c: Likewise.
61992         * lib/verify.h: Likewise.
61993         * lib/verror.c: Likewise.
61994         * lib/verror.h: Likewise.
61995         * lib/version-etc-fsf.c: Likewise.
61996         * lib/version-etc.c: Likewise.
61997         * lib/version-etc.h: Likewise.
61998         * lib/vfprintf.c: Likewise.
61999         * lib/vprintf.c: Likewise.
62000         * lib/vsprintf.c: Likewise.
62001         * lib/w32spawn.h: Likewise.
62002         * lib/wait-process.c: Likewise.
62003         * lib/wait-process.h: Likewise.
62004         * lib/wcwidth.c: Likewise.
62005         * lib/write-any-file.c: Likewise.
62006         * lib/xalloc-die.c: Likewise.
62007         * lib/xalloc.h: Likewise.
62008         * lib/xasprintf.c: Likewise.
62009         * lib/xgetcwd.c: Likewise.
62010         * lib/xgetcwd.h: Likewise.
62011         * lib/xgetdomainname.c: Likewise.
62012         * lib/xgetdomainname.h: Likewise.
62013         * lib/xgethostname.c: Likewise.
62014         * lib/xmalloc.c: Likewise.
62015         * lib/xmalloca.c: Likewise.
62016         * lib/xmalloca.h: Likewise.
62017         * lib/xmemcoll.c: Likewise.
62018         * lib/xnanosleep.c: Likewise.
62019         * lib/xreadlink.c: Likewise.
62020         * lib/xreadlink.h: Likewise.
62021         * lib/xsetenv.c: Likewise.
62022         * lib/xsetenv.h: Likewise.
62023         * lib/xstriconv.c: Likewise.
62024         * lib/xstriconv.h: Likewise.
62025         * lib/xstrndup.c: Likewise.
62026         * lib/xstrndup.h: Likewise.
62027         * lib/xstrtod.c: Likewise.
62028         * lib/xstrtod.h: Likewise.
62029         * lib/xstrtol-error.c: Likewise.
62030         * lib/xstrtol.c: Likewise.
62031         * lib/xstrtol.h: Likewise.
62032         * lib/xtime.h: Likewise.
62033         * lib/xvasprintf.c: Likewise.
62034         * lib/xvasprintf.h: Likewise.
62035         * lib/yesno.c: Likewise.
62036         * lib/yesno.h: Likewise.
62037         * posix-modules: Likewise.
62038         * tests/test-alloca-opt.c: Likewise.
62039         * tests/test-arcfour.c: Likewise.
62040         * tests/test-arctwo.c: Likewise.
62041         * tests/test-argmatch.c: Likewise.
62042         * tests/test-argp-2.sh: Likewise.
62043         * tests/test-argp.c: Likewise.
62044         * tests/test-arpa_inet.c: Likewise.
62045         * tests/test-array_list.c: Likewise.
62046         * tests/test-array_oset.c: Likewise.
62047         * tests/test-atexit.c: Likewise.
62048         * tests/test-avltree_list.c: Likewise.
62049         * tests/test-avltree_oset.c: Likewise.
62050         * tests/test-avltreehash_list.c: Likewise.
62051         * tests/test-base64.c: Likewise.
62052         * tests/test-binary-io.c: Likewise.
62053         * tests/test-byteswap.c: Likewise.
62054         * tests/test-c-ctype.c: Likewise.
62055         * tests/test-c-strcasecmp.c: Likewise.
62056         * tests/test-c-strcasestr.c: Likewise.
62057         * tests/test-c-strncasecmp.c: Likewise.
62058         * tests/test-c-strstr.c: Likewise.
62059         * tests/test-canonicalize-lgpl.c: Likewise.
62060         * tests/test-canonicalize.c: Likewise.
62061         * tests/test-carray_list.c: Likewise.
62062         * tests/test-ceilf.c: Likewise.
62063         * tests/test-ceill.c: Likewise.
62064         * tests/test-count-one-bits.c: Likewise.
62065         * tests/test-crc.c: Likewise.
62066         * tests/test-dirname.c: Likewise.
62067         * tests/test-fbufmode.c: Likewise.
62068         * tests/test-fcntl.c: Likewise.
62069         * tests/test-fflush.c: Likewise.
62070         * tests/test-floorf.c: Likewise.
62071         * tests/test-floorl.c: Likewise.
62072         * tests/test-fopen.c: Likewise.
62073         * tests/test-fprintf-posix.c: Likewise.
62074         * tests/test-fprintf-posix.h: Likewise.
62075         * tests/test-fpurge.c: Likewise.
62076         * tests/test-freadable.c: Likewise.
62077         * tests/test-freadahead.c: Likewise.
62078         * tests/test-freading.c: Likewise.
62079         * tests/test-freopen.c: Likewise.
62080         * tests/test-frexp.c: Likewise.
62081         * tests/test-frexpl.c: Likewise.
62082         * tests/test-fseek.c: Likewise.
62083         * tests/test-fseeko.c: Likewise.
62084         * tests/test-fseterr.c: Likewise.
62085         * tests/test-fstrcmp.c: Likewise.
62086         * tests/test-ftell.c: Likewise.
62087         * tests/test-ftello.c: Likewise.
62088         * tests/test-fwritable.c: Likewise.
62089         * tests/test-fwriting.c: Likewise.
62090         * tests/test-getaddrinfo.c: Likewise.
62091         * tests/test-getpass.c: Likewise.
62092         * tests/test-gettimeofday.c: Likewise.
62093         * tests/test-hmac-md5.c: Likewise.
62094         * tests/test-hmac-sha1.c: Likewise.
62095         * tests/test-iconv.c: Likewise.
62096         * tests/test-iconvme.c: Likewise.
62097         * tests/test-inttypes.c: Likewise.
62098         * tests/test-isnan.c: Likewise.
62099         * tests/test-isnanf.c: Likewise.
62100         * tests/test-isnanl-nolibm.c: Likewise.
62101         * tests/test-isnanl.c: Likewise.
62102         * tests/test-isnanl.h: Likewise.
62103         * tests/test-ldexpl.c: Likewise.
62104         * tests/test-linked_list.c: Likewise.
62105         * tests/test-linkedhash_list.c: Likewise.
62106         * tests/test-locale.c: Likewise.
62107         * tests/test-localename.c: Likewise.
62108         * tests/test-lock.c: Likewise.
62109         * tests/test-lseek.c: Likewise.
62110         * tests/test-malloca.c: Likewise.
62111         * tests/test-math.c: Likewise.
62112         * tests/test-mbscasecmp.c: Likewise.
62113         * tests/test-mbscasestr1.c: Likewise.
62114         * tests/test-mbscasestr2.c: Likewise.
62115         * tests/test-mbscasestr3.c: Likewise.
62116         * tests/test-mbscasestr4.c: Likewise.
62117         * tests/test-mbschr.c: Likewise.
62118         * tests/test-mbscspn.c: Likewise.
62119         * tests/test-mbsncasecmp.c: Likewise.
62120         * tests/test-mbspbrk.c: Likewise.
62121         * tests/test-mbspcasecmp.c: Likewise.
62122         * tests/test-mbsrchr.c: Likewise.
62123         * tests/test-mbsspn.c: Likewise.
62124         * tests/test-mbsstr1.c: Likewise.
62125         * tests/test-mbsstr2.c: Likewise.
62126         * tests/test-mbsstr3.c: Likewise.
62127         * tests/test-md5.c: Likewise.
62128         * tests/test-memmem.c: Likewise.
62129         * tests/test-netinet_in.c: Likewise.
62130         * tests/test-open.c: Likewise.
62131         * tests/test-printf-frexp.c: Likewise.
62132         * tests/test-printf-frexpl.c: Likewise.
62133         * tests/test-printf-posix.c: Likewise.
62134         * tests/test-printf-posix.h: Likewise.
62135         * tests/test-rbtree_list.c: Likewise.
62136         * tests/test-rbtree_oset.c: Likewise.
62137         * tests/test-rbtreehash_list.c: Likewise.
62138         * tests/test-read-file.c: Likewise.
62139         * tests/test-rijndael.c: Likewise.
62140         * tests/test-search.c: Likewise.
62141         * tests/test-signbit.c: Likewise.
62142         * tests/test-sleep.c: Likewise.
62143         * tests/test-snprintf-posix.c: Likewise.
62144         * tests/test-snprintf-posix.h: Likewise.
62145         * tests/test-snprintf.c: Likewise.
62146         * tests/test-sprintf-posix.c: Likewise.
62147         * tests/test-sprintf-posix.h: Likewise.
62148         * tests/test-stat-time.c: Likewise.
62149         * tests/test-stdbool.c: Likewise.
62150         * tests/test-stdint.c: Likewise.
62151         * tests/test-stdio.c: Likewise.
62152         * tests/test-stdlib.c: Likewise.
62153         * tests/test-stpncpy.c: Likewise.
62154         * tests/test-strcasestr.c: Likewise.
62155         * tests/test-striconv.c: Likewise.
62156         * tests/test-striconveh.c: Likewise.
62157         * tests/test-striconveha.c: Likewise.
62158         * tests/test-string.c: Likewise.
62159         * tests/test-sys_select.c: Likewise.
62160         * tests/test-sys_socket.c: Likewise.
62161         * tests/test-sys_stat.c: Likewise.
62162         * tests/test-sys_time.c: Likewise.
62163         * tests/test-sysexits.c: Likewise.
62164         * tests/test-time.c: Likewise.
62165         * tests/test-tls.c: Likewise.
62166         * tests/test-trunc.c: Likewise.
62167         * tests/test-truncf.c: Likewise.
62168         * tests/test-truncl.c: Likewise.
62169         * tests/test-unistd.c: Likewise.
62170         * tests/test-vasnprintf-posix.c: Likewise.
62171         * tests/test-vasnprintf-posix2.c: Likewise.
62172         * tests/test-vasnprintf.c: Likewise.
62173         * tests/test-vasprintf-posix.c: Likewise.
62174         * tests/test-vasprintf.c: Likewise.
62175         * tests/test-verify.c: Likewise.
62176         * tests/test-vfprintf-posix.c: Likewise.
62177         * tests/test-vprintf-posix.c: Likewise.
62178         * tests/test-vsnprintf-posix.c: Likewise.
62179         * tests/test-vsnprintf.c: Likewise.
62180         * tests/test-vsprintf-posix.c: Likewise.
62181         * tests/test-wchar.c: Likewise.
62182         * tests/test-wctype.c: Likewise.
62183         * tests/test-wcwidth.c: Likewise.
62184         * tests/test-xstrtol.c: Likewise.
62185         * tests/test-xvasprintf.c: Likewise.
62186         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62187         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62188         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62189         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62190         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62191         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62192         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62193         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62194         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62195         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62196         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62197         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62198         * tests/uniname/test-uninames.c: Likewise.
62199         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62200         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62201         * tests/unistdio/test-u16-printf1.h: Likewise.
62202         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62203         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62204         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62205         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62206         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62207         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62208         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62209         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62210         * tests/unistdio/test-u32-printf1.h: Likewise.
62211         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62212         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62213         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62214         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62215         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62216         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62217         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62218         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62219         * tests/unistdio/test-u8-printf1.h: Likewise.
62220         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62221         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62222         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62223         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62224         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62225         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62226         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62227         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62228         * tests/unistdio/test-ulc-printf1.h: Likewise.
62229         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62230         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62231         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62232         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62233         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62234         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62235         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62236         * tests/uniwidth/test-u16-width.c: Likewise.
62237         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62238         * tests/uniwidth/test-u32-width.c: Likewise.
62239         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62240         * tests/uniwidth/test-u8-width.c: Likewise.
62241         * tests/uniwidth/test-uc_width.c: Likewise.
62242         * config/srclist-update: Likewise.
62243         (fixlicense): Update to GPLv3+.
62244
62245         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62246         * tests/test-tsearch.c: Change copyright notice.
62247
62248         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62249         * lib/c-strcaseeq.h: Change copyright notice.
62250         * lib/streq.h: Likewise.
62251         * lib/uniconv.h: Likewise.
62252         * lib/uniconv/u-conv-from-enc.h: Likewise.
62253         * lib/uniconv/u-conv-to-enc.h: Likewise.
62254         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62255         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62256         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62257         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62258         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62259         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62260         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62261         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62262         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62263         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62264         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62265         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62266         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62267         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62268         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62269         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62270         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62271         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62272         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62273         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62274         * lib/uniname.h: Likewise.
62275         * lib/uniname/uniname.c: Likewise.
62276         * lib/unistdio.h: Likewise.
62277         * lib/unistdio/u-asnprintf.h: Likewise.
62278         * lib/unistdio/u-asprintf.h: Likewise.
62279         * lib/unistdio/u-printf-args.c: Likewise.
62280         * lib/unistdio/u-printf-args.h: Likewise.
62281         * lib/unistdio/u-printf-parse.h: Likewise.
62282         * lib/unistdio/u-snprintf.h: Likewise.
62283         * lib/unistdio/u-sprintf.h: Likewise.
62284         * lib/unistdio/u-vasprintf.h: Likewise.
62285         * lib/unistdio/u-vsnprintf.h: Likewise.
62286         * lib/unistdio/u-vsprintf.h: Likewise.
62287         * lib/unistdio/u16-asnprintf.c: Likewise.
62288         * lib/unistdio/u16-asprintf.c: Likewise.
62289         * lib/unistdio/u16-printf-parse.c: Likewise.
62290         * lib/unistdio/u16-snprintf.c: Likewise.
62291         * lib/unistdio/u16-sprintf.c: Likewise.
62292         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62293         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62294         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62295         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62296         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62297         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62298         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62299         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62300         * lib/unistdio/u16-vasnprintf.c: Likewise.
62301         * lib/unistdio/u16-vasprintf.c: Likewise.
62302         * lib/unistdio/u16-vsnprintf.c: Likewise.
62303         * lib/unistdio/u16-vsprintf.c: Likewise.
62304         * lib/unistdio/u32-asnprintf.c: Likewise.
62305         * lib/unistdio/u32-asprintf.c: Likewise.
62306         * lib/unistdio/u32-printf-parse.c: Likewise.
62307         * lib/unistdio/u32-snprintf.c: Likewise.
62308         * lib/unistdio/u32-sprintf.c: Likewise.
62309         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62310         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62311         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62312         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62313         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62314         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62315         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62316         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62317         * lib/unistdio/u32-vasnprintf.c: Likewise.
62318         * lib/unistdio/u32-vasprintf.c: Likewise.
62319         * lib/unistdio/u32-vsnprintf.c: Likewise.
62320         * lib/unistdio/u32-vsprintf.c: Likewise.
62321         * lib/unistdio/u8-asnprintf.c: Likewise.
62322         * lib/unistdio/u8-asprintf.c: Likewise.
62323         * lib/unistdio/u8-printf-parse.c: Likewise.
62324         * lib/unistdio/u8-snprintf.c: Likewise.
62325         * lib/unistdio/u8-sprintf.c: Likewise.
62326         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62327         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62328         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62329         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62330         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62331         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62332         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62333         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62334         * lib/unistdio/u8-vasnprintf.c: Likewise.
62335         * lib/unistdio/u8-vasprintf.c: Likewise.
62336         * lib/unistdio/u8-vsnprintf.c: Likewise.
62337         * lib/unistdio/u8-vsprintf.c: Likewise.
62338         * lib/unistdio/ulc-asnprintf.c: Likewise.
62339         * lib/unistdio/ulc-asprintf.c: Likewise.
62340         * lib/unistdio/ulc-printf-parse.c: Likewise.
62341         * lib/unistdio/ulc-snprintf.c: Likewise.
62342         * lib/unistdio/ulc-sprintf.c: Likewise.
62343         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62344         * lib/unistdio/ulc-vasprintf.c: Likewise.
62345         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62346         * lib/unistdio/ulc-vsprintf.c: Likewise.
62347         * lib/unistr.h: Likewise.
62348         * lib/unistr/u-cpy-alloc.h: Likewise.
62349         * lib/unistr/u-cpy.h: Likewise.
62350         * lib/unistr/u-endswith.h: Likewise.
62351         * lib/unistr/u-move.h: Likewise.
62352         * lib/unistr/u-set.h: Likewise.
62353         * lib/unistr/u-startswith.h: Likewise.
62354         * lib/unistr/u-stpcpy.h: Likewise.
62355         * lib/unistr/u-stpncpy.h: Likewise.
62356         * lib/unistr/u-strcat.h: Likewise.
62357         * lib/unistr/u-strcpy.h: Likewise.
62358         * lib/unistr/u-strcspn.h: Likewise.
62359         * lib/unistr/u-strdup.h: Likewise.
62360         * lib/unistr/u-strlen.h: Likewise.
62361         * lib/unistr/u-strncat.h: Likewise.
62362         * lib/unistr/u-strncpy.h: Likewise.
62363         * lib/unistr/u-strnlen.h: Likewise.
62364         * lib/unistr/u-strpbrk.h: Likewise.
62365         * lib/unistr/u-strspn.h: Likewise.
62366         * lib/unistr/u-strstr.h: Likewise.
62367         * lib/unistr/u-strtok.h: Likewise.
62368         * lib/unistr/u16-check.c: Likewise.
62369         * lib/unistr/u16-chr.c: Likewise.
62370         * lib/unistr/u16-cmp.c: Likewise.
62371         * lib/unistr/u16-cpy-alloc.c: Likewise.
62372         * lib/unistr/u16-cpy.c: Likewise.
62373         * lib/unistr/u16-endswith.c: Likewise.
62374         * lib/unistr/u16-mblen.c: Likewise.
62375         * lib/unistr/u16-mbsnlen.c: Likewise.
62376         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62377         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62378         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62379         * lib/unistr/u16-mbtouc.c: Likewise.
62380         * lib/unistr/u16-mbtoucr.c: Likewise.
62381         * lib/unistr/u16-move.c: Likewise.
62382         * lib/unistr/u16-next.c: Likewise.
62383         * lib/unistr/u16-prev.c: Likewise.
62384         * lib/unistr/u16-set.c: Likewise.
62385         * lib/unistr/u16-startswith.c: Likewise.
62386         * lib/unistr/u16-stpcpy.c: Likewise.
62387         * lib/unistr/u16-stpncpy.c: Likewise.
62388         * lib/unistr/u16-strcat.c: Likewise.
62389         * lib/unistr/u16-strchr.c: Likewise.
62390         * lib/unistr/u16-strcmp.c: Likewise.
62391         * lib/unistr/u16-strcpy.c: Likewise.
62392         * lib/unistr/u16-strcspn.c: Likewise.
62393         * lib/unistr/u16-strdup.c: Likewise.
62394         * lib/unistr/u16-strlen.c: Likewise.
62395         * lib/unistr/u16-strmblen.c: Likewise.
62396         * lib/unistr/u16-strmbtouc.c: Likewise.
62397         * lib/unistr/u16-strncat.c: Likewise.
62398         * lib/unistr/u16-strncmp.c: Likewise.
62399         * lib/unistr/u16-strncpy.c: Likewise.
62400         * lib/unistr/u16-strnlen.c: Likewise.
62401         * lib/unistr/u16-strpbrk.c: Likewise.
62402         * lib/unistr/u16-strrchr.c: Likewise.
62403         * lib/unistr/u16-strspn.c: Likewise.
62404         * lib/unistr/u16-strstr.c: Likewise.
62405         * lib/unistr/u16-strtok.c: Likewise.
62406         * lib/unistr/u16-to-u32.c: Likewise.
62407         * lib/unistr/u16-to-u8.c: Likewise.
62408         * lib/unistr/u16-uctomb-aux.c: Likewise.
62409         * lib/unistr/u16-uctomb.c: Likewise.
62410         * lib/unistr/u32-check.c: Likewise.
62411         * lib/unistr/u32-chr.c: Likewise.
62412         * lib/unistr/u32-cmp.c: Likewise.
62413         * lib/unistr/u32-cpy-alloc.c: Likewise.
62414         * lib/unistr/u32-cpy.c: Likewise.
62415         * lib/unistr/u32-endswith.c: Likewise.
62416         * lib/unistr/u32-mblen.c: Likewise.
62417         * lib/unistr/u32-mbsnlen.c: Likewise.
62418         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62419         * lib/unistr/u32-mbtouc.c: Likewise.
62420         * lib/unistr/u32-mbtoucr.c: Likewise.
62421         * lib/unistr/u32-move.c: Likewise.
62422         * lib/unistr/u32-next.c: Likewise.
62423         * lib/unistr/u32-prev.c: Likewise.
62424         * lib/unistr/u32-set.c: Likewise.
62425         * lib/unistr/u32-startswith.c: Likewise.
62426         * lib/unistr/u32-stpcpy.c: Likewise.
62427         * lib/unistr/u32-stpncpy.c: Likewise.
62428         * lib/unistr/u32-strcat.c: Likewise.
62429         * lib/unistr/u32-strchr.c: Likewise.
62430         * lib/unistr/u32-strcmp.c: Likewise.
62431         * lib/unistr/u32-strcpy.c: Likewise.
62432         * lib/unistr/u32-strcspn.c: Likewise.
62433         * lib/unistr/u32-strdup.c: Likewise.
62434         * lib/unistr/u32-strlen.c: Likewise.
62435         * lib/unistr/u32-strmblen.c: Likewise.
62436         * lib/unistr/u32-strmbtouc.c: Likewise.
62437         * lib/unistr/u32-strncat.c: Likewise.
62438         * lib/unistr/u32-strncmp.c: Likewise.
62439         * lib/unistr/u32-strncpy.c: Likewise.
62440         * lib/unistr/u32-strnlen.c: Likewise.
62441         * lib/unistr/u32-strpbrk.c: Likewise.
62442         * lib/unistr/u32-strrchr.c: Likewise.
62443         * lib/unistr/u32-strspn.c: Likewise.
62444         * lib/unistr/u32-strstr.c: Likewise.
62445         * lib/unistr/u32-strtok.c: Likewise.
62446         * lib/unistr/u32-to-u16.c: Likewise.
62447         * lib/unistr/u32-to-u8.c: Likewise.
62448         * lib/unistr/u32-uctomb.c: Likewise.
62449         * lib/unistr/u8-check.c: Likewise.
62450         * lib/unistr/u8-chr.c: Likewise.
62451         * lib/unistr/u8-cmp.c: Likewise.
62452         * lib/unistr/u8-cpy-alloc.c: Likewise.
62453         * lib/unistr/u8-cpy.c: Likewise.
62454         * lib/unistr/u8-endswith.c: Likewise.
62455         * lib/unistr/u8-mblen.c: Likewise.
62456         * lib/unistr/u8-mbsnlen.c: Likewise.
62457         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62458         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62459         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62460         * lib/unistr/u8-mbtouc.c: Likewise.
62461         * lib/unistr/u8-mbtoucr.c: Likewise.
62462         * lib/unistr/u8-move.c: Likewise.
62463         * lib/unistr/u8-next.c: Likewise.
62464         * lib/unistr/u8-prev.c: Likewise.
62465         * lib/unistr/u8-set.c: Likewise.
62466         * lib/unistr/u8-startswith.c: Likewise.
62467         * lib/unistr/u8-stpcpy.c: Likewise.
62468         * lib/unistr/u8-stpncpy.c: Likewise.
62469         * lib/unistr/u8-strcat.c: Likewise.
62470         * lib/unistr/u8-strchr.c: Likewise.
62471         * lib/unistr/u8-strcmp.c: Likewise.
62472         * lib/unistr/u8-strcpy.c: Likewise.
62473         * lib/unistr/u8-strcspn.c: Likewise.
62474         * lib/unistr/u8-strdup.c: Likewise.
62475         * lib/unistr/u8-strlen.c: Likewise.
62476         * lib/unistr/u8-strmblen.c: Likewise.
62477         * lib/unistr/u8-strmbtouc.c: Likewise.
62478         * lib/unistr/u8-strncat.c: Likewise.
62479         * lib/unistr/u8-strncmp.c: Likewise.
62480         * lib/unistr/u8-strncpy.c: Likewise.
62481         * lib/unistr/u8-strnlen.c: Likewise.
62482         * lib/unistr/u8-strpbrk.c: Likewise.
62483         * lib/unistr/u8-strrchr.c: Likewise.
62484         * lib/unistr/u8-strspn.c: Likewise.
62485         * lib/unistr/u8-strstr.c: Likewise.
62486         * lib/unistr/u8-strtok.c: Likewise.
62487         * lib/unistr/u8-to-u16.c: Likewise.
62488         * lib/unistr/u8-to-u32.c: Likewise.
62489         * lib/unistr/u8-uctomb-aux.c: Likewise.
62490         * lib/unistr/u8-uctomb.c: Likewise.
62491         * lib/unitypes.h: Likewise.
62492         * lib/uniwidth.h: Likewise.
62493         * lib/uniwidth/cjk.h: Likewise.
62494         * lib/uniwidth/u16-strwidth.c: Likewise.
62495         * lib/uniwidth/u16-width.c: Likewise.
62496         * lib/uniwidth/u32-strwidth.c: Likewise.
62497         * lib/uniwidth/u32-width.c: Likewise.
62498         * lib/uniwidth/u8-strwidth.c: Likewise.
62499         * lib/uniwidth/u8-width.c: Likewise.
62500         * lib/uniwidth/width.c: Likewise.
62501
62502 2007-10-07  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62505         The file is still under LGPL (see modules/inttypes).
62506
62507 2007-10-06  Bruno Haible  <bruno@clisp.org>
62508
62509         * modules/trunc (Dependencies): Add 'extensions'.
62510         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62511         Reported by Ben Pfaff <blp@gnu.org>.
62512
62513 2007-10-06  Bruno Haible  <bruno@clisp.org>
62514
62515         * modules/freopen-tests: New file.
62516         * tests/test-freopen.c: New file.
62517
62518         * modules/fopen-tests: New file.
62519         * tests/test-fopen.c: New file.
62520
62521         * modules/fopen: New file.
62522         * lib/fopen.c: New file.
62523         * m4/fopen.m4: New file.
62524         * modules/freopen: New file.
62525         * lib/freopen.c: New file.
62526         * m4/freopen.m4: New file.
62527         * lib/stdio.in.h (fopen, freopen): New declarations.
62528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62529         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62530         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62531         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62532         * doc/functions/fopen.texi: Mention the 'fopen' module.
62533         * doc/functions/freopen.texi: Mention the 'freopen' module.
62534
62535 2007-10-06  Bruno Haible  <bruno@clisp.org>
62536
62537         * modules/open-tests: New file.
62538         * tests/test-open.c: New file.
62539
62540         * modules/open: New file.
62541         * lib/open.c: New file.
62542         * m4/open.m4: New file.
62543         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62544         lib/open.c does.
62545         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62546         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62547         macros.
62548         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62549         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62550         REPLACE_OPEN.
62551         * doc/functions/open.texi: Mention the 'open' module.
62552
62553 2007-10-04  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/ceill-tests: New file.
62556         * tests/test-ceill.c: New file.
62557
62558         * modules/ceill: New file.
62559         * lib/ceill.c: Replace entire file.
62560         * m4/ceill.m4: New file.
62561         * lib/math.in.h (ceill): Replace declaration.
62562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62563         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62564         * doc/functions/ceill.texi: Mention the 'ceill' module.
62565         * modules/mathl (Files): Remove lib/ceill.c.
62566         (Depends-on): Add ceill.
62567
62568 2007-10-04  Bruno Haible  <bruno@clisp.org>
62569
62570         * modules/ceilf-tests: New file.
62571         * tests/test-ceilf.c: New file.
62572
62573         * modules/ceilf: New file.
62574         * lib/ceil.c: New file.
62575         * lib/ceilf.c: New file.
62576         * m4/ceilf.m4: New file.
62577         * lib/math.in.h (ceilf): New declaration.
62578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62579         HAVE_DECL_CEILF.
62580         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62581         HAVE_DECL_CEILF.
62582         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62583
62584 2007-10-04  Bruno Haible  <bruno@clisp.org>
62585
62586         * modules/floorl-tests: New file.
62587         * tests/test-floorl.c: New file.
62588
62589         * modules/floorl: New file.
62590         * lib/floorl.c: Replace entire file.
62591         * m4/floorl.m4: New file.
62592         * lib/math.in.h (floorl): Replace declaration.
62593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62594         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62595         * doc/functions/floorl.texi: Mention the 'floorl' module.
62596         * modules/mathl (Files): Remove lib/floorl.c.
62597         (Depends-on): Add floorl.
62598
62599 2007-10-04  Bruno Haible  <bruno@clisp.org>
62600
62601         * modules/floorf-tests: New file.
62602         * tests/test-floorf.c: New file.
62603
62604         * modules/floorf: New file.
62605         * lib/floor.c: New file.
62606         * lib/floorf.c: New file.
62607         * m4/floorf.m4: New file.
62608         * lib/math.in.h (floorf): New declaration.
62609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62610         HAVE_DECL_FLOORF.
62611         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62612         HAVE_DECL_FLOORF.
62613         * doc/functions/floorf.texi: Mention the 'floorf' module.
62614
62615 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62616             Bruno Haible  <bruno@clisp.org>
62617
62618         Advertise for the Git server instead of the CVS server.
62619         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62620         repository instead of the CVS one.
62621         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62622         about all VCS systems generically.
62623         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62624
62625 2007-10-04  Bruno Haible  <bruno@clisp.org>
62626
62627         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62628         means.
62629         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62630
62631 2007-10-04  Bruno Haible  <bruno@clisp.org>
62632
62633         * modules/truncl-tests: New file.
62634         * tests/test-truncl.c: New file.
62635
62636         * modules/truncl: New file.
62637         * lib/truncl.c: New file.
62638         * m4/truncl.m4: New file.
62639         * lib/math.in.h (truncl): New declaration.
62640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62641         HAVE_DECL_TRUNCL.
62642         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62643         HAVE_DECL_TRUNCL.
62644         * doc/functions/truncl.texi: Mention the 'truncl' module.
62645
62646 2007-10-04  Bruno Haible  <bruno@clisp.org>
62647
62648         * modules/truncf-tests: New file.
62649         * tests/test-truncf.c: New file.
62650
62651         * modules/truncf: New file.
62652         * lib/trunc.c: Make paramerizable through USE_* macros.
62653         * lib/truncf.c: New file.
62654         * m4/truncf.m4: New file.
62655         * lib/math.in.h (truncf): New declaration.
62656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62657         HAVE_DECL_TRUNCF.
62658         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62659         HAVE_DECL_TRUNCF.
62660         * doc/functions/truncf.texi: Mention the 'truncf' module.
62661
62662 2007-10-03  Bruno Haible  <bruno@clisp.org>
62663
62664         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62665         augmentation also for tests modules.
62666         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62667         * modules/atexit-tests (Makefile.am): Likewise.
62668         * modules/binary-io-tests (Makefile.am): Likewise.
62669         * modules/c-strcase-tests (Makefile.am): Likewise.
62670         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62671         * modules/canonicalize-tests (Makefile.am): Likewise.
62672         * modules/closein-tests (Makefile.am): Likewise.
62673         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62674         * modules/freadahead-tests (Makefile.am): Likewise.
62675         * modules/fseek-tests (Makefile.am): Likewise.
62676         * modules/fseeko-tests (Makefile.am): Likewise.
62677         * modules/ftell-tests (Makefile.am): Likewise.
62678         * modules/ftello-tests (Makefile.am): Likewise.
62679         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62680         * modules/isnanl-tests (Makefile.am): Likewise.
62681         * modules/lseek-tests (Makefile.am): Likewise.
62682         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62683         * modules/mbscasestr-tests (Makefile.am): Likewise.
62684         * modules/mbschr-tests (Makefile.am): Likewise.
62685         * modules/mbscspn-tests (Makefile.am): Likewise.
62686         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62687         * modules/mbspbrk-tests (Makefile.am): Likewise.
62688         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62689         * modules/mbsrchr-tests (Makefile.am): Likewise.
62690         * modules/mbsspn-tests (Makefile.am): Likewise.
62691         * modules/mbsstr-tests (Makefile.am): Likewise.
62692         * modules/printf-posix-tests (Makefile.am): Likewise.
62693         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62694         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62695         * modules/tsearch-tests (Makefile.am): Likewise.
62696         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62697         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62698         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62699         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62700         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62701         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62702         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62703         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62704         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62705         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62706         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62707         * modules/xstrtol-tests (Makefile.am): Likewise.
62708         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62709         * modules/yesno-tests (Makefile.am): Likewise.
62710
62711 2007-10-03  Bruno Haible  <bruno@clisp.org>
62712
62713         * modules/trunc-tests: New file.
62714         * tests/test-trunc.c: New file.
62715
62716         * modules/trunc: New file.
62717         * lib/trunc.c: New file.
62718         * m4/trunc.m4: New file.
62719         * lib/math.in.h (trunc): New declaration.
62720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62721         HAVE_DECL_TRUNC.
62722         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62723         HAVE_DECL_TRUNC.
62724         * doc/functions/trunc.texi: Mention the 'trunc' module.
62725
62726 2007-10-03  Bruno Haible  <bruno@clisp.org>
62727
62728         * tests/test-fpending.c: New file, mostly copied
62729         from coreutils/lib/t-fpending.c.
62730         * modules/fpending-tests: New file.
62731
62732 2007-10-03  Bruno Haible  <bruno@clisp.org>
62733
62734         Port the stdio extensions to QNX (untested).
62735         * lib/fseterr.c (fseterr): Add support for QNX.
62736         * lib/fbufmode.c (fbufmode): Likewise.
62737         * lib/freadable.c (freadable): Likewise.
62738         * lib/fwritable.c (fwritable): Likewise.
62739         * lib/freading.c (freading): Likewise.
62740         * lib/fwriting.c (fwriting): Likewise.
62741         * lib/freadahead.c (freadahed): Likewise.
62742         * lib/fpurge.c (fpurge): Likewise.
62743         * lib/fseeko.c (rpl_fseeko): Likewise.
62744
62745 2007-10-03  Bruno Haible  <bruno@clisp.org>
62746             Jim Meyering  <jim@meyering.net>
62747             Eric Blake  <ebb9@byu.net>
62748
62749         * doc/relocatable.texi: Use @command instead of @program.
62750
62751 2007-10-02  Jim Meyering  <jim@meyering.net>
62752
62753         Perform one more "_.h" -> ".in.h" substitution.
62754         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62755         instead of unistd_.h here, too.
62756
62757 2007-10-01  Bruno Haible  <bruno@clisp.org>
62758
62759         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62760         Needed for the alloca-opt module.
62761
62762 2007-09-30  Bruno Haible  <bruno@clisp.org>
62763
62764         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62765         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62766         alloca_.h.
62767         * lib/argz.in.h: Renamed from lib/argz_.h.
62768         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62769         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62770         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62771         byteswap_.h.
62772         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62773         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62774         dirent_.h.
62775         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62776         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62777         fcntl_.h.
62778         * lib/float.in.h: Renamed from lib/float_.h.
62779         * modules/float (Files, Makefile.am): Use float.in.h instead of
62780         float_.h.
62781         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62782         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62783         fnmatch_.h.
62784         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62785         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62786         getopt_.h.
62787         * lib/glob.in.h: Renamed from lib/glob_.h.
62788         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62789         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62790         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62791         iconv_.h.
62792         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62793         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62794         inttypes_.h.
62795         * lib/locale.in.h: Renamed from lib/locale_.h.
62796         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62797         locale_.h.
62798         * lib/math.in.h: Renamed from lib/math_.h.
62799         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62800         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62801         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62802         of netinet_in_.h. Add dependency.
62803         * lib/poll.in.h: Renamed from lib/poll_.h.
62804         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62805         * lib/search.in.h: Renamed from lib/search_.h.
62806         * modules/search (Files, Makefile.am): Use search.in.h instead of
62807         search_.h.
62808         * lib/signal.in.h: Renamed from lib/signal_.h.
62809         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62810         _signal.h.
62811         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62812         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62813         stdbool_.h.
62814         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62815         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62816         stdint_.h.
62817         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62818         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62819         stdio_.h.
62820         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62821         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62822         stdlib_.h.
62823         * lib/string.in.h: Renamed from lib/string_.h.
62824         * modules/string (Files, Makefile.am): Use string.in.h instead of
62825         string_.h.
62826         * doc/gnulib-tool.texi (Initial import): Update.
62827         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62828         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62829         of sys_select_.h. Add dependency.
62830         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62831         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62832         of sys_socket_.h.
62833         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62834         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62835         sys_stat_.h.
62836         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62837         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62838         sys_time_.h.
62839         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62840         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62841         sysexits_.h.
62842         * lib/time.in.h: Renamed from lib/time_.h.
62843         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62844         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62845         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62846         unistd_.h.
62847         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62848         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62849         wchar_.h.
62850         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62851         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62852         wctype_.h.
62853         * build-aux/bootstrap (slurp): Update.
62854         * lib/.cppi-disable: Update.
62855
62856 2007-09-30  Bruno Haible  <bruno@clisp.org>
62857
62858         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62859         Needed on BeOS.
62860
62861 2007-09-30  Bruno Haible  <bruno@clisp.org>
62862
62863         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62864
62865 2007-09-29  Bruno Haible  <bruno@clisp.org>
62866
62867         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62868
62869 2007-09-29  Bruno Haible  <bruno@clisp.org>
62870
62871         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62872         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62873         * build-aux/install-reloc: Compile also areadlink.c.
62874         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62875
62876 2007-09-29  Bruno Haible  <bruno@clisp.org>
62877
62878         * gnulib-tool (func_emit_initmacro_done): Indentation.
62879
62880 2007-09-29  Bruno Haible  <bruno@clisp.org>
62881
62882         * README: Add CVS checkout update instructions.
62883         Info from Bob Proulx <bob@proulx.com>.
62884
62885 2007-09-28  Eric Blake  <ebb9@byu.net>
62886
62887         Provide move-if-change.
62888         * build-aux/move-if-change: New file, based on best practice
62889         rather than any canonical upstream location.
62890
62891 2007-09-28  Jim Meyering  <jim@meyering.net>
62892
62893         Fix canonicalize loop-detection corner case.
62894         Do not attempt to stat the symlink values stored via seen_triple.
62895         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62896         on linux-2.6.18, (but not 2.6.22).
62897         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62898         triple_compare.  The former compares dev,ino,filename, while the latter
62899         would actually stat dirname(filename) when dev and ino were equal.
62900         * lib/hash-triple.c: Install <string.h>.
62901         (STREQ): Define.
62902         (triple_compare_ino_str): New function.
62903         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62904
62905 2007-09-28  Eric Blake  <ebb9@byu.net>
62906
62907         Enforce that AC_REPLACE_FUNCS files exist.
62908         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62909         override check for typos.
62910
62911         Fix test-closein on Solaris 10.
62912         * tests/test-closein.c (main): Don't assume stdin can be inherited
62913         closed on all systems.
62914         * tests/test-closein.sh: Likewise.
62915         Reported by Piotr Tarnowski.
62916
62917 2007-09-28  Jim Meyering  <jim@meyering.net>
62918
62919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62920
62921 2007-09-27  Jim Meyering  <jim@meyering.net>
62922
62923         canonicalize: Avoid a false-positive cycle failure.
62924         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62925         Sort.  Remove cycle-check.
62926         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62927         not cycle-check.h.
62928         (seen_triple): New function.
62929         (canonicalize_filename_mode): Use it instead of cycle-check.
62930         * tests/test-canonicalize.c: Add a test for this bug.
62931         * tests/test-canonicalize.sh: Set up and run the test.
62932
62933         New module, file-set, from coreutils.
62934         * modules/file-set: Define it.
62935         * lib/file-set.c, lib/file-set.h: Implement.
62936
62937         New module, hash-triple, from coreutils.
62938         * modules/hash-triple: Define it.
62939         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62940
62941 2007-09-25  Eric Blake  <ebb9@byu.net>
62942
62943         Fix strerror on Interix.
62944         * lib/string_.h (strerror): Declare replacement.
62945         * doc/functions/strerror.texi (strerror): Document the Interix
62946         shortcoming.
62947         * modules/string (Makefile.am): Support new hooks.
62948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62949         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62950         gl_FUNC_STRERROR_SEPARATE.
62951         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62952         * lib/strerror.c (rpl_strerror): Provide replacement.
62953         * modules/strerror (Depends-on): Add string.
62954         (configure.ac): Detect use of module.
62955         * tests/test-strerror.c: New file.
62956         * modules/strerror-tests: New test module.
62957         * modules/argp (Depends-on): Add strerror.
62958         * modules/error (Depends-on): Likewise.
62959         Reported by Martin Koeppe.
62960
62961 2007-09-24  Bruno Haible  <bruno@clisp.org>
62962
62963         * README: Update git instructions.
62964
62965 2007-09-24  Eric Blake  <ebb9@byu.net>
62966
62967         Revert fpending breakage from 2007-09-08.
62968         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62969         __fpending.c.
62970
62971 2007-09-24  Jim Meyering  <jim@meyering.net>
62972
62973         filenamecat.c: Add a test.
62974         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62975         showing how the function works when DIR is the empty string.
62976
62977 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62978
62979         * tests/test-canonicalize.sh: Turn on executable bit.
62980
62981 2007-09-19  Eric Blake  <ebb9@byu.net>
62982
62983         * README: Update CVS instructions.
62984
62985 2007-09-18  Bruno Haible  <bruno@clisp.org>
62986
62987         * modules/areadlink: New file.
62988         * lib/areadlink.h (areadlink): New declaration.
62989         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62990
62991 2007-09-17  Jim Meyering  <jim@meyering.net>
62992
62993         * lib/savewd.c (ESTALE) [!defined]: Define.
62994         Reported to be required on Interix by Martin Koeppe.
62995
62996 2007-09-17  Bruno Haible  <bruno@clisp.org>
62997
62998         * gnulib-tool (func_version): Use $version.
62999
63000 2007-09-16  Bruno Haible  <bruno@clisp.org>
63001
63002         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63003         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63004         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63005         Reported by Greg Schafer <gschafer@zip.com.au>.
63006
63007 2007-09-15  Bruno Haible  <bruno@clisp.org>
63008
63009         * gnulib-tool (sed): Try a little harder to make bash understand the
63010         alias.
63011         Reported by Bruce Korb <bruce.korb@gmail.com>.
63012
63013 2007-09-13  Eric Blake  <ebb9@byu.net>
63014
63015         * ChangeLog: Remove conflict markers.
63016
63017 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63018
63019         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63020         Reported by Bruno Haible <bruno@clisp.org>.
63021
63022 2007-09-12  Bruno Haible  <bruno@clisp.org>
63023
63024         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63025         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63026         is not defined.
63027
63028 2007-09-12  Eric Blake  <ebb9@byu.net>
63029
63030         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63031         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63032         Autoconf definition.
63033         * modules/euidaccess (Depends-on): Add extensions, for
63034         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63035         * modules/fnmatch (Depends-on): Likewise.
63036         * modules/getaddrinfo (Depends-on): Likewise.
63037         * modules/getdelim (Depends-on): Likewise.
63038         * modules/getline (Depends-on): Likewise.
63039         * modules/getsubopt (Depends-on): Likewise.
63040         * modules/gettext (Depends-on): Likewise.
63041         * modules/group-member (Depends-on): Likewise.
63042         * modules/mbchar (Depends-on): Likewise.
63043         * modules/memmem (Depends-on): Likewise.
63044         * modules/mempcpy (Depends-on): Likewise.
63045         * modules/memrchr (Depends-on): Likewise.
63046         * modules/pagealign_alloc (Depends-on): Likewise.
63047         * modules/readutmp (Depends-on): Likewise.
63048         * modules/stpcpy (Depends-on): Likewise.
63049         * modules/stpncpy (Depends-on): Likewise.
63050         * modules/strchrnul (Depends-on): Likewise.
63051         * modules/strndup (Depends-on): Likewise.
63052         * modules/strsep (Depends-on): Likewise.
63053         * modules/strverscmp (Depends-on): Likewise.
63054         * modules/vasprintf (Depends-on): Likewise.
63055         * modules/wcwidth (Depends-on): Likewise.
63056         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63057         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63058         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63059         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63061         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63062         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63063         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63064         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63065         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63066         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63067         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63068         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63069         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63070         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63071         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63072         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63073         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63074         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63075         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63076         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63077         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63078         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63079         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63080         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63082         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63083         so that lock.m4 can be used in gettext without extensions module.
63084
63085 2007-09-11  Bruno Haible  <bruno@clisp.org>
63086
63087         * m4/isc-posix.m4: Remove file.
63088         Suggested by Eric Blake.
63089
63090 2007-09-11  Eric Blake  <ebb9@byu.net>
63091
63092         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63093
63094 2007-09-10  Bruno Haible  <bruno@clisp.org>
63095
63096         * posix-modules: Fix typo in error message.
63097         Reported by Matt <mkraai@beckman.com>.
63098
63099 2007-09-09  Bruno Haible  <bruno@clisp.org>
63100
63101         * doc/functions/getdelim.texi: Update list of platforms lacking the
63102         function.
63103         * doc/functions/getline.texi: Likewise.
63104
63105 2007-09-09  Jim Meyering  <jim@meyering.net>
63106
63107         * lib/hash.c (hash_initialize): Detect calloc failure.
63108         Reported by Bruno Haible.
63109
63110 2007-09-09  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63113         malloc or realloc fails.
63114
63115 2007-09-09  Bruno Haible  <bruno@clisp.org>
63116
63117         * modules/getcwd (Depends-on): Add malloc-posix.
63118         * modules/glob (Depends-on): Likewise.
63119         * modules/putenv (Depends-on): Likewise.
63120         * modules/strdup (Depends-on): Likewise.
63121         * modules/getdelim (Depends-on): Add realloc-posix.
63122         * modules/read-file (Depends-on): Likewise.
63123
63124 2007-09-09  Bruno Haible  <bruno@clisp.org>
63125
63126         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63127         (gl_FUNC_MALLOC_POSIX): Require it.
63128         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63129         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63130         * modules/realloc (Files): Add m4/malloc.m4.
63131         * modules/calloc (Files): Likewise.
63132
63133 2007-09-09  Bruno Haible  <bruno@clisp.org>
63134
63135         * modules/malloc-posix: New file.
63136         * modules/malloc (Depends-on): Add malloc-posix.
63137         * lib/malloc.c: Include errno.h.
63138         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63139         and a POSIX-compatible malloc into a single function. Set ENOMEM
63140         when returning NULL.
63141         * m4/malloc.m4: New file.
63142         * doc/functions/malloc.texi: Mention the malloc-posix module.
63143         * lib/stdlib_.h (malloc): New declaration.
63144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63145         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63146         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63147         and HAVE_MALLOC_POSIX.
63148
63149 2007-09-09  Bruno Haible  <bruno@clisp.org>
63150
63151         * modules/realloc-posix: New file.
63152         * modules/realloc (Depends-on): Add realloc-posix.
63153         * lib/realloc.c: Include errno.h.
63154         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63155         and a POSIX-compatible realloc into a single function. Set ENOMEM
63156         when returning NULL.
63157         * m4/realloc.m4: New file.
63158         * doc/functions/realloc.texi: Mention the realloc-posix module.
63159         * lib/stdlib_.h (realloc): New declaration.
63160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63161         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63162         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63163         and HAVE_REALLOC_POSIX.
63164
63165 2007-09-09  Bruno Haible  <bruno@clisp.org>
63166
63167         * modules/calloc-posix: New file.
63168         * modules/calloc (Depends-on): Add calloc-posix.
63169         * lib/calloc.c: Include errno.h.
63170         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63171         and a POSIX-compatible calloc into a single function. Set ENOMEM
63172         when returning NULL.
63173         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63174         * doc/functions/calloc.texi: Mention the calloc-posix module.
63175         * lib/stdlib_.h (calloc): New declaration.
63176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63177         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63178         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63179         and HAVE_CALLOC_POSIX.
63180
63181 2007-09-09  Bruno Haible  <bruno@clisp.org>
63182
63183         Allow for modules to show an arbitrary notice.
63184         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63185         * gnulib-tool: New option --extract-notice.
63186         (func_usage): Document it.
63187         (sed_extract_prog): Update.
63188         (func_get_notice): New function.
63189         (func_modules_notice): New function.
63190         (func_import, func_create_testdir): Invoke it.
63191         Suggested by Jim Meyering.
63192
63193 2007-09-09  Bruno Haible  <bruno@clisp.org>
63194
63195         * gnulib-tool: New options --verbose, --quiet.
63196         (func_usage): Document them.
63197         (verbose): New variable.
63198         (func_execute_command): New function.
63199         (func_import): Don't show the module list and the file list if
63200         $verbose < 0.
63201         (func_create_testdir): Likewise. Use func_execute_command.
63202         (func_create_megatestdir): Use func_execute_command.
63203
63204 2007-09-08  Bruno Haible  <bruno@clisp.org>
63205
63206         * gnulib-tool (func_import): Prefer rsync over wget when available,
63207         for fetching the PO files.
63208
63209 2007-09-08  Bruno Haible  <bruno@clisp.org>
63210
63211         * posix-modules: New file. Portions copied from gnulib-tool.
63212         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63213
63214 2007-09-08  Jim Meyering  <jim@meyering.net>
63215
63216         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63217         * lib/fpending.h: Rename from __fpending.h.
63218         * lib/fpending.c: Rename from __fpending.c.
63219         Include "fpending.h", not "__fpending.h".
63220         * lib/__fpending.h, lib/__fpending.c: Remove files.
63221         * modules/fpending (Files): Reflect new file names.
63222         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63223
63224 2007-09-08  Bruno Haible  <bruno@clisp.org>
63225
63226         * m4/inttypes-h.m4: Remove stub file.
63227
63228 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63229
63230         * doc/headers/stdint.texi: Discuss #include_next issue.
63231
63232 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63233
63234         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63235
63236 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63237
63238         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63239         in variable name.
63240
63241 2007-09-03  Jim Meyering  <jim@meyering.net>
63242
63243         New module: git-version-gen.
63244         * modules/git-version-gen: New file.
63245
63246         Import changes from coreutils for bootstrap script.
63247
63248         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63249
63250         bootstrap: uses rsync to download the .po files
63251         * build-aux/bootstrap (po_download_command_format): New global.
63252         (download_po_files): Use rsync.
63253         (update_po_files): Don't remove .po files after download,
63254         so future rsync runs can take advantage of the copies.
63255
63256         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63257
63258         Solve the unnecessary-.po-file-regeneration problem once and for all.
63259         * build-aux/bootstrap (download_po_files): New function, renamed from
63260         get_translations.  Now, downloads, but doesn't update LINGUAS.
63261         (update_po_files): New function.
63262
63263         bootstrap: Ignore more.
63264         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63265         uniwidth to e.g., lib/.gitignore.
63266         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63267
63268         * build-aux/bootstrap: New setting: vc_ignore.
63269         (insert_sorted_if_absent): Create $file if absent.
63270         Adapt to new, possibly empty, list: $vc_ignore.
63271
63272         bootstrap: generate more ignorable names
63273         * build-aux/bootstrap (slurp): When generating ignorable names,
63274         also map .sin to .sed, .gperf to .c, and .y to .c.
63275
63276 2007-09-03  Jim Meyering  <jim@meyering.net>
63277
63278         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63279         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63280
63281 2007-09-02  Bruno Haible  <bruno@clisp.org>
63282
63283         Fix mis-recognition of 'mcs' on QNX 6.
63284         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63285         output contains the string "Mono".
63286         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63287         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63288
63289 2007-09-01  Bruno Haible  <bruno@clisp.org>
63290
63291         Fix collision between uniwidth/* and linebreak modules.
63292         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63293         u32_width): Remove declarations.
63294         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63295         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63296         streq3, streq2, streq1, streq0): Remove functions.
63297         (STREQ): Remove macro.
63298         (is_cjk_encoding): Remove function.
63299         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63300         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63301         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63302         * NEWS: Document the change.
63303
63304 2007-09-01  Bruno Haible  <bruno@clisp.org>
63305
63306         * lib/streq.h: Add double-inclusion guard.
63307
63308 2007-09-01  Karl Berry  <karl@gnu.org>
63309
63310         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63311
63312 2007-08-28  Jim Meyering  <jim@meyering.net>
63313
63314         Rename mreadlink_with_size to areadlink_with_size.
63315         * NEWS: Document the change.
63316         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63317         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63318         * lib/mreadlink.h: Rename this to...
63319         * lib/areadlink.h: ...this.
63320         * modules/mreadlink-with-size: Rename this to...
63321         * modules/areadlink-with-size: ...this.
63322         * lib/canonicalize.c: Reflect the renaming.
63323         * modules/canonicalize: Likewise.
63324
63325 2007-08-26  Bruno Haible  <bruno@clisp.org>
63326
63327         * gnulib-tool (func_import): When deciding which files to remove,
63328         consider also dangling symbolic links.
63329         Reported by Eric Blake.
63330
63331 2007-08-26  Bruno Haible  <bruno@clisp.org>
63332
63333         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63334
63335 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63336
63337         * lib/readline.c: Don't include getline.h, the prototype is now
63338         found in stdio.h.
63339
63340 2007-08-23  Jim Meyering  <jim@meyering.net>
63341
63342         Getdelim touchup.
63343         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63344         around the funlockfile call, since funlockfile never sets errno.
63345         Don't set errno upon failed realloc.
63346
63347 2007-08-22  Eric Blake  <ebb9@byu.net>
63348
63349         Getline touchups.
63350         * lib/getdelim.c (getdelim): Revert regression that required *n to
63351         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63353         getdelim, rather than whether implementation is missing.
63354         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63355         * lib/stdio_.h (getline): Also declare if replacement is
63356         required.
63357         * doc/functions/getdelim.texi: New file.
63358         * doc/functions/getline.texi: Likewise.
63359         * doc/gnulib.texi (Function Substitutes): Add new files.
63360         Reported by Bruno Haible.
63361
63362 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63363
63364         * users.txt: Add Guile.
63365
63366 2007-08-22  Eric Blake  <ebb9@byu.net>
63367
63368         * tests/test-getdelim.c (main): Use remove, not unlink.
63369         * tests/test-getline.c (main): Likewise.
63370
63371         Move getline and getdelim into stdio.h, per POSIX 200x.
63372         * modules/getline (Files): Remove getline.h.
63373         (Depends-on): Add stdio.
63374         (configure.ac): Add module indicator.
63375         * modules/getdelim (Files): Remove getdelim.h.
63376         (Depends-on): Add stdio.
63377         (configure.ac): Add module indicator.
63378         * modules/stdio (Makefile.am): Work with new indicators.
63379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63380         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63381         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63382         * lib/getdelim.h: Delete.
63383         * lib/getline.h: Delete.
63384         * lib/stdio_.h (getdelim, getline): Declare.
63385         * modules/getdelim-tests: New module.
63386         * modules/getline-tests: Likewise.
63387         * tests/test-getdelim.c: New file.
63388         * tests/test-getline.c: Likewise.
63389         * NEWS: Document the change.
63390         * lib/getline.c: Update choice of header.
63391         * lib/csharpcomp.c: Likewise.
63392         * lib/getpass.c: Likewise.
63393         * lib/javacomp.c: Likewise.
63394         * lib/javaversion.c: Likewise.
63395         * lib/yesno.c: Likewise.
63396         * lib/getdelim.c: Likewise.
63397         (getdelim): Set errno on failure, and avoid memory leak.
63398
63399 2007-08-19  Bruno Haible  <bruno@clisp.org>
63400
63401         * modules/closein (Depends-on): Add freadahead.
63402         * lib/closein.c: Include freadahead.h.
63403         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63404         is zero.
63405
63406 2007-08-19  Bruno Haible  <bruno@clisp.org>
63407
63408         * modules/freadahead-tests: New file.
63409         * tests/test-freadahead.sh: New file.
63410         * tests/test-freadahead.c: New file.
63411
63412         * modules/freadahead: New file.
63413         * lib/freadahead.h: New file.
63414         * lib/freadahead.c: New file.
63415         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63416         fbufmode, fpurge, freadable, fwritable.
63417
63418 2007-08-19  Eric Blake  <ebb9@byu.net>
63419
63420         Test yesno in combination with closein.
63421         * lib/yesno.c (yesno): Document use of stdin.
63422         * modules/yesno-tests (Files): New module.
63423         * tests/test-yesno.c (main): New file.
63424         * tests/test-yesno.sh: Likewise.
63425
63426 2007-08-19  Bruno Haible  <bruno@clisp.org>
63427
63428         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63429         * lib/fseeko.c (rpl_fseeko): Likewise.
63430         * lib/fseterr.c (fseterr): Likewise.
63431
63432 2007-08-19  Bruno Haible  <bruno@clisp.org>
63433
63434         * tests/test-lseek.c (main): Disable a test for BeOS.
63435         * doc/functions/lseek.texi: Document the BeOS bug.
63436
63437 2007-08-19  Bruno Haible  <bruno@clisp.org>
63438             Eric Blake  <ebb9@byu.net>
63439
63440         * lib/lseek.c: Include <sys/stat.h>.
63441         (rpl_lseek): Add workaround code also for Unix platforms.
63442         Needed for BeOS.
63443         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63444         * doc/functions/lseek.texi: Document BeOS definiency.
63445
63446 2007-08-18  Bruno Haible  <bruno@clisp.org>
63447
63448         * modules/fstrcmp-tests: New file.
63449         * tests/test-fstrcmp.c: New file.
63450
63451 2007-08-18  Bruno Haible  <bruno@clisp.org>
63452
63453         * modules/fstrcmp: New file, from GNU gettext with modifications.
63454         * lib/fstrcmp.h: New file, from GNU gettext.
63455         * lib/fstrcmp.c: New file, from GNU gettext.
63456         * MODULES.html.sh (String handling): Add fstrcmp.
63457
63458 2007-08-18  Bruno Haible  <bruno@clisp.org>
63459
63460         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63461         'bool'.
63462         (diag, compareseq): Remove const from the ctxt argument.
63463         (USE_HEURISTIC): Undefine at the end.
63464
63465 2007-08-18  Jim Meyering  <jim@meyering.net>
63466
63467         New file: lib/idcache.h
63468         * NEWS: Mention the addition.
63469         * modules/idcache (Files): Add lib/idcache.h
63470         * lib/idcache.c: Include "idcache.h".
63471         Don't include <sys/types.h>.
63472         Add a FIXME comment.
63473         Move file-scoped "static" declarations to the top.
63474         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63475
63476 2007-08-17  Bruno Haible  <bruno@clisp.org>
63477         and Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * MODULES.html.sh: Add diffseq.
63480         * modules/diffseq: New file.
63481         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63482         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63483
63484 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63485
63486         Import changes from coreutils for bootstrap script.
63487
63488         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63489
63490         * build-aux/bootstrap (slurp): Work even in environments where
63491         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63492         current code does not slurp files whose names start with ".", and
63493         this looks like it might be a troublesome area.
63494
63495         2007-07-11  Jim Meyering  <jim@meyering.net>
63496
63497         If there's a GPL vN copyright comment, require that N == 3.
63498
63499         2007-07-08  Jim Meyering  <jim@meyering.net>
63500
63501         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63502         * build-aux/bootstrap (mam_template): Move definition out of loop.
63503
63504         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63505
63506         * build-aux/bootstrap (symlink_to_dir): Rename function from
63507         symlink_to_gnulib.  Add a directory parameter.  Update all
63508         callers.
63509         (cp_mark_as_generated): Also check for -- and link to -- files in
63510         gl/.
63511
63512         2007-07-08  Jim Meyering  <jim@meyering.net>
63513
63514         Adapt to deeper hierarchy in gnulib.
63515         * build-aux/bootstrap (symlink_to_dir): If the destination
63516         directory doesn't exist, create it. This is required at least for
63517         "lib/uniwidth/cjk.h".
63518
63519         2007-05-15  Jim Meyering  <jim@meyering.net>
63520
63521         * build-aux/bootstrap: Now that generated Makefile.am files
63522         are no longer under version control, they must be created at
63523         bootstrap time.
63524
63525 2007-08-14  Ben Pfaff  <blp@gnu.org>
63526
63527         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63528
63529 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63532         given the changes below.
63533         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63534         even on hosts that have padding bits beyond the supported 64.
63535
63536 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63537
63538         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63539         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63540         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63541         depends on it.
63542         (xstrtol_error): Remove.
63543         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63544         but with a different signature.
63545         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63546         * lib/xstrtol-error.c: Include exitfail.h.
63547         (xstrtol_fatal): New function, with a different signature from the
63548         old xstrtol_error, so that the caller need not worry about passing
63549         in an exit status, or about storage management of the option argument.
63550         (xstrtol_error): Now a static function.  Redo signature to
63551         implement xstrtol_fatal.  Output the correct number of hyphens in
63552         front of the option so that the caller need not worry about
63553         storage management.
63554         (N_): New macro.
63555         (_): Remove; not used now.
63556         * modules/xstrtol: Depend on getopt.
63557         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63558         of old STRTOL_FATAL_ERROR macro.
63559         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63560         of test program.
63561         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63562         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63563
63564 2007-08-08  Eric Blake  <ebb9@byu.net>
63565
63566         * lib/xstrtol-error.c: Add missing include.
63567
63568         Move xstrtol messages into gnulib domain, when --pobase is used.
63569         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63570         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63571         * modules/xstrtol (Files): Distribute new file.
63572         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63573         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63574         * tests/test-xstrtol.c: ...into new file.
63575         * tests/test-xstrtoul.c: Also test xstrtoul.
63576         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63577         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63578         * tests/test-xstrtol.sh: Drive the tests.
63579         * tests/test-xstrtoimax.sh: Likewise.
63580         * tests/test-xstrtoumax.sh: Likewise.
63581         * modules/xstrtol-tests: New module.
63582         * modules/xstrtoimax-tests: Likewise.
63583         * modules/xstrtoumax-tests: Likewise.
63584
63585 2007-08-08  Jim Meyering  <jim@meyering.net>
63586
63587         New function: mfile_name_concat.
63588         * lib/filenamecat.c (mfile_name_concat): New function, just like
63589         file_name_concat, but return NULL upon failure rather than exiting
63590         with a diagnostic.
63591         * lib/filenamecat.h: Declare it.
63592
63593 2007-08-07  Bruno Haible  <bruno@clisp.org>
63594
63595         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63596         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63597         warning from gcc.
63598         Reported by Eric Blake.
63599
63600 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63601
63602         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63603         * modules/crypto/arcfour (License): Likewise.
63604         * modules/crypto/des-tests (License): Likewise.
63605         * modules/crypto/gc-arctwo-tests (License): Likewise.
63606         * modules/crypto/gc-des-tests (License): Likewise.
63607         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63608         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63609         * modules/crypto/gc-md2-tests (License): Likewise.
63610         * modules/crypto/gc-md4-tests (License): Likewise.
63611         * modules/crypto/gc-md5-tests (License): Likewise.
63612         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63613         * modules/crypto/gc-rijndael-tests (License): Likewise.
63614         * modules/crypto/gc-sha1-tests (License): Likewise.
63615         * modules/crypto/gc-tests (License): Likewise.
63616         * modules/crypto/hmac-md5 (License): Likewise.
63617         * modules/crypto/hmac-sha1 (License): Likewise.
63618         * modules/crypto/md2-tests (License): Likewise.
63619         * modules/crypto/md4-tests (License): Likewise.
63620         * modules/crypto/md5 (License): Likewise.
63621         * modules/crypto/rijndael (License): Likewise.
63622         * modules/crypto/sha1 (License): Likewise.
63623         * modules/memxor (License): Likewise.
63624
63625 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63626         and Bruno Haible  <bruno@clisp.org>
63627
63628         * NEWS: Describe interface changes to human, xstrtol.
63629         * lib/human.h: Include <xstrtol.h>.
63630         (human_options): Return enum strtol_error, not int.  Remove
63631         bool arg; take int * instead.
63632         * lib/human.c: Don't include "gettext.h".
63633         (_): Remove; no longer used.
63634         Don't include <xstrtol.h>, since human.h does it.
63635         (human_options): Adjust to abovementioned interface changes.
63636         Do not report error to stderr; that's now the caller's
63637         responsibility.
63638         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63639         interface change.
63640         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63641         Str, Argument_type_string.  All uses changed.  Put " argument"
63642         in diagnostics to make them clearer.  Change wording of suffix
63643         message for clarity.
63644         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63645         Argument_type_string.
63646         (STRTOL_FATAL_WARN): Remove; no longer used.
63647         * modules/human (Depends-on): Remove gettext-h.
63648
63649 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63650
63651         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63652
63653 2007-07-31  Bruno Haible  <bruno@clisp.org>
63654
63655         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63656         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63657         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63658
63659 2007-07-31  Bruno Haible  <bruno@clisp.org>
63660
63661         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63662         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63663
63664 2007-07-30  Bruno Haible  <bruno@clisp.org>
63665
63666         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63667         * modules/c-ctype (License): Likewise.
63668         * modules/c-strcase (License): Likewise.
63669         * modules/check-version (License): Likewise.
63670         * modules/iconv (License): Likewise.
63671         * modules/iconv_open (License): Likewise.
63672         * modules/read-file (License): Likewise.
63673         * modules/striconv (License): Likewise.
63674         * modules/strverscmp (License): Likewise.
63675         * modules/vasprintf (License): Likewise.
63676         * modules/crypto/des (License): Likewise.
63677         * modules/crypto/gc (License): Likewise.
63678         * modules/crypto/gc-arcfour (License): Likewise.
63679         * modules/crypto/gc-arctwo (License): Likewise.
63680         * modules/crypto/gc-des (License): Likewise.
63681         * modules/crypto/gc-hmac-md5 (License): Likewise.
63682         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63683         * modules/crypto/gc-md2 (License): Likewise.
63684         * modules/crypto/gc-md4 (License): Likewise.
63685         * modules/crypto/gc-md5 (License): Likewise.
63686         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63687         * modules/crypto/gc-random (License): Likewise.
63688         * modules/crypto/gc-rijndael (License): Likewise.
63689         * modules/crypto/gc-sha1 (License): Likewise.
63690         * modules/crypto/md2 (License): Likewise.
63691         * modules/crypto/md4 (License): Likewise.
63692
63693 2007-07-30  Jim Meyering  <jim@meyering.net>
63694
63695         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63696         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63697         it has valid stat data.  This bug would cause du not to count the
63698         sizes of inaccessible directories.
63699         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63700         in <http://bugzilla.redhat.com/250077>.
63701
63702 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63703             Bruno Haible  <bruno@clisp.org>
63704
63705         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63706         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63707         #include_next, gives a diagnostic about it, but reports no error in
63708         the exit code.
63709         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63710
63711 2007-07-24  Ben Pfaff  <blp@gnu.org>
63712
63713         Improve name: "count-one-bits" is better than "popcount".
63714         * MODULES.html.sh: Update name.
63715         * lib/popcount.h: Renamed lib/count-one-bits.h.
63716         (popcount): Renamed count_one_bits.
63717         (popcountl): Renamed count_one_bits_l.
63718         (popcountll): Renamed count_one_bits_ll.
63719         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63720         * modules/popcount: Renamed module/count-one-bits.
63721         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63722         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63723
63724 2007-07-23  Ben Pfaff  <blp@gnu.org>
63725
63726         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63727         better code generation, and add U to large constants to avoid
63728         warnings, in non-GCC case.
63729         Suggested by Bruno Haible.
63730
63731 2007-07-23  Ben Pfaff  <blp@gnu.org>
63732
63733         * lib/popcount.h: Use verify_true instead of if...abort.
63734         * modules/popcount: Depend on verify module.
63735         Suggested by Jim Meyering.
63736
63737 2007-07-23  Bruno Haible  <bruno@clisp.org>
63738
63739         * gnulib-tool (func_import): Create a .cvsignore file also when the
63740         directory is not yet in CVS but the toplevel directory is. When
63741         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63742         Reported by Karl Berry.
63743
63744 2007-07-22  Ben Pfaff  <blp@gnu.org>
63745
63746         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63747         case.
63748         Suggested by Eric Blake.
63749
63750 2007-07-22  Ben Pfaff  <blp@gnu.org>
63751
63752         New module: popcount.
63753         * MODULES.html.sh: Add popcount.
63754         * modules/popcount: New file.
63755         * modules/popcount-tests: New file.
63756         * tests/test-popcount.c: New file.
63757         * lib/popcount.h: New file.
63758         * m4/popcount.m4: New file.
63759
63760 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         * build-aux/announce-gen: Update to GPLv3.
63763
63764         * build-aux/config.guess: Update from config.
63765
63766 2007-07-21  Bruno Haible  <bruno@clisp.org>
63767
63768         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63769         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63770
63771 2007-07-20  Jim Meyering  <jim@meyering.net>
63772
63773         * check-module: Diagnose a self-dependency.
63774
63775 2007-07-19  Bruno Haible  <bruno@clisp.org>
63776
63777         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63778         empty.
63779         Reported by Eric Blake.
63780
63781 2007-07-18  Bruno Haible  <bruno@clisp.org>
63782
63783         * gnulib-tool: New options --po-base, --po-domain.
63784         (func_usage): Document them.
63785         (pobase, po_domain): New variables.
63786         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63787         DEFAULT_TEXT_DOMAIN.
63788         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63789         (func_import): Consider pobase and po_domain. Create a po/ directory.
63790         (func_create_testdir): Set pobase and po_domain to empty.
63791         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63792         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63793
63794 2007-07-18  Bruno Haible  <bruno@clisp.org>
63795
63796         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63797         EXTRA_DIST augmentation for files in build-aux/.
63798
63799 2007-07-16  Bruno Haible  <bruno@clisp.org>
63800
63801         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63802         * modules/getdelim (License): Likewise.
63803
63804 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63805
63806         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63807         * modules/d-type (License): Likewise.
63808         * modules/extensions (License): Likewise.
63809         * modules/fnmatch (License): Likewise.
63810         * modules/fseeko (License): Likewise.
63811         * modules/getaddrinfo (License): Likewise.
63812         * modules/getline (License): Likewise.
63813         * modules/getlogin_r (License): Likewise.
63814         * modules/getpass (License): Likewise.
63815         * modules/gettimeofday (License): Likewise.
63816         * modules/glob (License): Likewise.
63817         * modules/inet_ntop (License): Likewise.
63818         * modules/malloc (License): Likewise.
63819         * modules/malloca (License): Likewise.
63820         * modules/memmem (License): Likewise.
63821         * modules/mempcpy (License): Likewise.
63822         * modules/memset (License): Likewise.
63823         * modules/minmax (License): Likewise.
63824         * modules/mktime (License): Likewise.
63825         * modules/netinet_in (License): Likewise.
63826         * modules/pathmax (License): Likewise.
63827         * modules/poll (License): Likewise.
63828         * modules/regex (License): Likewise.
63829         * modules/snprintf (License): Likewise.
63830         * modules/stdbool (License): Likewise.
63831         * modules/stdint (License): Likewise.
63832         * modules/stdio (License): Likewise.
63833         * modules/strcase (License): Likewise.
63834         * modules/strcasestr (License): Likewise.
63835         * modules/strdup (License): Likewise.
63836         * modules/string (License): Likewise.
63837         * modules/strndup (License): Likewise.
63838         * modules/strnlen (License): Likewise.
63839         * modules/strpbrk (License): Likewise.
63840         * modules/strptime (License): Likewise.
63841         * modules/strsep (License): Likewise.
63842         * modules/sys_select (License): Likewise.
63843         * modules/sys_socket (License): Likewise.
63844         * modules/sys_stat (License): Likewise.
63845         * modules/sys_time (License): Likewise.
63846         * modules/time (License): Likewise.
63847         * modules/time_r (License): Likewise.
63848         * modules/timegm (License): Likewise.
63849         * modules/unistd (License): Likewise.
63850         * modules/vsnprintf (License): Likewise.
63851         * modules/wctype (License): Likewise.
63852
63853 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63854
63855         * modules/argz (License): LGPLv2+.
63856
63857 2007-07-15  Karl Berry  <karl@gnu.org>
63858
63859         * doc/gnulib.texi: revise node structure per new fdl.texi.
63860
63861 2007-07-14  Bruno Haible  <bruno@clisp.org>
63862
63863         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63864         the output file.
63865         * lib/uniname/uninames.h: Regenerated.
63866
63867 2007-07-14  Karl Berry  <karl@gnu.org>
63868
63869         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63870         omitting sectioning and index commands.
63871
63872 2007-07-13  Bruno Haible  <bruno@clisp.org>
63873
63874         New gnulib-tool option --more-symlinks.
63875         * gnulib-tool (func_usage): Document --more-symlinks.
63876         (do_copyrights): New variable.
63877         Recognize option --more-symlinks.
63878         (func_import): Don't add a copyright notice transform to
63879         sed_transform_lib_file if do_copyrights is empty.
63880
63881 2007-07-13  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/vasnprintf.c (decimal_point_char): Define also if
63884         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63885         && !NEED_PRINTF_DIRECTIVE_A.
63886         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63887         Gary V. Vaughan <gary@gnu.org>.
63888
63889 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63890
63891         * lib/inttypes_.h: Undo previous change, since it was fixed
63892         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63893
63894 2007-07-13  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63897         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63898
63899 2007-07-13  Jim Meyering  <jim@meyering.net>
63900
63901         df: Don't fail for Tru64's "file-on-file mount".
63902         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63903         so we fall through and use statfs instead.  Details here:
63904         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63905         Reported by Albert Chin.
63906
63907 2007-07-13  Bruno Haible  <bruno@clisp.org>
63908
63909         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63910         * modules/configmake (License): Likewise.
63911         * modules/gettext (License): Likewise.
63912         * modules/gettext-h (License): Likewise.
63913         * modules/include_next (License): Likewise.
63914         * modules/link-warning (License): Likewise.
63915         * modules/localcharset (License): Likewise.
63916         * modules/localename (License): Likewise.
63917         * modules/lock (License): Likewise.
63918         * modules/relocatable-lib-lgpl (License): Likewise.
63919         * modules/size_max (License): Likewise.
63920         * modules/vasnprintf (License): Likewise.
63921         * modules/wchar (License): Likewise.
63922         * modules/xsize (License): Likewise.
63923
63924 2007-07-13  Bruno Haible  <bruno@clisp.org>
63925
63926         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63927         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63928
63929 2007-07-12  Bruno Haible  <bruno@clisp.org>
63930
63931         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63932         in the modules files.
63933
63934 2007-07-11  Karl Berry  <karl@gnu.org>
63935
63936         * MODULES.html.sh (func_module): use
63937          sed -e '\|^'"${includefile}"'$|d'
63938          instead of /.../d, to avoid errors on $includefile's containing /.
63939
63940 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63941
63942         * gnulib-tool (func_import): Avoid duplication of --avoid
63943         statements
63944         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63945         names to `_' in variable names.
63946
63947 2007-07-10  Eric Blake  <ebb9@byu.net>
63948
63949         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63950         * NEWS: Document this change.
63951
63952 2007-07-08  Bruno Haible  <bruno@clisp.org>
63953
63954         Update to Unicode 5.0.
63955         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63956         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63957         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63958         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63959         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63960         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63961         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63962         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63963         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63964         U+10A3F, U+1D242..U+1D244.
63965         (nonspacing_table_ind): Update.
63966         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63967         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63968
63969 2007-07-08  Bruno Haible  <bruno@clisp.org>
63970
63971         Update to Unicode 5.0.
63972         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63973         code transform. Extend the name index field of unicode_name_to_code and
63974         unicode_code_to_name from 16 to 24 bits.
63975         * lib/uniname/uniname.c (unicode_character_name,
63976         unicode_name_character): Add the range 0x12xxx to the code transform.
63977         * lib/uniname/uninames.h: Regenerated.
63978         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63979
63980 2007-07-07  Bruno Haible  <bruno@clisp.org>
63981
63982         * modules/wcwidth-tests: New file.
63983         * tests/test-wcwidth.c: New file.
63984
63985         Work around MacOS X wcwidth() bug.
63986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63987         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63988         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63989         original wcwidth in non-UTF-8 locales.
63990         * modules/wcwidth (Depends-on): Add localcharset, streq,
63991         uniwidth/width.
63992         * doc/functions/wcwidth.texi: Update.
63993
63994 2007-07-07  Bruno Haible  <bruno@clisp.org>
63995
63996         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63997         (wcwidth): New declaration.
63998         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63999         macros.
64000         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64001         here. Prepare for creating <wchar.h> unconditionally.
64002         * modules/wchar (Depends-on): Add link-warning.
64003         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64004         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64005         * lib/wcwidth.h: Remove file.
64006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64007         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64008         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64009         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64010         (Include): Replace wcwidth.h with <wchar.h>.
64011         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64012         * lib/mbchar.h: Don't include wcwidth.h.
64013         * lib/mbswidth.c: Likewise.
64014         * NEWS: Mention the change.
64015
64016 2007-07-07  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64019         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64020         definition with an external declaration.
64021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64022         defined as a function. Remove AC_C_INLINE requirement.
64023         * modules/wcwidth (Files): Add lib/wcwidth.c.
64024         (Makefile.am): Remove redundant statement.
64025
64026 2007-07-07  Bruno Haible  <bruno@clisp.org>
64027
64028         * MODULES.html.sh (Unicode string functions): Add the new modules.
64029
64030         * tests/uniwidth/test-u32-strwidth.c: New file.
64031         * modules/uniwidth/u32-strwidth-tests: New file.
64032
64033         * lib/uniwidth/u32-strwidth.c: New file.
64034         * modules/uniwidth/u32-strwidth: New file.
64035
64036         * tests/uniwidth/test-u16-strwidth.c: New file.
64037         * modules/uniwidth/u16-strwidth-tests: New file.
64038
64039         * lib/uniwidth/u16-strwidth.c: New file.
64040         * modules/uniwidth/u16-strwidth: New file.
64041
64042         * tests/uniwidth/test-u8-strwidth.c: New file.
64043         * modules/uniwidth/u8-strwidth-tests: New file.
64044
64045         * lib/uniwidth/u8-strwidth.c: New file.
64046         * modules/uniwidth/u8-strwidth: New file.
64047
64048         * tests/uniwidth/test-u32-width.c: New file.
64049         * modules/uniwidth/u32-width-tests: New file.
64050
64051         * lib/uniwidth/u32-width.c: New file.
64052         * modules/uniwidth/u32-width: New file.
64053
64054         * tests/uniwidth/test-u16-width.c: New file.
64055         * modules/uniwidth/u16-width-tests: New file.
64056
64057         * lib/uniwidth/u16-width.c: New file.
64058         * modules/uniwidth/u16-width: New file.
64059
64060         * tests/uniwidth/test-u8-width.c: New file.
64061         * modules/uniwidth/u8-width-tests: New file.
64062
64063         * lib/uniwidth/u8-width.c: New file.
64064         * modules/uniwidth/u8-width: New file.
64065
64066         * tests/uniwidth/test-uc_width.c: New file.
64067         * modules/uniwidth/width-tests: New file.
64068
64069         * lib/uniwidth/width.c: New file, from GNU libiconv.
64070         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64071         * modules/uniwidth/width: New file.
64072
64073         * lib/uniwidth.h: New file, from GNU libiconv.
64074         * modules/uniwidth/base: New file.
64075
64076 2007-07-07  Bruno Haible  <bruno@clisp.org>
64077
64078         * lib/uniname.h: New file, from GNU gettext.
64079         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64080         * lib/uniname/uninames.h: New file, from GNU gettext.
64081         * lib/uniname/uniname.c: New file, from GNU gettext.
64082         * tests/uniname/test-uninames.sh: New file.
64083         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64084         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64085         * modules/uniname/base: New file.
64086         * modules/uniname/uniname: New file.
64087         * modules/uniname/uniname-tests: New file.
64088         * MODULES.html.sh (Unicode string functions): Add the new modules.
64089
64090 2007-07-06  Bruno Haible  <bruno@clisp.org>
64091
64092         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64093
64094 2007-07-06  Bruno Haible  <bruno@clisp.org>
64095
64096         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64097         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64098         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64099         include <sys/time.h>.
64100         Reported by Eric Blake.
64101
64102 2007-07-06  Eric Blake  <ebb9@byu.net>
64103
64104         Fix testing canonicalize on cygwin.
64105         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64106         Revert patch from 2007-06-19.
64107         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64108         canonicalize module is also in use.
64109         * tests/test-canonicalize.c: New file.
64110         * tests/test-canonicalize.sh: Likewise.
64111         * modules/canonicalize-tests: Likewise.
64112
64113 2007-07-06  Jim Meyering  <jim@meyering.net>
64114
64115         * lib/getugroups.c (getugroups): Detect getgrent failure.
64116         Adjust comment to reflect reality: this function may return -1.
64117
64118 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64119
64120         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64121         the new TP address.
64122         (usage): Fix typo
64123         (gnulib_mk): New variable.
64124
64125 2007-07-05  Jim Meyering  <jim@meyering.net>
64126
64127         Don't let endgrent clobber errno, no matter how improbable.
64128         * lib/getugroups.c (getugroups): Save and restore errno around
64129         endgrent call.
64130
64131         Close the group DB even when failing with 2^31 or more members.
64132         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64133
64134 2007-07-04  Jim Meyering  <jim@meyering.net>
64135
64136         * lib/getugroups.h: New file.
64137         * lib/getugroups.c: Include "getugroups.h".
64138         Remove uses of "register" keyword.
64139         Move local variable, "cp", down into scope where used.
64140         Give "username" parameter the "const" attribute.
64141         * modules/getugroups (Files): Add lib/getugroups.h
64142
64143 2007-07-04  Karl Berry  <karl@gnu.org>
64144
64145         * MODULES.html.sh (func_all_modules): Complete rename of
64146         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64147
64148 2007-07-02  Bruno Haible  <bruno@clisp.org>
64149
64150         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64151         mode, when inttypes.h comes from gnulib.
64152         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64153
64154 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64155
64156         * NEWS: Mention lgpl module name change.
64157
64158         * modules/lgpl-2.1: Renamed from lgpl.
64159
64160         * NEWS: Mention gpl module name change.
64161
64162         * modules/gpl-3.0: New file, based on gpl-2.0.
64163
64164         * modules/gpl-2.0: Renamed from gpl.
64165
64166         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64167         doc/gpl-2.0.texi.
64168
64169 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64170
64171         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64172         #define __STDC_LIMIT_MACROS temporarily while including
64173         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64174         Problem reported by Joel E. Denny in
64175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64176
64177 2007-07-01  Bruno Haible  <bruno@clisp.org>
64178
64179         * lib/unistdio.h: New file.
64180         * lib/unistdio/u-asnprintf.h: New file.
64181         * lib/unistdio/u-asprintf.h: New file.
64182         * lib/unistdio/u-printf-args.c: New file.
64183         * lib/unistdio/u-printf-args.h: New file.
64184         * lib/unistdio/u-printf-parse.h: New file.
64185         * lib/unistdio/u-snprintf.h: New file.
64186         * lib/unistdio/u-sprintf.h: New file.
64187         * lib/unistdio/u-vasprintf.h: New file.
64188         * lib/unistdio/u-vsnprintf.h: New file.
64189         * lib/unistdio/u-vsprintf.h: New file.
64190         * lib/unistdio/ulc-asnprintf.c: New file.
64191         * lib/unistdio/ulc-asprintf.c: New file.
64192         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64193         * lib/unistdio/ulc-printf-parse.c: New file.
64194         * lib/unistdio/ulc-snprintf.c: New file.
64195         * lib/unistdio/ulc-sprintf.c: New file.
64196         * lib/unistdio/ulc-vasnprintf.c: New file.
64197         * lib/unistdio/ulc-vasprintf.c: New file.
64198         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64199         * lib/unistdio/ulc-vsnprintf.c: New file.
64200         * lib/unistdio/ulc-vsprintf.c: New file.
64201         * lib/unistdio/u8-asnprintf.c: New file.
64202         * lib/unistdio/u8-asprintf.c: New file.
64203         * lib/unistdio/u8-printf-parse.c: New file.
64204         * lib/unistdio/u8-snprintf.c: New file.
64205         * lib/unistdio/u8-sprintf.c: New file.
64206         * lib/unistdio/u8-vasnprintf.c: New file.
64207         * lib/unistdio/u8-vasprintf.c: New file.
64208         * lib/unistdio/u8-vsnprintf.c: New file.
64209         * lib/unistdio/u8-vsprintf.c: New file.
64210         * lib/unistdio/u8-u8-asnprintf.c: New file.
64211         * lib/unistdio/u8-u8-asprintf.c: New file.
64212         * lib/unistdio/u8-u8-snprintf.c: New file.
64213         * lib/unistdio/u8-u8-sprintf.c: New file.
64214         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64215         * lib/unistdio/u8-u8-vasprintf.c: New file.
64216         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64217         * lib/unistdio/u8-u8-vsprintf.c: New file.
64218         * lib/unistdio/u16-asnprintf.c: New file.
64219         * lib/unistdio/u16-asprintf.c: New file.
64220         * lib/unistdio/u16-printf-parse.c: New file.
64221         * lib/unistdio/u16-snprintf.c: New file.
64222         * lib/unistdio/u16-sprintf.c: New file.
64223         * lib/unistdio/u16-vasnprintf.c: New file.
64224         * lib/unistdio/u16-vasprintf.c: New file.
64225         * lib/unistdio/u16-vsnprintf.c: New file.
64226         * lib/unistdio/u16-vsprintf.c: New file.
64227         * lib/unistdio/u16-u16-asnprintf.c: New file.
64228         * lib/unistdio/u16-u16-asprintf.c: New file.
64229         * lib/unistdio/u16-u16-snprintf.c: New file.
64230         * lib/unistdio/u16-u16-sprintf.c: New file.
64231         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64232         * lib/unistdio/u16-u16-vasprintf.c: New file.
64233         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64234         * lib/unistdio/u16-u16-vsprintf.c: New file.
64235         * lib/unistdio/u32-asnprintf.c: New file.
64236         * lib/unistdio/u32-asprintf.c: New file.
64237         * lib/unistdio/u32-printf-parse.c: New file.
64238         * lib/unistdio/u32-snprintf.c: New file.
64239         * lib/unistdio/u32-sprintf.c: New file.
64240         * lib/unistdio/u32-vasnprintf.c: New file.
64241         * lib/unistdio/u32-vasprintf.c: New file.
64242         * lib/unistdio/u32-vsnprintf.c: New file.
64243         * lib/unistdio/u32-vsprintf.c: New file.
64244         * lib/unistdio/u32-u32-asnprintf.c: New file.
64245         * lib/unistdio/u32-u32-asprintf.c: New file.
64246         * lib/unistdio/u32-u32-snprintf.c: New file.
64247         * lib/unistdio/u32-u32-sprintf.c: New file.
64248         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64249         * lib/unistdio/u32-u32-vasprintf.c: New file.
64250         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64251         * lib/unistdio/u32-u32-vsprintf.c: New file.
64252         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64253         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64254         * tests/unistdio/test-ulc-printf1.h: New file.
64255         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64256         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64257         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64258         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64259         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64260         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64261         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64262         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64263         * tests/unistdio/test-u8-asnprintf1.c: New file.
64264         * tests/unistdio/test-u8-asnprintf1.h: New file.
64265         * tests/unistdio/test-u8-printf1.h: New file.
64266         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64267         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64268         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64269         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64270         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64271         * tests/unistdio/test-u8-vasprintf1.c: New file.
64272         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64273         * tests/unistdio/test-u8-vsprintf1.c: New file.
64274         * tests/unistdio/test-u16-asnprintf1.c: New file.
64275         * tests/unistdio/test-u16-asnprintf1.h: New file.
64276         * tests/unistdio/test-u16-printf1.h: New file.
64277         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64278         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64279         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64280         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64281         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64282         * tests/unistdio/test-u16-vasprintf1.c: New file.
64283         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64284         * tests/unistdio/test-u16-vsprintf1.c: New file.
64285         * tests/unistdio/test-u32-asnprintf1.c: New file.
64286         * tests/unistdio/test-u32-asnprintf1.h: New file.
64287         * tests/unistdio/test-u32-printf1.h: New file.
64288         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64289         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64290         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64291         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64292         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64293         * tests/unistdio/test-u32-vasprintf1.c: New file.
64294         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64295         * tests/unistdio/test-u32-vsprintf1.c: New file.
64296         * modules/unistdio/base: New file.
64297         * modules/unistdio/u-printf-args: New file.
64298         * modules/unistdio/ulc-asnprintf: New file.
64299         * modules/unistdio/ulc-asprintf: New file.
64300         * modules/unistdio/ulc-fprintf: New file.
64301         * modules/unistdio/ulc-printf-parse: New file.
64302         * modules/unistdio/ulc-snprintf: New file.
64303         * modules/unistdio/ulc-sprintf: New file.
64304         * modules/unistdio/ulc-vasnprintf: New file.
64305         * modules/unistdio/ulc-vasprintf: New file.
64306         * modules/unistdio/ulc-vfprintf: New file.
64307         * modules/unistdio/ulc-vsnprintf: New file.
64308         * modules/unistdio/ulc-vsprintf: New file.
64309         * modules/unistdio/u8-asnprintf: New file.
64310         * modules/unistdio/u8-asprintf: New file.
64311         * modules/unistdio/u8-printf-parse: New file.
64312         * modules/unistdio/u8-snprintf: New file.
64313         * modules/unistdio/u8-sprintf: New file.
64314         * modules/unistdio/u8-vasnprintf: New file.
64315         * modules/unistdio/u8-vasprintf: New file.
64316         * modules/unistdio/u8-vsnprintf: New file.
64317         * modules/unistdio/u8-vsprintf: New file.
64318         * modules/unistdio/u8-u8-asnprintf: New file.
64319         * modules/unistdio/u8-u8-asprintf: New file.
64320         * modules/unistdio/u8-u8-snprintf: New file.
64321         * modules/unistdio/u8-u8-sprintf: New file.
64322         * modules/unistdio/u8-u8-vasnprintf: New file.
64323         * modules/unistdio/u8-u8-vasprintf: New file.
64324         * modules/unistdio/u8-u8-vsnprintf: New file.
64325         * modules/unistdio/u8-u8-vsprintf: New file.
64326         * modules/unistdio/u16-asnprintf: New file.
64327         * modules/unistdio/u16-asprintf: New file.
64328         * modules/unistdio/u16-printf-parse: New file.
64329         * modules/unistdio/u16-snprintf: New file.
64330         * modules/unistdio/u16-sprintf: New file.
64331         * modules/unistdio/u16-vasnprintf: New file.
64332         * modules/unistdio/u16-vasprintf: New file.
64333         * modules/unistdio/u16-vsnprintf: New file.
64334         * modules/unistdio/u16-vsprintf: New file.
64335         * modules/unistdio/u16-u16-asnprintf: New file.
64336         * modules/unistdio/u16-u16-asprintf: New file.
64337         * modules/unistdio/u16-u16-snprintf: New file.
64338         * modules/unistdio/u16-u16-sprintf: New file.
64339         * modules/unistdio/u16-u16-vasnprintf: New file.
64340         * modules/unistdio/u16-u16-vasprintf: New file.
64341         * modules/unistdio/u16-u16-vsnprintf: New file.
64342         * modules/unistdio/u16-u16-vsprintf: New file.
64343         * modules/unistdio/u32-asnprintf: New file.
64344         * modules/unistdio/u32-asprintf: New file.
64345         * modules/unistdio/u32-printf-parse: New file.
64346         * modules/unistdio/u32-snprintf: New file.
64347         * modules/unistdio/u32-sprintf: New file.
64348         * modules/unistdio/u32-vasnprintf: New file.
64349         * modules/unistdio/u32-vasprintf: New file.
64350         * modules/unistdio/u32-vsnprintf: New file.
64351         * modules/unistdio/u32-vsprintf: New file.
64352         * modules/unistdio/u32-u32-asnprintf: New file.
64353         * modules/unistdio/u32-u32-asprintf: New file.
64354         * modules/unistdio/u32-u32-snprintf: New file.
64355         * modules/unistdio/u32-u32-sprintf: New file.
64356         * modules/unistdio/u32-u32-vasnprintf: New file.
64357         * modules/unistdio/u32-u32-vasprintf: New file.
64358         * modules/unistdio/u32-u32-vsnprintf: New file.
64359         * modules/unistdio/u32-u32-vsprintf: New file.
64360         * modules/unistdio/ulc-asnprintf-tests: New file.
64361         * modules/unistdio/ulc-vasnprintf-tests: New file.
64362         * modules/unistdio/ulc-vasprintf-tests: New file.
64363         * modules/unistdio/ulc-vsnprintf-tests: New file.
64364         * modules/unistdio/ulc-vsprintf-tests: New file.
64365         * modules/unistdio/u8-asnprintf-tests: New file.
64366         * modules/unistdio/u8-vasnprintf-tests: New file.
64367         * modules/unistdio/u8-vasprintf-tests: New file.
64368         * modules/unistdio/u8-vsnprintf-tests: New file.
64369         * modules/unistdio/u8-vsprintf-tests: New file.
64370         * modules/unistdio/u16-asnprintf-tests: New file.
64371         * modules/unistdio/u16-vasnprintf-tests: New file.
64372         * modules/unistdio/u16-vasprintf-tests: New file.
64373         * modules/unistdio/u16-vsnprintf-tests: New file.
64374         * modules/unistdio/u16-vsprintf-tests: New file.
64375         * modules/unistdio/u32-asnprintf-tests: New file.
64376         * modules/unistdio/u32-vasnprintf-tests: New file.
64377         * modules/unistdio/u32-vasprintf-tests: New file.
64378         * modules/unistdio/u32-vsnprintf-tests: New file.
64379         * modules/unistdio/u32-vsprintf-tests: New file.
64380         * MODULES.html.sh (Unicode string functions): Add the new modules.
64381
64382 2007-07-01  Bruno Haible  <bruno@clisp.org>
64383
64384         * lib/sprintf.c (sprintf): Limit the available length estimation,
64385         to avoid address wraparound.
64386         * lib/vsprintf.c (vsprintf): Likewise.
64387         * modules/sprintf-posix (Dependencies): Add stdint.
64388         * modules/vsprintf-posix (Dependencies): Likewise.
64389
64390 2007-07-01  Bruno Haible  <bruno@clisp.org>
64391
64392         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64393         Windows PATH as well. Conservative double-quoting. Comments.
64394
64395 2007-07-01  Bruno Haible  <bruno@clisp.org>
64396             Eric Blake  <ebb9@byu.net>
64397             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64398
64399         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64400         empty components in $PATH, denoting '.'.
64401
64402 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64403
64404         * gnulib-tool: Fix indentation.
64405         (func_create_megatestdir): Likewise.
64406         Report by Bruno Haible.
64407
64408 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64409
64410         Sync from Automake.
64411         * build-aux/gnupload: Fix shell portability issues with for loops.
64412         Report by Karl Berry.
64413
64414 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64415
64416         * build-aux/maint.mk (POURL): Use translationproject.org.
64417
64418 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64419             Bruno Haible  <bruno@clisp.org>
64420
64421         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64422         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64423         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64424         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64425         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64426
64427 2007-06-27  Bruno Haible  <bruno@clisp.org>
64428
64429         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64430         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64431
64432 2007-06-26  Karl Berry  <karl@gnu.org>
64433
64434         * MODULES.html.sh: remove xreadlink-with-size.
64435
64436 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64437
64438         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64439         method that I hope also handles the double-include problem noted
64440         by Bruno Haible in
64441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64442
64443 2007-06-23  Bruno Haible  <bruno@clisp.org>
64444
64445         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64446         Don't let the 'mostlyclean' target fail if the last subdirectory could
64447         not be removed.
64448         Reported by Karl Berry.
64449
64450 2007-06-23  Bruno Haible  <bruno@clisp.org>
64451
64452         * gnulib-tool (echo): Add a speedier workaround for ksh.
64453         * tests/test-echo.sh: Likewise.
64454
64455 2007-06-23  Bruno Haible  <bruno@clisp.org>
64456
64457         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64458         * tests/test-echo.sh: Likewise.
64459
64460 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64461
64462         * gnulib-tool (IFS): Initialize early, so we don't set it to
64463         empty later.
64464         (self_abspathname): Rewrite algorithm to set it, reindent.
64465         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64466         (func_create_megatestdir): Merge some sed scripts.
64467
64468 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64471         exposed by Sun Studio 11 cc on Solaris 8.
64472
64473 2007-06-22  Bruno Haible  <bruno@clisp.org>
64474
64475         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64476         backslashes.
64477         * tests/test-echo.sh: New file.
64478
64479 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64480
64481         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64482         simplify `sed_replace_build_aux' scripts, they are portable but
64483         echoing them with `echo' is not.
64484         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64485
64486 2007-06-21  Karl Berry  <karl@gnu.org>
64487
64488         * config/srclist.txt: guess we can't handle the licenses via
64489         srclist at the moment.
64490
64491 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         * MODULES.html.sh: Add include_next.
64494         * modules/include_next: New file.
64495
64496 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64497
64498         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64499         INCLUDE_NEXT.
64500         (gl_CHECK_NEXT_HEADERS): New macro.
64501         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64502         the obsolescent gl_ABSOLUTE_HEADER.
64503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64504         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64505         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64506         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64507         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64508         * m4/math_h.m4 (gl_MATH_H): Likewise.
64509         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64510         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64511         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64512         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64513         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64514         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64515         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64516         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64517         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64518         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64519         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64520         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64521         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64522         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64523         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64524         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64525         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64526         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64527         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64528         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64529         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64530         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64531         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64532         * lib/float_.h: Likewise.
64533         * lib/inttypes_.h: Likewise.
64534         * lib/math_.h: Likewise.
64535         * lib/search_.h: Likewise.
64536         * lib/signal_.h: Likewise.
64537         * lib/stdint_.h: Likewise.
64538         * lib/stdio_.h: Likewise.
64539         * lib/stdlib_.h: Likewise.
64540         * lib/string_.h: Likewise.
64541         * lib/sys_stat_.h: Likewise.
64542         * lib/sys_time_.h: Likewise.
64543         * lib/time_.h: Likewise.
64544         * lib/unistd_.h: Likewise.
64545         * lib/wchar_.h: Likewise.
64546         * lib/wctype_.h: Likewise.
64547         * lib/dirent_.h: Likewise.
64548         * lib/iconv_.h: Likewise.
64549         * lib/locale_.h: Likewise.
64550         * lib/netinet_in_.h: Likewise.
64551         * lib/sys_select_.h: Likewise.
64552         * lib/sys_socket_.h: Likewise.
64553         * lib/sysexits_.h: Likewise.
64554         * modules/fcntl (Depends-on): Depend on include_next, not
64555         absolute_header.
64556         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64557         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64558         * modules/fchdir: Likewise.
64559         * modules/float: Likewise.
64560         * modules/iconv_open: Likewise.
64561         * modules/inttypes: Likewise.
64562         * modules/locale: Likewise.
64563         * modules/math: Likewise.
64564         * modules/netinet_in: Likewise.
64565         * modules/search: Likewise.
64566         * modules/signal: Likewise.
64567         * modules/stdint: Likewise.
64568         * modules/stdio: Likewise.
64569         * modules/stdlib: Likewise.
64570         * modules/string: Likewise.
64571         * modules/sys_select: Likewise.
64572         * modules/sys_socket: Likewise.
64573         * modules/sys_stat: Likewise.
64574         * modules/sys_time: Likewise.
64575         * modules/sysexits: Likewise.
64576         * modules/time: Likewise.
64577         * modules/unistd: Likewise.
64578         * modules/wchar: Likewise.
64579         * modules/wctype: Likewise.
64580         * modules/sys_stat: Change maintainer to "all".
64581         * modules/unistd: Likewise.
64582
64583 2007-06-20  Karl Berry  <karl@gnu.org>
64584
64585         * config/srclist.txt: track www changes in license files.
64586
64587 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64588
64589         * build-aux/bootstrap: Remove stray dot.
64590         Make sure build_aux settings are honored when linking
64591         gnulib_extra_files.
64592
64593 2007-06-19  Eric Blake  <ebb9@byu.net>
64594
64595         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64596         Allow compilation on cygwin.
64597
64598 2007-06-19  Jim Meyering  <jim@meyering.net>
64599
64600         xreadlink-with-size: Remove module.  No longer used.
64601         Ex-callers now use xreadlink or mreadlink-with-size.
64602         * modules/xreadlink-with-size: Remove module.
64603         * lib/xreadlink-with-size.c: Remove file.
64604         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64605         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64606         just before the function definition *is* accurate.
64607
64608         Eliminate one way canonicalize_filename_mode could exit.
64609         * lib/canonicalize.c (canonicalize_filename_mode):
64610         Use mreadlink_with_size, not xreadlink_with_size.
64611
64612 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64613
64614         Detect porting problems to FreeBSD/arm, which has time_t wider than
64615         long int.  Original problem reported for GNU diff by Xin Li in
64616         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64617         * modules/getdate (Depends-on): Add intprops, verify.
64618         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64619         is an integer type no wider than long int.
64620
64621 2007-06-18  Jim Meyering  <jim@meyering.net>
64622
64623         New module: mreadlink-with-size.
64624         * MODULES.html.sh: Add mreadlink-with-size.
64625         * modules/mreadlink-with-size: New module
64626         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64627         not xreadlink-with-size.
64628         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64629
64630 2007-06-16  Bruno Haible  <bruno@clisp.org>
64631
64632         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64633         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64634         Reported by Gary V. Vaughan <gary@gnu.org>.
64635
64636 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64637
64638         Revamp lchown so that it lives in unistd.h where it belongs.
64639         * lib/lchown.h: Remove.
64640         * lib/dirchownmod.c: Don't include lib/lchown.h.
64641         * lib/fchownat.c: Likewise.
64642         * lib/openat.c: Likewise.
64643         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64644         does not follow symlinks.
64645         (EOPNOTSUPP): Define if not defined.
64646         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64647         is defined to 0.
64648         (lchown): New decl.
64649         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64650         Do not check for lchown decl.
64651         Set REPLACE_LCHOWN.
64652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64653         REPLACE_LCHOWN.
64654         * modules/chown: Make it clear it follows symlinks.
64655         * modules/lchown: Make it clear it doesn't follow symlinks.
64656         (Files): Remove lib/lchown.h
64657         (Depends-on): Add unistd.
64658         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64659         (Include): Include <unistd.h>, not "lchown.h".
64660         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64661         REPLACE_LCHOWN.
64662
64663 2007-06-15  Jim Meyering  <jim@meyering.net>
64664
64665         Change license (GPL to LGPL) of fsusage and dependents.
64666         * modules/fsusage (License): Change to LGPL.
64667         * modules/full-read (License): Likewise.
64668         * modules/full-write (License): Likewise.
64669         * modules/safe-read (License): Likewise.
64670         * modules/safe-write (License): Likewise.
64671
64672 2007-06-14  Ben Pfaff  <blp@gnu.org>
64673
64674         Missing part of allocsa -> malloca transition.
64675         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64676         gl_MALLOCA.
64677
64678 2007-06-12  Bruno Haible  <bruno@clisp.org>
64679
64680         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64681         to ia64, x86_64, i386.
64682         Reported by Eric Blake.
64683
64684 2007-06-12  Bruno Haible  <bruno@clisp.org>
64685
64686         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64687         cross-compiling to x86_64.
64688
64689 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64692         glitch reported by Ralf Wildenhues in
64693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64694
64695         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64696         Vin Shelton.
64697
64698 2007-06-11  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64701         replacement string.
64702         Reported by Eric Blake.
64703
64704 2007-06-10  Bruno Haible  <bruno@clisp.org>
64705
64706         Prepare vasnprintf code for use with Unicode strings.
64707         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64708         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64709         TYPE_U32_STRING.
64710         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64711         a_u32_string variants.
64712         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64713         * lib/printf-args.c: Don't include config.h and the specification
64714         header if PRINTF_FETCHARGS is already defined.
64715         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64716         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64717         TYPE_U16_STRING, TYPE_U32_STRING.
64718         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64719         u16_directive, u16_directives, u32_directive, u32_directives): New
64720         types.
64721         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64722         New declarations.
64723         * lib/printf-parse.c: Don't include config.h and the specification
64724         header if PRINTF_PARSE is already defined. Eliminate the set of
64725         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64726         them now. Include c-ctype.h.
64727         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64728         directive and CHAR_T_ONLY_ASCII.
64729         * lib/vasnprintf.c: Don't include config.h and the specification header
64730         if VASNPRINTF is already defined.
64731         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64732         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64733         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64734         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64735         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64736         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64737         code accordingly.
64738         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64739         pad_ourselves also in this case, with the 'c' and 's' directives, and
64740         with a different notion of "width".
64741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64742
64743 2007-06-10  Bruno Haible  <bruno@clisp.org>
64744
64745         * modules/unistr/u32-mbsnlen: New file.
64746         * lib/unistr/u32-mbsnlen.c: New file.
64747
64748         * modules/unistr/u16-mbsnlen: New file.
64749         * lib/unistr/u16-mbsnlen.c: New file.
64750
64751         * modules/unistr/u8-mbsnlen: New file.
64752         * lib/unistr/u8-mbsnlen.c: New file.
64753
64754         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64755         declarations.
64756
64757 2007-06-10  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/string_.h (mbsnlen): New declaration.
64760         * lib/mbsnlen.c: New file.
64761         * m4/mbsnlen.m4: New file.
64762         * modules/mbsnlen: New file.
64763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64764         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64765         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64766
64767 2007-06-10  Bruno Haible  <bruno@clisp.org>
64768
64769         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64770
64771 2007-06-10  Bruno Haible  <bruno@clisp.org>
64772
64773         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64774         * lib/mbuiter.h: Likewise.
64775
64776 2007-06-10  Bruno Haible  <bruno@clisp.org>
64777
64778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64779         declaration.
64780
64781 2007-06-10  Karl Berry  <karl@gnu.org>
64782
64783         * config/srclist.txt: remove gettext entries, Bruno prefers
64784         to update individually.
64785
64786 2007-06-10  Bruno Haible  <bruno@clisp.org>
64787
64788         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64789         'maxlen'. Ensure only length + width bytes are allocated, not
64790         length + 1 + width.
64791
64792 2007-06-09  Bruno Haible  <bruno@clisp.org>
64793
64794         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64795         (CHAR_T): Remove macro.
64796         (VASNPRINTF): Update.
64797
64798 2007-06-09  Bruno Haible  <bruno@clisp.org>
64799
64800         * MODULES.html.sh (Unicode string functions): Add the new modules.
64801
64802         * modules/uniconv/u32-conv-to-enc: New file.
64803         * lib/uniconv/u32-conv-to-enc.c: New file.
64804         * modules/uniconv/u32-conv-to-enc-tests: New file.
64805         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64806
64807         * modules/uniconv/u16-conv-to-enc: New file.
64808         * lib/uniconv/u16-conv-to-enc.c: New file.
64809         * lib/uniconv/u-conv-to-enc.h: New file.
64810         * modules/uniconv/u16-conv-to-enc-tests: New file.
64811         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64812
64813         * modules/uniconv/u8-conv-to-enc: New file.
64814         * lib/uniconv/u8-conv-to-enc.c: New file.
64815         * modules/uniconv/u8-conv-to-enc-tests: New file.
64816         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64817
64818         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64819         u32_conv_to_encoding): New declarations.
64820
64821 2007-06-09  Bruno Haible  <bruno@clisp.org>
64822
64823         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64824
64825 2007-06-09  Bruno Haible  <bruno@clisp.org>
64826
64827         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64828         * modules/malloca: Renamed from modules/allocsa, updated.
64829         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64830         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64831         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64832         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64833         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64834         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64835         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64836         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64837         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64838         * modules/c-strcasestr (Depends-on): Update.
64839         * lib/c-strcasestr.c: Update.
64840         * modules/c-strstr (Depends-on): Update.
64841         * lib/c-strstr.c: Update.
64842         * modules/canonicalize-lgpl (Depends-on): Update.
64843         * lib/canonicalize-lgpl.c: Update.
64844         * modules/clean-temp (Depends-on): Update.
64845         * lib/clean-temp.c: Update.
64846         * modules/csharpcomp (Depends-on): Update.
64847         * lib/csharpcomp.c: Update.
64848         * modules/csharpexec (Depends-on): Update.
64849         * lib/csharpexec.c: Update.
64850         * modules/javacomp (Depends-on): Update.
64851         * lib/javacomp.c: Update.
64852         * modules/javaexec (Depends-on): Update.
64853         * lib/javaexec.c: Update.
64854         * modules/mbscasestr (Depends-on): Update.
64855         * lib/mbscasestr.c: Update.
64856         * modules/mbsstr (Depends-on): Update.
64857         * lib/mbsstr.c: Update.
64858         * modules/setenv (Depends-on): Update.
64859         * lib/setenv.c: Update.
64860         * modules/strcasestr (Depends-on): Update.
64861         * lib/strcasestr.c: Update.
64862         * modules/striconveha (Depends-on): Update.
64863         * lib/striconveha.c: Update.
64864         * modules/relocatable-prog-wrapper (Files): Update.
64865         * lib/relocwrapper.c: Update.
64866         * build-aux/install-reloc: Update.
64867         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64868
64869 2007-06-08  Bruno Haible  <bruno@clisp.org>
64870
64871         Port to uClibc.
64872         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64873         * lib/fpurge.c (fpurge): Likewise.
64874         * lib/freading.c (freading): Likewise.
64875         * lib/fseeko.c (rpl_fseeko): Likewise.
64876         * lib/fseterr.c (fseterr): Likewise.
64877         * lib/fwriting.c (fwriting): Likewise.
64878         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64879
64880 2007-06-08  Bruno Haible  <bruno@clisp.org>
64881
64882         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64883         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64884         * modules/gettext (Files): Add m4/intlmacosx.m4.
64885
64886 2007-06-07  Bruno Haible  <bruno@clisp.org>
64887
64888         * modules/localename-tests: New file.
64889         * tests/test-localename.c: New file.
64890
64891         New module 'localename'.
64892         * lib/localename.h: New file.
64893         * lib/localename.c: New file, from GNU gettext.
64894         * m4/localename.m4: New file.
64895         * modules/localename: New file.
64896
64897 2007-06-07  Bruno Haible  <bruno@clisp.org>
64898
64899         Work around the lack of <wchar.h> on some builds of uClibc.
64900         * doc/headers/wchar.texi: Update.
64901         * lib/wchar_.h: Include <wchar.h> only if it exists.
64902         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64903         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64904         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64905         doesn't exist.
64906         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64907         * modules/mbfile (Depends-on): Add wchar.
64908         * modules/mbiter (Depends-on): Likewise.
64909         * modules/mbuiter (Depends-on): Likewise.
64910         Reported by Simon Josefsson.
64911
64912 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64913
64914         Work around problem reported by Steven M. Schweda in
64915         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64916         Tru64 5.1B with the Compaq compiler environment installed declares
64917         an 'isblank' function but does not define it in the C library.
64918         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64919         * lib/regex_internal.h (isblank): Likewise.
64920         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64921         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64922
64923 2007-06-05  Bruno Haible  <bruno@clisp.org>
64924
64925         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64926         ia64.
64927         * modules/printf-safe: New file.
64928         * modules/fprintf-posix (Depends-on): Add printf-safe.
64929         * modules/printf-posix (Depends-on): Likewise.
64930         * modules/snprintf-posix (Depends-on): Likewise.
64931         * modules/sprintf-posix (Depends-on): Likewise.
64932         * modules/vasnprintf-posix (Depends-on): Likewise.
64933         * modules/vasprintf-posix (Depends-on): Likewise.
64934         * modules/vfprintf-posix (Depends-on): Likewise.
64935         * modules/vprintf-posix (Depends-on): Likewise.
64936         * modules/vsnprintf-posix (Depends-on): Likewise.
64937         * modules/vsprintf-posix (Depends-on): Likewise.
64938         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64939         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64940         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64941         "no" on i386, x86_64, ia64.
64942         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64943         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64944         on i386, x86_64, ia64.
64945         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64946         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64947         on i386, x86_64, ia64.
64948         * tests/test-vasnprintf-posix.c: Include float.h.
64949         (LDBL80_WORDS): New macro.
64950         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64951         on i386, x86_64, ia64.
64952         * tests/test-vasprintf-posix.c: Include float.h.
64953         (LDBL80_WORDS): New macro.
64954         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64955         on i386, x86_64, ia64.
64956         * tests/test-snprintf-posix.c: Include float.h.
64957         * tests/test-sprintf-posix.c: Likewise.
64958         * tests/test-vsnprintf-posix.c: Likewise.
64959         * tests/test-vsprintf-posix.c: Likewise.
64960
64961 2007-06-05  Bruno Haible  <bruno@clisp.org>
64962
64963         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64964         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64965         non-IEEE numbers on i386, x86_64, ia64.
64966         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64967         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64968         * tests/test-isnanl.h: Include float.h.
64969         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64970
64971 2007-06-05  Bruno Haible  <bruno@clisp.org>
64972
64973         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64974         also the %a / %A. Handle the %a / %A code before this extra handling.
64975
64976 2007-06-05  Bruno Haible  <bruno@clisp.org>
64977
64978         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64979         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64980
64981 2007-06-05  Bruno Haible  <bruno@clisp.org>
64982
64983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64984         typo in variable name.
64985
64986 2007-06-05  Eric Blake  <ebb9@byu.net>
64987
64988         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64989         Reported by Simon Josefsson.
64990
64991 2007-06-04  Bruno Haible  <bruno@clisp.org>
64992
64993         Avoid test failures on some PowerPC platforms.
64994         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64995         Define differently for PowerPC.
64996         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64997         Reported by Gary V. Vaughan <gary@gnu.org>.
64998
64999 2007-06-02  Bruno Haible  <bruno@clisp.org>
65000
65001         Fix test-stdint failure on FreeBSD/ia64.
65002         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65003         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65004         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65005         * doc/headers/stdint.texi: Update.
65006
65007 2007-06-01  Bruno Haible  <bruno@clisp.org>
65008
65009         * tests/test-binary-io.c (main): Pass a third argument to open().
65010         Reported by Gary V. Vaughan <gary@gnu.org>.
65011
65012 2007-06-01  Bruno Haible  <bruno@clisp.org>
65013
65014         * doc/functions/frexpl.texi: Update for mingw.
65015
65016 2007-06-01  Bruno Haible  <bruno@clisp.org>
65017
65018         * tests/test-lseek.c (main): Disable test of errno for invalid third
65019         argument.
65020         * doc/functions/lseek.texi: Update.
65021         Reported by Gary V. Vaughan <gary@gnu.org>.
65022
65023 2007-05-28  Bruno Haible  <bruno@clisp.org>
65024
65025         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65026
65027 2007-05-31  Eric Blake  <ebb9@byu.net>
65028
65029         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65030         cross compiling.
65031
65032 2007-05-30  Eric Blake  <ebb9@byu.net>
65033         and Bruno Haible  <bruno@clisp.org>
65034
65035         Work around mingw test failures exposed by m4-1.4.9b.
65036         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65037         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65038         moment.
65039
65040 2007-05-30  Bruno Haible  <bruno@clisp.org>
65041
65042         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65043         assuming that they are closed. Needed on HP-UX 11.
65044
65045 2007-05-29  Bruno Haible  <bruno@clisp.org>
65046
65047         Fix a problem with #include_next.
65048         * lib/dirent_.h: Split the double-inclusion guard.
65049         * lib/fcntl_.h: Likewise.
65050         * lib/float_.h: Likewise.
65051         * lib/iconv_.h: Likewise.
65052         * lib/inttypes_.h: Likewise.
65053         * lib/locale_.h: Likewise.
65054         * lib/math_.h: Likewise.
65055         * lib/netinet_in_.h: Likewise.
65056         * lib/search_.h: Likewise.
65057         * lib/signal_.h: Likewise.
65058         * lib/stdint_.h: Likewise.
65059         * lib/stdio_.h: Likewise.
65060         * lib/stdlib_.h: Likewise.
65061         * lib/string_.h: Likewise.
65062         * lib/sys_select_.h: Likewise.
65063         * lib/sys_socket_.h: Likewise.
65064         * lib/sys_stat_.h: Likewise.
65065         * lib/sys_time_.h: Likewise.
65066         * lib/sysexits_.h: Likewise.
65067         * lib/time_.h: Likewise.
65068         * lib/unistd_.h: Likewise.
65069         * lib/wchar_.h: Likewise.
65070         * lib/wctype_.h: Likewise.
65071
65072 2007-05-29  Bruno Haible  <bruno@clisp.org>
65073
65074         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65075         for the moment.
65076
65077 2007-05-29  Bruno Haible  <bruno@clisp.org>
65078
65079         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65080         invocation.
65081         Reported by Eric Blake.
65082
65083 2007-05-29  Bruno Haible  <bruno@clisp.org>
65084
65085         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65086         compiling case.
65087
65088 2007-05-29  Eric Blake  <ebb9@byu.net>
65089             Bruno Haible  <bruno@clisp.org>
65090
65091         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65092         cross compiles.
65093
65094 2007-05-28  Eric Blake  <ebb9@byu.net>
65095
65096         * modules/closein-tests (test_closein_LDADD): Support test on
65097         cygwin with libtool.
65098
65099 2007-05-28  Bruno Haible  <bruno@clisp.org>
65100
65101         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65102         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65103         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65104         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65105         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65106         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65107         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65108         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65109         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65110
65111 2007-05-28  Eric Blake  <ebb9@byu.net>
65112
65113         Unconditionally include <config.h> in unit tests.
65114         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65115         * tests/test-allocsa.c, tests/test-arcfour.c,
65116         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65117         tests/test-array_list.c, tests/test-array_oset.c,
65118         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65119         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65120         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65121         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65122         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65123         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65124         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65125         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65126         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65127         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65128         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65129         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65130         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65131         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65132         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65133         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65134         test-md5.c, test-memmem.c, test-printf-posix.c,
65135         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65136         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65137         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65138         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65139         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65140         test-vasnprintf-posix2.c, test-vasnprintf.c,
65141         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65142         test-vfprintf-posix.c, test-vprintf-posix.c,
65143         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65144         test-xvasprintf.c: Likewise.
65145
65146 2007-05-28  Bruno Haible  <bruno@clisp.org>
65147
65148         * gnulib-tool (func_import): Remember the --with-tests command-line
65149         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65150         Reported by Eric Blake.
65151
65152 2007-05-28  Bruno Haible  <bruno@clisp.org>
65153
65154         * modules/ftell-tests: New file.
65155         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65156         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65157
65158         * lib/ftell.c: New file.
65159         * modules/ftell: New file.
65160         * m4/ftell.m4: New file.
65161         * doc/functions/ftell.texi: Update.
65162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65163         REPLACE_FTELL.
65164         * lib/stdio_.h (rpl_ftell): New declaration.
65165         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65166         REPLACE_FTELL.
65167
65168 2007-05-28  Eric Blake  <ebb9@byu.net>
65169
65170         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65171
65172 2007-05-28  Bruno Haible  <bruno@clisp.org>
65173
65174         * modules/fseek-tests: New file.
65175         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65176         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65177
65178         * lib/fseek.c: New file.
65179         * modules/fseek: New file.
65180         * m4/fseek.m4: New file.
65181         * doc/functions/fseek.texi: Update.
65182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65183         REPLACE_FSEEK.
65184         * lib/stdio_.h (rpl_fseek): New declaration.
65185         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65186         REPLACE_FSEEK.
65187
65188 2007-05-28  Bruno Haible  <bruno@clisp.org>
65189
65190         * lib/stdio_.h (fflush): More comments.
65191
65192 2007-05-28  Bruno Haible  <bruno@clisp.org>
65193
65194         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65195         runtime test.
65196
65197 2007-05-28  Eric Blake  <ebb9@byu.net>
65198
65199         Improve lseek module.
65200         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65201         * lib/unistd_.h (lseek): Scale back link warning message.
65202         * tests/test-lseek.c: Beef up test.
65203         * tests/test-lseek.sh: Exercise more facets of lseek.
65204         Reported by Bruno Haible.
65205
65206 2007-05-28  Bruno Haible  <bruno@clisp.org>
65207
65208         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65209         to define.
65210
65211 2007-05-27  Bruno Haible  <bruno@clisp.org>
65212
65213         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65214
65215 2007-05-27  Bruno Haible  <bruno@clisp.org>
65216
65217         * modules/openmp: New file.
65218         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65219         Noah Misch.
65220
65221 2007-05-26  Bruno Haible  <bruno@clisp.org>
65222
65223         * modules/chdir-long (Depends-on): Add fchdir.
65224         * modules/chdir-safer (Depends-on): Likewise.
65225         * modules/fts (Depends-on): Likewise.
65226         * modules/fts-lgpl (Depends-on): Likewise.
65227         * modules/openat (Depends-on): Likewise.
65228         * modules/savewd (Depends-on): Likewise.
65229
65230 2007-05-24  Eric Blake  <ebb9@byu.net>
65231
65232         Fix lseek on mingw.
65233         * modules/lseek: New module.
65234         * m4/lseek.m4: New file.
65235         * lib/lseek.c: New file.
65236         * modules/lseek-tests: New file.
65237         * tests/test-lseek.c: New file.
65238         * tests/test-lseek.sh: New file.
65239         * MODULES.html.sh: Document lseek module.
65240         * modules/fflush (Depends-on): Add lseek, fseeko.
65241         * modules/fseeko (Depends-on): Likewise.
65242         * modules/ftello (Depends-on): Likewise.
65243         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65244         broken.
65245         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65246         broken.
65247         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65248         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65249         * lib/ftello.c (rpl_ftello): Likewise.
65250         * tests/test-fseeko.c (main): Test this.
65251         * tests/test-fseeko.sh: Likewise.
65252         * tests/test-ftello.c (main): Likewise.
65253         * tests/test-ftello.sh: Likewise.
65254         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65255         implies replacing fseek.
65256         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65257         HAVE_FTELLO.
65258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65259         * modules/unistd (Makefile.am): Likewise.
65260         * lib/unistd_.h (lseek): Declare a replacement.
65261         * doc/functions/lseek.texi (lseek): Document this fix.
65262         * doc/functions/fseek.texi (fseek): Likewise.
65263         * doc/functions/ftell.texi (ftell): Likewise.
65264
65265 2007-05-24  Bruno Haible  <bruno@clisp.org>
65266
65267         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65268         in the printed representation of a NaN.
65269         * tests/test-vasprintf-posix.c (test_function): Likewise.
65270         * tests/test-snprintf-posix.h (test_function): Likewise.
65271         * tests/test-sprintf-posix.h (test_function): Likewise.
65272         Reported by Eric Blake.
65273
65274 2007-05-23  Eric Blake  <ebb9@byu.net>
65275
65276         Fix fseeko/ftello on cygwin 1.5.24.
65277         * doc/functions/fseeko.texi (fseeko): Document the fix.
65278         * doc/functions/ftello.texi (ftello): Document the fix.
65279         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65280         * doc/functions/stdout.text (stdout): New file.
65281         * doc/functions/stderr.text (stderr): New file.
65282         * doc/gnulib.texi (Function Substitutes): Use new files.
65283         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65284         prior to 1.7.0.
65285         * tests/test-ftello.c (main): Likewise for ftello.
65286         * tests/test-fseeko.sh: New file.
65287         * tests/test-ftello.sh: New file.
65288         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65289         with seekable stdin.
65290         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65292         (gl_REPLACE_FSEEKO): New macro.
65293         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65294         * modules/fseeko (Files): Distribute fseeko.c.
65295         * modules/ftello (Files): Distribute ftello.c.
65296         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65297         mode.
65298         * lib/ftello.c (rpl_ftello): New file.
65299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65300         fseeko, ftello.
65301         (gl_STDIN_LARGE_OFFSET): New macro.
65302         * modules/stdio (Makefile.am): Perform the replacement.
65303         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65304
65305 2007-05-23  Bruno Haible  <bruno@clisp.org>
65306
65307         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65308         GNULIB_POSIXCHECK is defined.
65309
65310 2007-05-21  Bruno Haible  <bruno@clisp.org>
65311
65312         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65313         Check also the output for NaN arguments. When cross-compiling, guess
65314         no on IRIX.
65315         * lib/vasnprintf.c: Update comments.
65316         * tests/test-vasnprintf-posix.c (strisnan): New function.
65317         (test_function): Use it.
65318         * tests/test-vasprintf-posix.c (strisnan): New function.
65319         (test_function): Use it.
65320         * tests/test-snprintf-posix.h (strisnan): New function.
65321         (test_function): Use it.
65322         * tests/test-sprintf-posix.h (strisnan): New function.
65323         (test_function): Use it.
65324         Reported by Eric Blake.
65325
65326 2007-05-20  Bruno Haible  <bruno@clisp.org>
65327
65328         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65329         numbers that fails on BeOS.
65330         * doc/functions/frexpl.texi: Update.
65331
65332 2007-05-20  Jim Meyering  <jim@meyering.net>
65333
65334         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65335         forced upon us by glibc-2.6.
65336
65337 2007-05-20  Bruno Haible  <bruno@clisp.org>
65338
65339         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65340         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65341         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65342         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65343         NEED_PRINTF_INFINITE.
65344         (is_infinitel): New function.
65345         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65347         gl_PREREQ_VASNPRINTF_INFINITE.
65348         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65350         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65351         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65352         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65353         gl_PREREQ_VASNPRINTF_INFINITE.
65354         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65355         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65356         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65360         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65361         * doc/functions/fprintf.texi: Update.
65362         * doc/functions/printf.texi: Update.
65363         * doc/functions/snprintf.texi: Update.
65364         * doc/functions/sprintf.texi: Update.
65365         * doc/functions/vfprintf.texi: Update.
65366         * doc/functions/vprintf.texi: Update.
65367         * doc/functions/vsnprintf.texi: Update.
65368         * doc/functions/vsprintf.texi: Update.
65369
65370 2007-05-20  Bruno Haible  <bruno@clisp.org>
65371
65372         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65373         was not found in libc.
65374         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65375
65376 2007-05-20  Bruno Haible  <bruno@clisp.org>
65377
65378         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65379         printed as "-nan" instead of "nan".
65380         * tests/test-vasprintf-posix.c (test_function): Likewise.
65381         * tests/test-snprintf-posix.h (test_function): Likewise.
65382         * tests/test-sprintf-posix.h (test_function): Likewise.
65383         Needed for HP-UX 11.
65384
65385 2007-05-20  Jim Meyering  <jim@meyering.net>
65386
65387         Fix buggy test for the fchownat-deref bug.
65388         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65389         symlink required for the run-test.  Without it, this test would
65390         always declare that fchownat doesn't work, and client code would
65391         unnecessarily use the replacement function with fixed libc.
65392         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65393         Reported by Greg Schafer.
65394
65395 2007-05-19  Bruno Haible  <bruno@clisp.org>
65396
65397         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65398         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65399         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65400         Needed for IRIX 6.5 and Solaris 2.5.1.
65401
65402 2007-05-19  Bruno Haible  <bruno@clisp.org>
65403
65404         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65405         (test_function): Skip tests involving -0.0 on platforms where
65406         -0.0 = 0.0.
65407         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65408         (test_function): Skip tests involving -0.0 on platforms where
65409         -0.0 = 0.0.
65410         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65411         (test_function): Skip tests involving -0.0 on platforms where
65412         -0.0 = 0.0.
65413         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65414         (test_function): Skip tests involving -0.0 on platforms where
65415         -0.0 = 0.0.
65416         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65417         tests.
65418         * tests/test-printf-posix.h (test_function): Likewise.
65419         * tests/test-printf-posix.output: Remove all -0.0 related results.
65420         Needed for IRIX 6.5.
65421
65422 2007-05-19  Bruno Haible  <bruno@clisp.org>
65423
65424         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65425         printed as "nan0x7fffffff" instead of "nan".
65426         * tests/test-vasprintf-posix.c (test_function): Likewise.
65427         * tests/test-snprintf-posix.h (test_function): Likewise.
65428         * tests/test-sprintf-posix.h (test_function): Likewise.
65429         * tests/test-fprintf-posix.h (NaN): Remove macro.
65430         (test_function): Remove all NaN related tests.
65431         * tests/test-printf-posix.h (NaN): Remove macro.
65432         (test_function): Remove all NaN related tests.
65433         * tests/test-printf-posix.output: Remove all NaN related results.
65434         Needed for IRIX 6.5.
65435
65436 2007-05-19  Bruno Haible  <bruno@clisp.org>
65437
65438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65439         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65440
65441 2007-05-19  Bruno Haible  <bruno@clisp.org>
65442
65443         * lib/float_.h: New file.
65444         * m4/float_h.m4: New file.
65445         * modules/float: New file.
65446         * modules/isnanl (Dependencies): Add float.
65447         * modules/isnanl-nolibm (Dependencies): Likewise.
65448         * modules/mathl (Dependencies): Likewise.
65449         * modules/printf-frexpl (Dependencies): Likewise.
65450         * modules/signbit (Dependencies): Likewise.
65451         * modules/vasnprintf (Dependencies): Likewise.
65452         * doc/headers/float.texi: Update.
65453
65454 2007-05-19  Jim Meyering  <jim@meyering.net>
65455
65456         * lib/utimens.c (gl_futimens): Rename from futimens,
65457         now that glibc-2.6 declares futimens.
65458         * lib/utimens.h: Likewise.
65459
65460 2007-05-19  Bruno Haible  <bruno@clisp.org>
65461
65462         Avoid test failures on mingw.
65463         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65464         * tests/test-printf-posix.sh: Likewise.
65465         * tests/test-vfprintf-posix.sh: Likewise.
65466         * tests/test-vprintf-posix.sh: Likewise.
65467
65468 2007-05-19  Bruno Haible  <bruno@clisp.org>
65469
65470         Fix *printf result for NaN, Inf, -0.0 on mingw.
65471         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65472         * lib/vasnprintf.c: Include math.h and isnan.h.
65473         (is_infinite_or_zero): New function.
65474         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65475         values in the %f, %F, %e, %E, %g, %G directives.
65476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65478         gl_PRINTF_INFINITE and test its result. Invoke
65479         gl_PREREQ_VASNPRINTF_INFINITE.
65480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65481         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65484         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65487         * doc/functions/fprintf.texi: Update.
65488         * doc/functions/printf.texi: Update.
65489         * doc/functions/snprintf.texi: Update.
65490         * doc/functions/sprintf.texi: Update.
65491         * doc/functions/vfprintf.texi: Update.
65492         * doc/functions/vprintf.texi: Update.
65493         * doc/functions/vsnprintf.texi: Update.
65494         * doc/functions/vsprintf.texi: Update.
65495
65496 2007-05-19  Bruno Haible  <bruno@clisp.org>
65497
65498         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65499         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65500         Instead of multiplying with 10^k, set extra_zeroes to k.
65501         (scale10_round_long_double): Remove function.
65502
65503 2007-05-18  Bruno Haible  <bruno@clisp.org>
65504
65505         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65506         introduced on 2007-05-06.
65507
65508 2007-05-18  Bruno Haible  <bruno@clisp.org>
65509
65510         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65511         %g directives.
65512         * tests/test-vasprintf-posix.c (test_function): Likewise.
65513         * tests/test-snprintf-posix.h (test_function): Likewise.
65514         * tests/test-sprintf-posix.h (test_function): Likewise.
65515
65516 2007-05-18  Bruno Haible  <bruno@clisp.org>
65517
65518         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65519         (strmatch): New function.
65520         (test_function): Test the %f directive on numbers of various exponents.
65521         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65522         (strmatch): New function.
65523         (test_function): Test the %f directive on numbers of various exponents.
65524         * tests/test-snprintf-posix.h (strmatch): New function.
65525         (test_function): Test the %f directive on numbers of various exponents.
65526         * tests/test-sprintf-posix.h (strmatch): New function.
65527         (test_function): Test the %f directive on numbers of various exponents.
65528         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65529         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65530         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65531         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65532
65533 2007-05-18  Bruno Haible  <bruno@clisp.org>
65534
65535         Add support for 'long double' number output.
65536         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65537         * lib/vasnprintf.c: Include math.h and float+.h.
65538         (mp_limb_t): New type.
65539         (GMP_LIMB_BITS): New macro.
65540         (mp_twolimb_t): New type.
65541         (GMP_TWOLIMB_BITS): New macro.
65542         (mpn_t): New type.
65543         (multiply, divide, convert_to_decimal, decode_long_double,
65544         scale10_round_long_double, scale10_round_decimal_long_double,
65545         floorlog10l): New functions.
65546         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65547         for the %f, %F, %e, %E, %g, %G directives.
65548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65549         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65550         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65551         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65552         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65553         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65554         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65555         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65556         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65557         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65558         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65559         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65560         * modules/snprintf-posix (Depends-on): Likewise.
65561         * modules/sprintf-posix (Depends-on): Likewise.
65562         * modules/vasnprintf-posix (Depends-on): Likewise.
65563         * modules/vasprintf-posix (Depends-on): Likewise.
65564         * modules/vfprintf-posix (Depends-on): Likewise.
65565         * modules/vsnprintf-posix (Depends-on): Likewise.
65566         * modules/vsprintf-posix (Depends-on): Likewise.
65567         * modules/vasnprintf (Files): Add lib/float+.h.
65568         * doc/functions/fprintf.texi: Update.
65569         * doc/functions/printf.texi: Update.
65570         * doc/functions/snprintf.texi: Update.
65571         * doc/functions/sprintf.texi: Update.
65572         * doc/functions/vfprintf.texi: Update.
65573         * doc/functions/vprintf.texi: Update.
65574         * doc/functions/vsnprintf.texi: Update.
65575         * doc/functions/vsprintf.texi: Update.
65576
65577 2007-05-18  Bruno Haible  <bruno@clisp.org>
65578
65579         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65580
65581 2007-05-18  Bruno Haible  <bruno@clisp.org>
65582
65583         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65584         for printing 64-bit integers. Needed for mingw.
65585
65586 2007-05-18  Bruno Haible  <bruno@clisp.org>
65587
65588         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65589         gl_FUNC_FREXPL_WORKS.
65590         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65591
65592 2007-05-18  Bruno Haible  <bruno@clisp.org>
65593
65594         * modules/frexpl-nolibm-tests: New file.
65595
65596         * modules/frexpl-nolibm: New file.
65597         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65598
65599 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65600
65601         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65602         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65603         GCC 4.2, which otherwise issues a lot of warnings.
65604         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65605         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65606         Likewise.
65607         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65608         * modules/iconv_open (iconv.h): Likewise.
65609         * modules/locale (locale.h): Likewise.
65610         * modules/netinet_in (netinet/in.h): Likewise.
65611         * modules/sys_select (sys_select.h): Likewise.
65612         * modules/sys_socket (sys/socket.h): Likewise.
65613         * modules/sys_stat (sys/stat.h): Likewise.
65614         * modules/sysexits (sysexits.h): Likewise.
65615         * modules/unistd (unistd.h): Likewise.
65616
65617 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65618
65619         * modules/closein-tests (Makefile.am): Distribute
65620         `test-closein.sh'.
65621
65622 2007-05-17  Bruno Haible  <bruno@clisp.org>
65623
65624         * tests/test-printf-posix.output: Renamed from
65625         tests/test-fprintf-posix.out.
65626         * modules/fprintf-posix-tests: Update.
65627         * modules/printf-posix-tests: Update.
65628         * modules/vfprintf-posix-tests: Update.
65629         * modules/vprintf-posix-tests: Update.
65630         * tests/test-fprintf-posix.sh: Update.
65631         * tests/test-printf-posix.sh: Update.
65632         * tests/test-vfprintf-posix.sh: Update.
65633         * tests/test-vprintf-posix.sh: Update.
65634         Reported by Ralf Wildenhues.
65635
65636 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65637
65638         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65639         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65640         GCC 4.2, which otherwise issues a lot of warnings.
65641         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65642         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65643         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65644         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65645         it should no longer be needed.
65646         * lib/string_.h: Likewise.
65647         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65648         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65649         * modules/inttypes (inttypes.h): Likewise.
65650         * modules/math (math.h): Likewise.
65651         * modules/search (search.h): Likewise.
65652         * modules/signal (signal.h): Likewise.
65653         * modules/stdint (stdint.h): Likewise.
65654         * modules/stdio (stdio.h): Likewise.
65655         * modules/stdlib (stdlib.h): Likewise.
65656         * modules/string (string.h): Likewise.
65657         * modules/sys_time (sys/time.h): Likewise.
65658         * modules/time (time.h): Likewise.
65659         * modules/wchar (wchar.h): Likewise.
65660         * modules/wctype (wtype.h): Likewise.
65661
65662 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65663
65664         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65665
65666 2007-05-13  Bruno Haible  <bruno@clisp.org>
65667
65668         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65669         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65670         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65671         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65672         (gl_PREREQ_STRTOK_R): Don't require it here.
65673
65674 2007-05-13  Bruno Haible  <bruno@clisp.org>
65675
65676         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65677         when used in C++ mode.
65678
65679 2007-05-12  Bruno Haible  <bruno@clisp.org>
65680
65681         * lib/linebuffer.h: Tweak doc.
65682         * lib/linebuffer.c: Likewise.
65683
65684 2007-05-12  James Youngman  <jay@gnu.org>
65685
65686         * lib/linebuffer.c (readlinebuffer_delim): New function,
65687         like readlinebuffer, but use a caller-specified delimiter.
65688         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65689         as the delimiter.
65690         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65691
65692 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65693
65694         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65695         * modules/openat (Files): Remove openat-die.c.
65696         (Depends-on): Add openat-die.
65697         * modules/openat-die: New module.
65698
65699 2007-05-06  Bruno Haible  <bruno@clisp.org>
65700
65701         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65702         Update with info about Cygwin.
65703         * doc/functions/fprintf.texi: Update.
65704         * doc/functions/printf.texi: Update.
65705         * doc/functions/snprintf.texi: Update.
65706         * doc/functions/sprintf.texi: Update.
65707         * doc/functions/vfprintf.texi: Update.
65708         * doc/functions/vprintf.texi: Update.
65709         * doc/functions/vsnprintf.texi: Update.
65710         * doc/functions/vsprintf.texi: Update.
65711         Reported by Eric Blake.
65712
65713 2007-05-06  Bruno Haible  <bruno@clisp.org>
65714
65715         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65716         padding ourselves for the floating-point directives.
65717         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65719         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65720         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65721         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65722         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65724         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65726         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65729         * tests/test-snprintf-posix.h (test_function): Also check the width
65730         and some flags in the %f directive.
65731         * tests/test-sprintf-posix.h (test_function): Likewise.
65732         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65733         * tests/test-vasprintf-posix.c (test_function): Likewise.
65734         * doc/functions/fprintf.texi: Update.
65735         * doc/functions/printf.texi: Update.
65736         * doc/functions/snprintf.texi: Update.
65737         * doc/functions/sprintf.texi: Update.
65738         * doc/functions/vfprintf.texi: Update.
65739         * doc/functions/vprintf.texi: Update.
65740         * doc/functions/vsnprintf.texi: Update.
65741         * doc/functions/vsprintf.texi: Update.
65742
65743 2007-05-06  Bruno Haible  <bruno@clisp.org>
65744
65745         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65746         pass the ' flag character to sprintf or snprintf.
65747         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65750         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65751         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65752         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65753         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65755         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65756         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65758         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65759         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65760         flag.
65761         * tests/test-sprintf-posix.h (test_function): Likewise.
65762         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65763         * tests/test-vasprintf-posix.c (test_function): Likewise.
65764         * doc/functions/fprintf.texi: Update.
65765         * doc/functions/printf.texi: Update.
65766         * doc/functions/snprintf.texi: Update.
65767         * doc/functions/sprintf.texi: Update.
65768         * doc/functions/vfprintf.texi: Update.
65769         * doc/functions/vprintf.texi: Update.
65770         * doc/functions/vsnprintf.texi: Update.
65771         * doc/functions/vsprintf.texi: Update.
65772
65773 2007-05-01  Bruno Haible  <bruno@clisp.org>
65774
65775         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65776
65777 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65780         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65781
65782 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65783
65784         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65785         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65787
65788 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65789
65790         * lib/argp-help.c (struct hol_entry): New member `ord'.
65791         (HOL_ENTRY_PTRCMP): Use ord for comparison
65792         (hol_sort): Initialize ord.
65793
65794 2007-05-01  Bruno Haible  <bruno@clisp.org>
65795
65796         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65797         Reported by Eric Blake.
65798         * doc/gnulib.texi (Function Substitutes): Update.
65799
65800 2007-05-01  Bruno Haible  <bruno@clisp.org>
65801
65802         * doc/functions.texi: Remove file, now redundant through
65803         doc/functions/*.texi.
65804
65805 2007-05-01  Bruno Haible  <bruno@clisp.org>
65806
65807         * modules/argp (Depends-on): Add sleep.
65808
65809 2007-05-01  Bruno Haible  <bruno@clisp.org>
65810
65811         * modules/sleep-tests: New file.
65812         * tests/test-sleep.c: New file.
65813
65814         * modules/sleep: New file.
65815         * lib/sleep.c: New file.
65816         * m4/sleep.m4: New file.
65817         * lib/unistd_.h (sleep): New declaration.
65818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65819         HAVE_SLEEP.
65820         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65821         * doc/functions/sleep.texi: Document the sleep module.
65822
65823 2007-05-01  Bruno Haible  <bruno@clisp.org>
65824
65825         * lib/sigprocmask.h: Remove file.
65826         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65827         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65828         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65829         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65830         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65831         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65832         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65833         HAVE_SIGSET_T as a shell variable.
65834         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65835         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65836         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65837         (Depends-on): Add signal. Remove verify.
65838         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65839         (Include): Mention <signal.h> instead of sigprocmask.h.
65840         * NEWS: Mention the change.
65841         * lib/fatal-signal.c: Don't include sigprocmask.h.
65842
65843 2007-05-01  Bruno Haible  <bruno@clisp.org>
65844
65845         * modules/signal: New file.
65846         * lib/signal_.h: New file.
65847         * m4/signal_h.m4: New file.
65848
65849 2007-05-01  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65852         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65853         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65854         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65855
65856 2007-05-01  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65859         configure time.
65860         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65861         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65862         * modules/sys_stat (Makefile.am): Substitute their values into
65863         sys/stat.h.
65864
65865 2007-05-01  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65868         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65869         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65870
65871 2007-05-01  Bruno Haible  <bruno@clisp.org>
65872
65873         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65874         'assert' module here.
65875
65876 2007-05-01  Bruno Haible  <bruno@clisp.org>
65877
65878         * doc/functions/*.texi: New files.
65879         * doc/functions/google-ranking.txt: New file.
65880         * doc/gnulib.texi (Function Substitutes): New chapter.
65881         (ctime, inet_ntoa): Remove sections.
65882         * doc/ctime.texi: Remove file.
65883         * doc/inet_ntoa.texi: Remove file.
65884         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65885         dependencies.
65886         (%.info): New rule, specifying a --reference-limit.
65887
65888 2007-05-01  Bruno Haible  <bruno@clisp.org>
65889
65890         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65891
65892 2007-05-01  Bruno Haible  <bruno@clisp.org>
65893
65894         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65895         the portability of 'mkdir' to mingw systems.
65896
65897 2007-05-01  Bruno Haible  <bruno@clisp.org>
65898
65899         * doc/headers/google-ranking.txt: New file.
65900
65901 2007-04-30  Eric Blake  <ebb9@byu.net>
65902
65903         Prefer fseeko to fseek.
65904         * modules/getpass (Depends-on): Add fseeko.
65905         * lib/getpass.c (getpass): Use fseeko, not fseek.
65906
65907 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65908
65909         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65910         assumes the sorting is stable, while most qsort implementations
65911         are not.  Use argument addresses to ensure they never compare as
65912         equal.
65913
65914         * tests/test-argp-2.sh (usage-indent test): Fix output
65915         (func_compare): Restore diff options
65916         * tests/test-argp.c: Restore #include "progname.h"
65917
65918 2007-04-29  Bruno Haible  <bruno@clisp.org>
65919
65920         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65922         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65924         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65925         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65926         (TESTS, check_PROGRAMS): Add test-snprintf.
65927         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65928         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65929         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65930         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65931         assertions that fail on HP-UX, OSF/1, or IRIX.
65932         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65933
65934 2007-04-29  Bruno Haible  <bruno@clisp.org>
65935
65936         * MODULES.html.sh (posix_functions): Remove 'contents'.
65937
65938 2007-04-29  Karl Berry  <karl@gnu.org>
65939
65940         * config/srclist.txt (gendocs_template_min): new entry.
65941
65942 2007-04-29  Bruno Haible  <bruno@clisp.org>
65943
65944         Work around fpurge bug on BSD systems.
65945         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65946         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65947         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65948         fpurge to rpl_fpurge if the system already has this function.
65949         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65950         the case where the system already has this function. Correct invariants
65951         on BSD systems.
65952         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65953         BSD systems.
65954
65955 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65956
65957         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65958         proposed by Sven Verdoolaege.
65959
65960         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65961         options.
65962         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65963         (usage and help tests): Update
65964
65965 2007-04-29  Bruno Haible  <bruno@clisp.org>
65966
65967         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65968         Print more information in case of failure. Disable a test on BeOS.
65969
65970 2007-04-29  Bruno Haible  <bruno@clisp.org>
65971
65972         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65973         This helps debugging on systems on which no gdb is available.
65974
65975 2007-04-29  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/freading.h: Improve comments.
65978         * lib/fwriting.h: Likewise.
65979         * tests/test-freading.c (main): Don't check freading immediately after
65980         repositioning. Needed for glibc.
65981
65982 2007-04-29  Bruno Haible  <bruno@clisp.org>
65983
65984         * lib/freading.c (freading): Trivial simplification.
65985
65986 2007-04-28  Bruno Haible  <bruno@clisp.org>
65987
65988         * tests/test-fwriting.c (main): Also test the interaction between
65989         fflush and fwriting.
65990         * modules/fwriting-tests (Depends-on): Add fflush.
65991
65992         * tests/test-freading.c (main): Also test the interaction between
65993         fflush and freading.
65994         * modules/freading-tests (Depends-on): Add fflush.
65995
65996 2007-04-28  Bruno Haible  <bruno@clisp.org>
65997
65998         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65999         fseeko and ftello.
66000         Suggested by Eric Blake.
66001
66002 2007-04-28  Jim Meyering  <jim@meyering.net>
66003
66004         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66005         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66006         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66007
66008 2007-04-27  Eric Blake  <ebb9@byu.net>
66009
66010         * doc/headers/assert.texi (assert.h): Document assert module use.
66011
66012 2007-04-27  Bruno Haible  <bruno@clisp.org>
66013
66014         * doc/headers/*.texi: New files.
66015         * doc/gnulib.texi (Header File Substitutes): New chapter.
66016         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66017         dependencies.
66018         (standards.info ,standards.html, standards.dvi): Update dependencies.
66019         (mostlyclean, clean): New targets.
66020
66021 2007-04-27  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66024         * modules/sysexits (Files, Makefile.am): Update.
66025
66026         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66027         * modules/sys_socket (Files, Makefile.am): Update.
66028
66029         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66030         * modules/sys_stat (Files, Makefile.am): Update.
66031
66032 2007-04-27  Eric Blake  <ebb9@byu.net>
66033
66034         * lib/freading.h: Improve comments.
66035         * lib/fwriting.h: Likewise.
66036         * lib/fflush.c: Likewise.
66037
66038         Fix closein for mingw.
66039         * modules/closein-tests: Add tests for closein.
66040         * tests/test-closein.c: New file.
66041         * tests/test-closein.sh: Likewise.
66042         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66043         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66044
66045 2007-04-27  Bruno Haible  <bruno@clisp.org>
66046
66047         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66048         version is < 6.
66049         * lib/math_.h [__DECC]: Likewise.
66050         * lib/stdio_.h [__DECC]: Likewise.
66051         * lib/stdlib_.h [__DECC]: Likewise.
66052         * lib/string_.h [__DECC]: Likewise.
66053         * lib/time_.h [__DECC]: Likewise.
66054         * lib/wchar_.h [__DECC]: Likewise.
66055         * lib/wctype_.h [__DECC]: Likewise.
66056
66057 2007-04-27  Bruno Haible  <bruno@clisp.org>
66058
66059         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66060
66061 2007-04-27  Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/fflush.c: Add comments.
66064         * modules/fpurge-tests (Depends-on): Add fflush.
66065         * modules/freadable-tests (Depends-on): Likewise.
66066         * modules/fwritable-tests (Depends-on): Likewise.
66067
66068 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66069
66070         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66071         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66072         Report by Bruno Haible <bruno@clisp.org>.
66073
66074 2007-04-26  Eric Blake  <ebb9@byu.net>
66075
66076         Fix fflush on mingw.
66077         * modules/fflush (Depends-on): Add freading.
66078         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66079         but unread data.
66080
66081 2007-04-26  Eric Blake  <ebb9@byu.net>
66082         and Bruno Haible  <bruno@clisp.org>
66083
66084         Implement freading and fwriting.
66085         * lib/freading.c: New file.
66086         * lib/freading.h: Likewise.
66087         * m4/freading.m4: Likewise.
66088         * modules/freading: Likewise.
66089         * modules/freading-tests: Likewise.
66090         * tests/test-freading.c: Likewise.
66091         * lib/fwriting.c: New file.
66092         * lib/fwriting.h: Likewise.
66093         * m4/fwriting.m4: Likewise.
66094         * modules/fwriting: Likewise.
66095         * modules/fwriting-tests: Likewise.
66096         * tests/test-fwriting.c: Likewise.
66097         * MODULES.html.sh (File stream based Input/Output): Mention them.
66098
66099 2007-04-26  Bruno Haible  <bruno@clisp.org>
66100
66101         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66102         'long' when we assume it.
66103         Suggested by Eric Blake.
66104
66105 2007-04-26  Bruno Haible  <bruno@clisp.org>
66106
66107         Ensure fseeko, ftello are declared on glibc systems.
66108         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66109         * modules/fseeko (configure.ac-early): Likewise.
66110         * modules/ftello (configure.ac-early): Likewise.
66111         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66112         AC_FUNC_FSEEKO for this.
66113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66114         (gl_CHECK_FSEEKO): Remove macro.
66115
66116 2007-04-26  Bruno Haible  <bruno@clisp.org>
66117
66118         * tests/test-fflush.c (main): Also check the ftell result after
66119         fflush and fseek/fseeko.
66120         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66121         file descriptor position cache in the stream.
66122         * lib/fseeko.c (rpl_fseeko): Likewise.
66123
66124 2007-04-26  Bruno Haible  <bruno@clisp.org>
66125
66126         * modules/fflush-tests (Depends-on): Add fseeko.
66127
66128 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66129             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66130
66131         * lib/argz_.h: ensure error_t definition is obtained in same
66132         mechanism system argz.h would have.
66133         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66134         argz facilities are known bad.  Err on the side of caution if
66135         cross-compiling.
66136
66137 2007-04-25  Eric Blake  <ebb9@byu.net>
66138
66139         * lib/fpurge.c (includes): Use stdlib.h for free.
66140         * tests/test-fflush.c (main): Also test fflush-fseeko.
66141
66142 2007-04-25  Bruno Haible  <bruno@clisp.org>
66143
66144         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66145         * lib/fseeko.c: New file.
66146         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66147         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66148         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66149         gl_FUNC_FSEEKO.
66150         (gl_FUNC_FSEEKO): Invoke it.
66151         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66152         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66153         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66154
66155 2007-04-25  Bruno Haible  <bruno@clisp.org>
66156
66157         * modules/fflush (Depends-on): Add ftello.
66158
66159 2007-04-25  Bruno Haible  <bruno@clisp.org>
66160
66161         * modules/ftello-tests: New file.
66162         * tests/test-ftello.c: New file.
66163
66164         * modules/ftello: New file.
66165         * m4/ftello.m4: New file.
66166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66167         HAVE_FTELLO.
66168         * lib/stdio_.h (ftello): New declaration.
66169         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66170         HAVE_FTELLO.
66171
66172 2007-04-25  Bruno Haible  <bruno@clisp.org>
66173
66174         * modules/fseeko-tests: New file.
66175         * tests/test-fseeko.c: New file.
66176
66177         * modules/fseeko: New file.
66178         * m4/fseeko.m4: New file.
66179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66180         HAVE_FSEEKO.
66181         * lib/stdio_.h (fseeko): New declaration.
66182         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66183         HAVE_FSEEKO.
66184
66185 2007-04-25  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66188
66189 2007-04-25  Bruno Haible  <bruno@clisp.org>
66190
66191         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66192         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66193         * tests/test-unistd.c: Likewise.
66194         * tests/test-fcntl.c: Likewise.
66195
66196 2007-04-23  Eric Blake  <ebb9@byu.net>
66197
66198         * lib/fflush.c: Fix missing include.
66199         Reported by Bruno Haible.
66200
66201 2007-04-23  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66204         Reported by Eric Blake.
66205
66206 2007-04-23  Bruno Haible  <bruno@clisp.org>
66207
66208         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66209
66210 2007-04-23  Bruno Haible  <bruno@clisp.org>
66211
66212         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66213
66214 2007-04-23  Bruno Haible  <bruno@clisp.org>
66215
66216         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66217         Needed on HP-UX 11.
66218
66219 2007-04-16  Eric Blake  <ebb9@byu.net>
66220
66221         Make fflush rely on fpurge.
66222         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66223         open coding all variants.
66224         * modules/fflush (Depends-on): Add fpurge and unistd.
66225         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66226         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66227
66228         Fix --with-tests compilation on cygwin.
66229         * modules/argmatch-tests (Makefile.am): List gnulib library first
66230         in LDADD.
66231         * modules/argp-tests (Makefile.am): Likewise.
66232         * modules/array-list-tests (Makefile.am): Likewise.
66233         * modules/array-oset-tests (Makefile.am): Likewise.
66234         * modules/avltree-list-tests (Makefile.am): Likewise.
66235         * modules/avltree-oset-tests (Makefile.am): Likewise.
66236         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66237         * modules/carray-list-tests (Makefile.am): Likewise.
66238         * modules/dirname-tests (Makefile.am): Likewise.
66239         * modules/frexp-tests (Makefile.am): Likewise.
66240         * modules/isnanl-tests (Makefile.am): Likewise.
66241         * modules/linked-list-tests (Makefile.am): Likewise.
66242         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66243         * modules/lock-tests (Makefile.am): Likewise.
66244         * modules/rbtree-list-tests (Makefile.am): Likewise.
66245         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66246         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66247         * modules/tls-tests (Makefile.am): Likewise.
66248         * modules/tsearch-tests (Makefile.am): Likewise.
66249         * modules/xvasprintf-tests (Makefile.am): Likewise.
66250
66251         Fix fpurge for cygwin.
66252         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66253         value.
66254         * modules/fpurge-tests (Depends-on): Clean up trash.
66255
66256 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66257
66258         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66259
66260         * m4/autobuild.m4: Re-indent.
66261
66262 2007-04-13  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/fpurge-tests: New file.
66265         * tests/test-fpurge.c: New file.
66266
66267         * modules/fpurge: New file.
66268         * lib/fpurge.h: New file.
66269         * lib/fpurge.c: New file.
66270         * m4/fpurge.m4: New file.
66271
66272 2007-04-13  Bruno Haible  <bruno@clisp.org>
66273
66274         * modules/fbufmode-tests: New file.
66275         * tests/test-fbufmode.c: New file.
66276
66277         * modules/fbufmode: New file.
66278         * lib/fbufmode.h: New file.
66279         * lib/fbufmode.c: New file.
66280         * m4/fbufmode.m4: New file.
66281
66282 2007-04-13  Bruno Haible  <bruno@clisp.org>
66283
66284         * modules/fwritable-tests: New file.
66285         * tests/test-fwritable.c: New file.
66286
66287         * modules/fwritable: New file.
66288         * lib/fwritable.h: New file.
66289         * lib/fwritable.c: New file.
66290         * m4/fwritable.m4: New file.
66291
66292 2007-04-13  Bruno Haible  <bruno@clisp.org>
66293
66294         * modules/freadable-tests: New file.
66295         * tests/test-freadable.c: New file.
66296
66297         * modules/freadable: New file.
66298         * lib/freadable.h: New file.
66299         * lib/freadable.c: New file.
66300         * m4/freadable.m4: New file.
66301
66302 2007-04-13  Bruno Haible  <bruno@clisp.org>
66303
66304         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66305         MOSTLYCLEANFILES.
66306
66307 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66310         gzip bootstrap.conf to avoid dragging in i18n machinery.
66311         (gnulib_tool_option): Use it.
66312
66313 2007-04-13  Bruno Haible  <bruno@clisp.org>
66314
66315         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66316         %F directives.
66317         * tests/test-vasprintf-posix.c (test_function): Likewise.
66318         * tests/test-snprintf-posix.h (test_function): Likewise.
66319         * tests/test-sprintf-posix.h (test_function): Likewise.
66320         * tests/test-fprintf-posix.h (test_function): Likewise.
66321         * tests/test-printf-posix.h (test_function): Likewise.
66322         * tests/test-fprintf-posix.out: Likewise.
66323
66324 2007-04-13  Bruno Haible  <bruno@clisp.org>
66325
66326         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66327         * modules/tls-tests (configure.ac): Likewise.
66328         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66329
66330 2007-04-13  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/tls.c (glthread_tls_get): Fix return type.
66333         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66334
66335 2007-04-12  Eric Blake  <ebb9@byu.net>
66336
66337         * modules/gettime (Depends-on): Remove gettime.
66338         Reported by Dmitry V. Levin.
66339
66340 2007-04-12  Bruno Haible  <bruno@clisp.org>
66341
66342         * modules/fflush (Include): Mention <stdio.h>.
66343         * modules/strtoimax (Include): Mention <inttypes.h>.
66344         * modules/strtoumax (Include): Likewise.
66345
66346 2007-04-12  Eric Blake  <ebb9@byu.net>
66347
66348         * .cvsignore: New file.
66349         * .gitignore: Likewise.
66350
66351 2007-04-12  Bruno Haible  <bruno@clisp.org>
66352
66353         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66354         not before, since $(LDADD) often contains libgnu.a.
66355         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66356         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66357         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66358         Needed on Cygwin.
66359
66360 2007-04-12  Eric Blake  <ebb9@byu.net>
66361
66362         Work around glibc's failure to flush stdin on fclose.
66363         * lib/closein.c (close_stdin): Flush stdin before closing.
66364
66365         Work around glibc's failure to reset seekable stdin on exit.
66366         * modules/closein: New module.
66367         * lib/closein.c: New file.
66368         * lib/closein.h: Likewise.
66369         * m4/closein.m4: Likewise.
66370         * MODULES.html.sh (File stream based Input/Output): Document it.
66371
66372 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66373
66374         * gnulib-tool: Rename generated 'autobuild' script to
66375         'do-autobuild' in --create-megatestdir output.
66376
66377         * doc/gnulib.texi (Build robot for gnulib): Fix.
66378
66379 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66380
66381         * modules/sysexits (Depends-on): Add absolute-header.
66382
66383 2007-04-12  Eric Blake  <ebb9@byu.net>
66384
66385         No need to preserve errno on success.
66386         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66387         Reported by Bruno Haible.
66388
66389 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66390
66391         * MODULES.html.sh (Support for maintaining and releasing
66392         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66393
66394 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66395
66396         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66397
66398 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66399
66400         * modules/autobuild: New module.
66401
66402         * m4/autobuild.m4: New file.
66403
66404 2007-04-11  Bruno Haible  <bruno@clisp.org>
66405
66406         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66407         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66410         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66411         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66412         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66413         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66414         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66415         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66417         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66418         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66420         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66421         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66423         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66424         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66425         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66426         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66427         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66429         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66430         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66432         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66433         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66434         Reported by Eric Blake.
66435
66436 2007-04-11  Bruno Haible  <bruno@clisp.org>
66437
66438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66439
66440 2007-04-10  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66443         for NaN and Infinity. Needed on FreeBSD 6.1.
66444         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66445         regarding results for "%010a" of Infinity and NaN.
66446         * tests/test-vasprintf-posix.c (test_function): Likewise.
66447         * tests/test-snprintf-posix.h (test_function): Likewise.
66448         * tests/test-sprintf-posix.h (test_function): Likewise.
66449         * tests/test-fprintf-posix.h (test_function): Likewise.
66450         * tests/test-printf-posix.h (test_function): Likewise.
66451         * tests/test-fprintf-posix.out: Likewise.
66452
66453 2007-04-10  Bruno Haible  <bruno@clisp.org>
66454
66455         * modules/locale-tests: New file.
66456         * tests/test-locale.c: New file.
66457
66458         * modules/locale: New file.
66459         * lib/locale_.h: New file.
66460         * m4/locale_h.m4: New file.
66461
66462 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66463             Bruno Haible  <bruno@clisp.org>
66464
66465         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66466         be determined, test for availability of the copysignf, copysign,
66467         copysignl functions.
66468         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66469         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66470         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66471
66472 2007-04-09  Eric Blake  <ebb9@byu.net>
66473
66474         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66475         * modules/stdio (Makefile.am): Support fflush.
66476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66477         * modules/fflush: New file.
66478         * lib/fflush.c: Likewise.
66479         * m4/fflush.m4: Likewise.
66480         * modules/fflush-tests: New test.
66481         * tests/test-fflush.c: Likewise.
66482         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66483
66484 2007-04-06  Bruno Haible  <bruno@clisp.org>
66485
66486         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66487         (VASNPRINTF): Use signbit for faster determination whether to print a
66488         minus sign.
66489         * modules/vasnprintf (Files): Remove lib/float+.h.
66490         * modules/fprintf-posix (Depends-on): Add signbit.
66491         * modules/snprintf-posix (Depends-on): Likewise.
66492         * modules/sprintf-posix (Depends-on): Likewise.
66493         * modules/vasnprintf-posix (Depends-on): Likewise.
66494         * modules/vasprintf-posix (Depends-on): Likewise.
66495         * modules/vfprintf-posix (Depends-on): Likewise.
66496         * modules/vsnprintf-posix (Depends-on): Likewise.
66497         * modules/vsprintf-posix (Depends-on): Likewise.
66498
66499 2007-04-06  Bruno Haible  <bruno@clisp.org>
66500
66501         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66502         * tests/test-frexpl.c (main): Likewise.
66503         * tests/test-ldexpl.c (main): Likewise.
66504         * modules/frexp-tests (Depends-on): Add signbit.
66505         * modules/frexpl-tests (Depdends-on): Likewise.
66506         * modules/ldexpl-tests (Depdends-on): Likewise.
66507
66508 2007-04-06  Bruno Haible  <bruno@clisp.org>
66509
66510         * modules/signbit-tests: New file.
66511         * tests/test-signbit.c: New file.
66512
66513         * modules/signbit: New file.
66514         * lib/signbitf.c: New file.
66515         * lib/signbitd.c: New file.
66516         * lib/signbitl.c: New file.
66517         * m4/signbit.m4: New file.
66518         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66519         (signbit): New macro.
66520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66521         REPLACE_SIGNBIT.
66522         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66523         REPLACE_FREXPL into math.h.
66524
66525 2007-04-06  Bruno Haible  <bruno@clisp.org>
66526
66527         * modules/isnanf-nolibm-tests: New file.
66528         * tests/test-isnanf.c: New file.
66529
66530         * modules/isnanf-nolibm: New file.
66531         * lib/isnanf.h: New file.
66532         * lib/isnanf.c: New file.
66533         * lib/isnan.c: Consider the USE_FLOAT macro.
66534         * m4/isnanf.m4: New file.
66535
66536 2007-04-06  Bruno Haible  <bruno@clisp.org>
66537
66538         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66539         (Link): New section.
66540
66541         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66542
66543 2007-04-06  Bruno Haible  <bruno@clisp.org>
66544
66545         Assume the 'long double' type.
66546         * m4/longdouble.m4: Remove file.
66547         * config/srclist.txt: Don't mention longdouble.m4.
66548         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66549         * lib/float+.h: Likewise.
66550         * lib/frexp.c: Likewise.
66551         * lib/printf-args.h: Likewise.
66552         * lib/printf-args.c: Likewise.
66553         * lib/printf-frexp.c: Likewise.
66554         * lib/printf-parse.c: Likewise.
66555         * lib/vasnprintf.c: Likewise.
66556         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66557         * m4/intl.m4: Likewise.
66558         * m4/isnanl.m4: Likewise.
66559         * m4/printf.m4: Likewise.
66560         * m4/printf-frexpl.m4: Likewise.
66561         * m4/vasnprintf.m4: Likewise.
66562         * modules/allocsa (Files): Remove m4/longdouble.m4.
66563         * modules/gettext (Files): Likewise.
66564         * modules/relocatable-prog-wrapper (Files): Likewise.
66565         * modules/vasnprintf (Files): Likewise.
66566         * modules/isnanl (Files): Likewise.
66567         (Include): Simplify.
66568         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66569         (Include): Simplify.
66570         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66571         (Include): Simplify.
66572         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66573         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66574         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66575         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66576         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66577         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66578         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66579         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66580         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66581         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66582         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66583         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66584         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66585         * tests/test-isnanl.c: Likewise.
66586         * tests/test-snprintf-posix.h: Likewise.
66587         * tests/test-sprintf-posix.h: Likewise.
66588         * tests/test-vasnprintf-posix.c: Likewise.
66589         * tests/test-vasnprintf-posix2.c: Likewise.
66590         * tests/test-vasprintf-posix.c: Likewise.
66591
66592 2007-04-06  Bruno Haible  <bruno@clisp.org>
66593
66594         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66595         * lib/math_.h [__DECC]: Include the overridden include file through
66596         #include_next, outside the double-inclusion guard.
66597         * lib/stdio_.h [__DECC]: Likewise.
66598         * lib/stdlib_.h [__DECC]: Likewise.
66599         * lib/string_.h [__DECC]: Likewise.
66600         * lib/time_.h [__DECC]: Likewise.
66601         * lib/wchar_.h [__DECC]: Likewise.
66602         * lib/wctype_.h [__DECC]: Likewise.
66603         * lib/inttypes_.h [__DECC]: Likewise.
66604         Reported by Albert Chin <china@thewrittenword.com> in
66605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66606
66607 2007-04-04  Eric Blake  <ebb9@byu.net>
66608
66609         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66610         1.5.x.
66611
66612 2007-04-04  Bruno Haible  <bruno@clisp.org>
66613
66614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66615         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66616
66617 2007-04-04  Bruno Haible  <bruno@clisp.org>
66618
66619         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66620         results for "%010a" of Infinity and NaN.
66621         * tests/test-vasprintf-posix.c (test_function): Likewise.
66622         * tests/test-snprintf-posix.h (test_function): Likewise.
66623         * tests/test-sprintf-posix.h (test_function): Likewise.
66624         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66625         * tests/test-printf-posix.h (test_function): Likewise.
66626         * tests/test-fprintf-posix.out: Update.
66627         Needed for FreeBSD 6.1.
66628
66629 2007-04-04  Bruno Haible  <bruno@clisp.org>
66630
66631         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66632         directly used by the gnulib modules nor by gnulib-tool.
66633
66634 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * DEPENDENCIES: Give overall description of version dependency
66637         desirability.  Use more-typical names for apps.
66638         Add shell, coreutils, diffutils, grep, tar, gzip.
66639
66640 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66641
66642         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66643
66644 2007-04-04  Karl Berry  <karl@gnu.org>
66645
66646         * MODULES.html.sh (func_module): missing '.
66647
66648 2007-04-03  Bruno Haible  <bruno@clisp.org>
66649
66650         * modules/argmatch-tests (Makefile.am): New variable
66651         test_argmatch_LDADD.
66652         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66653         * modules/array-list-tests (Makefile.am): New variable
66654         test_array_list_LDADD.
66655         * modules/array-oset-tests (Makefile.am): New variable
66656         test_array_oset_LDADD.
66657         * modules/avltree-list-tests (Makefile.am): New variable
66658         test_avltree_list_LDADD.
66659         * modules/avltree-oset-tests (Makefile.am): New variable
66660         test_avltree_oset_LDADD.
66661         * modules/avltreehash-list-tests (Makefile.am): New variable
66662         test_avltreehash_list_LDADD.
66663         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66664         test_canonicalize_lgpl_LDADD.
66665         * modules/carray-list-tests (Makefile.am): New variable
66666         test_carray_list_LDADD.
66667         * modules/dirname-tests (Makefile.am): New variable
66668         test_dirname_LDADD.
66669         * modules/linked-list-tests (Makefile.am): New variable
66670         test_linked_list_LDADD.
66671         * modules/linkedhash-list-tests (Makefile.am): New variable
66672         test_linkedhash_list_LDADD.
66673         * modules/rbtree-list-tests (Makefile.am): New variable
66674         test_rbtree_list_LDADD.
66675         * modules/rbtree-oset-tests (Makefile.am): New variable
66676         test_rbtree_oset_LDADD.
66677         * modules/rbtreehash-list-tests (Makefile.am): New variable
66678         test_rbtreehash_list_LDADD.
66679         * modules/xvasprintf-tests (Makefile.am): New variable
66680         test_xvasprintf_LDADD.
66681         Reported by Eric Blake.
66682
66683 2007-04-03  Eric Blake  <ebb9@byu.net>
66684
66685         * DEPENDENCIES: Weaken m4 requirements.
66686
66687 2007-04-03  Bruno Haible  <bruno@clisp.org>
66688
66689         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66690         * modules/isnanl-tests (configure.ac): Likewise.
66691
66692 2007-04-03  Ben Pfaff  <blp@gnu.org>
66693
66694         * modules/iconv_open: Add $(srcdir)/ to source directory
66695         references in Makefile fragments that call gperf, to fix VPATH
66696         builds.
66697
66698 2007-04-03  Bruno Haible  <bruno@clisp.org>
66699
66700         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66701         * lib/ldexpl.c: Undo last change.
66702
66703 2007-04-03  Bruno Haible  <bruno@clisp.org>
66704
66705         * modules/printf-frexpl (Depends-on): Undo last change.
66706         (Files): Add m4/ldexpl.m4.
66707
66708 2007-04-03  Bruno Haible  <bruno@clisp.org>
66709
66710         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66711         * modules/isnanl (Link): New section.
66712
66713         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66714         * modules/frexp (Link): New section.
66715
66716         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66717         * modules/frexpl (Link): New section.
66718
66719         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66720         * modules/ldexpl (Link): New section.
66721
66722 2007-04-03  Bruno Haible  <bruno@clisp.org>
66723
66724         * modules/TEMPLATE-EXTENDED: New file.
66725         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66726
66727 2007-04-03  Bruno Haible  <bruno@clisp.org>
66728
66729         * DEPENDENCIES: New file.
66730         Suggested by Simon Josefsson.
66731
66732 2007-04-03  Bruno Haible  <bruno@clisp.org>
66733
66734         * doc/gnulib.texi: Escape @.
66735
66736 2007-04-03  James Youngman  <jay@gnu.org>
66737         and Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66740         birthtime on all systems that have birthtime, not just those which
66741         use st_birthtimensec rather than st_birthtim.  Putting zero in
66742         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66743         that the birth time is not available for files on an NFS mount.
66744
66745 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66746
66747         * modules/memxor: Move back from crypto/, suggested by Bruno.
66748         * modules/crypto/hmac-sha1: Fix memxor dependency.
66749
66750         * modules/crypto/gc: Moved from ../.
66751
66752 2007-04-02  Eric Blake  <ebb9@byu.net>
66753
66754         * lib/ldexpl.c (includes): Avoid libm.
66755
66756         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66757
66758 2007-04-02  Bruno Haible  <bruno@clisp.org>
66759
66760         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66761         on IRIX.
66762
66763 2007-04-02  Bruno Haible  <bruno@clisp.org>
66764
66765         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66766         x86 or x86_64 platforms running MacOS X.
66767         Reported by Ryan Schmidt <@ryandesign.com>.
66768
66769 2007-04-02  Bruno Haible  <bruno@clisp.org>
66770
66771         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66772         i386.
66773
66774 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66775
66776         * modules/crypto/arcfour: Moved from ../.
66777         * modules/crypto/arcfour-tests: Moved from ../.
66778         * modules/crypto/arctwo: Moved from ../.
66779         * modules/crypto/arctwo-tests: Moved from ../.
66780         * modules/crypto/des: Moved from ../.
66781         * modules/crypto/des-tests: Moved from ../.
66782         * modules/crypto/gc-arcfour: Moved from ../.
66783         * modules/crypto/gc-arcfour-tests: Moved from ../.
66784         * modules/crypto/gc-arctwo: Moved from ../.
66785         * modules/crypto/gc-arctwo-tests: Moved from ../.
66786         * modules/crypto/gc-des: Moved from ../.
66787         * modules/crypto/gc-des-tests: Moved from ../.
66788         * modules/crypto/gc-hmac-md5: Moved from ../.
66789         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66790         * modules/crypto/gc-hmac-sha1: Moved from ../.
66791         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66792         * modules/crypto/gc-md2: Moved from ../.
66793         * modules/crypto/gc-md2-tests: Moved from ../.
66794         * modules/crypto/gc-md4: Moved from ../.
66795         * modules/crypto/gc-md4-tests: Moved from ../.
66796         * modules/crypto/gc-md5: Moved from ../.
66797         * modules/crypto/gc-md5-tests: Moved from ../.
66798         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66799         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66800         * modules/crypto/gc-random: Moved from ../.
66801         * modules/crypto/gc-rijndael: Moved from ../.
66802         * modules/crypto/gc-rijndael-tests: Moved from ../.
66803         * modules/crypto/gc-sha1: Moved from ../.
66804         * modules/crypto/gc-sha1-tests: Moved from ../.
66805         * modules/crypto/gc-tests: Moved from ../.
66806         * modules/crypto/hmac-md5: Moved from ../.
66807         * modules/crypto/hmac-md5-tests: Moved from ../.
66808         * modules/crypto/hmac-sha1: Moved from ../.
66809         * modules/crypto/hmac-sha1-tests: Moved from ../.
66810         * modules/crypto/md2: Moved from ../.
66811         * modules/crypto/md2-tests: Moved from ../.
66812         * modules/crypto/md4: Moved from ../.
66813         * modules/crypto/md4-tests: Moved from ../.
66814         * modules/crypto/md5: Moved from ../.
66815         * modules/crypto/md5-tests: Moved from ../.
66816         * modules/crypto/memxor: Moved from ../.
66817         * modules/crypto/rijndael: Moved from ../.
66818         * modules/crypto/rijndael-tests: Moved from ../.
66819         * modules/crypto/sha1: Moved from ../.
66820
66821 2007-03-30  James Youngman  <jay@gnu.org>
66822
66823         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66824         rename() to change the ctime of a file (because ctime is unaffected
66825         by rename on jfs2 on AIX 5.1).
66826         (main): Start by doing cleanup, in case a previous run failed leaving
66827         test files behind.
66828
66829 2007-03-31  Bruno Haible  <bruno@clisp.org>
66830
66831         Support old proprietary implementations of iconv.
66832         * modules/iconv_open: New file.
66833         * lib/iconv_.h: New file.
66834         * m4/iconv_h.m4: New file.
66835         * lib/iconv_open.c: New file.
66836         * lib/iconv_open-aix.gperf: New file.
66837         * lib/iconv_open-hpux.gperf: New file.
66838         * lib/iconv_open-irix.gperf: New file.
66839         * lib/iconv_open-osf.gperf: New file.
66840         * m4/iconv_open.m4: New file.
66841         * modules/linebreak (Depends-on): Add iconv_open.
66842         * modules/striconv (Depends-on): Likewise.
66843         * modules/striconveh (Depends-on): Likewise.
66844         * modules/unicodeio (Depends-on): Likewise.
66845         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66846         (iconv_t)(-1).
66847         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66848         conversion if cd is (iconv_t)(-1).
66849         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66850         is not possible.
66851
66852 2007-03-31  Bruno Haible  <bruno@clisp.org>
66853
66854         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66855         work on Solaris either. Protect also second use of "autodetect_jp".
66856
66857 2007-03-31  Bruno Haible  <bruno@clisp.org>
66858
66859         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66860         the function is not present.
66861
66862 2007-03-31  Bruno Haible  <bruno@clisp.org>
66863
66864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66865         the function is not present.
66866
66867 2007-03-31  Bruno Haible  <bruno@clisp.org>
66868
66869         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66870         a bug in HP-UX iconv_open().
66871
66872 2007-03-31  Bruno Haible  <bruno@clisp.org>
66873
66874         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66875         (Mathematics <math.h>): New section, add fpieee.
66876         (Input/output <stdio.h>): Add fseterr.
66877         (Mathematics <math.h>): New section, add printf-frexp.
66878         (Container data structures): Add sublist.
66879         (Core language properties): Add fpucw, inline.
66880         (Functions for greatest-width integer types <inttypes.h>): Add
66881         imaxabs, imaxdiv, inttypes.
66882         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66883         isnanl-nolibm, ldexp.
66884         (Mathematics <math.h>): New section, add printf-frexpl.
66885         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66886         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66887         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66888         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66889         (Unicode string functions): Add unistr/u*-mbtoucr.
66890         (Java): Add javacomp-script, javaexec-script.
66891         (C#): Add csharpcomp-script, csharpexec-script.
66892         (Support for building libraries and executables): Add havelib,
66893         relocatable-*.
66894         (Support for maintaining and releasing projects): Renamed from
66895         'Support for maintaining and release projects'. Add announce-gen.
66896
66897 2007-03-31  Bruno Haible  <bruno@clisp.org>
66898
66899         * README: Talk primarily about git.
66900         (git and CVS): Renamed from CVS.
66901         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66902         gnulib is available through git.
66903         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66904
66905 2007-03-30  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66908         * lib/poll_.h: Likewise.
66909         * lib/stat_.h: Likewise.
66910         * lib/sys_time_.h: Likewise.
66911         * lib/sysexit_.h: Likewise.
66912         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66913         * lib/stdbool_.h: Likewise.
66914         * lib/byteswap_.h: Add double-inclusion guard.
66915
66916 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66917
66918         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66919
66920 2007-03-30  Karl Berry  <karl@gnu.org>
66921
66922         * config/srclist-update: double space after USA in the license
66923         substitution, since that's how it's usually (?) written.
66924
66925 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66928         reported by Bruno Haible.
66929
66930 2007-03-29  Bruno Haible  <bruno@clisp.org>
66931
66932         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66933         a bug in AIX iconv().
66934
66935 2007-03-29  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/ldexpl-tests: New file.
66938         * tests/test-ldexpl.c: New file.
66939
66940 2007-03-29  Bruno Haible  <bruno@clisp.org>
66941
66942         * lib/ldexpl.c: Include fpucw.h.
66943         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66944         multiplication.
66945         * modules/ldexpl (Depends-on): Add fpucw.
66946
66947 2007-03-29  Bruno Haible  <bruno@clisp.org>
66948
66949         * modules/ldexpl: New file.
66950         * m4/ldexpl.m4: New file.
66951         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66952         set.
66953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66954         REPLACE_LDEXPL.
66955         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66956         REPLACE_LDEXPL.
66957         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66958         gl_FUNC_LDEXPL_WORKS.
66959         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66960         * modules/mathl (Files): Remove lib/ldexpl.c.
66961         (Depends-on): Add ldexpl.
66962
66963 2007-03-29  Bruno Haible  <bruno@clisp.org>
66964
66965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66966
66967 2007-03-29  Bruno Haible  <bruno@clisp.org>
66968
66969         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66970         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66971         and possibly also HP-UX.
66972         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66973         work on AIX, IRIX, HP-UX, OSF/1.
66974         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66975         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66976         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66977         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66978         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66979         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66980
66981 2007-03-29  Bruno Haible  <bruno@clisp.org>
66982
66983         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66984
66985 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66986
66987         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66988         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66989
66990 2007-03-29  Eric Blake  <ebb9@byu.net>
66991
66992         * lib/acl-internal.h: Remove redundant include.
66993         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66994         Cygwin when a file is locked.
66995
66996 2007-03-29  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66999         file.
67000         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67001
67002 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67005         try to remove a parent directory if the child couldn't be removed
67006         (except for the first rmdir, which could fail because the child
67007         doesn't exist).  Problem reported by Jeff Blaine in
67008         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67009
67010 2007-03-28  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/striconveh.c (utf8conv_carefully): New function.
67013         (mem_cd_iconveh_internal): Invoke it.
67014
67015 2007-03-28  Bruno Haible  <bruno@clisp.org>
67016
67017         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67018         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67019         input.
67020         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67021         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67022         unistr/u8-uctomb.
67023
67024 2007-03-28  Bruno Haible  <bruno@clisp.org>
67025
67026         * modules/unistr/u8-mbtoucr: New file.
67027         * lib/unistr/u8-mbtoucr.c: New file.
67028         * modules/unistr/u16-mbtoucr: New file.
67029         * lib/unistr/u16-mbtoucr.c: New file.
67030         * modules/unistr/u16-mbtoucr: New file.
67031         * lib/unistr/u16-mbtoucr.c: New file.
67032         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67033
67034 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67035             Bruno Haible  <bruno@clisp.org>
67036
67037         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67038         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67039         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67040
67041         * m4/stdio_h.m4: Add stubs for vasprintf too.
67042
67043         * modules/stdio: Support vasprintf in sed command.
67044
67045         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67046         vasprintf.h.  Add stdio module indicator.
67047
67048         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67049         vasprintf.h.
67050
67051         * lib/vasprintf.h: File removed.
67052
67053         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67054         * lib/vasprintf.c: Ditto.
67055         * lib/xvasprintf.c: Ditto.
67056         * tests/test-vasprintf-posix.c: Ditto.
67057         * tests/test-vasprintf.c: Ditto.
67058
67059 2007-03-27  Bruno Haible  <bruno@clisp.org>
67060
67061         Make vasnprintf multithread-safe.
67062         * lib/vasnprintf.c (decimal_point_char): New function.
67063         (VASNPRINTF): Use it.
67064         Suggested by Simon Josefsson.
67065
67066 2007-03-27  Eric Blake  <ebb9@byu.net>
67067
67068         Support sub-second birthtime on cygwin.
67069         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67070         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67071         (get_stat_birthtime): Also work with st_birthtim.
67072
67073 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67074
67075         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67076         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67077         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67078         (get_stat_birthtime_ns): Simplify compile-time tests.
67079         (get_stat_birthtime): Change the API to look like
67080         get_stat_mtime etc., except return a negative tv_nsec on error.
67081         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67082         Don't check for "spare" fields.
67083         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67084         or for struct stat.st_birthtime, as these tests aren't used.
67085         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67086
67087 2007-03-27  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/stat-time.h: Include <sys/stat.h>.
67090
67091 2007-03-27  James Youngman  <jay@gnu.org>
67092
67093         * lib/stat-time.h (get_stat_birthtime): New function for
67094           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67095         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67096           and its variants.
67097         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67098         * modules/stat-time-test: New file.
67099         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67100
67101 2007-03-26  Bruno Haible  <bruno@clisp.org>
67102
67103         Better support of signalling NaNs.
67104         * lib/atanl.c: Include isnanl.h.
67105         (atanl): Perform test for NaN at the beginning of the function and
67106         through a call to isnanl.
67107         * lib/cosl.c: Include isnanl.h.
67108         (cosl): Perform test for NaN at the beginning of the function and
67109         through a call to isnanl.
67110         * lib/ldexpl.c: Include isnanl.h.
67111         (ldexpl): Perform test for NaN through a call to isnanl.
67112         * lib/logl.c: Include isnanl.h.
67113         (logl): Perform test for NaN at the beginning of the function and
67114         through a call to isnanl.
67115         * lib/sinl.c: Include isnanl.h.
67116         (sinl): Perform test for NaN at the beginning of the function and
67117         through a call to isnanl.
67118         * lib/sqrtl.c: Include isnanl.h.
67119         (sqrtl): Perform test for NaN at the beginning of the function and
67120         through a call to isnanl.
67121         * lib/tanl.c: Include isnanl.h.
67122         (tanl): Perform test for NaN at the beginning of the function and
67123         through a call to isnanl.
67124         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67125         * modules/mathl (Depends-on): Add isnanl.
67126
67127 2007-03-26  Eric Blake  <ebb9@byu.net>
67128
67129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67130         regression in logic sense of previous patch.
67131
67132 2007-03-26  Bruno Haible  <bruno@clisp.org>
67133
67134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67135         unportable shell command "if ! ...".
67136         Reported by Ralf Wildenhues.
67137
67138 2007-03-25  Bruno Haible  <bruno@clisp.org>
67139
67140         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67141         <sysexits.h> file, and only add EX_CONFIG.
67142         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67143         absolute file name and whether it is sufficient. Substitute also
67144         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67145         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67146         ABSOLUTE_SYSEXITS_H into sysexits.h.
67147
67148 2007-03-25  Bruno Haible  <bruno@clisp.org>
67149
67150         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67151         hints is NULL.
67152
67153 2007-03-25  Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67156         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67157
67158 2007-03-25  Bruno Haible  <bruno@clisp.org>
67159
67160         * lib/vasnprintf.c: Include langinfo.h.
67161         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67162         multithread-safe.
67163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67165         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67166         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67167         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67168         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67169         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67170         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67171         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67172         Reported by Simon Josefsson.
67173
67174 2007-03-25  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67177         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67178         * modules/vasnprintf (Depends-on): Add stdint.
67179
67180 2007-03-25  Bruno Haible  <bruno@clisp.org>
67181
67182         * modules/fpieee: New file.
67183         * m4/fpieee.m4: New file.
67184         * modules/isnan-nolibm (Depends-on): Add fpieee.
67185         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67186         * modules/isnanl (Depends-on): Add fpieee.
67187
67188 2007-03-25  Bruno Haible  <bruno@clisp.org>
67189
67190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67191
67192 2007-03-25  Bruno Haible  <bruno@clisp.org>
67193
67194         Avoid test failures on IRIX 6.5.
67195         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67196         (main): Use it.
67197         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67198         macros.
67199         (main): Use them.
67200
67201 2007-03-25  Bruno Haible  <bruno@clisp.org>
67202
67203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67204         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67205         exists but doesn't work.
67206         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67207         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67209         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67210         math.h.
67211
67212 2007-03-25  Bruno Haible  <bruno@clisp.org>
67213
67214         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67215         returns inf. Needed on IRIX 6.5.
67216
67217 2007-03-25  Bruno Haible  <bruno@clisp.org>
67218
67219         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67220         (main): Use isnanl instead of x != x idiom.
67221         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67222
67223         * tests/test-frexp.c: Include isnan.h.
67224         (main): Use isnan instead of x != x idiom.
67225         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67226
67227 2007-03-25  Bruno Haible  <bruno@clisp.org>
67228
67229         * tests/test-frexp.c (NaN): New function/macro.
67230         (main): Use it instead of 0.0 / 0.0.
67231         * tests/test-isnan.c (NaN): New function/macro.
67232         (main): Use it instead of 0.0 / 0.0.
67233         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67234         (test_function): Use it instead of 0.0 / 0.0.
67235         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67236         (test_function): Use it instead of 0.0 / 0.0.
67237         * tests/test-snprintf-posix.h (NaN): New function/macro.
67238         (test_function): Use it instead of 0.0 / 0.0.
67239         * tests/test-sprintf-posix.h (NaN): New function/macro.
67240         (test_function): Use it instead of 0.0 / 0.0.
67241         * tests/test-fprintf-posix.h (NaN): New function/macro.
67242         (test_function): Use it instead of 0.0 / 0.0.
67243         * tests/test-printf-posix.h (NaN): New function/macro.
67244         (test_function): Use it instead of 0.0 / 0.0.
67245
67246         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67247
67248 2007-03-25  Bruno Haible  <bruno@clisp.org>
67249
67250         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67251
67252 2007-03-25  Bruno Haible  <bruno@clisp.org>
67253
67254         * lib/regexec.c (merge_state_with_log): Make static.
67255
67256 2007-03-25  Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/trigl.c (kernel_rem_pio2): Make static.
67259
67260 2007-03-25  Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/sincosl.c (sincosl_table): Make static.
67263
67264 2007-03-25  Bruno Haible  <bruno@clisp.org>
67265
67266         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67267         if the compiler does not support C99.
67268
67269 2007-03-25  Bruno Haible  <bruno@clisp.org>
67270
67271         * modules/time (Makefile.am): Ensure all rule action lines start with a
67272         tab.
67273
67274 2007-03-24  Bruno Haible  <bruno@clisp.org>
67275
67276         * modules/tsearch-tests: New file.
67277         * tests/test-tsearch.sh: New file.
67278         * tests/test-tsearch.c: New file, mostly copied from glibc.
67279
67280         * modules/search-tests: New file.
67281         * tests/test-search.c: New file.
67282
67283         * modules/search: New file.
67284         * lib/search_.h: New file, incorporating lib/tsearch.h.
67285         * m4/search_h.m4: New file.
67286         * lib/tsearch.h: Remove file.
67287         * lib/tsearch.c: Include search.h instead of tsearch.h.
67288         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67289         HAVE_TSEARCH.
67290         * modules/tsearch (Files): Remove lib/tsearch.h.
67291         (Depends-on): Add search.
67292         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67293         (Include): Change tsearch.h into search.h.
67294
67295 2007-03-24  Bruno Haible  <bruno@clisp.org>
67296
67297         * modules/fpucw: New file.
67298         * lib/fpucw.h: New file.
67299         * lib/frexp.c: Include fpucw.h.
67300         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67301         (FUNC): Use them.
67302         * lib/printf-frexp.c: Include fpucw.h.
67303         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67304         (FUNC): Use them.
67305         * lib/vasnprintf.c: Include fpucw.h.
67306         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67307         'long double' calculations.
67308         * tests/test-frexpl.c: Include fpucw.h.
67309         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67310         * tests/test-printf-frexpl.c: Include fpucw.h.
67311         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67312         * modules/frexpl (Depends-on): Add fpucw.
67313         * modules/printf-frexpl (Depends-on): Likewise.
67314         * modules/fprintf-posix (Depends-on): Likewise.
67315         * modules/snprintf-posix (Depends-on): Likewise.
67316         * modules/sprintf-posix (Depends-on): Likewise.
67317         * modules/vasnprintf-posix (Depends-on): Likewise.
67318         * modules/vasprintf-posix (Depends-on): Likewise.
67319         * modules/vfprintf-posix (Depends-on): Likewise.
67320         * modules/vsnprintf-posix (Depends-on): Likewise.
67321         * modules/vsprintf-posix (Depends-on): Likewise.
67322         * modules/frexpl-tests (Depends-on): Likewise.
67323         * modules/printf-frexpl-tests (Depends-on): Likewise.
67324
67325 2007-03-24  Bruno Haible  <bruno@clisp.org>
67326
67327         * lib/float+.h: New file.
67328         * lib/isnan.c: Include float+.h.
67329         (SIZE): New macro.
67330         (FUNC): Compare only SIZE bytes of the value.
67331         * lib/vasnprintf.c: Include float+.h.
67332         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67333         SIZEOF_LDBL or SIZEOF_DBL bytes.
67334         * modules/isnan-nolibm (Files): Add lib/float+.h.
67335         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67336         * modules/isnanl (Files): Add lib/float+.h.
67337         * modules/vasnprintf (Files): Add lib/float+.h.
67338
67339 2007-03-24  Bruno Haible  <bruno@clisp.org>
67340
67341         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67342         include isnanl-nolibm.h.
67343
67344 2007-03-24  Bruno Haible  <bruno@clisp.org>
67345
67346         * tests/test-read-file.c (main): Don't produce spurious output for
67347         expected situations. Make the test fail if it encountered unexpected
67348         results.
67349
67350 2007-03-24  Bruno Haible  <bruno@clisp.org>
67351
67352         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67353         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67354
67355 2007-03-24  Bruno Haible  <bruno@clisp.org>
67356
67357         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67358
67359 2007-03-24  Bruno Haible  <bruno@clisp.org>
67360
67361         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67362         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67363
67364         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67365         * modules/utf8-ucs4: Turn into a symbolic link to module
67366         unistr/u8-mbtouc.
67367
67368         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67369         utf8-ucs4-unsafe.
67370         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67371         unistr/u8-mbtouc-unsafe.
67372
67373         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67374         * modules/utf16-ucs4: Turn into a symbolic link to module
67375         unistr/u16-mbtouc.
67376
67377         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67378         utf16-ucs4-unsafe.
67379         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67380         unistr/u16-mbtouc-unsafe.
67381
67382         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67383         * modules/ucs4-utf8: Turn into a symbolic link to module
67384         unistr/u8-ubtomb.
67385
67386         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67387         * modules/ucs4-utf16: Turn into a symbolic link to module
67388         unistr/u16-ubtomb.
67389
67390 2007-03-24  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67393         Enable the function only if HAVE_INLINE.
67394         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67395         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67396         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67397         Enable the function only if HAVE_INLINE.
67398         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67399         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67400         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67401         Enable the function only if HAVE_INLINE.
67402         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67403         Enable the function only if HAVE_INLINE.
67404         * modules/utf8-ucs4: Update.
67405         * modules/utf8-ucs4-unsafe: Update.
67406         * modules/utf16-ucs4: Update.
67407         * modules/utf16-ucs4-unsafe: Update.
67408         * modules/ucs4-utf8: Update.
67409         * modules/ucs4-utf16: Update.
67410
67411 2007-03-24  Bruno Haible  <bruno@clisp.org>
67412
67413         * lib/utf8-ucs4.h: Remove file.
67414         * lib/utf8-ucs4-unsafe.h: Remove file.
67415         * lib/utf16-ucs4.h: Remove file.
67416         * lib/utf16-ucs4-unsafe.h: Remove file.
67417         * lib/ucs4-utf8.h: Remove file.
67418         * lib/ucs4-utf16.h: Remove file.
67419         * lib/unistr.h: Include their previous contents.
67420         * m4/utf-ucs4.m4: Remove file.
67421         * m4/ucs4-utf.m4: Remove file.
67422         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.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/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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 (Files): Remove lib/utf16-ucs4.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/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67438         (Depends-on): Add unistr/base.
67439         (configure.ac): Remove gl_UTF_UCS4.
67440         (Makefile.am): Update.
67441         (Include): Change to unistr.h.
67442         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.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         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67448         (Depends-on): Add unistr/base.
67449         (configure.ac): Remove gl_UCS4_UTF.
67450         (Makefile.am): Update.
67451         (Include): Change to unistr.h.
67452         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67453         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67454         utf8-ucs4-unsafe.h.
67455         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67456         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67457         utf16-ucs4-unsafe.h.
67458         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67459         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67460         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67461         * lib/unistr/u8-strchr.c: Likewise.
67462         * lib/unistr/u8-strrchr.c: Likewise.
67463         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67464         * lib/unistr/u16-strchr.c: Likewise.
67465         * lib/unistr/u16-strrchr.c: Likewise.
67466         * lib/striconveh.c: Update.
67467         * lib/linebreak.c: Update.
67468
67469 2007-03-24  Bruno Haible  <bruno@clisp.org>
67470
67471         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67472         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67473
67474 2007-03-22  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67477
67478 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67479
67480         * MODULES.html.sh (File system functions): New module write-any-file.
67481         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67482         * m4/write-any-file.m4: New files.
67483
67484 2007-03-23  Eric Blake  <ebb9@byu.net>
67485
67486         * gnulib-tool: Rearrange space-tab sequences, since some editors
67487         like to eat them.
67488
67489 2007-03-23  Eric Blake  <ebb9@byu.net>
67490
67491         * lib/version-etc.c (version_etc_va): Update license wording to
67492         be more concise.  Recommended by Richard Stallman.
67493
67494 2007-03-22  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/poll.c (MSG_PEEK): New fallback definition.
67497
67498 2007-03-22  Bruno Haible  <bruno@clisp.org>
67499
67500         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67501         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67502         (main): Update.
67503         Fixes a compilation error on BeOS.
67504
67505 2007-03-22  Bruno Haible  <bruno@clisp.org>
67506
67507         * modules/frexpl-tests: New file.
67508         * tests/test-frexpl.c: New file.
67509
67510         * modules/frexpl: New file.
67511         * m4/frexpl.m4: New file.
67512         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67513         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67515         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67516         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67517         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67518
67519 2007-03-22  Bruno Haible  <bruno@clisp.org>
67520
67521         * lib/frexpl.c: Share code with lib/frexp.c.
67522         * modules/mathl (Files): Add lib/frexp.c.
67523         (Depends-on): Add isnanl-nolibm.
67524
67525 2007-03-22  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/printf-frexp (Files): Add m4/frexp.m4.
67528         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67529         only if the found frexp function actually works.
67530
67531 2007-03-22  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/frexp.c: Remove older implementation that uses divisions.
67534
67535 2007-03-21  Bruno Haible  <bruno@clisp.org>
67536
67537         * modules/frexp-tests: New file.
67538         * tests/test-frexp.c: New file.
67539
67540         * modules/frexp: New file.
67541         * lib/frexp.c: New file.
67542         * m4/frexp.m4: New file.
67543         * lib/math_.h (frexp): New declaration.
67544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67545         REPLACE_FREXP.
67546         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67547
67548 2007-03-21  Bruno Haible  <bruno@clisp.org>
67549
67550         * modules/isnanl-tests: New file.
67551         * tests/test-isnanl.c: New file.
67552
67553         * modules/isnanl: New file.
67554         * lib/isnanl.h: New file.
67555         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67556         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67557         gl_FUNC_ISNANL_WORKS.
67558         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67559         New macros.
67560
67561 2007-03-21  Bruno Haible  <bruno@clisp.org>
67562
67563         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67564         lib/isnanl.h.
67565         (Include): Update.
67566         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67567         * lib/vasnprintf.c: Update.
67568         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67569         tests/test-isnanl.h, remove tests/test-isnanl.c.
67570         (Makefile.am): Update.
67571         * tests/test-isnanl-nolibm.c: New file.
67572         * tests/test-isnanl.h: New file.
67573         * tests/test-isnanl.c: Remove file.
67574
67575 2007-03-21  Jim Meyering  <jim@meyering.net>
67576
67577         When trying to open ".", treat ESTALE like EACCES.
67578         * lib/savewd.c (savewd_save): Resort to forking not just upon
67579         failure with EACCES, but also when errno is ESTALE.
67580
67581 2007-03-20  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67584         Needed on AIX 5.1. Reported by Matthew Woehlke.
67585
67586 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         Suggestions by Bruno Haible:
67589         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67590         our own.
67591         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67592         * modules/acl (Depends-on): Add gettext.
67593
67594 2007-03-19  Bruno Haible  <bruno@clisp.org>
67595
67596         * modules/iconvme: Remove file.
67597         * lib/iconvme.h: Remove file.
67598         * lib/iconvme.c: Remove file.
67599         * m4/iconvme.m4: Remove file.
67600
67601 2007-03-19  Bruno Haible  <bruno@clisp.org>
67602
67603         * doc/relocatable-maint.texi: Break long shell script line.
67604         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67605
67606 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67607
67608         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67609         handle file_has_acl.
67610         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67611         * lib/acl.c: Move header inclusions and related macro defns into
67612         lib/acl-internal.h.
67613         (S_ISLNK): Remove defn, since that's now done for us.
67614         (file_has_acl): Move to lib/file-has-acl.c.
67615         Call acl_trivial if available.  This is the crucial part of the fix.
67616         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67617         shared within the library.  Rewrite a bit, partly to make it compatible
67618         with the GNU coding style.
67619         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67620         Remove unnecessary double-quotes.
67621         Don't test for acl_to_text; the build will catch that.
67622         Replace acl_entries if it doesn't exist and it is needed.
67623         Check for -lsec and acl_trivial (as used on Solaris 10).
67624         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67625         lib/file-has-acl.c.
67626         (Depends-on): Add sys_stat, for S_ISLNK.
67627
67628 2007-03-19  Ben Pfaff  <blp@gnu.org>
67629
67630         * doc/gnulib.texi: Fix typos.
67631         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67632
67633 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67634
67635         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67636         If size is zero here, buf must be zero.
67637
67638 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67639
67640         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67641         <bruno@clisp.org>.
67642
67643 2007-03-18  Bruno Haible  <bruno@clisp.org>
67644
67645         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67646         Suggested by Eric Blake.
67647
67648 2007-03-18  Ben Pfaff  <blp@gnu.org>
67649
67650         * doc/relocatable.texi: Recommend using as prefix a directory
67651         that does not exist and will never be created.  Based on
67652         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67653         and others.
67654
67655 2007-03-17  Bruno Haible  <bruno@clisp.org>
67656
67657         * lib/fchownat.c: Include lchown.h.
67658
67659 2007-03-17  Bruno Haible  <bruno@clisp.org>
67660
67661         Fix endless loop when the given allocated size was > INT_MAX.
67662         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67663         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67664         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67665         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67666         * lib/sprintf.c (sprintf): Likewise.
67667
67668 2007-03-17  Bruno Haible  <bruno@clisp.org>
67669
67670         * tests/test-argp-2.sh (func_compare): Output a context diff.
67671
67672 2007-03-17  Bruno Haible  <bruno@clisp.org>
67673
67674         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67675         locale's decimal-point character.
67676
67677 2007-03-17  Bruno Haible  <bruno@clisp.org>
67678
67679         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67680         before comparing it. Needed because on some platforms (e.g. x86) a
67681         'long double' occupies less bytes than sizeof (long double).
67682
67683 2007-03-17  Bruno Haible  <bruno@clisp.org>
67684
67685         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67686         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67687         * tests/test-getaddrinfo.c (simple): Likewise.
67688         * tests/test-read-file.c (main): Likewise.
67689
67690 2007-03-17  Bruno Haible  <bruno@clisp.org>
67691
67692         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67693
67694 2007-03-17  Bruno Haible  <bruno@clisp.org>
67695
67696         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67697         unused variable.
67698
67699 2007-03-17  Bruno Haible  <bruno@clisp.org>
67700
67701         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67702         * tests/test-c-strncasecmp.c: Likewise.
67703
67704 2007-03-17  Bruno Haible  <bruno@clisp.org>
67705
67706         * modules/stdlib (Depends-on): Add unistd.
67707         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67708         Needed for MacOS X 10.3.
67709
67710 2007-03-17  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67713
67714 2007-03-17  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67717
67718 2007-03-17  Bruno Haible  <bruno@clisp.org>
67719
67720         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67721         to reflect files copied from gnulib (with or without modifications).
67722         Suggested by Jim Meyering.
67723
67724 2007-03-17  Eric Blake  <ebb9@byu.net>
67725
67726         * NEWS: Document stdlib change from 2007-02-18.
67727
67728 2007-03-17  Jim Meyering  <jim@meyering.net>
67729
67730         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67731         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67732         someone uses a name containing shell meta-characters.
67733         Reported by Alfred M. Szmidt.
67734
67735         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67736
67737 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67738
67739         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67740         and copy gettext configuration files only if configure.ac contains
67741         a use of AM_GNU_GETTEXT_VERSION.
67742
67743 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67744
67745         * build-aux/bootstrap (gnulib_name): New variable.
67746         (gnulib_tool_options): Use it.
67747
67748 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67749
67750         * tests/test-des.c: Use new namespace.
67751
67752 2007-03-15  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67755         Reported by James Youngman <jay@gnu.org>.
67756
67757 2007-03-15  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67760         declared prototype. Needed with cc on OSF/1 5.1.
67761
67762 2007-03-15  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67765         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67766         (struct gl_list_implementation): Add dispose_fn argument to the
67767         'create_empty', 'create' methods.
67768         (struct gl_list_impl_base): Add field 'dispose_fn'.
67769         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67770         argument.
67771         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67772         dispose_fn argument.
67773         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67774         dispose_fn on the dropped values.
67775         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67776         dispose_fn argument.
67777         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67778         dropped values.
67779         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67780         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67781         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67782         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67783         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67784         argument.
67785         (gl_tree_list_free): Call dispose_fn on the dropped values.
67786         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67787         the dropped values.
67788         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67789         Add dispose_fn argument.
67790         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67791         Call dispose_fn on the dropped values.
67792         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67793         Add dispose_fn argument.
67794         (gl_sublist_create): Initialize the 'dispose_fn' field.
67795         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67796         * tests/test-array_list.c (main): Update.
67797         * tests/test-carray_list.c (main): Update.
67798         * tests/test-avltree_list.c (main): Update.
67799         * tests/test-rbtree_list.c (main): Update.
67800         * tests/test-avltreehash_list.c (main): Update.
67801         * tests/test-rbtreehash_list.c (main): Update.
67802         * tests/test-linked_list.c (main): Update.
67803         * tests/test-linkedhash_list.c (main): Update.
67804         * tests/test-array_oset.c (main): Update.
67805
67806 2007-03-15  Bruno Haible  <bruno@clisp.org>
67807
67808         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67809         (gl_oset_create_empty): Add dispose_fn argument.
67810         (struct gl_oset_implementation): Add dispose_fn argument to
67811         'create_empty' method.
67812         (struct gl_oset_impl_base): Add dispose_fn field.
67813         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67814         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67815         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67816         values.
67817         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67818         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67819         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67820         dropped value.
67821         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67822         dropped value.
67823         * tests/test-array_oset.c (main): Update.
67824         * tests/test-avltree_oset.c (main): Update.
67825         * tests/test-rbtree_oset.c (main): Update.
67826         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67827
67828 2007-03-13  Bruno Haible  <bruno@clisp.org>
67829
67830         * tests/test-stdbool.c (i): Update after last patch.
67831
67832 2007-03-12  Bruno Haible  <bruno@clisp.org>
67833
67834         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67835         the iswprint macro. Needed on Solaris 2.5.1.
67836
67837 2007-03-12  Bruno Haible  <bruno@clisp.org>
67838
67839         * tests/test-printf-frexp.c (main): Declare x as volatile.
67840
67841 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67842
67843         * doc/gnulib.texi (Build robot for gnulib): New section.
67844
67845 2007-03-12  Jim Meyering  <jim@meyering.net>
67846
67847         * build-aux/bootstrap: New file.
67848         * build-aux/bootstrap.conf: New file, from coreutils.
67849
67850 2007-03-11  Bruno Haible  <bruno@clisp.org>
67851
67852         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67853
67854 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67855
67856         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67857         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67858         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67859
67860 2007-03-11  Bruno Haible  <bruno@clisp.org>
67861
67862         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67863         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67864
67865 2007-03-11  Bruno Haible  <bruno@clisp.org>
67866
67867         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67868         formula. Needed for SunPRO C 5.0.
67869
67870 2007-03-11  Bruno Haible  <bruno@clisp.org>
67871
67872         * modules/long-options (Depends-on): Add getopt.
67873
67874 2007-03-11  Bruno Haible  <bruno@clisp.org>
67875
67876         * modules/modechange (Depends-on): Add stdbool.
67877
67878 2007-03-11  Bruno Haible  <bruno@clisp.org>
67879
67880         * modules/i-ring (Depends-on): Add stdbool.
67881
67882 2007-03-11  Bruno Haible  <bruno@clisp.org>
67883
67884         * modules/gc-des (Depends-on): Add stdbool.
67885
67886 2007-03-11  Bruno Haible  <bruno@clisp.org>
67887
67888         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67889
67890 2007-03-11  Bruno Haible  <bruno@clisp.org>
67891
67892         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67893
67894 2007-03-11  Bruno Haible  <bruno@clisp.org>
67895
67896         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67897
67898 2007-03-11  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/vasnprintf.c (sprintf): Undefine.
67901
67902 2007-03-11  Bruno Haible  <bruno@clisp.org>
67903
67904         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67905         initializers in SunPRO C and Compaq C compilers.
67906
67907 2007-03-11  Bruno Haible  <bruno@clisp.org>
67908
67909         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67910         decrementing code ANSI C compliant.
67911
67912 2007-03-11  Bruno Haible  <bruno@clisp.org>
67913
67914         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67915         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67916
67917 2007-03-11  Bruno Haible  <bruno@clisp.org>
67918
67919         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67920         <stdbool.h> substitute doesn't pass.
67921
67922 2007-03-11  Bruno Haible  <bruno@clisp.org>
67923
67924         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67925
67926 2007-03-11  Bruno Haible  <bruno@clisp.org>
67927
67928         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67929         script, for submission to autobuild.josefsson.org.
67930
67931 2007-03-10  Bruno Haible  <bruno@clisp.org>
67932
67933         * modules/canonicalize-lgpl-tests: New file.
67934         * tests/test-canonicalize-lgpl.sh: New file.
67935         * tests/test-canonicalize-lgpl.c: New file.
67936
67937         * modules/c-strcase-tests: New file.
67938         * tests/test-c-strcase.sh: New file.
67939         * tests/test-c-strcasecmp.c: New file.
67940         * tests/test-c-strncasecmp.c: New file.
67941
67942         * modules/atexit-tests: New file.
67943         * tests/test-atexit.sh: New file.
67944         * tests/test-atexit.c: New file.
67945
67946 2007-03-10  Bruno Haible  <bruno@clisp.org>
67947
67948         * tests/test-binary-io.sh: Use temporary filenames that are not so
67949         likely to clash with those of other tests (in a parallel make).
67950         * tests/test-binary-io.c: Likewise.
67951
67952 2007-03-10  Bruno Haible  <bruno@clisp.org>
67953
67954         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67955         fallback; use #error instead.
67956         Suggested by Simon Josefsson.
67957
67958 2007-03-10  Bruno Haible  <bruno@clisp.org>
67959
67960         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67961         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67962         first and the last.
67963
67964 2007-03-10  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67967
67968 2007-03-10  Bruno Haible  <bruno@clisp.org>
67969
67970         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67971         "make distcheck".
67972         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67973         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67974         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67975
67976 2007-03-10  Bruno Haible  <bruno@clisp.org>
67977
67978         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67979         variable.
67980         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67981         variable.
67982
67983 2007-03-09  Eric Blake  <ebb9@byu.net>
67984         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67985
67986         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67987         types are not being provided by gnulib.
67988         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67989         types are supported.
67990
67991 2007-03-10  Bruno Haible  <bruno@clisp.org>
67992
67993         * lib/stdio_.h (__attribute__): New macro.
67994         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67995         vsprintf): Specify __attribute__ __format__ for GCC.
67996         Suggested by Eric Blake.
67997
67998 2007-03-09  Bruno Haible  <bruno@clisp.org>
67999
68000         * modules/printf-posix-tests: New file.
68001         * tests/test-printf-posix.sh: New file.
68002         * tests/test-printf-posix.c: New file.
68003
68004         * modules/printf-posix: New file.
68005         * lib/printf.c: New file.
68006         * m4/printf-posix-rpl.m4: New file.
68007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68008         REPLACE_PRINTF.
68009         * lib/stdio_.h (printf): New declaration.
68010         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68011         ____strfmon____): New macros.
68012         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68013         REPLACE_PRINTF.
68014
68015 2007-03-09  Bruno Haible  <bruno@clisp.org>
68016
68017         * tests/test-vasnprintf-posix2.sh: New file.
68018         * tests/test-vasnprintf-posix2.c: New file.
68019         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68020         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68021         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68022
68023         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68024         a locale dependent decimal point, rather than always '.'.
68025
68026 2007-03-09  Eric Blake  <ebb9@byu.net>
68027
68028         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68029         spite of platforms like Tandem/NSK that define it to -1.
68030
68031 2007-03-08  Bruno Haible  <bruno@clisp.org>
68032
68033         * modules/vprintf-posix-tests: New file.
68034         * tests/test-vprintf-posix.sh: New file.
68035         * tests/test-vprintf-posix.c: New file.
68036         * tests/test-printf-posix.h: New file.
68037
68038         * modules/vprintf-posix: New file.
68039         * lib/vprintf.c: New file.
68040         * m4/vprintf-posix.m4: New file.
68041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68042         REPLACE_VPRINTF.
68043         * lib/stdio_.h (vprintf): New declaration.
68044         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68045         REPLACE_VPRINTF.
68046
68047 2007-03-08  Bruno Haible  <bruno@clisp.org>
68048
68049         * modules/fprintf-posix-tests: New file.
68050         * tests/test-fprintf-posix.sh: New file.
68051         * tests/test-fprintf-posix.c: New file.
68052
68053         * modules/fprintf-posix: New file.
68054         * lib/fprintf.c: New file.
68055         * m4/fprintf-posix.m4: New file.
68056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68057         REPLACE_FPRINTF.
68058         * lib/stdio_.h (fprintf): New declaration.
68059         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68060         REPLACE_FPRINTF.
68061
68062 2007-03-08  Bruno Haible  <bruno@clisp.org>
68063
68064         * modules/vfprintf-posix-tests: New file.
68065         * tests/test-vfprintf-posix.sh: New file.
68066         * tests/test-vfprintf-posix.c: New file.
68067         * tests/test-fprintf-posix.h: New file.
68068         * tests/test-fprintf-posix.out: New file.
68069
68070         * modules/vfprintf-posix: New file.
68071         * lib/vfprintf.c: New file.
68072         * m4/vfprintf-posix.m4: New file.
68073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68074         REPLACE_VFPRINTF.
68075         * lib/stdio_.h (vfprintf): New declaration.
68076         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68077         REPLACE_VFPRINTF.
68078
68079 2007-03-08  Bruno Haible  <bruno@clisp.org>
68080
68081         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68082
68083 2007-03-08  Bruno Haible  <bruno@clisp.org>
68084
68085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68086         instead of 'expr' invocations.
68087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68088         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68091         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68092         Suggested by Paul Eggert.
68093
68094 2007-03-08  Bruno Haible  <bruno@clisp.org>
68095
68096         * modules/fseterr-tests: New file.
68097         * tests/test-fseterr.c: New file.
68098
68099         * modules/fseterr: New file.
68100         * lib/fseterr.h: New file.
68101         * lib/fseterr.c: New file.
68102
68103 2007-03-08  Bruno Haible  <bruno@clisp.org>
68104
68105         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68106         * lib/getopt_.h: Likewise.
68107         * lib/mbswidth.h: Likewise.
68108         * lib/setenv.h: Likewise.
68109         * lib/vasnprintf.h: Likewise.
68110         * lib/vasprintf.h: Likewise.
68111         * lib/verror.h: Likewise.
68112         * lib/xsetenv.h: Likewise.
68113         * lib/xvasprintf.h: Likewise.
68114
68115 2007-03-08  Jim Meyering  <jim@meyering.net>
68116
68117         * users.txt: Add parted.
68118
68119         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68120
68121 2007-03-07  Bruno Haible  <bruno@clisp.org>
68122
68123         * m4/printf.m4: Make the shell script snippets copy&pastable.
68124
68125 2007-03-02  Bruno Haible  <bruno@clisp.org>
68126
68127         * lib/netinet_in_.h: New file.
68128         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68129         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68130         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68131         (Depends-on): Add absolute-header.
68132         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68133         into netinet/in.h.
68134
68135 2007-03-03  Bruno Haible  <bruno@clisp.org>
68136
68137         * lib/sys_select_.h: New file.
68138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68139         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68140         * modules/sys_select (Files): Add lib/sys_select_.h.
68141         (Depends-on): Add absolute-header.
68142         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68143         into sys/select.h.
68144
68145 2007-03-02  Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68148         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68149         values.
68150         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68151         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68152         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68153         * modules/sys_socket (Depends-on): Add absolute-header.
68154         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68155         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68156         (Include): Remove requirement of inclusion of <sys/types.h>.
68157
68158 2007-03-02  Bruno Haible  <bruno@clisp.org>
68159
68160         * lib/byteswap_.h (bswap_32): Fix formula.
68161
68162 2007-03-06  Bruno Haible  <bruno@clisp.org>
68163
68164         * modules/sprintf-posix-tests: New file.
68165         * tests/test-sprintf-posix.c: New file.
68166
68167         * modules/sprintf-posix: New file.
68168         * lib/sprintf.c: New file.
68169         * m4/sprintf-posix.m4: New file.
68170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68171         REPLACE_SPRINTF.
68172         * lib/stdio_.h (sprintf): New declaration.
68173         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68174         REPLACE_SPRINTF.
68175
68176 2007-03-06  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/vsprintf-posix-tests: New file.
68179         * tests/test-vsprintf-posix.c: New file.
68180         * tests/test-sprintf-posix.h: New file.
68181
68182         * modules/vsprintf-posix: New file.
68183         * lib/vsprintf.c: New file.
68184         * m4/vsprintf-posix.m4: New file.
68185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68186         REPLACE_VSPRINTF.
68187         * lib/stdio_.h (vsprintf): New declaration.
68188         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68189         REPLACE_VSPRINTF.
68190
68191 2007-03-06  Bruno Haible  <bruno@clisp.org>
68192
68193         * modules/vsnprintf (Depend-on): Remove minmax.
68194
68195 2007-03-06  Bruno Haible  <bruno@clisp.org>
68196
68197         * modules/snprintf-posix-tests: New file.
68198         * tests/test-snprintf-posix.c: New file.
68199
68200         * modules/snprintf-posix: New file.
68201         * m4/snprintf-posix.m4: New file.
68202         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68203         gl_FUNC_SNPRINTF.
68204         (gl_FUNC_SNPRINTF): Invoke it.
68205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68206         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68207         is set.
68208         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68209
68210 2007-03-06  Bruno Haible  <bruno@clisp.org>
68211
68212         * modules/vsnprintf-posix-tests: New file.
68213         * tests/test-vsnprintf-posix.c: New file.
68214         * tests/test-snprintf-posix.h: New file.
68215
68216         * modules/vsnprintf-posix: New file.
68217         * m4/vsnprintf-posix.m4: New file.
68218         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68219         gl_FUNC_VSNPRINTF.
68220         (gl_FUNC_VSNPRINTF): Invoke it.
68221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68222         * lib/stdio_.h (vsnprintf): Define as a replacement if
68223         REPLACE_VSNPRINTF is set.
68224         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68225
68226 2007-03-06  Bruno Haible  <bruno@clisp.org>
68227
68228         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68230
68231 2007-03-06  Bruno Haible  <bruno@clisp.org>
68232
68233         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68234         (asinl): Declare also if HAVE_DECL_ASINL is set.
68235         (atanl): Declare also if HAVE_DECL_ATANL is set.
68236         (ceill): Declare also if HAVE_DECL_CEILL is set.
68237         (cosl): Declare also if HAVE_DECL_COSL is set.
68238         (expl): Declare also if HAVE_DECL_EXPL is set.
68239         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68240         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68241         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68242         (logl): Declare also if HAVE_DECL_LOGL is set.
68243         (sinl): Declare also if HAVE_DECL_SINL is set.
68244         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68245         (tanl): Declare also if HAVE_DECL_TANL is set.
68246         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68248         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68249         declaration of frexpl, ldexpl.
68250         * modules/printf-frexpl (Depends-on): Add math.
68251         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68252
68253 2007-03-05  Bruno Haible  <bruno@clisp.org>
68254
68255         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68256         frexpl and ldexpl are declared.
68257         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68258
68259 2007-03-05  Bruno Haible  <bruno@clisp.org>
68260
68261         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68262         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68263
68264 2007-03-05  Bruno Haible  <bruno@clisp.org>
68265
68266         * lib/stdio_.h: Include <stddef.h>.
68267
68268 2007-03-05  Bruno Haible  <bruno@clisp.org>
68269
68270         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68271
68272 2007-03-05  Bruno Haible  <bruno@clisp.org>
68273
68274         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68275         NetBSD 4, from Ralf Wildenhues.
68276
68277 2007-03-04  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/vasprintf.h: Update #if logic for the case when the functions
68280         exist but are overridden.
68281
68282 2007-03-04  Bruno Haible  <bruno@clisp.org>
68283
68284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68285         implementations: glibc-2.4 and MacOS X 10.3.
68286         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68287         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68288         * tests/test-vasprintf-posix.c (test_function): Likewise.
68289
68290 2007-03-04  Bruno Haible  <bruno@clisp.org>
68291
68292         * modules/vasprintf-posix-tests: New file.
68293         * tests/test-vasprintf-posix.c: New file.
68294
68295         * modules/vasprintf-posix: New file.
68296         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68297         defined.
68298         * m4/vasprintf-posix.m4: New file.
68299         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68300         gl_FUNC_VASPRINTF.
68301         (gl_FUNC_VASPRINTF): Invoke it.
68302         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68303         here.
68304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68305
68306 2007-03-04  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68309         REPLACE_GETTIMEOFDAY.
68310         * modules/sys_time (Makefile.am): Likewise.
68311         * m4/sys_time_h.m4: Likewise.
68312         * m4/gettimeofday.m4: Likewise.
68313
68314 2007-03-04  Bruno Haible  <bruno@clisp.org>
68315
68316         * modules/vasnprintf-posix-tests: New file.
68317         * tests/test-vasnprintf-posix.c: New file.
68318
68319         * modules/vasnprintf-posix: New file.
68320         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68321         printf-frexpl.h.
68322         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68323         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68324         REPLACE_VASNPRINTF is defined.
68325         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68326         gl_FUNC_VASNPRINTF.
68327         (gl_FUNC_VASNPRINTF): Invoke it.
68328         * m4/vasnprintf-posix.m4: New file.
68329         * m4/printf.m4: New file.
68330
68331 2007-03-04  Bruno Haible  <bruno@clisp.org>
68332
68333         Compile progreloc.c only if --enable-relocatable is specified.
68334         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68335         if --enable-relocatable was specified.
68336         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68337         lib_SOURCES.
68338
68339 2007-03-04  Jim Meyering  <jim@meyering.net>
68340
68341         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68342         Use it consistently, rather than enumerating errno constants.
68343
68344 2007-03-04  Bruno Haible  <bruno@clisp.org>
68345
68346         * modules/xvasprintf-tests: New file.
68347         * tests/test-xvasprintf.c: New file.
68348
68349         * modules/vasprintf-tests: New file.
68350         * tests/test-vasprintf.c: New file.
68351
68352         * modules/vasnprintf-tests: New file.
68353         * tests/test-vasnprintf.c: New file.
68354
68355         * modules/vsnprintf-tests: New file.
68356         * tests/test-vsnprintf.c: New file.
68357
68358         * modules/snprintf-tests: New file.
68359         * tests/test-snprintf.c: New file.
68360
68361 2007-03-04  Bruno Haible  <bruno@clisp.org>
68362
68363         Compile relocatable.c only if --enable-relocatable is specified.
68364         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68365         gl_RELOCATABLE_LIBRARY.
68366         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68367         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68368         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68369         gl_RELOCATABLE_LIBRARY.
68370         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68371         (Makefile.am): Remove lib_SOURCES.
68372         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68373         gl_RELOCATABLE_LIBRARY.
68374         (Makefile.am): Remove lib_SOURCES.
68375         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68376         always.
68377         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68378         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68379
68380 2007-03-04  Bruno Haible  <bruno@clisp.org>
68381
68382         * modules/argmatch-tests: New file.
68383         * tests/test-argmatch.c: New file.
68384
68385         * tests/test-allocsa.c (main): Halve the number of loop runs.
68386
68387         * modules/alloca-opt-tests: New file.
68388         * tests/test-alloca-opt.c: New file.
68389
68390 2007-03-04  Jim Meyering  <jim@meyering.net>
68391
68392         Work around difference between Linux ACLs and Solaris 10 ZFS.
68393         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68394         for EINVAL.
68395
68396 2007-03-03  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/relocatable-prog (Depends-on): Add back progreloc's
68399         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68400
68401 2007-03-03  Bruno Haible  <bruno@clisp.org>
68402
68403         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68404         * modules/relocatable-lib: New file.
68405
68406 2007-03-03  Bruno Haible  <bruno@clisp.org>
68407
68408         * modules/relocatable-prog: Renamed from modules/relocatable.
68409         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68410
68411 2007-03-03  Bruno Haible  <bruno@clisp.org>
68412
68413         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68414         m4/relocatable-lib.m4.
68415         (Depends-on): Remove 'relocatable'.
68416         (configure.ac): Add gl_RELOCATABLE_NOP.
68417
68418 2007-03-03  Bruno Haible  <bruno@clisp.org>
68419
68420         * modules/relocatable-prog-wrapper: New file.
68421         * modules/relocatable (Depends-on): Add it. Remove all other
68422         dependencies except progname.
68423         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68424
68425         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68426         (gl_FUNC_STRERROR): Nop.
68427         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68428
68429         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68430         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68431
68432         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68433         (gl_FUNC_READLINK): Update.
68434
68435         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68436
68437 2007-03-03  Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68440         * modules/xreadlink (Depends-on): Add unistd.
68441         * modules/xreadlink-with-size (Depends-on): Likewise.
68442
68443 2007-03-03  Bruno Haible  <bruno@clisp.org>
68444
68445         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68446         extracted from gt_FUNC_SETENV.
68447         (gt_FUNC_SETENV): Remove macro.
68448         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68449         remove gt_FUNC_SETENV.
68450
68451 2007-03-03  Bruno Haible  <bruno@clisp.org>
68452
68453         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68454         ENABLE_RELOCATABLE here.
68455         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68456
68457 2007-03-03  Bruno Haible  <bruno@clisp.org>
68458
68459         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68460         * tests/test-rbtreehash_list.c: Include progname.h.
68461         (main): Call set_program_name.
68462
68463         * modules/rbtree-oset-tests (Depends-on): Add progname.
68464         * tests/test-rbtree_oset.c: Include progname.h.
68465         (main): Call set_program_name.
68466
68467         * modules/rbtree-list-tests (Depends-on): Add progname.
68468         * tests/test-rbtree_list.c: Include progname.h.
68469         (main): Call set_program_name.
68470
68471         * modules/linked-list-tests (Depends-on): Add progname.
68472         * tests/test-linked_list.c: Include progname.h.
68473         (main): Call set_program_name.
68474
68475 2007-03-03  Bruno Haible  <bruno@clisp.org>
68476
68477         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68478         All uses of __restrict changed to _Restrict_.
68479         * lib/glob_.h (__restrict): Remove macro.
68480
68481 2007-03-02  Bruno Haible  <bruno@clisp.org>
68482
68483         * modules/gettext (configure.ac): Require gettext infrastructure
68484         from version 0.16.1.
68485
68486 2007-03-02  Bruno Haible  <bruno@clisp.org>
68487
68488         * modules/linkedhash-list-tests (Depends-on): Add progname.
68489         * tests/test-linkedhash_list.c: Include progname.h.
68490         (main): Call set_program_name.
68491
68492         * modules/carray-list-tests (Depends-on): Add progname.
68493         * tests/test-carray_list.c: Include progname.h.
68494         (main): Call set_program_name.
68495
68496         * modules/avltreehash-list-tests (Depends-on): Add progname.
68497         * tests/test-avltreehash_list.c: Include progname.h.
68498         (main): Call set_program_name.
68499
68500         * modules/avltree-oset-tests (Depends-on): Add progname.
68501         * tests/test-avltree_oset.c: Include progname.h.
68502         (main): Call set_program_name.
68503
68504         * modules/avltree-list-tests (Depends-on): Add progname.
68505         * tests/test-avltree_list.c: Include progname.h.
68506         (main): Call set_program_name.
68507
68508         * modules/array-oset-tests (Depends-on): Add progname.
68509         * tests/test-array_oset.c: Include progname.h.
68510         (main): Call set_program_name.
68511
68512         * modules/array-list-tests (Depends-on): Add progname.
68513         * tests/test-array_list.c: Include progname.h.
68514         (main): Call set_program_name.
68515
68516         * modules/argp-tests (Depends-on): Add progname.
68517         * tests/test-argp.c: Include argp.h first. Include progname.h.
68518         (main): Call set_program_name.
68519
68520 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * doc/gnulib-tool.texi (Initial import): Reword description of
68523         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68524         limited effect even if defined after the first system include.
68525
68526 2007-03-01  Bruno Haible  <bruno@clisp.org>
68527
68528         * build-aux/config.libpath: Update to libtool-1.5.22.
68529         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68530
68531 2007-03-01  Bruno Haible  <bruno@clisp.org>
68532
68533         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68534         foo_CFLAGS.
68535         Reported by Ralf Wildenhues.
68536
68537 2007-03-01  Bruno Haible  <bruno@clisp.org>
68538
68539         * build-aux/install-reloc: Remove object files left over by some
68540         compilers.
68541         Reported by Ralf Wildenhues.
68542
68543 2007-03-01  Bruno Haible  <bruno@clisp.org>
68544
68545         * build-aux/install-reloc: Break long lines.
68546
68547 2007-03-01  Bruno Haible  <bruno@clisp.org>
68548
68549         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68550         Reported by Ralf Wildenhues.
68551
68552 2007-03-01  Bruno Haible  <bruno@clisp.org>
68553
68554         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68555         include ordering constraints.
68556
68557 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68560         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68561         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68562         as another example.
68563         * lib/time_.h: Fix misspelling.
68564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68565         Require gl_HEADER_TIME_H_DEFAULTS.
68566         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68567         * m4/time_r.m4 (gl_TIME_R): Likewise.
68568         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68569
68570 2007-03-01  Bruno Haible  <bruno@clisp.org>
68571
68572         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68573         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68574
68575 2007-03-01  Jim Meyering  <jim@meyering.net>
68576
68577         * modules/xreadlink (Maintainer): Add my name.
68578         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68579
68580 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68581             Bruno Haible  <bruno@clisp.org>
68582
68583         * build-aux/install-reloc: Compile also c-ctype.c.
68584         * build-aux/relocatable.sh.in: New file.
68585         * doc/relocatable.texi: New file.
68586         * doc/relocatable-maint.texi: New file.
68587         * doc/gnulib.texi: Include relocatable-maint.texi.
68588         * lib/progreloc.c: Include unistd.h unconditionally.
68589         * lib/relocwrapper.c: Include unistd.h unconditionally.
68590         Include c-ctype.h.
68591         (add_dotbin): Use c_tolower.
68592         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68593         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68594         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68595         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68596         to m4/relocatable-lib.m4.
68597         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68598         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68599         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68600         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68601         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68602         * modules/relocatable: New file.
68603         * modules/relocatable-lib: New file.
68604         * modules/relocatable-script: New file.
68605
68606 2007-02-28  Bruno Haible  <bruno@clisp.org>
68607
68608         Import --enable-relocatable infrastructure.
68609         * build-aux/config.libpath: New file, from GNU gettext.
68610         * build-aux/install-reloc: New file, from GNU gettext.
68611         * build-aux/reloc-ldflags: New file, from GNU gettext.
68612         * lib/relocatable.h: New file, from GNU gettext.
68613         * lib/relocatable.c: New file, from GNU gettext.
68614         * lib/relocwrapper.c: New file, from GNU gettext.
68615         * m4/relocatable.m4: New file, from GNU gettext.
68616
68617 2007-02-28  Bruno Haible  <bruno@clisp.org>
68618
68619         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68620
68621         * modules/xreadlink: New file, from GNU gettext with modifications.
68622         * lib/xreadlink.c: New file, from GNU gettext.
68623         * lib/xreadlink.h: Add comments.
68624         (xreadlink): New declaration.
68625
68626         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68627         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68628         lib/xreadlink-with-size.c.
68629         (configure.ac): Remove gl_XREADLINK invocation.
68630         (Makefile.am): Augment lib_SOURCES.
68631         * m4/xreadlink.m4: Remove file.
68632         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68633         (xreadlink_with_size): Renamed from xreadink.
68634         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68635         * modules/canonicalize (Depends-on): Replace xreadlink with
68636         xreadlink-with-size.
68637         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68638
68639 2007-02-25  Jim Meyering  <jim@meyering.net>
68640
68641         * build-aux/announce-gen: When complaining about excess arguments,
68642         list them.
68643
68644 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * README: Document signed integer overflow situation more
68647         accurately.
68648
68649 2007-02-25  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68652         'a' or 'A' conversion.
68653
68654 2007-02-25  Bruno Haible  <bruno@clisp.org>
68655
68656         * modules/filename: Renamed from modules/pathname.
68657         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68658         lib/concatpath.c with lib/concat-filename.c.
68659         (Makefile.am): Update.
68660         (Include): Replace pathname.h with filename.h.
68661         * lib/filename.h: Renamed from lib/pathname.h.
68662         (concatenated_filename): Renamed from concatenated_pathname.
68663         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68664         (concatenated_filename): Renamed from concatenated_pathname.
68665         * lib/findprog.c: Include filename.h instead of pathname.h.
68666         (find_in_path): Update.
68667         * lib/javacomp.c: Include filename.h instead of pathname.h.
68668         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68669         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68670         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68671         is_oldgcj_14_13_usable, is_javac_usable): Update.
68672         * lib/javaexec.c: Include filename.h instead of pathname.h.
68673         (execute_java_class): Update.
68674         * modules/findprog: Update.
68675         * modules/javacomp: Update.
68676         * modules/javaexec: Update.
68677         * MODULES.html.sh (File system functions): Add 'filename', remove
68678         'pathname'.
68679
68680 2007-02-25  Bruno Haible  <bruno@clisp.org>
68681
68682         * modules/printf-frexpl-tests: New file.
68683         * tests/test-printf-frexpl.c: New file.
68684
68685         * modules/printf-frexpl: New file.
68686         * lib/printf-frexpl.h: New file.
68687         * lib/printf-frexpl.c: New file.
68688         * m4/printf-frexpl.m4: New file.
68689
68690 2007-02-25  Bruno Haible  <bruno@clisp.org>
68691
68692         * modules/printf-frexp-tests: New file.
68693         * tests/test-printf-frexp.c: New file.
68694
68695         * modules/printf-frexp: New file.
68696         * lib/printf-frexp.h: New file.
68697         * lib/printf-frexp.c: New file.
68698         * m4/printf-frexp.m4: New file.
68699
68700 2007-02-25  Bruno Haible  <bruno@clisp.org>
68701
68702         Assume automake >= 1.10 for the tests.
68703         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68704         * modules/arctwo-tests: Likewise.
68705         * modules/argp-tests: Likewise.
68706         * modules/avltree-list-tests: Likewise.
68707         * modules/avltree-oset-tests: Likewise.
68708         * modules/avltreehash-list-tests: Likewise.
68709         * modules/carray-list-tests: Likewise.
68710         * modules/crc-tests: Likewise.
68711         * modules/des-tests: Likewise.
68712         * modules/gc-arcfour-tests: Likewise.
68713         * modules/gc-arctwo-tests: Likewise.
68714         * modules/gc-des-tests: Likewise.
68715         * modules/gc-hmac-md5-tests: Likewise.
68716         * modules/gc-hmac-sha1-tests: Likewise.
68717         * modules/gc-md2-tests: Likewise.
68718         * modules/gc-md4-tests: Likewise.
68719         * modules/gc-md5-tests: Likewise.
68720         * modules/gc-pbkdf2-sha1-tests: Likewise.
68721         * modules/gc-rijndael-tests: Likewise.
68722         * modules/gc-sha1-tests: Likewise.
68723         * modules/gc-tests: Likewise.
68724         * modules/getaddrinfo-tests: Likewise.
68725         * modules/hmac-md5-tests: Likewise.
68726         * modules/hmac-sha1-tests: Likewise.
68727         * modules/linked-list-tests: Likewise.
68728         * modules/linkedhash-list-tests: Likewise.
68729         * modules/lock-tests: Likewise.
68730         * modules/md2-tests: Likewise.
68731         * modules/md4-tests: Likewise.
68732         * modules/md5-tests: Likewise.
68733         * modules/rbtree-list-tests: Likewise.
68734         * modules/rbtree-oset-tests: Likewise.
68735         * modules/rbtreehash-list-tests: Likewise.
68736         * modules/read-file-tests: Likewise.
68737         * modules/rijndael-tests: Likewise.
68738         * modules/stdint-tests: Likewise.
68739         * modules/tls-tests: Likewise.
68740
68741 2007-02-24  Bruno Haible  <bruno@clisp.org>
68742
68743         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68744         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68745         function; instead check whether isnan with a double argument links.
68746         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68747         function; instead check whether isnan with a 'long double' argument
68748         links.
68749         Reported by Eric Blake <ebb9@byu.net>.
68750
68751 2007-02-24  Bruno Haible  <bruno@clisp.org>
68752
68753         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68754         defined.
68755         * lib/isnanl.c: Remove all code. Just include isnan.c.
68756         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68757
68758 2007-02-25  Jim Meyering  <jim@meyering.net>
68759
68760         Avoid conflicting types for 'unsetenv' on FreeBSD.
68761         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68762         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68763         in stdlib.h.
68764
68765 2007-02-24  Bruno Haible  <bruno@clisp.org>
68766
68767         * modules/isnanl-nolibm-tests: New file.
68768         * tests/test-isnanl.c: New file.
68769
68770         * modules/isnanl-nolibm: New file.
68771         * lib/isnanl.h: New file.
68772         * lib/isnanl.c: New file.
68773         * m4/isnanl.m4: New file.
68774
68775 2007-02-24  Bruno Haible  <bruno@clisp.org>
68776
68777         * modules/isnan-nolibm-tests: New file.
68778         * tests/test-isnan.c: New file.
68779
68780         * modules/isnan-nolibm: New file.
68781         * lib/isnan.h: New file.
68782         * lib/isnan.c: New file.
68783         * m4/isnan.m4: New file.
68784
68785 2007-02-24  Bruno Haible  <bruno@clisp.org>
68786
68787         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68788         assume that an exponent fits in 20 bits.
68789
68790 2007-02-24  Jim Meyering  <jim@meyering.net>
68791
68792         * m4/regex.m4: Update the description of the configure-time option,
68793         --without-included-regex, to state accurately what the defaults are,
68794         and perhaps to give people an idea why using this option is risky.
68795
68796 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68797
68798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68799         loops on small arguments.  This attempts to avoid the problem
68800         Bruno Haible reported for AIX 4.3.2 in
68801         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68802
68803 2007-02-23  Bruno Haible  <bruno@clisp.org>
68804
68805         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68806         Needed for help2man.
68807
68808 2007-02-23  Karl Berry  <karl@gnu.org>
68809
68810         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68811         exists, foo.h should be cvs-ignored, not committed.
68812
68813 2007-02-23  Eric Blake  <ebb9@byu.net>
68814
68815         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68816         * lib/stat-time.h (includes): Likewise.
68817         * lib/utimecmp.c (includes): Likewise.
68818         * lib/utimens.h (includes): Likewise.
68819         * lib/getdate.y (includes): Also include "timespec.h" for use
68820         internal to the module.
68821         * modules/utimens (Depends-on): Revert yesterday's patch.
68822         * modules/nanosleep (Depends-on): Add missing dependency.
68823
68824 2007-02-22  Bruno Haible  <bruno@clisp.org>
68825
68826         * lib/glob.c: Don't include getlogin_r.h.
68827
68828 2007-02-22  Jim Meyering  <jim@meyering.net>
68829
68830         * modules/utimens (Depends-on): Add timespec, required for
68831         utimens.h's inclusion of timespec.h.
68832
68833 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68836         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68837         Schwab in
68838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68839         I'll try to think of a better way to fix the Solaris problem.
68840
68841         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68842         like glibc; on Solaris 10, it fails with errno == EINVAL.
68843         POSIX says the behavior is unspecified if the first argument is NULL,
68844         so play it safe and never pass NULL to the system getcwd.
68845
68846 2007-02-21  Jim Meyering  <jim@meyering.net>
68847
68848         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68849         of gettimeofday.  It would conflict with the one now always
68850         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68851         an IRIX 6.5 build failure.
68852
68853 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         Minor fixups to port to Solaris 10 with Sun C 5.8.
68856         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68857         * modules/getcwd (Depends-on): Add dirfd.
68858         * lib/putenv.c (putenv): #undef it.
68859         (rpl_putenv): New decl.
68860         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68861
68862 2007-02-20  Bruno Haible  <bruno@clisp.org>
68863
68864         * modules/stdio-tests: New file.
68865         * tests/test-stdio.c: New file.
68866
68867         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68868         (Depends-on): Add stdio.
68869         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68870         (Include): Use <stdio.h> instead of vsnprintf.h.
68871         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68872         HAVE_DECL_VSNPRINTF.
68873         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68874
68875         * modules/snprintf (Files): Remove lib/snprintf.h.
68876         (Depends-on): Add stdio.
68877         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68878         (Include): Use <stdio.h> instead of snprintf.h.
68879         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68880         HAVE_DECL_SNPRINTF.
68881         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68882         * lib/getaddrinfo.c: Likewise.
68883
68884         * modules/stdio: New file.
68885         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68886         * lib/snprintf.h: Remove file.
68887         * lib/vsnprintf.h: Remove file.
68888         * lib/.cppi-disable: Remove snprintf.h.
68889         * m4/stdio_h.m4: New file.
68890         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68891
68892 2007-02-20  Jim Meyering  <jim@meyering.net>
68893
68894         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68895         used by e.g., mingw.  From Bruno Haible.
68896
68897 2007-02-19  Bruno Haible  <bruno@clisp.org>
68898
68899         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68900         warnings.
68901         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68902
68903 2007-02-19  Bruno Haible  <bruno@clisp.org>
68904
68905         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68906         from mingw users.
68907
68908 2007-02-19  Bruno Haible  <bruno@clisp.org>
68909
68910         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68911         warnings.
68912         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68913
68914 2007-02-19  Jim Meyering  <jim@meyering.net>
68915
68916         Don't use FD after a successful "fdopendir (fd)".
68917         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68918         Reset it by calling dirfd on the just-obtained DIR*.
68919
68920         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68921         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68922
68923 2007-02-18  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/readlink.c: Include <unistd.h>.
68926         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68927         HAVE_READLINK.
68928         * modules/readlink (Depends-on): Add unistd.
68929         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68930         (Include): Add <unistd.h>.
68931
68932         * lib/getlogin_r.h: Remove file.
68933         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68934         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68935         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68936         HAVE_DECL_GETLOGIN_R.
68937         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68939         (Include): Use <unistd.h> instead of getlogin_r.h.
68940
68941         * lib/getcwd.h: Remove file.
68942         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68943         * lib/xgetcwd.c: Likewise.
68944         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68945         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68946         * modules/getcwd (Files): Remove lib/getcwd.h.
68947         (Depends-on): Add unistd.
68948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68949         (Include): Use <unistd.h> instad of getcwd.h.
68950
68951         * lib/ftruncate.c: Include <unistd.h> first.
68952         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68953         Set HAVE_FTRUNCATE.
68954         * modules/ftruncate (Depends-on): Add unistd.
68955         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68956
68957         * lib/fchdir.c: Include <unistd.h> first.
68958         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68960         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68961         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68962         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68963
68964         * lib/dup2.c: Include <unistd.h> first.
68965         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68966         HAVE_DUP2.
68967         * modules/dup2 (Depends-on): Add unistd.
68968         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68969
68970         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68971         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68972         REPLACE_CHOWN. Don't define chown as a macro here.
68973         * modules/chown (Depends-on): Add unistd.
68974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68975
68976         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68977         Add definition for GL_LINK_WARNING.
68978         (chown, dup2): New declarations.
68979         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68980         link warning.
68981         (ftruncate): New declaration.
68982         (getcwd): New declaration, taken from old getcwd.h.
68983         (getlogin_r): New declaration, taken from old getlogin_r.h.
68984         (readlink): New declaration.
68985         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68986         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68987         (gl_PREREQ_UNISTD): Remove macro.
68988         (gl_UNISTD_MODULE_INDICATOR): New macro.
68989         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68990         many new variables. Don't set UNISTD_H.
68991         * modules/unistd (Description): Change.
68992         (Depends-on): Add link-warning.
68993         (configure.ac): Update.
68994         (Makefile.am): Create unistd.h always. Substitute many new variables
68995         into it.
68996
68997 2007-02-18  Bruno Haible  <bruno@clisp.org>
68998
68999         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69000         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69001         HAVE_GETSUBOPT.
69002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69003         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69004         * lib/getsubopt.h: Remove file.
69005         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69006         (Depends-on): Add stdlib.
69007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69008         (Includes): Use <stdlib.h> instead of getsubopt.h.
69009         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69010         Set HAVE_GETSUBOPT.
69011         * lib/getsubopt.c: Don't include getsubopt.h.
69012
69013 2007-02-18  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/fchdir (Depends-on): Add dup2.
69016
69017 2007-02-18  Bruno Haible  <bruno@clisp.org>
69018
69019         * lib/stdlib_.h: Handle glibc's special invocation convention
69020         specially.
69021
69022 2007-02-18  Bruno Haible  <bruno@clisp.org>
69023
69024         * modules/stdlib-tests: New file.
69025         * tests/test-stdlib.c: New file.
69026
69027         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69028         (Depends-on): Add stdlib.
69029         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69030         (Includes): Use <stdlib.h> instead of mkstemp.h.
69031         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69032         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69033         * lib/mkstemp.c: Don't include mkstemp.h.
69034         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69035         * lib/stdlib--.h: Don't include mkstemp.h.
69036
69037         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69038         (Depends-on): Add stdlib.
69039         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69040         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69041         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69042         HAVE_MKDTEMP.
69043         * lib/mkdtemp.c: Don't include mkdtemp.h.
69044         * lib/clean-temp.c: Don't include mkdtemp.h.
69045
69046         * modules/exit (Files): Remove lib/exit.h.
69047         (Depends-on): Add stdlib.
69048         (Makefile.am): Remove lib_SOURCES.
69049         (Include): Use <stdlib.h> instead of exit.h.
69050         * lib/argmatch.c: Don't include exit.h.
69051         * lib/execute.c: Likewise.
69052         * lib/pagealign_alloc.c: Likewise.
69053         * lib/pipe.c: Likewise.
69054         * lib/wait-process.c: Likewise.
69055         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69056         * lib/exitfail.c: Likewise.
69057         * lib/savewd.c: Likewise.
69058         * lib/xsetenv.c: Likewise.
69059
69060         * modules/stdlib: New file.
69061         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69062         and extra comments about mkstemp().
69063         * lib/exit.h: Remove file.
69064         * lib/mkdtemp.h: Remove file.
69065         * lib/mkstemp.h: Remove file.
69066         * m4/stdlib_h.m4: New file.
69067         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69068
69069 2007-02-18  Bruno Haible  <bruno@clisp.org>
69070
69071         * modules/math-tests: New file.
69072         * tests/test-math.c: New file.
69073
69074         * modules/math: New file.
69075         * modules/mathl (Files): Remove lib/mathl.h.
69076         (Depends-on): Add math.
69077         (Makefile.am): Don't mention mathl.h.
69078         (Include): Use <math.h> instead of mathl.h.
69079         * lib/math_.h: New file.
69080         * lib/mathl.h: Remove file.
69081         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69082         mathl.h.
69083         * lib/asinl.c: Likewise.
69084         * lib/atanl.c: Likewise.
69085         * lib/ceill.c: Likewise.
69086         * lib/cosl.c: Likewise.
69087         * lib/expl.c: Likewise.
69088         * lib/floorl.c: Likewise.
69089         * lib/frexpl.c: Likewise.
69090         * lib/ldexpl.c: Likewise.
69091         * lib/logl.c: Likewise.
69092         * lib/sincosl.c: Likewise.
69093         * lib/sinl.c: Likewise.
69094         * lib/sqrtl.c: Likewise.
69095         * lib/tanl.c: Likewise.
69096         * lib/trigl.c: Likewise.
69097         * m4/math_h.m4: New file.
69098         * MODULES.html.sh (Mathematics): Add math.
69099
69100 2007-02-17  Bruno Haible  <bruno@clisp.org>
69101
69102         * modules/wctype-tests: New file.
69103         * tests/test-wctype.c: New file.
69104
69105         * modules/wchar-tests: New file.
69106         * tests/test-wchar.c: New file.
69107
69108         * modules/unistd-tests: New file.
69109         * tests/test-unistd.c: New file.
69110
69111         * modules/time-tests: New file.
69112         * tests/test-time.c: New file.
69113
69114         * modules/sysexits-tests: New file.
69115         * tests/test-sysexits.c: New file.
69116
69117         * modules/sys_time-tests: New file.
69118         * tests/test-sys_time.c: New file.
69119
69120         * modules/sys_stat-tests: New file.
69121         * tests/test-sys_stat.c: New file.
69122
69123         * modules/sys_socket-tests: New file.
69124         * tests/test-sys_socket.c: New file.
69125
69126         * modules/sys_select-tests: New file.
69127         * tests/test-sys_select.c: New file.
69128
69129         * modules/string-tests: New file.
69130         * tests/test-string.c: New file.
69131
69132         * modules/stdbool-tests: New file.
69133         * tests/test-stdbool.c: New file.
69134
69135         * modules/netinet_in-tests: New file.
69136         * tests/test-netinet_in.c: New file.
69137
69138         * modules/inttypes-tests: New file.
69139         * tests/test-inttypes.c: New file.
69140
69141         * modules/fcntl-tests: New file.
69142         * tests/test-fcntl.c: New file.
69143
69144         * modules/byteswap-tests: New file.
69145         * tests/test-byteswap.c: New file.
69146
69147         * modules/arpa_inet-tests: New file.
69148         * tests/test-arpa_inet.c: New file.
69149
69150 2007-02-17  Bruno Haible  <bruno@clisp.org>
69151
69152         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69153         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69154         if the corresponding module is not enabled. Emit link warnings if
69155         the function is used nevertheless.
69156         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69157         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69158         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69159         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69160         * modules/inttypes (Depends-on): Add link-warning.
69161         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69162         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69163         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69164         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69165         * modules/imaxdiv (configure.ac): Likewise.
69166         * modules/strtoimax (configure.ac): Likewise.
69167         * modules/strtoumax (configure.ac): Likewise.
69168
69169 2007-02-17  Bruno Haible  <bruno@clisp.org>
69170
69171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69172         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69173         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69174         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69175
69176 2007-02-17  Bruno Haible  <bruno@clisp.org>
69177
69178         * modules/link-warning: New file.
69179         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69180         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69181         * modules/string (Depends-on): Add link-warning.
69182         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69183         string.h.
69184         * MODULES.html.sh (Support for building libraries and executables): Add
69185         link-warning.
69186
69187 2007-02-17  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69190         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69191         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69192         long lines.
69193
69194 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69195             Bruno Haible  <bruno@clisp.org>
69196
69197         * modules/tmpfile: New file.
69198         * lib/tmpfile.c: New file.
69199         * m4/tmpfile.m4: New file.
69200         * MODULES.html.sh (func_all_modules): New section "Input/output".
69201
69202 2007-02-15  Bruno Haible  <bruno@clisp.org>
69203
69204         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69205         (supports_delete_on_close): New function.
69206         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69207
69208 2007-02-14  Bruno Haible  <bruno@clisp.org>
69209
69210         * modules/mbspcasecmp-tests: New file.
69211         * tests/test-mbspcasecmp.sh: New file.
69212         * tests/test-mbspcasecmp.c: New file.
69213
69214         New module mbspcasecmp.
69215         * modules/mbspcasecmp: New file.
69216         * lib/mbspcasecmp.c: New file.
69217         * lib/string_.h (strncasecmp): Change warning message.
69218         (mbspcasecmp): New declaration.
69219         * m4/mbspcasecmp.m4: New file.
69220         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69221         GNULIB_MBSPCASECMP.
69222         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69223         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69224
69225 2007-02-14  Bruno Haible  <bruno@clisp.org>
69226
69227         * modules/mbsncasecmp-tests: New file.
69228         * tests/test-mbsncasecmp.sh: New file.
69229         * tests/test-mbsncasecmp.c: New file.
69230
69231         New module mbsncasecmp.
69232         * modules/mbsncasecmp: New file.
69233         * lib/mbsncasecmp.c: New file.
69234         * lib/string_.h (mbsncasecmp): New declaration.
69235         * m4/mbsncasecmp.m4: New file.
69236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69237         GNULIB_MBSNCASECMP.
69238         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69239         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69240
69241 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69244         Verify that it doesn't overlap with our flags.
69245         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69246         do not have the desired effect in multibyte locales; instead, use
69247         mbscasecmp.
69248         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69249         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69250         we don't require GNU fnmatch ourselves (if our users require it, they
69251         should do so explicitly).
69252
69253         Fix regex code so it doesn't rely on strcasecmp.
69254         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69255         Otherwise, include gnulib's langinfo.h.
69256         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69257         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69258         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69259         * modules/regex (FILES): Remove m4/codeset.m4.
69260         (Depends-on): Add localcharset.  Remove strcase.
69261
69262 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69263
69264         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69265         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69266
69267 2007-02-13  Bruno Haible  <bruno@clisp.org>
69268
69269         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69270         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69271
69272 2007-02-12  Bruno Haible  <bruno@clisp.org>
69273
69274         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69275         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69276         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69277         time warning rather than a link error.
69278
69279 2007-02-12  Bruno Haible  <bruno@clisp.org>
69280
69281         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69284
69285 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69288         args, not 2.
69289
69290 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         New module 'time', so that apps can include <time.h> as per
69293         POSIX and GNU instead of separate include files like time_r.h
69294         and timegm.h.  This implementation tries out a simpler approach
69295         for replacing decls in standard include files (as compared to
69296         the string module), somewhat as an experiment.
69297
69298         * config/srclist.txt: Comment out mktime.c for now.
69299         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69300         since it doesn't apply any more.  Use generic wording instead.
69301         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69302         'time'.
69303         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69304         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69305         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69306         Don't include <sys/types.h>; no longer needed since we assume C89.
69307         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69308         * lib/strftime.c: Likewise.
69309         * lib/time_r.c: Likewise.
69310         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69311         * lib/nanosleep.c: Include <time.h> first, to check interface.
69312         * lib/strptime.c: Likewise.
69313         * lib/time_r.c: Likewise.
69314         * lib/timegm.c: Likewise.
69315         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69316         needed.
69317         * lib/timegm.c: Don't include timegm.h; no longer needed.
69318         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69319         time.h now handles any problems in that area.
69320         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69321         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69322         that time.h defines struct timespec.
69323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69324         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69325         handles that.
69326         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69327         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69328         needed.  Set REPLACE_LOCALTIME.
69329         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69330         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69331         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69332         nanosleep; time_h.m4 now does that.  Don't require
69333         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69334         module handles this now.
69335         * modules/getdate (Depends-on): Remove timespec.  Add time.
69336         * modules/nanosleep (Depends-on): Likewise.
69337         * modules/stat-time (Depends-on): Likewise.
69338         * modules/nanosleep (Include): Include time.h, not timespec.h.
69339         * modules/strptime (Files): Remove lib/strptime.h.
69340         (Depends-on): Add extensions, time.
69341         (Include): Include time.h, not strptime.h.
69342         * modules/time_r (Files): Remove lib/time_r.h.
69343         (Depends-on): Add time.
69344         (Include): Include time.h, not time_r.h.
69345         * modules/timegm: Likewise.
69346         * modules/timespec (Description): Now does timespec-related decls
69347         of our own, instead of struct timespec itself.
69348         (Depends-on): Add time; remove extensions.
69349         (Maintainer): Add self.
69350         * modules/utimecmp (Depends-on): Add time; remove timespec.
69351         * modules/utimens (Depends-on): Likewise.
69352         * modules/xnanosleep (Depends-on): Likewise.
69353
69354 2007-02-11  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/c-strstr.c: Include allocsa.h.
69357         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69358         * lib/c-strcasestr.c: Include allocsa.h.
69359         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69360         * lib/strcasestr.c: Include allocsa.h.
69361         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69362         * lib/mbsstr.c: Include allocsa.h.
69363         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69364         allocsa/freesa instead of malloc/free.
69365         * lib/mbscasestr.c: Include allocsa.h.
69366         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69367         allocsa/freesa instead of malloc/free.
69368         * modules/c-strstr (Depends-on): Add allocsa.
69369         * modules/c-strcasestr (Depends-on): Likewise.
69370         * modules/strcasestr (Depends-on): Likewise.
69371         * modules/mbsstr (Depends-on): Likewise.
69372         * modules/mbscasestr (Depends-on): Likewise.
69373
69374 2007-02-11  Bruno Haible  <bruno@clisp.org>
69375
69376         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69377
69378         * modules/mbsspn-tests: New file.
69379         * tests/test-mbsspn.sh: New file.
69380         * tests/test-mbsspn.c: New file.
69381
69382 2007-02-11  Bruno Haible  <bruno@clisp.org>
69383
69384         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69385
69386         * modules/mbspbrk-tests: New file.
69387         * tests/test-mbspbrk.sh: New file.
69388         * tests/test-mbspbrk.c: New file.
69389
69390 2007-02-11  Bruno Haible  <bruno@clisp.org>
69391
69392         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69393         unneeded cast.
69394
69395         * modules/mbscspn-tests: New file.
69396         * tests/test-mbscspn.sh: New file.
69397         * tests/test-mbscspn.c: New file.
69398
69399 2007-02-11  Bruno Haible  <bruno@clisp.org>
69400
69401         * modules/mbscasecmp-tests: New file.
69402         * tests/test-mbscasecmp.sh: New file.
69403         * tests/test-mbscasecmp.c: New file.
69404
69405 2007-02-11  Bruno Haible  <bruno@clisp.org>
69406
69407         Ensure O(n) worst-case complexity of mbscasestr.
69408         * lib/mbscasestr.c: Include stdbool.h.
69409         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69410         functions.
69411         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69412         the bookkeeping indicates that it's worth it.
69413         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69414
69415         * modules/mbscasestr-tests: New file.
69416         * tests/test-mbscasestr1.c: New file.
69417         * tests/test-mbscasestr2.sh: New file.
69418         * tests/test-mbscasestr2.c: New file.
69419         * tests/test-mbscasestr3.sh: New file.
69420         * tests/test-mbscasestr3.c: New file.
69421         * tests/test-mbscasestr4.sh: New file.
69422         * tests/test-mbscasestr4.c: New file.
69423         * m4/locale-tr.m4: New file.
69424
69425 2007-02-11  Bruno Haible  <bruno@clisp.org>
69426
69427         Ensure O(n) worst-case complexity of mbsstr.
69428         * lib/mbsstr.c: Include stdbool.h.
69429         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69430         functions.
69431         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69432         bookkeeping indicates that it's worth it.
69433         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69434
69435         * modules/mbsstr-tests: New file.
69436         * tests/test-mbsstr1.c: New file.
69437         * tests/test-mbsstr2.sh: New file.
69438         * tests/test-mbsstr2.c: New file.
69439         * tests/test-mbsstr3.sh: New file.
69440         * tests/test-mbsstr3.c: New file.
69441         * m4/locale-fr.m4: New file.
69442
69443 2007-02-11  Bruno Haible  <bruno@clisp.org>
69444
69445         * lib/mbsrchr.c (mbsrchr): Fix bug.
69446
69447         * modules/mbsrchr-tests: New file.
69448         * tests/test-mbsrchr.sh: New file.
69449         * tests/test-mbsrchr.c: New file.
69450
69451 2007-02-11  Bruno Haible  <bruno@clisp.org>
69452
69453         * lib/mbschr.c (mbschr): Fix bug.
69454
69455         * modules/mbschr-tests: New file.
69456         * tests/test-mbschr.sh: New file.
69457         * tests/test-mbschr.c: New file.
69458         * m4/locale-zh.m4: New file.
69459
69460 2007-02-11  Bruno Haible  <bruno@clisp.org>
69461
69462         Support for copying multibyte string iterators.
69463         * lib/mbiter.h: Include <string.h>.
69464         (mbiter_multi_copy): New function.
69465         (mbi_copy): New macro.
69466         * lib/mbuiter.h: Include <string.h>.
69467         (mbuiter_multi_copy): New function.
69468         (mbui_copy): New macro.
69469
69470 2007-02-11  Bruno Haible  <bruno@clisp.org>
69471
69472         New module mbslen.
69473         * modules/mbslen: New file.
69474         * lib/mbslen.c: New file.
69475         * lib/string_.h (mbslen): New declaration.
69476         * m4/mbslen.m4: New file.
69477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69478         GNULIB_MBSLEN.
69479         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69480         * MODULES.html.sh (Internationalization functions): Add mbslen.
69481
69482 2007-02-11  Bruno Haible  <bruno@clisp.org>
69483
69484         Ensure O(n) worst-case complexity of strcasestr substitute.
69485         * lib/strcasestr.c: Include stdbool.h.
69486         (knuth_morris_pratt): New function.
69487         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69488         bookkeeping indicates that it's worth it.
69489         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69490
69491         * modules/strcasestr-tests: New file.
69492         * tests/test-strcasestr.c: New file.
69493
69494 2007-02-11  Bruno Haible  <bruno@clisp.org>
69495
69496         Ensure O(n) worst-case complexity of c_strcasestr.
69497         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69498         (knuth_morris_pratt): New function.
69499         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69500         the bookkeeping indicates that it's worth it.
69501         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69502
69503         * modules/c-strcasestr-tests: New file.
69504         * tests/test-c-strcasestr.c: New file.
69505
69506 2007-02-11  Bruno Haible  <bruno@clisp.org>
69507
69508         Ensure O(n) worst-case complexity of c_strstr.
69509         * lib/c-strstr.c: Include stdbool.h, string.h.
69510         (knuth_morris_pratt): New function.
69511         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69512         bookkeeping indicates that it's worth it.
69513         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69514
69515         * lib/c-strstr.c: Complete rewrite for maintainability.
69516
69517         * modules/c-strstr-tests: New file.
69518         * tests/test-c-strstr.c: New file.
69519
69520 2007-02-11  Bruno Haible  <bruno@clisp.org>
69521
69522         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69523         5.2.1 and earlier, whereby \055 was treated just like the range
69524         delimiter '-'.
69525         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69526
69527 2007-02-08  Bruno Haible  <bruno@clisp.org>
69528
69529         * modules/regex (Depends-on): Add stdbool.
69530         Reported by Dalibor Topic <robilad@kaffe.org>.
69531
69532 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69533
69534         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69535         Prefer returning from main to exiting from it.
69536         Remove unnecessary parens after sizeof.
69537
69538 2007-02-05  Bruno Haible  <bruno@clisp.org>
69539
69540         New module mbssep.
69541         * modules/mbssep: New file.
69542         * lib/mbssep.c: New file.
69543         * lib/string_.h (strsep): Add a conditional link warning.
69544         (mbssep): New declaration.
69545         * m4/mbssep.m4: New file.
69546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69547         GNULIB_MBSSEP.
69548         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69549         * MODULES.html.sh (Internationalization functions): Add mbssep.
69550
69551 2007-02-05  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69554         Optimize search in case of 1 delimiter.
69555
69556 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69557
69558         * lib/acl.h: Include sys/types.h before sys/acl.h.
69559
69560 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69561
69562         Merge upstream fix for glibc bugzilla #3957:
69563
69564         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69565
69566         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69567         bit for RE_HAT_LISTS_NOT_NEWLINE.
69568         (build_charclass_op): Remove bogus comment.
69569
69570 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69571
69572         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69573
69574 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69575
69576         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69577         * lib/memmem.c [!defined _LIBC]: Include config.h.
69578
69579 2007-02-04  Bruno Haible  <bruno@clisp.org>
69580
69581         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69582         warning message.
69583
69584 2007-02-04  Bruno Haible  <bruno@clisp.org>
69585
69586         New module mbstok_r.
69587         * modules/mbstok_r: New file.
69588         * lib/mbstok_r.c: New file.
69589         * lib/string_.h (strtok_r): Change argument names to match the
69590         comments. Add a conditional link warning.
69591         (mbstok_r): New declaration.
69592         * m4/mbstok_r.m4: New file.
69593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69594         GNULIB_MBSTOK_R.
69595         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69596         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69597
69598 2007-02-04  Bruno Haible  <bruno@clisp.org>
69599
69600         New module mbsspn.
69601         * modules/mbsspn: New file.
69602         * lib/mbsspn.c: New file.
69603         * lib/string_.h (strspn): Add a conditional link warning.
69604         (mbsspn): New declaration.
69605         * m4/mbsspn.m4: New file.
69606         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69607         GNULIB_MBSSPN.
69608         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69609         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69610
69611 2007-02-04  Bruno Haible  <bruno@clisp.org>
69612
69613         New module mbspbrk.
69614         * modules/mbspbrk: New file.
69615         * lib/mbspbrk.c: New file.
69616         * lib/string_.h (strpbrk): Add a conditional link warning.
69617         (mbspbrk): New declaration.
69618         * m4/mbspbrk.m4: New file.
69619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69620         GNULIB_MBSPBRK.
69621         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69622         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69623
69624 2007-02-04  Bruno Haible  <bruno@clisp.org>
69625
69626         New module mbscspn.
69627         * modules/mbscspn: New file.
69628         * lib/mbscspn.c: New file.
69629         * lib/string_.h (strcspn): Add a conditional link warning.
69630         (mbscspn): New declaration.
69631         * m4/mbscspn.m4: New file.
69632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69633         GNULIB_MBSCSPN.
69634         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69635         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69636
69637 2007-02-04  Bruno Haible  <bruno@clisp.org>
69638
69639         New module mbscasestr, reduced goal of strcasestr.
69640         * modules/mbscasestr: New file.
69641         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69642         (mbscasestr): Renamed from strcasestr.
69643         * lib/strcasestr.c: Don't include mbuiter.h.
69644         (strcasestr): Remove support for multibyte locales.
69645         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69646         Change the conditional link warning.
69647         (mbscasestr): New declaration.
69648         * m4/mbscasestr.m4: New file.
69649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69650         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69651         REPLACE_STRCASESTR.
69652         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69654         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69655         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69656         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69657         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69658         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69659         (Depends-on): Remove mbuiter.
69660         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69661
69662 2007-02-04  Bruno Haible  <bruno@clisp.org>
69663
69664         Simplify handling of strncasecmp.
69665         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69666         the conditional link warning.
69667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69668         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69669         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69670         * modules/strcase (configure.ac): Don't invoke
69671         gl_STRING_MODULE_INDICATOR.
69672         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69673
69674 2007-02-04  Bruno Haible  <bruno@clisp.org>
69675
69676         New module mbscasecmp, reduced goal of strcasecmp.
69677         * modules/mbscasecmp: New file.
69678         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69679         (mbscasecmp): Renamed from strcasecmp.
69680         * lib/strcasecmp.c: Don't include mbuiter.h.
69681         (strcasecmp): Remove support for multibyte locales.
69682         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69683         Change the conditional link warning.
69684         (mbscasecmp): New declaration.
69685         * m4/mbscasecmp.m4: New file.
69686         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69687         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69688         REPLACE_STRCASECMP.
69689         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69691         GNULIB_MBSCASECMP.
69692         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69693         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69694         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69695         (Depends-on): Remove mbuiter.
69696         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69697
69698 2007-02-04  Bruno Haible  <bruno@clisp.org>
69699
69700         New module mbsstr. Remove module strstr.
69701         * modules/mbsstr: New file.
69702         * modules/strstr: Remove file.
69703         * lib/mbsstr.c: Renamed from lib/strstr.c.
69704         (mbsstr): Renamed from strstr.
69705         * lib/string_.h (strstr): Remove declaration. Change the conditional
69706         link warning.
69707         (mbsstr): New declaration.
69708         * m4/mbsstr.m4: New file.
69709         * m4/strstr.m4: Remove file.
69710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69711         REPLACE_STRSTR.
69712         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69713         Don't initialize GNULIB_STRSTR.
69714         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69715         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69716         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69717         (Support for systems lacking ANSI C 89): Remove strstr.
69718
69719 2007-02-04  Bruno Haible  <bruno@clisp.org>
69720
69721         New module mbsrchr.
69722         * modules/mbsrchr: New file.
69723         * lib/mbsrchr.c: New file.
69724         * lib/string_.h (strrchr): Add a conditional link warning.
69725         (mbsrchr): New declaration.
69726         * m4/mbsrchr.m4: New file.
69727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69728         GNULIB_MBSRCHR.
69729         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69730         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69731
69732 2007-02-04  Bruno Haible  <bruno@clisp.org>
69733
69734         New module mbschr.
69735         * modules/mbschr: New file.
69736         * lib/mbschr.c: New file.
69737         * lib/string_.h (strchr): Add a conditional link warning.
69738         (mbschr): New declaration.
69739         * m4/mbschr.m4: New file.
69740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69741         GNULIB_MBSCHR.
69742         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69743         * MODULES.html.sh (Internationalization functions): Add mbschr.
69744
69745 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69748
69749         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69750
69751 2007-02-04  Bruno Haible  <bruno@clisp.org>
69752
69753         New module description section 'configure.ac-early'.
69754         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69755         (func_get_autoconf_early_snippet): New function.
69756         (func_import, func_create_testdir): Use it. Remove special cases for
69757         modules 'extensions' and 'lock'.
69758         * modules/extensions (configure.ac-early): Require
69759         gl_USE_SYSTEM_EXTENSIONS.
69760         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69761
69762 2007-02-04  Bruno Haible  <bruno@clisp.org>
69763
69764         Make use of gcj-4.3's -fsource and -ftarget option.
69765         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69766         and if so try the options -fsource and -ftarget.
69767         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69768         source_version, ftarget_option, target_version arguments.
69769         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69770         (is_envjavac_oldgcj_14_14_usable): Renamed from
69771         is_envjavac_gcj_14_14_usable.
69772         (is_envjavac_oldgcj_14_13_usable): Renamed from
69773         is_envjavac_gcj_14_13_usable.
69774         (is_gcj_present): Update.
69775         (is_gcj_43, is_gcj43_usable): New functions.
69776         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69777         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69778         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69779         try the options -fsource and -ftarget.
69780
69781 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69782
69783         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69784         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69785         larger value.
69786
69787 2007-02-03  Jim Meyering  <jim@meyering.net>
69788
69789         Give tools a better chance to allocate space for very large buffers.
69790         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69791
69792         Make pwd and readlink work also when run with an unreadable parent dir
69793         on systems with openat support.
69794         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69795         provided getcwd function, even when we have openat support.
69796         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69797
69798 2007-02-02  Bruno Haible  <bruno@clisp.org>
69799
69800         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69801         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69802         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69803         portability problems if one of these functions is only used on specific
69804         platforms.
69805         Reported by Paul Eggert.
69806
69807 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69810         is causing more trouble than it's curing.
69811         * lib/regex_internal.h (__mempcpy): Remove.
69812         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69813         (and make the code a tad smaller to boot).
69814         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69815
69816 2007-02-02  Jim Meyering  <jim@meyering.net>
69817
69818         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69819         section, not in the Makefile.am: one.
69820
69821 2007-02-02  Eric Blake  <ebb9@byu.net>
69822
69823         * lib/strchrnul.c: Always include config.h first.
69824
69825         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69826         gnulib strstr is not necessary here.
69827
69828 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69829
69830         * m4/socklen.m4: Fix typo.
69831
69832 2007-02-02  Eric Blake  <ebb9@byu.net>
69833
69834         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69835         * modules/netinet_in (Makefile.am): Likewise.
69836
69837 2007-02-01  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/string_.h (GL_LINK_WARNING): New macro.
69840         (strcasecmp, strstr, strcasestr): If provided by the system,
69841         conditionally define as a macro that leads to a warning instead of to
69842         an error.
69843         (strncasecmp): Conditionally define as a macro that leads to a warning.
69844
69845 2007-02-01  Karl Berry  <karl@gnu.org>
69846
69847         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69848
69849 2007-02-01  Bruno Haible  <bruno@clisp.org>
69850
69851         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69852         renamings.
69853
69854 2007-02-01  Eric Blake  <ebb9@byu.net>
69855
69856         * modules/regex (Depends-on): Revert dependence on mempcpy.
69857         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69858         module's definition of mempcpy.
69859         Reported by Paul Eggert.
69860
69861 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69864         the symbol XYZ before redefining it.  This fixes a problem with
69865         programs that don't use XYZ, when compiled on systems that define
69866         XYZ to something else.
69867
69868 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69869
69870         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69871         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69872         writeable to group or other and (2) is intended to have a special
69873         mode bit that is set or cleared.  In such a case, the directory
69874         should be neither group- nor other-writeable until the special
69875         mode bits are right.
69876
69877 2007-01-31  Eric Blake  <ebb9@byu.net>
69878
69879         * modules/mountlist (Depends-on): Add strstr.
69880
69881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69882         bug.
69883         * modules/string (Makefile.am): Remove redundant replacement.
69884         * modules/regex (Depends-on): Add mempcpy.
69885
69886 2007-01-31  Bruno Haible  <bruno@clisp.org>
69887
69888         New module description field 'Link'.
69889         * gnulib-tool (func_usage): Document --extract-link-directive.
69890         (sed_extract_prog): Recognize 'Link' directive.
69891         (func_get_link_directive): New function.
69892         (func_import): Show summary of link directives.
69893         Handle --extract-link-directive option.
69894         * modules/acl (Link): New section.
69895         * modules/clock-time (Link): New section.
69896         * modules/euidaccess (Link): New section.
69897         * modules/gettext (Link): New section.
69898         * modules/iconv (Link): New section.
69899         * modules/lock (Link): New section.
69900         * modules/nanosleep (Link): New section.
69901         * modules/readline (Link): New section.
69902
69903 2007-01-27  Bruno Haible  <bruno@clisp.org>
69904
69905         Enforce the use of gnulib modules for unportable <string.h> functions.
69906         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69907         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69908         (gl_HEADER_STRING_H_BODY): Require it.
69909         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69910         the symbol XYZ to one that gives a link error.
69911         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69912         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69913         * modules/mempcpy (configure.ac): Likewise.
69914         * modules/memrchr (configure.ac): Likewise.
69915         * modules/stpcpy (configure.ac): Likewise.
69916         * modules/stpncpy (configure.ac): Likewise.
69917         * modules/strcase (configure.ac): Likewise.
69918         * modules/strcasestr (configure.ac): Likewise.
69919         * modules/strchrnul (configure.ac): Likewise.
69920         * modules/strdup (configure.ac): Likewise.
69921         * modules/strndup (configure.ac): Likewise.
69922         * modules/strnlen (configure.ac): Likewise.
69923         * modules/strpbrk (configure.ac): Likewise.
69924         * modules/strsep (configure.ac): Likewise.
69925         * modules/strstr (configure.ac): Likewise.
69926         * modules/strtok_r (configure.ac): Likewise.
69927
69928 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69929
69930         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69931
69932 2007-01-30  Jim Meyering  <jim@meyering.net>
69933
69934         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69935
69936 2007-01-29  Bruno Haible  <bruno@clisp.org>
69937
69938         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69939         * lib/execute.c: Likewise.
69940         * lib/pipe.c: Likewise.
69941         * lib/printf-args.h: Likewise.
69942         * lib/printf-args.c: Likewise.
69943         * lib/printf-parse.c: Likewise.
69944         * lib/vasnprintf.c: Likewise.
69945
69946 2007-01-29  Eric Blake  <ebb9@byu.net>
69947
69948         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69949         declaration.
69950
69951 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69952
69953         * lib/strptime.h (strptime): Use 'restrict' for args where
69954         POSIX requires this.
69955         * lib/strptime.c (strptime): Likewise.
69956         Change license notice from LGPL to GPL, since gnulib-tool will
69957         change this as needed.
69958         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69959         defined.
69960         Include "strptime.h" first, to check interface.
69961         Do not #undef _LIBC and _NL_CURRENT.
69962         Do not include <stdlib.h>; no longer needed.
69963         Include "time_r.h" and declare ptime_locale_status
69964         only if _LIBC is not defined.
69965         (__P): Remove unused macro.
69966         (match_string): Bring back glibc version, but use it only if _LIBC
69967         is defined.
69968         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69969         Remove unnecessary assertion and abort() call.
69970         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69971         * m4/strptime.m4: Fix serial number comment.
69972         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69973         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69974         (Depends-on): Add time_r.
69975
69976 2007-01-29  Bruno Haible  <bruno@clisp.org>
69977
69978         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69979         strptime.
69980         * modules/strptime (Depends-on): Add stdbool.
69981         * lib/strptime.h: Include <time.h> always. Add comments.
69982
69983 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69984
69985         * modules/strptime: New file.
69986         * lib/strptime.h: New file.
69987         * lib/strptime.c: New file.
69988         * m4/strptime.m4: New file.
69989
69990 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         * MODULES.html.sh: New module mpsort.
69993         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69994
69995         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69996         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69997         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69998         All uses changed.
69999         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70000         All uses changed.
70001         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70002         to _Restrict_.
70003         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70004         the parameter matches the prototype.
70005
70006 2007-01-28  Jim Meyering  <jim@meyering.net>
70007
70008         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70009         sys/time.h here, reverting that part of the previous patch:
70010         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70011
70012 2007-01-28  Bruno Haible  <bruno@clisp.org>
70013
70014         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70015         value of $(SYS_TIME_H).
70016         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70017         remove it conditionally, too. [added by Jim Meyering]
70018         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70020         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70021         GETTIMEOFDAY_REPLACEMENT to 1.
70022
70023 2007-01-28  Bruno Haible  <bruno@clisp.org>
70024
70025         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70026         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70027         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70028         Set UNISTD_H instead of UNISTD_H2.
70029         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70030
70031 2007-01-28  Bruno Haible  <bruno@clisp.org>
70032
70033         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70034         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70035
70036 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70037
70038         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70039         (func_create_testdir): Ensure C locale for `grep' and `tr'
70040         character ranges.
70041         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70042         ACLOCAL_AMFLAGS parsing state machine.
70043
70044 2007-01-27  Bruno Haible  <bruno@clisp.org>
70045
70046         * modules/unistr/base: Update.
70047
70048 2007-01-27  Bruno Haible  <bruno@clisp.org>
70049
70050         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70051         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70052         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70053         modules/unistr/u32-mbtouc.
70054         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70055         * lib/unistr.h: Update.
70056         * lib/linebreak.c: Update.
70057         * modules/unistr/u32-mbtouc: Renamed from
70058         modules/unistr/u32-mbtouc-safe.
70059         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70060         * lib/unistr.h: Update.
70061         * lib/unistr/u32-to-u8.c: Update.
70062         * lib/unistr/u32-to-u16.c: Update.
70063
70064 2007-01-27  Bruno Haible  <bruno@clisp.org>
70065
70066         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70067         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70068         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70069         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70070         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70071         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70072         modules/unistr/u16-mbtouc.
70073         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70074         * lib/unistr.h: Update.
70075         * lib/linebreak.c: Update.
70076         * modules/linebreak: Update.
70077         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70078         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70079         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70080         * modules/unistr/u16-mbtouc: Renamed from
70081         modules/unistr/u16-mbtouc-safe.
70082         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70083         * lib/unistr.h: Update.
70084         * lib/unistr/u16-to-u8.c: Update.
70085         * modules/unistr/u16-to-u8: Update.
70086         * lib/unistr/u16-to-u32.c: Update.
70087         * modules/unistr/u16-to-u32: Update.
70088
70089 2007-01-27  Bruno Haible  <bruno@clisp.org>
70090
70091         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70092         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70093         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70094         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70095         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70096         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70097         modules/unistr/u8-mbtouc.
70098         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70099         * lib/unistr.h: Update.
70100         * lib/striconveh.c: Update.
70101         * modules/striconveh: Update.
70102         * lib/linebreak.c: Update.
70103         * modules/linebreak: Update.
70104         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70105         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70106         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70107         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70108         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70109         * lib/unistr.h: Update.
70110         * lib/striconveh.c: Update.
70111         * modules/striconveh: Update.
70112         * lib/unistr/u8-to-u16.c: Update.
70113         * modules/unistr/u8-to-u16: Update.
70114         * lib/unistr/u8-to-u32.c: Update.
70115         * modules/unistr/u8-to-u32: Update.
70116
70117 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70118
70119         Sync from Libtool.
70120         * lib/argz.c: Do not include strings.h nor memory.h, include
70121         string.h unconditionally.  Patch by Simon Josefsson.
70122
70123 2007-01-27  Bruno Haible  <bruno@clisp.org>
70124
70125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70126         from gl_HEADER_STRING_H_BODY.
70127         (gl_HEADER_STRING_H_BODY): Require it.
70128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70129         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70130         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70131         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70132         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70133         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70135         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70136         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70138         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70139         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70140         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70141         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70142         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70143
70144 2007-01-27  Bruno Haible  <bruno@clisp.org>
70145
70146         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70147         check_PROGRAMS into noinst_PROGRAMS.
70148         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70149         check_PROGRAMS in this case.
70150         (func_import): Set for_test to false.
70151         (func_create_testdir): Set for_test to true.
70152
70153 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70154             Bruno Haible  <bruno@clisp.org>
70155
70156         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70157         (Depends-on): Add string.
70158         (Includes): Use <string.h> instead of strcasestr.h.
70159         * modules/string (Makefile.am): Also substitute the value of
70160         REPLACE_STRCASESTR.
70161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70162         assume strcasestr is declared in <string.h> not <strings.h>. Also
70163         set REPLACE_STRCASESTR.
70164         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70165         REPLACE_STRCASESTR.
70166         * lib/strcasestr.h: Remove file.
70167         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70168         * lib/string_.h (strcasestr): New declaration.
70169
70170 2007-01-27  Bruno Haible  <bruno@clisp.org>
70171
70172         * lib/string_.h: Use 'extern'.
70173
70174 2007-01-27  Jim Meyering  <jim@meyering.net>
70175
70176         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70177         of set-but-not-used local, "q".
70178
70179         * lib/mempcpy.c: Include <config.h> before <string.h>.
70180         This fixes a compilation error on HP-UX, due to the system's
70181         "restrict"-using mempcpy prototype.
70182
70183 2007-01-26  Bruno Haible  <bruno@clisp.org>
70184
70185         Small optimization.
70186         * lib/javacomp.c: Include c-strstr.h.
70187          (is_envjavac_gcj): Use c_strstr instead of strstr.
70188         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70189
70190 2007-01-26  Bruno Haible  <bruno@clisp.org>
70191
70192         * MODULES.html.sh (Unicode string functions): Add the new modules.
70193
70194         * modules/uniconv/u32-strconv-to-locale: New file.
70195         * lib/uniconv/u32-strconv-to-locale.c: New file.
70196
70197         * modules/uniconv/u16-strconv-to-locale: New file.
70198         * lib/uniconv/u16-strconv-to-locale.c: New file.
70199
70200         * modules/uniconv/u8-strconv-to-locale: New file.
70201         * lib/uniconv/u8-strconv-to-locale.c: New file.
70202
70203         * modules/uniconv/u32-strconv-from-locale: New file.
70204         * lib/uniconv/u32-strconv-from-locale.c: New file.
70205
70206         * modules/uniconv/u16-strconv-from-locale: New file.
70207         * lib/uniconv/u16-strconv-from-locale.c: New file.
70208
70209         * modules/uniconv/u8-strconv-from-locale: New file.
70210         * lib/uniconv/u8-strconv-from-locale.c: New file.
70211
70212         * modules/uniconv/u32-strconv-to-enc: New file.
70213         * lib/uniconv/u32-strconv-to-enc.c: New file.
70214         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70215         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70216
70217         * modules/uniconv/u16-strconv-to-enc: New file.
70218         * lib/uniconv/u16-strconv-to-enc.c: New file.
70219         * lib/uniconv/u-strconv-to-enc.h: New file.
70220         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70221         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70222
70223         * modules/uniconv/u8-strconv-to-enc: New file.
70224         * lib/uniconv/u8-strconv-to-enc.c: New file.
70225         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70226         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70227
70228         * modules/uniconv/u32-strconv-from-enc: New file.
70229         * lib/uniconv/u32-strconv-from-enc.c: New file.
70230         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70231         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70232
70233         * modules/uniconv/u16-strconv-from-enc: New file.
70234         * lib/uniconv/u16-strconv-from-enc.c: New file.
70235         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70236         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70237
70238         * modules/uniconv/u8-strconv-from-enc: New file.
70239         * lib/uniconv/u8-strconv-from-enc.c: New file.
70240         * lib/uniconv/u-strconv-from-enc.h: New file.
70241         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70242         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70243
70244         * modules/uniconv/u32-conv-from-enc: New file.
70245         * lib/uniconv/u32-conv-from-enc.c: New file.
70246         * modules/uniconv/u32-conv-from-enc-tests: New file.
70247         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70248
70249         * modules/uniconv/u16-conv-from-enc: New file.
70250         * lib/uniconv/u16-conv-from-enc.c: New file.
70251         * lib/uniconv/u-conv-from-enc.h: New file.
70252         * modules/uniconv/u16-conv-from-enc-tests: New file.
70253         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70254
70255         * modules/uniconv/u8-conv-from-enc: New file.
70256         * lib/uniconv/u8-conv-from-enc.c: New file.
70257         * modules/uniconv/u8-conv-from-enc-tests: New file.
70258         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70259
70260         * modules/uniconv/base: New file.
70261         * lib/uniconv.h: New file.
70262
70263 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * doc/gnulib-tool.texi (Initial import): Update to match current
70266         behavior with strdup module.
70267         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70268         * lib/memmem.h: Remove; all uses removed.  This is now done
70269         by <string.h>.
70270         * lib/mempcpy.h: Likewise.
70271         * lib/memrchr.h: Likewise.
70272         * lib/stpcpy.h: Likewise.
70273         * lib/stpncpy.h: Likewise.
70274         * lib/strcase.h: Likewise.
70275         * lib/strchrnul.h: Likewise.
70276         * lib/strdup.h: Likewise.
70277         * lib/strndup.h: Likewise.
70278         * lib/strnlen.h: Likewise.
70279         * lib/strpbrk.h: Likewise.
70280         * lib/strsep.h: Likewise.
70281         * lib/strstr.h: Likewise.
70282         * lib/strtok_r.h: Likewise.
70283         * lib/string_.h: New file.
70284         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70285         Rely on <string.h> instead.
70286         * lib/canon-host.c: Likewise.
70287         * lib/chdir-long.c: Likewise.
70288         * lib/concatpath.c: Likewise.
70289         * lib/exclude.c: Likewise.
70290         * lib/fchdir.c: Likewise.
70291         * lib/getaddrinfo.c: Likewise.
70292         * lib/getcwd.c: Likewise.
70293         * lib/getsubopt.c: Likewise.
70294         * lib/glob.c: Likewise.
70295         * lib/hard-locale.c: Likewise.
70296         * lib/iconvme.c: Likewise.
70297         * lib/javacomp.c: Likewise.
70298         * lib/mempcpy.c: Likewise.
70299         * lib/memrchr.c: Likewise.
70300         * lib/regex_internal.h: Likewise.
70301         * lib/stpncpy.c: Likewise.
70302         * lib/strcasecmp.c: Likewise.
70303         * lib/strchrnul.c: Likewise.
70304         * lib/strdup.c: Likewise.
70305         * lib/striconv.c: Likewise.
70306         * lib/striconveh.c: Likewise.
70307         * lib/striconveha.c: Likewise.
70308         * lib/strncasecmp.c: Likewise.
70309         * lib/strndup.c: Likewise.
70310         * lib/strnlen.c: Likewise.
70311         * lib/strsep.c: Likewise.
70312         * lib/strstr.c: Likewise.
70313         * lib/strtok_r.c: Likewise.
70314         * lib/userspec.c: Likewise.
70315         * lib/w32spawn.h: Likewise.
70316         * lib/xstrndup.c: Likewise.
70317         * lib/mountlist.c (strstr): Remove decl.
70318         * m4/string_h.m4: New file.
70319         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70320         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70321         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70322         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70323         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70324         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70325         Set REPLACE_STRCASECMP if necessary.
70326         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70327         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70328         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70329         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70330         HAVE_DECL_STRDUP if necessary.
70331         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70332         since gl_FUNC_STRNDUP does that now.
70333         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70334         Check for decl here...
70335         (gl_PREREQ_STRNLEN): ... not here.
70336         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70337         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70338         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70340         necessary.
70341         * modules/string: New file.
70342         * modules/memmem (Files): Remove special-purpose include file.
70343         (Depends-on): Add string.
70344         (Include): Include <string.h>, not the removed file.
70345         * modules/mempcpy: Likewise.
70346         * modules/memrchr: Likewise.
70347         * modules/stpcpy: Likewise.
70348         * modules/stpncpy: Likewise.
70349         * modules/strcase: Likewise.
70350         * modules/strchrnul: Likewise.
70351         * modules/strdup: Likewise.
70352         * modules/strndup: Likewise.
70353         * modules/strnlen: Likewise.
70354         * modules/strpbrk: Likewise.
70355         * modules/strsep: Likewise.
70356         * modules/strstr: Likewise.
70357         * modules/strtok_r: Likewise.
70358         * tests/test-dirname.c: Don't include "strdup.h", since
70359         <string.h> now suffices.
70360         * tests/test-memmem.c: Don't include "memmem.h", since
70361         <string.h> now suffices.
70362
70363 2007-01-25  Bruno Haible  <bruno@clisp.org>
70364
70365         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70366         *resultp is 0.
70367
70368         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70369         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70370         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70371         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70372
70373         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70374         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70375         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70376         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70377         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70378         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70379
70380 2007-01-24  Bruno Haible  <bruno@clisp.org>
70381
70382         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70384         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70385         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70386         gl_FUNC_FTS_CORE.
70387         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70388         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70389         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70390         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70391         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70392         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70393         gl_FUNC_FCHOWNAT.
70394         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70395         gl_FUNC_STRFTIME.
70396         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70397         Reported by Ralf Wildenhues.
70398
70399 2007-01-24  Bruno Haible  <bruno@clisp.org>
70400
70401         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70402         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70403         gl_GETADDRINFO.
70404         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70405         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70406         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70407
70408 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70411         Don't use 'exit'; just return from 'main'.
70412         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70413
70414         * lib/fnmatch_.h: Readjust white space and comments to match
70415         glibc, to avoid spurious diffs.
70416
70417 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70418
70419         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70420         2004-12-01 change by Jakub Jelinek, since this code won't compile
70421         if !LIBC.  Problem reported by Bob Proulx.
70422
70423 2007-01-23  Bruno Haible  <bruno@clisp.org>
70424
70425         * lib/striconveh.c: Include c-strcaseeq.h.
70426         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70427         * modules/striconveh (Depends-on): Add c-strcaseeq.
70428
70429 2007-01-23  Bruno Haible  <bruno@clisp.org>
70430
70431         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70432
70433         * modules/c-strcaseeq: New file.
70434         * lib/c-strcaseeq.h: New file.
70435
70436         * modules/streq: New file.
70437         * lib/streq.h: New file.
70438
70439 2007-01-23  Bruno Haible  <bruno@clisp.org>
70440
70441         * modules/striconveha-tests: New file.
70442         * tests/test-striconveha.c: New file.
70443
70444         * lib/striconveha.h: Include <stdbool.h>.
70445         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70446         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70447         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70448         (mem_iconveha): New function.
70449         (str_iconveha_notranslit): Renamed from str_iconveha.
70450         (str_iconveha): New function.
70451         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70452         c-strcase.
70453
70454 2007-01-23  Bruno Haible  <bruno@clisp.org>
70455
70456         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70457         encodings without forgiving before trying any encoding with handler.
70458         (str_iconveha): Try all encodings without forgiving before trying any
70459         encoding with handler.
70460
70461 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         Import the following changes from libc.
70464
70465         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70466
70467         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70468
70469         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70470
70471         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70472         normal_bracket label.
70473
70474         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70475
70476         [BZ #361]
70477         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70478         to normal_bracket after fetching the next character.
70479
70480 2007-01-22  Bruno Haible  <bruno@clisp.org>
70481
70482         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70483         argument.
70484         * lib/striconveh.c (iconv_carefully_1): New function.
70485         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70486         argument.
70487         (str_cd_iconveh): Update.
70488         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70489         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70490         * tests/test-striconveh.c (MAGIC): New macro.
70491         (new_offsets): New function.
70492         (main): Test call with and without offsets.
70493
70494 2007-01-22  Bruno Haible  <bruno@clisp.org>
70495
70496         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70497         * modules/sys_select (Makefile.am): Likewise.
70498         * modules/sys_socket (Makefile.am): Likewise.
70499         * modules/sys_time (Makefile.am): Likewise.
70500
70501 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         * modules/gettimeofday (License): Change from GPL to LGPL, since
70504         gettimeofday is a library function.
70505
70506 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70507
70508         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70509
70510 2007-01-21  Bruno Haible  <bruno@clisp.org>
70511
70512         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70513
70514 2007-01-21  Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/striconveha: New file.
70517         * lib/striconveha.h: New file.
70518         * lib/striconveha.c: New file.
70519         * MODULES.html.sh (Internationalization functions): Add striconveha.
70520         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70521         string.
70522         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70523
70524 2007-01-21  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70527         * lib/striconveh.c (str_iconveh): Likewise.
70528
70529 2007-01-21  Bruno Haible  <bruno@clisp.org>
70530
70531         * lib/striconveh.h (mem_iconveh): New declaration.
70532         * lib/striconveh.c (mem_iconveh): New function.
70533         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70534
70535 2007-01-21  Bruno Haible  <bruno@clisp.org>
70536
70537         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70538
70539         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70540         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70541         original result buffer.
70542         (str_cd_iconveh): Update.
70543         * tests/test-striconveh.c (main): Update.
70544
70545         * lib/striconv.h (mem_cd_iconv): Change specification.
70546         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70547         result buffer.
70548         (str_cd_iconv): Update.
70549         * tests/test-striconv.c (main): Update.
70550
70551 2007-01-21  Bruno Haible  <bruno@clisp.org>
70552
70553         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70554
70555 2007-01-20  Jim Meyering  <jim@meyering.net>
70556
70557         * lib/userspec.c (parse_with_separator): If a user or group string
70558         starts with "+", skip the corresponding name-to-ID look-up, since
70559         such a look-up must fail: user and group names may not include "+".
70560
70561 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70562
70563         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70564         since we now assume the sys_time module.
70565         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70566         check for sys/time.h; no longer needed.
70567         * modules/poll (Depends-on): Depend on sys_time.
70568
70569 2007-01-18  Bruno Haible  <bruno@clisp.org>
70570
70571         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70572         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70573
70574         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70575         gettimeofday.
70576
70577         * tests/test-gettimeofday.c: Include <time.h>.
70578         (dummy): Remove variable.
70579
70580         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70581         gl_HEADER_SYS_TIME_H.
70582         (gl_HEADER_SYS_TIME_H): New macro.
70583
70584         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70585         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70587         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70588         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70590         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70591         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70592         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70593         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70594         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70595
70596         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70597         last change; it caused a compilation error when cross-compiling to
70598         Cygwin.
70599
70600 2007-01-18  Jim Meyering  <jim@meyering.net>
70601
70602         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70603         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70604         than the race-prone "test -d sys || mkdir sys".
70605         (configure.ac): Use AC_PROG_MKDIR_P.
70606         * modules/sys_select: Likewise.
70607         * modules/sys_socket: Likewise.
70608         * modules/sys_time: Likewise.
70609
70610 2007-01-18  Eric Blake  <ebb9@byu.net>
70611
70612         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70613         replace gettimeofday.
70614         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70615         name, to avoid infinite recursion.
70616
70617 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70618
70619         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70620         module sys_time.
70621         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70622         assume timespec.h defines struct timeval.
70623         * lib/settime.c: Likewise.
70624         * lib/utimens.c: Likewise.
70625         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70626         since we now assume the gettimeofday module.
70627         * lib/tempname.c (__gen_tempname): Likewise.
70628         * lib/gettimeofday.h: Remove.
70629         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70630         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70631         Include <time.h>, for 'time()'.
70632         (localtime_buffer_addr): Also use this workaround if
70633         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70634         to simplify the uses.  All uses changed.
70635         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70636         that #undef is inside {}, and 'const' follows type name consistently.
70637         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70638         (gettimeofday): Do not use the maximum possible value for
70639         tv->tv_usec, since that might break usages other than ls.c.
70640         Instead, we'll leave ls.c alone.  This undoes today's patch
70641         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70642         we've never observed the problem but might as well keep the
70643         canary.
70644         * lib/nanosleep.c: Include timespec.h first, for interface check.
70645         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70646         now assume the sys_time module.
70647         * lib/tempname.c: Likewise.
70648         * lib/timespec.h: Likewise.
70649         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70650         needed.
70651         * lib/strftime.c: Likewise.
70652         * lib/timespec.h: Likewise.
70653         * lib/posixtm.c: Include posixtm.h first, for interface check.
70654         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70655         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70656         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70657         * lib/sys_time_.h: New file.
70658         * lib/timespec.h (struct timespec): Use long int, not long.
70659         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70660         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70661         Remove obsolescent call to AC_HEADER_TIME.
70662         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70664         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70665         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70666         Likewise.
70667         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70668         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70669         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70670         into the sys_time module.  Check for gettimeofday just once.
70671         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70672         for gettimeofday signature to just check the signature.  Merely
70673         compile it, since linking doesn't test signature.  Improve test for
70674         whether gettimeofday.o is actually needed.
70675         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70676         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70677         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70678         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70679         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70680         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70681         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70682         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70683         than worrying about sys/time.h.
70684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70685         Don't bother worrying about TIME_WITH_SYS_TIME.
70686         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70687         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70688         * m4/sys_time_h.m4: New file.
70689         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70690         Don't include sys/time.h.  Return from main rather than exiting.
70691         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70692         all uses changed.
70693         * modules/gethrxtime (Depends-on): Add sys_time.
70694         * modules/gettime (Depends-on): Likewise.
70695         * modules/gettimeofday (Depends-on): Likewise.
70696         * modules/nanosleep (Depends-on): Likewise.
70697         * modules/settime (Depends-on): Likewise.
70698         * modules/tempname (Depends-on): Likewise.
70699         * modules/utimens (Depends-on): Likewise.
70700         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70701         (Include): Change back to <sys/time.h>.
70702         (Maintainer): Add self.
70703         * modules/sys_time: New file.
70704         * modules/tempname (Depends-on): Add gettimeofday.
70705         * tests/test-gettimeofday.c: Include <sys/time.h>
70706         rather than gettimeofday.h.
70707
70708 2007-01-17  Bruno Haible  <bruno@clisp.org>
70709
70710         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70711         the license default to GPL.
70712         (func_create_testdir): Don't complain if a module is LGPL and its
70713         tests module depends on GPLed modules.
70714
70715 2007-01-17  Bruno Haible  <bruno@clisp.org>
70716
70717         * lib/gettimeofday.c (gettimeofday): Add code for the case
70718         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70719         maximum possible value for tv->tv_usec, rather than the minimum one.
70720
70721 2005-10-08  Martin Lambers  <marlam@marlam.de>
70722 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70723 2007-01-16  Bruno Haible  <bruno@clisp.org>
70724
70725         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70726         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70727         gl_FUNC_GETTIMEOFDAY.
70728         (Include): Add gettimeofday.h.
70729         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70730         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70731         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70732         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70733         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70734         * lib/gettimeofday.h: New file.
70735         * lib/gettimeofday.c: Include <sys/timeb.h>.
70736         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70737         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70738         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70739         fall back on time().
70740
70741         * tests/test-gettimeofday.c: New file.
70742         * modules/gettimeofday-tests: New file.
70743
70744 2007-01-16  Eric Blake  <ebb9@byu.net>
70745
70746         * modules/fnmatch (Depends-on): Depend on wchar.
70747         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70748         * m4/fnmatch.m4: Likewise.
70749         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70750         * m4/mbchar.m4: Likewise.
70751         * modules/mbswidth (Depends-on): Depend on wchar.
70752         * lib/mbswidth.c: Assume <wchar.h>.
70753         * m4/mbswidth.m4: Likewise.
70754         * modules/quotearg (Depends-on): Depend on wchar.
70755         * lib/quotearg.c: Assume <wchar.h>.
70756         * m4/quotearg.m4: Likewise.
70757         * modules/regex (Depends-on): Depend on wchar.
70758         * lib/regex_internal.h: Assume <wchar.h>.
70759         * m4/regex.m4: Likewise.
70760         * modules/stdint (Depends-on): Depend on wchar.
70761         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70762         * m4/stdint.m4: Likewise.
70763         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70764         * modules/strftime (Depends-on): Depend on wchar.
70765         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70766         * modules/strtol (Depends-on): Depend on wchar.
70767         * lib/strtol.c: Assume <wchar.h>.
70768         * modules/wcwidth (Depends-on): Depend on wchar.
70769         * lib/wcwidth.h: Assume <wchar.h>.
70770         * m4/wcwidth.m4: Likewise.
70771
70772 2007-01-16  Bruno Haible  <bruno@clisp.org>
70773
70774         * modules/csharpexec-script: New, created from...
70775         * modules/csharpexec: ... this.
70776
70777 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70778
70779         * modules/javaexec-script: New, created from...
70780         * modules/javaexec: ... this.
70781
70782 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70783
70784         * modules/poll (Dependencies): Add sys_select.
70785
70786 2007-01-15  Jim Meyering  <jim@meyering.net>
70787
70788         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70789         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70790         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70791         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70792
70793 2007-01-15  Bruno Haible  <bruno@clisp.org>
70794
70795         * modules/striconveh: New file.
70796         * lib/striconveh.h: New file.
70797         * lib/striconveh.c: New file.
70798         * MODULES.html.sh (Internationalization functions): Add striconveh.
70799
70800         * modules/striconveh-tests: New file.
70801         * tests/test-striconveh.c: New file.
70802
70803 2007-01-15  Bruno Haible  <bruno@clisp.org>
70804
70805         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70806         not from GNU libiconv or GNU libc.
70807
70808 2007-01-15  Bruno Haible  <bruno@clisp.org>
70809
70810         * doc/gnulib-intro.texi (Copyright): Explain the different license
70811         terms for module descriptions, autoconf macros, tests, documentation.
70812
70813 2007-01-14  Bruno Haible  <bruno@clisp.org>
70814
70815         * modules/striconv-tests: New file.
70816         * tests/test-striconv.c: New file.
70817
70818 2007-01-14  Bruno Haible  <bruno@clisp.org>
70819
70820         * modules/iconv-tests: New file.
70821         * tests/test-iconv.c: New file.
70822
70823 2007-01-14  Bruno Haible  <bruno@clisp.org>
70824
70825         * gnulib-tool (func_get_license): For test modules, use the license of
70826         the main module.
70827
70828 2007-01-14  Bruno Haible  <bruno@clisp.org>
70829
70830         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70831         if iconv is found to exist.
70832
70833 2007-01-14  Bruno Haible  <bruno@clisp.org>
70834
70835         * modules/c-ctype-tests: New file.
70836         * tests/test-c-ctype.c: New file.
70837
70838 2007-01-14  Bruno Haible  <bruno@clisp.org>
70839
70840         * modules/binary-io-tests: New file.
70841         * tests/test-binary-io.sh: New file.
70842         * tests/test-binary-io.c: New file.
70843
70844 2007-01-14  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/array-oset-tests: New file.
70847         * tests/test-array_oset.c: New file.
70848
70849 2007-01-14  Bruno Haible  <bruno@clisp.org>
70850
70851         * modules/array-list-tests: New file.
70852         * tests/test-array_list.c: New file.
70853
70854 2007-01-14  Bruno Haible  <bruno@clisp.org>
70855
70856         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70857         and make.
70858         Reported by Simon Josefsson in
70859         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70860
70861 2007-01-14  Bruno Haible  <bruno@clisp.org>
70862
70863         * modules/allocsa-tests: New file.
70864         * tests/test-allocsa.c: New file.
70865
70866 2007-01-14  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/fchdir (Depends-on): Add absolute-header.
70869         * modules/unistd (Depends-on): Likewise.
70870
70871 2006-12-30  Bruno Haible  <bruno@clisp.org>
70872
70873         * modules/fchdir: New file.
70874         * modules/unistd (Files): Add lib/unistd_.h.
70875         (Makefile.am): Generate unistd.h from unistd_.h.
70876         * lib/fchdir.c: New file.
70877         * lib/dirent_.h: New file.
70878         * lib/unistd_.h: New file.
70879         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70880         * m4/fchdir.m4: New file.
70881         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70882         (gl_HEADER_UNISTD): Invoke it.
70883         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70884         function.
70885         * lib/backupfile.c (opendir, closedir): Undefine.
70886         * lib/chown.c (open, close): Undefine.
70887         * lib/clean-temp.c (open, close): Undefine.
70888         * lib/copy-file.c (open, close): Undefine.
70889         * lib/execute.c (open, close): Undefine.
70890         * lib/fsusage.c (open, close): Undefine.
70891         * lib/gc-gnulib.c (open, close): Undefine.
70892         * lib/getcwd.c (opendir, closedir): Undefine.
70893         * lib/glob.c (opendir, closedir): Undefine.
70894         * lib/javacomp.c (open, close): Undefine.
70895         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70896         * lib/openat-proc.c (open, close): Undefine.
70897         * lib/pagealign_alloc.c (open, close): Undefine.
70898         * lib/pipe.c (open, close): Undefine.
70899         * lib/progreloc.c (open, close): Undefine.
70900         * lib/savedir.c (opendir, closedir): Undefine.
70901         * lib/utime.c (open, close): Undefine.
70902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70903
70904 2007-01-10  Bruno Haible  <bruno@clisp.org>
70905
70906         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70907
70908 2007-01-12  Eric Blake  <ebb9@byu.net>
70909
70910         Provide a robust <wchar.h>.  Further simplifications are now
70911         possible in other modules, but not included here.
70912         * modules/wchar: New module.
70913         * m4/wchar.m4: New file.
70914         * lib/wchar_.h: Likewise.
70915         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70916         of the new module.
70917         * MODULES.html.sh (Extended multibyte and wide character utilities):
70918         New section.
70919
70920 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70923         to a reasonable default for memory allocation.
70924         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70925         file system that reports garbage st_size values for symlinks.
70926         Problem reported by Liyang Hu.
70927
70928 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70929
70930         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70931         Emacs .#* auto-save files).
70932
70933 2007-01-11  Bruno Haible  <bruno@clisp.org>
70934
70935         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70936         directory.
70937
70938 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         Use @...@ consistently in lib/wctype_.h.
70941         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70942         on it being set to 1 or 0.
70943         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70944         go back to AC_SUBSTing it.
70945         * modules/wctype (Makefile.am): Undo previous change.
70946
70947 2007-01-10  Eric Blake  <ebb9@byu.net>
70948
70949         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70950         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70951         * modules/wctype (Makefile.am): Likewise.
70952         Reported by Chris McGuire.
70953
70954 2007-01-10  Jim Meyering  <jim@meyering.net>
70955
70956         fts.c: a small readability/maintainability improvement
70957         * lib/fts.c (fts_read): Make this code slightly more readable and
70958         maintainable by hoisting the "sp->fts_cur = p" assignments to
70959         immediately follow the statements that set P.  Derived from
70960         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70961
70962 2007-01-10  Eric Blake  <ebb9@byu.net>
70963
70964         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70965         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70967         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70968         Reported by Chris McGuire.
70969
70970 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70971
70972         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70973         in sed script.
70974
70975 2007-01-09  Bruno Haible  <bruno@clisp.org>
70976
70977         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70978         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70979         variables.
70980         (func_module): Use them.
70981
70982 2007-01-09  Bruno Haible  <bruno@clisp.org>
70983
70984         * modules/unistr/base: New file.
70985         * lib/unistr.h: New file.
70986
70987         * modules/unistr/u8-to-u16: New file.
70988         * lib/unistr/u8-to-u16.c: New file.
70989
70990         * modules/unistr/u8-to-u32: New file.
70991         * lib/unistr/u8-to-u32.c: New file.
70992
70993         * modules/unistr/u16-to-u8: New file.
70994         * lib/unistr/u16-to-u8.c: New file.
70995
70996         * modules/unistr/u16-to-u32: New file.
70997         * lib/unistr/u16-to-u32.c: New file.
70998
70999         * modules/unistr/u32-to-u8: New file.
71000         * lib/unistr/u32-to-u8.c: New file.
71001
71002         * modules/unistr/u32-to-u16: New file.
71003         * lib/unistr/u32-to-u16.c: New file.
71004
71005         * modules/unistr/u8-check: New file.
71006         * modules/unistr/u16-check: New file.
71007         * modules/unistr/u32-check: New file.
71008         * lib/unistr/u8-check.c: New file.
71009         * lib/unistr/u16-check.c: New file.
71010         * lib/unistr/u32-check.c: New file.
71011
71012         * modules/unistr/u8-chr: New file.
71013         * modules/unistr/u16-chr: New file.
71014         * modules/unistr/u32-chr: New file.
71015         * lib/unistr/u8-chr.c: New file.
71016         * lib/unistr/u16-chr.c: New file.
71017         * lib/unistr/u32-chr.c: New file.
71018
71019         * modules/unistr/u8-cmp: New file.
71020         * modules/unistr/u16-cmp: New file.
71021         * modules/unistr/u32-cmp: New file.
71022         * lib/unistr/u8-cmp.c: New file.
71023         * lib/unistr/u16-cmp.c: New file.
71024         * lib/unistr/u32-cmp.c: New file.
71025
71026         * modules/unistr/u8-cpy: New file.
71027         * modules/unistr/u16-cpy: New file.
71028         * modules/unistr/u32-cpy: New file.
71029         * lib/unistr/u8-cpy.c: New file.
71030         * lib/unistr/u16-cpy.c: New file.
71031         * lib/unistr/u32-cpy.c: New file.
71032         * lib/unistr/u-cpy.h: New file.
71033
71034         * modules/unistr/u8-cpy-alloc: New file.
71035         * modules/unistr/u16-cpy-alloc: New file.
71036         * modules/unistr/u32-cpy-alloc: New file.
71037         * lib/unistr/u8-cpy-alloc.c: New file.
71038         * lib/unistr/u16-cpy-alloc.c: New file.
71039         * lib/unistr/u32-cpy-alloc.c: New file.
71040         * lib/unistr/u-cpy-alloc.h: New file.
71041
71042         * modules/unistr/u8-endswith: New file.
71043         * modules/unistr/u16-endswith: New file.
71044         * modules/unistr/u32-endswith: New file.
71045         * lib/unistr/u8-endswith.c: New file.
71046         * lib/unistr/u16-endswith.c: New file.
71047         * lib/unistr/u32-endswith.c: New file.
71048         * lib/unistr/u-endswith.h: New file.
71049
71050         * modules/unistr/u8-mblen: New file.
71051         * modules/unistr/u16-mblen: New file.
71052         * modules/unistr/u32-mblen: New file.
71053         * lib/unistr/u8-mblen.c: New file.
71054         * lib/unistr/u16-mblen.c: New file.
71055         * lib/unistr/u32-mblen.c: New file.
71056
71057         * modules/unistr/u8-mbtouc: New file.
71058         * modules/unistr/u16-mbtouc: New file.
71059         * modules/unistr/u32-mbtouc: New file.
71060         * lib/unistr/u8-mbtouc.c: New file.
71061         * lib/unistr/u16-mbtouc.c: New file.
71062         * lib/unistr/u32-mbtouc.c: New file.
71063
71064         * modules/unistr/u8-mbtouc-safe: New file.
71065         * modules/unistr/u16-mbtouc-safe: New file.
71066         * modules/unistr/u32-mbtouc-safe: New file.
71067         * lib/unistr/u8-mbtouc-safe.c: New file.
71068         * lib/unistr/u16-mbtouc-safe.c: New file.
71069         * lib/unistr/u32-mbtouc-safe.c: New file.
71070
71071         * modules/unistr/u8-move: New file.
71072         * modules/unistr/u16-move: New file.
71073         * modules/unistr/u32-move: New file.
71074         * lib/unistr/u8-move.c: New file.
71075         * lib/unistr/u16-move.c: New file.
71076         * lib/unistr/u32-move.c: New file.
71077         * lib/unistr/u-move.h: New file.
71078
71079         * modules/unistr/u8-next: New file.
71080         * modules/unistr/u16-next: New file.
71081         * modules/unistr/u32-next: New file.
71082         * lib/unistr/u8-next.c: New file.
71083         * lib/unistr/u16-next.c: New file.
71084         * lib/unistr/u32-next.c: New file.
71085
71086         * modules/unistr/u8-prev: New file.
71087         * modules/unistr/u16-prev: New file.
71088         * modules/unistr/u32-prev: New file.
71089         * lib/unistr/u8-prev.c: New file.
71090         * lib/unistr/u16-prev.c: New file.
71091         * lib/unistr/u32-prev.c: New file.
71092
71093         * modules/unistr/u8-set: New file.
71094         * modules/unistr/u16-set: New file.
71095         * modules/unistr/u32-set: New file.
71096         * lib/unistr/u8-set.c: New file.
71097         * lib/unistr/u16-set.c: New file.
71098         * lib/unistr/u32-set.c: New file.
71099         * lib/unistr/u-set.h: New file.
71100
71101         * modules/unistr/u8-startswith: New file.
71102         * modules/unistr/u16-startswith: New file.
71103         * modules/unistr/u32-startswith: New file.
71104         * lib/unistr/u8-startswith.c: New file.
71105         * lib/unistr/u16-startswith.c: New file.
71106         * lib/unistr/u32-startswith.c: New file.
71107         * lib/unistr/u-startswith.h: New file.
71108
71109         * modules/unistr/u8-stpcpy: New file.
71110         * modules/unistr/u16-stpcpy: New file.
71111         * modules/unistr/u32-stpcpy: New file.
71112         * lib/unistr/u8-stpcpy.c: New file.
71113         * lib/unistr/u16-stpcpy.c: New file.
71114         * lib/unistr/u32-stpcpy.c: New file.
71115         * lib/unistr/u-stpcpy.h: New file.
71116
71117         * modules/unistr/u8-stpncpy: New file.
71118         * modules/unistr/u16-stpncpy: New file.
71119         * modules/unistr/u32-stpncpy: New file.
71120         * lib/unistr/u8-stpncpy.c: New file.
71121         * lib/unistr/u16-stpncpy.c: New file.
71122         * lib/unistr/u32-stpncpy.c: New file.
71123         * lib/unistr/u-stpncpy.h: New file.
71124
71125         * modules/unistr/u8-strcat: New file.
71126         * modules/unistr/u16-strcat: New file.
71127         * modules/unistr/u32-strcat: New file.
71128         * lib/unistr/u8-strcat.c: New file.
71129         * lib/unistr/u16-strcat.c: New file.
71130         * lib/unistr/u32-strcat.c: New file.
71131         * lib/unistr/u-strcat.h: New file.
71132
71133         * modules/unistr/u8-strchr: New file.
71134         * modules/unistr/u16-strchr: New file.
71135         * modules/unistr/u32-strchr: New file.
71136         * lib/unistr/u8-strchr.c: New file.
71137         * lib/unistr/u16-strchr.c: New file.
71138         * lib/unistr/u32-strchr.c: New file.
71139
71140         * modules/unistr/u8-strcmp: New file.
71141         * modules/unistr/u16-strcmp: New file.
71142         * modules/unistr/u32-strcmp: New file.
71143         * lib/unistr/u8-strcmp.c: New file.
71144         * lib/unistr/u16-strcmp.c: New file.
71145         * lib/unistr/u32-strcmp.c: New file.
71146
71147         * modules/unistr/u8-strcpy: New file.
71148         * modules/unistr/u16-strcpy: New file.
71149         * modules/unistr/u32-strcpy: New file.
71150         * lib/unistr/u8-strcpy.c: New file.
71151         * lib/unistr/u16-strcpy.c: New file.
71152         * lib/unistr/u32-strcpy.c: New file.
71153         * lib/unistr/u-strcpy.h: New file.
71154
71155         * modules/unistr/u8-strcspn: New file.
71156         * modules/unistr/u16-strcspn: New file.
71157         * modules/unistr/u32-strcspn: New file.
71158         * lib/unistr/u8-strcspn.c: New file.
71159         * lib/unistr/u16-strcspn.c: New file.
71160         * lib/unistr/u32-strcspn.c: New file.
71161         * lib/unistr/u-strcspn.h: New file.
71162
71163         * modules/unistr/u8-strdup: New file.
71164         * modules/unistr/u16-strdup: New file.
71165         * modules/unistr/u32-strdup: New file.
71166         * lib/unistr/u8-strdup.c: New file.
71167         * lib/unistr/u16-strdup.c: New file.
71168         * lib/unistr/u32-strdup.c: New file.
71169         * lib/unistr/u-strdup.h: New file.
71170
71171         * modules/unistr/u8-strlen: New file.
71172         * modules/unistr/u16-strlen: New file.
71173         * modules/unistr/u32-strlen: New file.
71174         * lib/unistr/u8-strlen.c: New file.
71175         * lib/unistr/u16-strlen.c: New file.
71176         * lib/unistr/u32-strlen.c: New file.
71177         * lib/unistr/u-strlen.h: New file.
71178
71179         * modules/unistr/u8-strmblen: New file.
71180         * modules/unistr/u16-strmblen: New file.
71181         * modules/unistr/u32-strmblen: New file.
71182         * lib/unistr/u8-strmblen.c: New file.
71183         * lib/unistr/u16-strmblen.c: New file.
71184         * lib/unistr/u32-strmblen.c: New file.
71185
71186         * modules/unistr/u8-strmbtouc: New file.
71187         * modules/unistr/u16-strmbtouc: New file.
71188         * modules/unistr/u32-strmbtouc: New file.
71189         * lib/unistr/u8-strmbtouc.c: New file.
71190         * lib/unistr/u16-strmbtouc.c: New file.
71191         * lib/unistr/u32-strmbtouc.c: New file.
71192
71193         * modules/unistr/u8-strncat: New file.
71194         * modules/unistr/u16-strncat: New file.
71195         * modules/unistr/u32-strncat: New file.
71196         * lib/unistr/u8-strncat.c: New file.
71197         * lib/unistr/u16-strncat.c: New file.
71198         * lib/unistr/u32-strncat.c: New file.
71199         * lib/unistr/u-strncat.h: New file.
71200
71201         * modules/unistr/u8-strncmp: New file.
71202         * modules/unistr/u16-strncmp: New file.
71203         * modules/unistr/u32-strncmp: New file.
71204         * lib/unistr/u8-strncmp.c: New file.
71205         * lib/unistr/u16-strncmp.c: New file.
71206         * lib/unistr/u32-strncmp.c: New file.
71207
71208         * modules/unistr/u8-strncpy: New file.
71209         * modules/unistr/u16-strncpy: New file.
71210         * modules/unistr/u32-strncpy: New file.
71211         * lib/unistr/u8-strncpy.c: New file.
71212         * lib/unistr/u16-strncpy.c: New file.
71213         * lib/unistr/u32-strncpy.c: New file.
71214         * lib/unistr/u-strncpy.h: New file.
71215
71216         * modules/unistr/u8-strnlen: New file.
71217         * modules/unistr/u16-strnlen: New file.
71218         * modules/unistr/u32-strnlen: New file.
71219         * lib/unistr/u8-strnlen.c: New file.
71220         * lib/unistr/u16-strnlen.c: New file.
71221         * lib/unistr/u32-strnlen.c: New file.
71222         * lib/unistr/u-strnlen.h: New file.
71223
71224         * modules/unistr/u8-strpbrk: New file.
71225         * modules/unistr/u16-strpbrk: New file.
71226         * modules/unistr/u32-strpbrk: New file.
71227         * lib/unistr/u8-strpbrk.c: New file.
71228         * lib/unistr/u16-strpbrk.c: New file.
71229         * lib/unistr/u32-strpbrk.c: New file.
71230         * lib/unistr/u-strpbrk.h: New file.
71231
71232         * modules/unistr/u8-strrchr: New file.
71233         * modules/unistr/u16-strrchr: New file.
71234         * modules/unistr/u32-strrchr: New file.
71235         * lib/unistr/u8-strrchr.c: New file.
71236         * lib/unistr/u16-strrchr.c: New file.
71237         * lib/unistr/u32-strrchr.c: New file.
71238
71239         * modules/unistr/u8-strspn: New file.
71240         * modules/unistr/u16-strspn: New file.
71241         * modules/unistr/u32-strspn: New file.
71242         * lib/unistr/u8-strspn.c: New file.
71243         * lib/unistr/u16-strspn.c: New file.
71244         * lib/unistr/u32-strspn.c: New file.
71245         * lib/unistr/u-strspn.h: New file.
71246
71247         * modules/unistr/u8-strstr: New file.
71248         * modules/unistr/u16-strstr: New file.
71249         * modules/unistr/u32-strstr: New file.
71250         * lib/unistr/u8-strstr.c: New file.
71251         * lib/unistr/u16-strstr.c: New file.
71252         * lib/unistr/u32-strstr.c: New file.
71253         * lib/unistr/u-strstr.h: New file.
71254
71255         * modules/unistr/u8-strtok: New file.
71256         * modules/unistr/u16-strtok: New file.
71257         * modules/unistr/u32-strtok: New file.
71258         * lib/unistr/u8-strtok.c: New file.
71259         * lib/unistr/u16-strtok.c: New file.
71260         * lib/unistr/u32-strtok.c: New file.
71261         * lib/unistr/u-strtok.h: New file.
71262
71263         * modules/unistr/u8-uctomb: New file.
71264         * modules/unistr/u16-uctomb: New file.
71265         * modules/unistr/u32-uctomb: New file.
71266         * lib/unistr/u8-uctomb.c: New file.
71267         * lib/unistr/u16-uctomb.c: New file.
71268         * lib/unistr/u32-uctomb.c: New file.
71269
71270         * MODULES.html.sh (Unicode string functions): Add the new modules.
71271
71272 2007-01-08  Bruno Haible  <bruno@clisp.org>
71273
71274         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71275         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71276         subdirectories.
71277
71278 2007-01-08  Karl Berry  <karl@gnu.org>
71279
71280         * doc/error.texi: mention that main() fns must set program_name
71281         when progname is used.
71282
71283 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71286         WCTYPE_H is empty, for the benefit of builds from non-distclean
71287         directories.  Problem reported by Eric Blake in
71288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71289
71290 2007-01-08  Bruno Haible  <bruno@clisp.org>
71291
71292         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71293         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71294         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71295         PROVIDE_CANONICALIZE_FILENAME_MODE.
71296         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71297
71298 2007-01-08  Bruno Haible  <bruno@clisp.org>
71299
71300         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71301         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71302         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71303         * lib/fts.c: Likewise.
71304         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71305
71306 2006-12-25  Bruno Haible  <bruno@clisp.org>
71307
71308         * modules/utf8-ucs4-safe: New file.
71309         * lib/utf8-ucs4-safe.h: New file.
71310         * lib/unistr/utf8-ucs4-safe.c: New file.
71311
71312         * modules/utf16-ucs4-safe: New file.
71313         * lib/utf16-ucs4-safe.h: New file.
71314         * lib/unistr/utf16-ucs4-safe.c: New file.
71315
71316         * MODULES.html.sh (Unicode string functions): Add the new modules.
71317
71318 2007-01-08  Bruno Haible  <bruno@clisp.org>
71319
71320         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71321         (Depends-on): Add unitypes.
71322         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71323         (u8_mbtouc_aux): Move out to separate file.
71324         (u8_mbtouc): Use ucs4_t, uint8_t types.
71325         * lib/unistr/utf8-ucs4.c: New file.
71326
71327         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71328         (Depends-on): Add unitypes.
71329         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71330         (u16_mbtouc_aux): Move out to separate file.
71331         (u16_mbtouc): Use ucs4_t, uint16_t types.
71332         * lib/unistr/utf16-ucs4.c: New file.
71333
71334         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71335         (Depends-on): Add unitypes.
71336         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71337         (u8_uctomb_aux): Move out to separate file.
71338         (u8_uctomb): Use ucs4_t, uint8_t types.
71339         * lib/unistr/ucs4-utf8.c: New file.
71340
71341         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71342         (Depends-on): Add unitypes.
71343         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71344         (u16_uctomb_aux): Move out to separate file.
71345         (u16_uctomb): Use ucs4_t, uint16_t types.
71346         * lib/unistr/ucs4-utf16.c: New file.
71347
71348 2006-12-25  Bruno Haible  <bruno@clisp.org>
71349
71350         * modules/unitypes: New file.
71351         * lib/unitypes.h: New file.
71352         * MODULES.html.sh (func_all_modules): New section "Unicode string
71353         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71354         this section. Add unitypes.
71355
71356 2007-01-08  Bruno Haible  <bruno@clisp.org>
71357
71358         Avoid variable names that conflict with those from libtool.
71359         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71360         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71361         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71362         library_names_spec to acl_library_names_spec, hardcode_* to
71363         acl_hardcode_*.
71364         Reported by Ralf Wildenhues.
71365
71366 2007-01-08  Bruno Haible  <bruno@clisp.org>
71367
71368         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71369         definition.
71370         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71371         definition.
71372         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71373         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71374         definition.
71375         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71376         definition.
71377         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71378         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71379         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71380         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71381         definition.
71382         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71383         definition.
71384         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71385         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71386         GC_USE_<algorithm>.
71387         * lib/gc-libgcrypt.c: Likewise.
71388         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71389         * modules/gc-arctwo (configure.ac): Likewise.
71390         * modules/gc-des (configure.ac): Likewise.
71391         * modules/gc-hmac-md5 (configure.ac): Likewise.
71392         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71393         * modules/gc-md2 (configure.ac): Likewise.
71394         * modules/gc-md4 (configure.ac): Likewise.
71395         * modules/gc-md5 (configure.ac): Likewise.
71396         * modules/gc-random (configure.ac): Likewise.
71397         * modules/gc-rijndael (configure.ac): Likewise.
71398         * modules/gc-sha1 (configure.ac): Likewise.
71399
71400 2007-01-08  Bruno Haible  <bruno@clisp.org>
71401
71402         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71403         macro definition.
71404         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71405         definition.
71406         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71407         definition.
71408         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71409         * modules/fcntl-safer (configure.ac): Likewise.
71410         * modules/fopen-safer (configure.ac): Likewise.
71411         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71412         GNULIB_FWRITEERROR macro definition.
71413
71414 2007-01-08  Bruno Haible  <bruno@clisp.org>
71415
71416         * m4/gnulib-common.m4: New file.
71417         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71418         (func_get_filelist): Add m4/gnulib-common.m4.
71419
71420 2007-01-08  Bruno Haible  <bruno@clisp.org>
71421
71422         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71423         command.
71424
71425 2007-01-08  Jim Meyering  <jim@meyering.net>
71426
71427         Use a more robust test for a "can't happen" condition.
71428         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71429         narrowed the st_size value.  Presuming the "can't happen" condition
71430         is true, that narrowing could conceivably convert an invalid st_size
71431         value into a valid one.  Instead, use a change based on Matthew
71432         Woehlke's original patch.
71433
71434         Slight readability improvement: use an assert-like macro
71435         in place of literal "abort ()" uses.
71436         * lib/fts.c (fts_assert): Define.
71437         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71438         Use this macro instead of a bare 'abort'.
71439
71440 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71441
71442         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71443         simply work around them.
71444         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71445         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71446         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71447         declaring.
71448         Don't bother to define as macros, since the standard doesn't require it.
71449         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71450         longer worry about IRIX 5.3.
71451         (HAVE_WCTYPE_CTMP_BUG): Remove.
71452
71453 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71456         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71457         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71458         Problems reported by Georg Schwarz for IRIX 5.3.
71459
71460         * gnulib-tool (autoconf_minversion): Take the maximum version number
71461         found, not the minimum.  Problem reported by James Youngman.
71462
71463 2007-01-03  Karl Berry  <karl@gnu.org>
71464
71465         * doc/error.texi: new file, explaining interaction with progname.
71466         * doc/gnulib.texi: include it.  Update copyright.
71467
71468 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71469
71470         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71471         AC_CANONICAL_HOST, to improve autobuild outputs.
71472
71473 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71474             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71475
71476         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71477         sockets, server sockets, and other file descriptors.  Count errors
71478         to compute the return value.  Reorder the code a bit to be easier
71479         to follow.  Don't set event bits that were not requested (except
71480         POLLERR and POLLHUP).
71481
71482 2007-01-01  Bruno Haible  <bruno@clisp.org>
71483
71484         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71485
71486 2007-01-03  Jim Meyering  <jim@meyering.net>
71487
71488         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71489
71490 2007-01-02  Bruno Haible  <bruno@clisp.org>
71491
71492         * modules/settime (Include): Require timespec.h.
71493         * modules/nanosleep (Include): Likewise.
71494
71495 2007-01-01  Bruno Haible  <bruno@clisp.org>
71496
71497         * gnulib-tool (func_emit_copyright_notice): Bump year.
71498         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71499
71500 2007-01-01  Bruno Haible  <bruno@clisp.org>
71501
71502         Improve support for OpenBSD.
71503         * build-aux/config.rpath (libname_spec): Export.
71504         (library_names_spec): New variable. Export.
71505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71506         library_names_spec from the config.rpath output. Locate shared library
71507         through the name pattern in library_names_spec.
71508
71509 2007-01-01  Eric Blake  <ebb9@byu.net>
71510
71511         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71512
71513 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71516         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71517         assume the C locale, and avoid an "eval" that could cause trouble.
71518         Problem with SORT reported by Bob Proulx.
71519
71520         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71521         Define.  Trivial patch from Henning Nielsen Lund, originally
71522         sent to bug-grep@gnu.org today.
71523
71524 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71527         struct stat.  Problem reported by Henning Nielsen Lund.
71528         * lib/acl.c: Include acl.h first, to check interface.  Don't
71529         bother to include sys/types.h and sys/stat.h again.
71530
71531 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         Import the following change from libc; problem reported by
71534         Sven Verdoolaege.
71535
71536         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71537
71538         [BZ #1373]
71539         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71540
71541 2006-12-28  Jim Meyering  <jim@meyering.net>
71542
71543         * build-aux/announce-gen: Do not assume that the package
71544         builds any of tar.gz, tar.bz2, and .xdelta files.
71545         Suggestion from Simon Josefsson.
71546
71547 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71548
71549         * modules/announce-gen: New file.
71550
71551 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71554         handles its gotchas now.
71555         * lib/mbswidth.c: Likewise.
71556         * lib/wcwidth.h: Likewise.
71557         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71558         and iswcntrl; the wctype module does this stuff now.
71559         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71561         * modules/mbchar (Depends-on): Add wctype.
71562         * modules/mbswidth (Depends-on): Likewise.
71563         * modules/wcwidth (Depends-on): Likewise.
71564
71565 2006-12-27  Eric Blake  <ebb9@byu.net>
71566
71567         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71568         module uses more than what <wctype.h> is required to provide.
71569
71570 2006-12-26  Eric Blake  <ebb9@byu.net>
71571
71572         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71573
71574 2006-12-26  Eric Blake  <ebb9@byu.net>
71575
71576         * modules/absolute-header: New module.
71577         * modules/fcntl (Depends-on): Depend on it.
71578         * modules/inttypes (Depends-on): Likewise.
71579         * modules/stdint (Depends-on): Likewise.
71580         * modules/sys_stat (Depends-on): Likewise.
71581         * modules/wctype (Depends-on): Likewise.
71582         * MODULES.html.sh (Support for building libraries and
71583         executables): Document it.
71584
71585 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71586
71587         * gnulib-tool (SED): Remove, undoing previous change.
71588         The problem was that it broke coreutils on Solaris, because
71589         "sed --posix" leaked into a makefile.
71590         (sed): New alias, if 'alias' and GNU sed.
71591
71592 2006-12-24  Jim Meyering  <jim@meyering.net>
71593
71594         Work around an fchownat bug in glibc-2.4:
71595         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71596         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71597         in spite of the -P option.
71598         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71599         New macros.
71600         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71601         * modules/openat (Files): Add lib/fchownat.c.
71602         * lib/openat.c (fchownat): Don't define here.  Move to...
71603         * lib/fchownat.c: ...this new file.
71604
71605 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         Fix bug reported by Bruno Haible in
71608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71609         where quotearg.c didn't compile on Mac OS X 10.2 because it
71610         lacks <wchar.h> and wint_t.
71611         * lib/wctype_.h (__wctype_wint_t): New type.
71612         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71613         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71614         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71615         Arg is now of type __wctype_wint_t, not wint_t.
71616         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71617         substitute HAVE_WINT_T.
71618         * modules/wctype (Files): Add m4/wint_t.m4.
71619         (wctype.h): Substitute HAVE_WINT_T.
71620
71621 2006-12-23  Bruno Haible  <bruno@clisp.org>
71622
71623         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71624
71625 2006-12-23  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71628         S_ISLNK.
71629         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71630         mingw.
71631
71632 2006-12-22  Bruno Haible  <bruno@clisp.org>
71633
71634         * lib/copy-file.c: Include acl.h.
71635         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71636         Close the file descriptors only after being done with copy_acl.
71637         * modules/copy-file (Depends-on): Add acl.
71638
71639 2006-12-22  Bruno Haible  <bruno@clisp.org>
71640
71641         * gnulib-tool (SED): New variable.
71642         Use $SED instead of sed everywhere.
71643
71644 2006-12-22  Bruno Haible  <bruno@clisp.org>
71645
71646         * modules/no-c++: New file.
71647         * m4/no-c++.m4: New file.
71648         * MODULES.html.sh (Support for building libraries and executables):
71649         Add no-c++.
71650
71651 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71654         Include <limits.h>, and use its INT_MAX to rewrite the
71655         j loop so that it does not overflow 'int'.  Problem reported by
71656         Ralf Wildenhues in
71657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71658         Play it safe by shifting left by 1 rather than multiplying by 2,
71659         as GCC is less likely to optimize this away when the value
71660         is signed (when it assumes overflow leads to undefined behavior).
71661         Also, don't assume time_t uses two's complement.
71662
71663 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * MODULES.html.sh: New module wctype.
71666         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71667         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71668         <wctype.h>, since the new wctype module should fix this.
71669         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71670         the wctype module should arrange for it.
71671         * lib/regex_internal.h: Likewise.
71672         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71673         since the wctype module should handle this now.
71674         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71675         * modules/fnmatch (Depends-on): Add wctype.
71676         * modules/quotearg (Depends-on): Likewise.
71677         * modules/regex (Depends-on): Likewise.
71678
71679 2006-12-19  Bruno Haible  <bruno@clisp.org>
71680
71681         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71682         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71683
71684 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71685
71686         * modules/savewd (Depends-on): Fix dependency on fcntl.
71687
71688 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71691         conforms to C99, rather than relying on the user's environment
71692         setting of STDINT_H.
71693
71694 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71695         and Eric Blake  <ebb9@byu.net>
71696
71697         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71698         This is more consistent with the other defines here.
71699         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71700         Port to z/OS.  Problem reported by Paul Gilmartin.
71701         Change local vars to use gl_ prefix rather than ac_.
71702         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71703         with other defines.
71704         * modules/double-slash-root: New module.
71705         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71706         (Depends-on): Add double-slash-root.
71707         * MODULES.html.sh (File system functions): Mention new module.
71708
71709 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71712         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71713         This is for the benefit of gzip, which doesn't do i18n.
71714
71715 2006-12-12  Jim Meyering  <jim@meyering.net>
71716
71717         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71718         Reported by Andreas Schwab <schwab@suse.de>.
71719
71720 2006-12-12  Bruno Haible  <bruno@clisp.org>
71721
71722         Merge these changes.
71723         2006-09-05  Bruno Haible  <bruno@clisp.org>
71724         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71725         iconv_alloc succeeded.
71726         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71727         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71728         test for " && dest " at the end - dest is always != NULL there. Call
71729         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71730         with 2xNULL arguments, also to flush the state storage. Handle the
71731         IRIX iconv behaviour. Realloc the final result, to throw away unused
71732         memory.
71733
71734 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71735
71736         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71737         and fchmodat unconditionally, since glibc 2.4 has them.
71738         Problem reported by Arkadiusz Miskiewicz.
71739
71740 2006-12-10  Bruno Haible  <bruno@clisp.org>
71741
71742         * gnulib-tool (func_import): Show the include files only for those
71743         modules that are copied and specified.
71744         Reported by Karl Berry.
71745
71746 2006-12-08  Jim Meyering  <jim@meyering.net>
71747
71748         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71749         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71750
71751         * build-aux/announce-gen: Add two new options, both optional:
71752         --bootstrap-tools=TOOL_LIST
71753               a comma-separated list of tools, e.g.,
71754               autoconf,automake,bison,gnulib
71755         --gnulib-snapshot-date=DATE
71756               if gnulib is in the bootstrap tool list,
71757               then report this as the snapshot date.
71758               If not specified, use the current date/time.
71759               If you specify a date here, be sure it's UTC.
71760
71761 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71762
71763         * tests/test-argp-2.sh: Fix test to match actual output.
71764         (func_compare): Fix sed script to be portable.
71765
71766 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71769         workaround for this case.  It is not autoconfigured now; offhand
71770         it's hard to see how to autoconfigure it.
71771
71772 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71773
71774         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71775         a directory that is about to be chowned.  Such a directory's
71776         initial file permissions should permit the owner only and this
71777         should not be changed until after the chown, since the group and
71778         other bits would be incorrect if they granted permission before
71779         the chown.
71780
71781         Fix porting problem for iswctype reported by Georg Schwarz in:
71782         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71783         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71784         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71785         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71786         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71787
71788 2006-12-03  Jim Meyering  <jim@meyering.net>
71789
71790         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71791         p->fts_statp may not yet be defined.
71792         (fts_read): Instead, set it in the caller, once p->fts_statp is
71793         sure to be defined, and corresponds to a top-level directory.
71794         This bug made du -x fail.  Here's the coreutils test case:
71795         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71796         Reported by Mike Frysinger.
71797
71798 2006-12-01  Jim Meyering  <jim@meyering.net>
71799
71800         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71801         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71802         Reported by Simon Josefsson.
71803
71804 2006-11-30  Jim Meyering  <jim@meyering.net>
71805
71806         * m4/warning.m4: Use the all-permissive copyright notice
71807         recommended by RMS (rather than LGPL).
71808         * m4/vararrays.m4: Likewise.
71809         * m4/flexmember.m4: Likewise.
71810
71811 2006-11-29  Bruno Haible  <bruno@clisp.org>
71812
71813         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71814         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71815         using +=.
71816         Reported by Simon Josefsson <simon@josefsson.org>.
71817
71818 2006-11-28  James Youngman <jay@gnu.org>
71819
71820         * README: Advise users that they might find the bug-gnulib@gnu.org
71821         and autotools-announce@gnu.org mailing lists useful.
71822
71823 2006-11-28  Bruno Haible  <bruno@clisp.org>
71824
71825         * m4/ptrdiff_max.m4: Remove file.
71826
71827 2006-11-21  Bruno Haible  <bruno@clisp.org>
71828
71829         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71830         _AC_COMPUTE_INT.
71831         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71832         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71833         _AC_COMPUTE_INT.
71834         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71835         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71836         _AC_COMPUTE_INT.
71837         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71838
71839 2006-11-28  Jim Meyering  <jim@meyering.net>
71840
71841         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71842         warning from "gcc -Wshadow" about shadowing the builtin.
71843
71844 2006-11-27  Bruno Haible  <bruno@clisp.org>
71845
71846         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71847         _AC_COMPUTE_INT.
71848         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71849
71850 2006-11-27  Bruno Haible  <bruno@clisp.org>
71851             Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71854
71855 2006-11-26  Bruno Haible  <bruno@clisp.org>
71856
71857         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71858         noinst_LTLIBRARIES.
71859
71860 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71861             Bruno Haible  <bruno@clisp.org>
71862
71863         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71864         if compiling with "gcc -ansi".
71865
71866 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71867
71868         Fix some incompatibilities with gcc -ansi -pedantic.
71869         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71870         if compiling pedantically with GCC, unless it's C99 or later.
71871         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71872         it mishandles gcc -ansi -pedantic as well.
71873         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71874         if gcc -pedantic.
71875         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71876         initializers for struct if -pedantic, unless it's C99 or later.
71877
71878 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71879
71880         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71881         Don't close an fd more than once. Identical atimes indicate
71882         success, not failure.
71883
71884 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71885
71886         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71887
71888 2006-11-23  Jim Meyering  <jim@meyering.net>
71889
71890         * build-aux/announce-gen: New file.  From coreutils.
71891
71892 2006-11-22  Jim Meyering  <jim@meyering.net>
71893
71894         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71895         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71896         (fts_read): Use a temporary to narrow the overused st_size member
71897         before using it in a switch statement.  Reported by Matthew Woehlke.
71898
71899         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71900         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71901
71902 2006-11-20  Bruno Haible  <bruno@clisp.org>
71903
71904         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71905         changequote instead of pairs of brackets.
71906         Reported by Andreas Schwab <schwab@suse.de>.
71907
71908 2006-11-21  Jim Meyering  <jim@meyering.net>
71909
71910         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71911         so as to remain compatible with older compilers.
71912         Patch from Michael Deutschmann.
71913
71914 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * MODULES.html.sh (File system functions): Add openat.
71917
71918         * lib/openat.h (rpl_fstatat): New macro, if
71919         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71920         (fstatat): Define to rpl_fstatat under the same conditions,
71921         unless COMPILING_FSTATAT.
71922         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71923         seems to have the bug.
71924         * lib/fstatat.c: New file.
71925         * modules/openat (Files): Add it.
71926
71927 2006-11-20  Bruno Haible  <bruno@clisp.org>
71928
71929         * Makefile: New file.
71930
71931 2006-11-20  Jim Meyering  <jim@meyering.net>
71932
71933         The beginnings of syntax-related checks for gnulib.
71934         * lib/Makefile: New file.
71935         * lib/t-idcache: New script.  Ensure that the two halves of
71936         idcache.c stay in sync.
71937
71938         * lib/idcache.c: Adjust comments in user- and group- portions to
71939         be more accurate, and to be consistent with one another.
71940
71941 2006-11-20  Jim Meyering  <jim@meyering.net>
71942
71943         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71944         continue using the flexible array member (thus, this module performs
71945         half as many malloc calls), with the addition that...
71946         (getgroup, getuser): Consistently record a non-match via an empty
71947         "name" string, and map an empty string match to a NULL return value.
71948         * modules/idcache (Depends-on): Re-add flexmember.
71949
71950         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71951         (getuidbyname, getgroup, getgidbyname): Likewise.
71952
71953         Use cleaner syntax: NULL rather than 0.
71954         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71955
71956 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71957
71958         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71959         It mishandled the case where the group was missing.
71960         Problem reported by Greg Schafer.
71961         * modules/idcache: Likewise.
71962
71963 2006-11-18  Jim Meyering  <jim@meyering.net>
71964
71965         * check-module (%exempt_header): Add exception for some
71966         conditionally-included headers.
71967
71968         * modules/i-ring (Depends-on): Add verify.
71969         (License): Change to LGPL.
71970
71971 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71974         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71975         and inttostr.h.  Use snprintf rather than uinttostr, so that
71976         LGPLed code doesn't depend on GPLed.
71977
71978 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * modules/inline (License): Change from GPL to LGPL.
71981
71982 2006-11-17  Jim Meyering  <jim@meyering.net>
71983
71984         * modules/d-type (License): Switch to LGPL.
71985
71986 2006-11-15  Bruno Haible  <bruno@clisp.org>
71987
71988         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71989
71990 2006-11-15  Eric Blake  <ebb9@byu.net>
71991
71992         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71993         the module dependency.
71994
71995 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71996             Bruno Haible  <bruno@clisp.org>
71997
71998         * gnulib-tool (func_create_testdir): Add license consistency check.
71999
72000 2006-11-15  Eric Blake  <ebb9@byu.net>
72001
72002         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72003         random "(cached)" in configure output.
72004
72005 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72006
72007         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72008         test for conforming inttypes.h is both announced and cached.
72009
72010         * MODULES.html.sh (seen_modules, seen_files): New variables.
72011         (func_module): Rewrite to use a few less gnulib-tool and sed
72012         invocations.  Avoid a couple of quadratic algorithms for ...
72013         (missed_modules, missed_files): ... these, with ...
72014         (func_append, func_tmpdir): ... these new functions, from
72015         gnulib-tool.  Analogously, install traps for cleanup.
72016
72017         * tests/test-gc.c (main): Remove unused variables.
72018         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72019
72020 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * modules/inttostr (License): Change to LGPL.
72023
72024 2006-11-14  Eric Blake  <ebb9@byu.net>
72025
72026         * modules/tempname (License): Change to LGPL.
72027
72028 2006-11-14  Eric Blake  <ebb9@byu.net>
72029
72030         * doc/functions.texi (Function Portability): *printf functions on
72031         Cygwin now understand all POSIX size specifiers.
72032
72033 2006-11-14  Bruno Haible  <bruno@clisp.org>
72034
72035         * modules/c-ctype (License): Change to LGPL.
72036
72037 2006-11-12  Bruno Haible  <bruno@clisp.org>
72038
72039         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72040         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72041         for GNOME libraries, for which the include files are installed in
72042         subdirectories of $prefix/include.
72043
72044 2006-11-12  Bruno Haible  <bruno@clisp.org>
72045
72046         * m4/lib-link.m4: Require at least autoconf-2.54.
72047         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72048         name to underscores for the --with option.
72049
72050 2006-11-13  Bruno Haible  <bruno@clisp.org>
72051
72052         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72053         the tests directory.
72054         Reported by Ralf Wildenhues.
72055
72056 2006-11-13  Bruno Haible  <bruno@clisp.org>
72057
72058         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72059         (func_emit_initmacro_end): Undo the override here.
72060         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72061         Works around the famous automake error in coreutils.
72062
72063 2006-11-13  Eric Blake  <ebb9@byu.net>
72064
72065         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72066         element, not its node.
72067
72068 2006-11-12  Bruno Haible  <bruno@clisp.org>
72069
72070         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72071         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72072
72073 2006-11-12  Bruno Haible  <bruno@clisp.org>
72074
72075         * gnulib-tool: New option --local-symlink.
72076         (func_usage): Document it.
72077         (lsymbolic): New variable.
72078         (func_import, func_create_testdir): If --symlink was not specified,
72079         test whether --local-symlink was specified and the file comes from
72080         the local_gnulib_dir.
72081
72082 2006-11-12  Bruno Haible  <bruno@clisp.org>
72083
72084         * gnulib-tool (func_ln): New function.
72085         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72086
72087 2006-11-12  Bruno Haible  <bruno@clisp.org>
72088
72089         Finish support for source files in subdirectories.
72090         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72091         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72092         AUTOMAKE_OPTIONS.
72093         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72094
72095 2006-11-12  Bruno Haible  <bruno@clisp.org>
72096
72097         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72098         EXTRA_lib_SOURCES augmentation.
72099         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72100
72101 2006-11-12  Jim Meyering  <jim@meyering.net>
72102
72103         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72104         file descriptors.  This also averts a failure on systems with
72105         native openat support when a traversed directory lacks "x" access.
72106         * lib/fts_.h: Include "i-ring.h"
72107         (struct FTS) [fts_fd_ring]: New member.
72108         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72109         (FCHDIR): Add parentheses.
72110         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72111         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72112         When descending, rather than simply closing the previous
72113         fts_cwd_fd value, push that file descriptor onto the ring.
72114         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72115         (fts_open): Initialize the new fd_ring member.
72116         (fts_close): Clear the ring.
72117         (fts_safe_changedir): When possible, use our new fd_ring to skip
72118         the diropen and fstat and dev/ino comparison that would normally
72119         accompany a virtual `chdir ("..")'.
72120
72121         * modules/fts (Depends-on): Add i-ring.
72122         * modules/i-ring: New module.
72123         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72124         * m4/i-ring.m4: New file.
72125
72126 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72127
72128         * gnulib-tool (func_create_testdir): Fix replacement of
72129         `build-aux' in configure.ac.  Run autotools in gltests
72130         subdirectory.
72131         (func_create_testdir, func_create_megatestdir, test): There is
72132         no need for '--force' in most autotool invocations in a new
72133         tree.  Actually fail the whole test if any of the tools, or the
72134         configure or make stages fail.
72135
72136         Sync from Automake.
72137         * build-aux/gnupload: Revert last change.  Add pointer to upload
72138         instructions of the GNU Maintenance Instructions.
72139         Suggestion by Karl Berry.
72140
72141 2006-11-10  Jim Meyering  <jim@meyering.net>
72142
72143         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72144
72145 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72148         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72149         (bind_textdomain_codeset) [! ENABLE_NLS]:
72150         Evaluate all the arguments.  That way, callers get compatible behavior
72151         if the arguments have side effects.  Also, it avoids some GCC
72152         diagnostics in some cases; Joel E. Denny reported problems when Bison
72153         was configured with --enable-gcc-warnigs.
72154
72155 2006-11-10  Jim Meyering  <jim@meyering.net>
72156
72157         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72158         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72159         account.
72160
72161 2006-11-10  Jim Meyering  <jim@meyering.net>
72162
72163         * modules/inline: New file/module.
72164         * modules/xalloc (Files): Remove m4/inline.m4.
72165         (Depends-on): Add inline, instead.
72166         * modules/oset: Likewise.
72167         * modules/list: Likewise.
72168
72169 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72170
72171         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72172         Problem reported by Matthew Woehlke.
72173
72174 2006-11-09  Bruno Haible  <bruno@clisp.org>
72175
72176         * lib/tempname.c (gen_tempname): Remove variant that invokes
72177         __gen_tempname.
72178         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72179         __gen_tempname.
72180
72181 2006-11-08  Bruno Haible  <bruno@clisp.org>
72182
72183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72184         to 'yes' instead of 'cross-compiling'.
72185
72186 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * lib/quotearg.h (quotearg_free): New decl.
72189         * lib/quotearg.c (quotearg_free): New function.
72190         (slot0, nslots, slotvec0, slotvec):
72191         Now file-scope so that quotearg_free can get at them.
72192
72193 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72194
72195         Sync from Automake.
72196         * build-aux/gnupload: Add missing 'gnu' to example URL.
72197         Report by Karl Berry.
72198
72199 2006-11-08  Bruno Haible  <bruno@clisp.org>
72200
72201         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72202         Suggested by Paul Eggert.
72203
72204 2006-11-08  Jim Meyering  <jim@meyering.net>
72205
72206         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72207         It's already included if !_LIBC.
72208         (fts_safe_changedir): Add a comment.
72209
72210 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72213         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72214         Matthew Woehlke.
72215
72216         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72217         definitions up, to avoid colliding with change below.
72218         (static_inline) [HAVE_INLINE]: New macro.
72219         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72220         Provide extern decls when !HAVE_INLINE.  Do not define unless
72221         static_inline is defined, either by us or by xmalloc.c.  Use
72222         static_inline rather than static inline.
72223         (XCALLOC): Optimize sizeof(T) = 1 case.
72224         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72225
72226 2006-11-07  Bruno Haible  <bruno@clisp.org>
72227
72228         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72229         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72230         AC_C_INLINE.
72231         * modules/xalloc (Files): Add m4/inline.m4.
72232
72233 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72234
72235         * README: Fix typo.
72236         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72237         (Miscellanous Notes): ...from this.
72238
72239 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72240
72241         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72242         Mention that offsetof should be used instead of sizeof.
72243         From Bruno Haible.
72244
72245 2006-11-07  Bruno Haible  <bruno@clisp.org>
72246
72247         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72248
72249 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72252         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72253         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72254         (gl_tree_add_before, gl_tree_add_after):
72255         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72256         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72257         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72258         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72259         (gl_linked_add_after, gl_linked_add_at): Likewise.
72260         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72261         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72262         (gl_tree_add_before, gl_tree_add_after): Likewise.
72263         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72264         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72265         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72266
72267 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72268
72269         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72270
72271 2006-11-06  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/inline.m4: New file.
72274         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72275         * modules/list (Files): Add m4/inline.m4.
72276         * modules/oset (Files): Likewise.
72277
72278 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * lib/idcache.c: Include <stddef.h>, for offsetof.
72281         (struct userid.name): Change from char * to a flexible array member.
72282         All uses changed.
72283         * modules/idcache (Depends-on): Add flexmember.
72284
72285         * MODULES.html.sh (Core language properties): New module flexmember.
72286         * modules/flexmember, m4/flexmember.m4: New files.
72287
72288         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72289         inline functions that are identical with the old xnmalloc_inline,
72290         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72291         that we can avoid some unnecessary integer multiplications and
72292         divisions in the common case where the element size is known at
72293         compile time.
72294         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72295         needed.
72296         (xnboundedmalloc): Remove.
72297         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72298         arguments, for consistency with rest of this header.
72299         (xcharalloc): Rewrite using XNMALLOC.
72300         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72301         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72302         versions have been moved to lib/xalloc.h and renamed to be the
72303         non-*_inline versions.
72304         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72305         and xnrealloc functions, since those functions are now inline and
72306         now call us.
72307         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72308         renaming described above.
72309         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72310         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72311         captures the dependency in AC_C_INLINE.
72312
72313         New module canonicalize-lgpl, proposed by Charles Wilson in
72314         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72315         with a few small changes afterwards.
72316         * MODULES.html.sh (File system functions): New module
72317         canonicalize-lgpl.
72318         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72319         and canonicalize_file_name.
72320         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72321         * modules/canonicalize-lgpl: New files.
72322
72323 2006-11-05  Bruno Haible  <bruno@clisp.org>
72324
72325         * gnulib-tool (func_import, func_create_testdir): Create directories
72326         also for files in subdirectories of lib/.
72327
72328 2006-11-05  Bruno Haible  <bruno@clisp.org>
72329
72330         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72331         ANSI C compliant.
72332
72333 2006-11-03  Bruno Haible  <bruno@clisp.org>
72334
72335         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72336         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72337         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72338         (xnboundedmalloc): New inline function.
72339         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72340         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72341         xmalloc.
72342         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72343         xmalloc.
72344         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72345         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72346         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72347         xmalloc.
72348         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72349         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72350         xmalloc.
72351         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72352         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72353         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72354         xmalloc.
72355         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72356         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72357         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72358         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72359         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72360         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72361         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72362
72363 2006-11-03  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/c-ctype.h [C++]: Define functions without name mangling.
72366         * lib/fwriteerror.h [C++]: Likewise.
72367         * lib/gcd.h [C++]: Likewise.
72368         * lib/linebreak.h [C++]: Likewise.
72369
72370 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72371
72372         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72373         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72374         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72375         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72376         Check for functions and headers just once.
72377         Check for declaration of canonicalize_file_name.
72378         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72379
72380 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72381
72382         * gnulib-tool (func_import): Fix typo in actioncmd.
72383
72384 2006-11-02  Bruno Haible  <bruno@clisp.org>
72385
72386         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72387         newline sequence in the Makefile.am snippet as a space, like "make"
72388         does.
72389         Reported by Roger Persson <perrog@gmail.com>.
72390
72391 2006-11-01  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72394         already declared in <string.h>.
72395         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72396
72397 2006-11-01  Bruno Haible  <bruno@clisp.org>
72398
72399         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72400         * lib/strcase.h: Include <string.h>.
72401         (strcasecmp): Define to rpl_strcasecmp here.
72402
72403 2006-11-01  Bruno Haible  <bruno@clisp.org>
72404
72405         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72406
72407 2006-11-01  Eric Blake  <ebb9@byu.net>
72408
72409         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72410
72411         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72412
72413 2006-10-29  Bruno Haible  <bruno@clisp.org>
72414
72415         Make it compile in C++ mode.
72416         * lib/full-write.c (full_rw): Add a cast.
72417
72418 2006-11-01  Bruno Haible  <bruno@clisp.org>
72419
72420         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72421         be POSIX compliant.
72422         Reported by Roger Persson <perrog@gmail.com>.
72423
72424 2006-11-01  Eric Blake  <ebb9@byu.net>
72425
72426         * lib/getopt_.h: Fix comments.
72427
72428 2006-10-31  Eric Blake  <ebb9@byu.net>
72429
72430         * modules/tmpdir (Depends-on): Add sys_stat.
72431         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72432         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72433         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72434         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72435         tempname.
72436
72437 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         Avoid some C++ diagnostics reported by Bruno Haible.
72440         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72441         xmalloc.
72442         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72443         (struct slotvec): Move to top level.
72444         (quotearg_n_options): Rewrite to avoid xmalloc.
72445         * lib/xalloc.h (xcharalloc): New function.
72446         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72447         [defined __cplusplus]: Add function template that provides result
72448         type propagation.  This part of the change is from Bruno Haible.
72449
72450 2006-10-29  Bruno Haible  <bruno@clisp.org>
72451
72452         Make it compile in C++ mode.
72453         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72454         * lib/strnlen1.c (strnlen1): Cast memchr result.
72455         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72456         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72457         (create_temp_dir): Rename local variable 'template'.
72458         (compile_csharp_using_sscli): Add cast.
72459         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72460         * lib/findprog.c (find_in_path): Likewise.
72461         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72462         * lib/wait-process.c (register_slave_subprocess): Likewise.
72463
72464 2006-10-22  Bruno Haible  <bruno@clisp.org>
72465
72466         * modules/tsearch: New file.
72467         * lib/tsearch.h: New file.
72468         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72469         * m4/tsearch.m4: New file.
72470         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72471
72472 2006-10-29  Eric Blake  <ebb9@byu.net>
72473
72474         * lib/arcfour.c: Assume config.h.
72475         * lib/arctwo.c: Likewise.
72476         * lib/base64.c: Likewise.
72477         * lib/check-version.c: Likewise.
72478         * lib/crc.c: Likewise.
72479         * lib/des.c: Likewise.
72480         * lib/gc-gnulib.c: Likewise.
72481         * lib/gc-libgcrypt.c: Likewise.
72482         * lib/gc-pbkdf2-sha1.c: Likewise.
72483         * lib/getaddrinfo.c: Likewise.
72484         * lib/getdelim.c: Likewise.
72485         * lib/getline.c: Likewise.
72486         * lib/hmac-md5.c: Likewise.
72487         * lib/hmac-sha1.c: Likewise.
72488         * lib/iconvme.c: Likewise.
72489         * lib/md2.c: Likewise.
72490         * lib/md4.c: Likewise.
72491         * lib/memxor.c: Likewise.
72492         * lib/read-file.c: Likewise.
72493         * lib/readline.c: Likewise.
72494         * lib/rijndael-alg-fst.c: Likewise.
72495         * lib/rijndael-api-fst.c: Likewise.
72496         * lib/xgetdomainname.c: Likewise.
72497
72498 2006-10-28  Eric Blake  <ebb9@byu.net>
72499
72500         * lib/xstrndup.c: Assume config.h.
72501
72502 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72505         stat-macros.h is now for our own macros, whereas stat_h is for
72506         macros in the <sys/stat.h> name space.
72507         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72508         (STAT_MACROS_H): Remove.
72509         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72510         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72511         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72512         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72513         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72514         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72515         Move these macros to ...
72516         * lib/stat_.h: here.  Don't include stat-macros.h.
72517         * lib/canonicalize.c: Don't include stat-macros.h.
72518         * lib/chown.c: Likewise.
72519         * lib/euidaccess.c: Likewise.
72520         * lib/file-type.c: Likewise.
72521         * lib/filemode.c: Likewise.
72522         * lib/glob.c: Likewise.
72523         * lib/isapipe.c: Likewise.
72524         * lib/lchown.c: Likewise.
72525         * lib/lstat.c: Likewise.
72526         * lib/mkdir-p.c: Likewise.
72527         * lib/rmdir.c: Likewise.
72528         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72530         unless mkdir isn't declared, to speed up 'configure'.
72531         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72532         would define all the S_* symbols.
72533         * modules/canonicalize (Depends-on):
72534         Depend on sys_stat, not stat-macros.
72535         * modules/chown: Likewise.
72536         * modules/euidaccess: Likewise.
72537         * modules/filemode: Likewise.
72538         * modules/file-type: Likewise.
72539         * modules/glob: Likewise.
72540         * modules/isapipe: Likewise.
72541         * modules/lchown: Likewise.
72542         * modules/lstat: Likewise.
72543         * modules/mkancesdirs: Likewise.
72544         * modules/rmdir: Likewise.
72545         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72546         * modules/modechange: Likewise.
72547         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72548         (configure.ac): Remove gl_STAT_MACROS.
72549         * modules/sys_stat (Depends-on): Remove stat-macros.
72550
72551 2006-10-27  Bruno Haible  <bruno@clisp.org>
72552
72553         * m4/signed.m4: Remove file.
72554         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72555         invocation.
72556         * modules/vasnprintf (Files): Remove m4/signed.m4.
72557
72558 2006-10-27  Bruno Haible  <bruno@clisp.org>
72559
72560         Update to GNU gettext 0.16.
72561         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72562         m4/inttypes-h.m4, m4/signed.m4.
72563         * m4/gettext.m4: Update to GNU gettext 0.16.
72564         * m4/intl.m4: New file, from GNU gettext.
72565         * m4/intldir.m4: New file, from GNU gettext.
72566         * config/srclist.txt: Update
72567
72568 2006-10-27  Eric Blake  <ebb9@byu.net>
72569
72570         * MODULES.html.sh: Document tempname.
72571         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72572         dependencies.
72573         (Files): Move lib/tempname.c...
72574         * modules/tempname: ...to this new module.
72575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72576         (gl_PREREQ_TEMPNAME): Move...
72577         * m4/tempname.m4: ...to this new file.
72578         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72579         * modules/sys_stat (Depends-on): Add stat-macros.
72580         * lib/stat_.h (includes): Pick up stat macros.
72581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72582         if stat macros are broken.
72583         * lib/tempname.c (includes): No need to include "stat-macros.h".
72584         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72585         (direxists, __path_search) [!_LIBC]: Don't compile these in
72586         gnulib; the tmpdir module covers that.
72587         * lib/tempname.h: New file.
72588
72589 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * COPYING: Explain how gnulib-tool converts licence headers.
72592         Almost all wording by Eric Blake.
72593
72594 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72595
72596         * lib/mbchar.h (is_basic_table): Make read-only.
72597         * lib/mbchar.c (is_basic_table): Likewise.
72598         Reported by John Darrington.
72599
72600 2006-10-25  Bruno Haible  <bruno@clisp.org>
72601
72602         * lib/progname.h (set_program_name): Undefine before defining.
72603
72604 2006-10-25  Bruno Haible  <bruno@clisp.org>
72605
72606         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72607         false for non-gcc C++ compilers.
72608         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72609
72610 2006-10-24  Bruno Haible  <bruno@clisp.org>
72611
72612         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72613         iconv implementations like Irix iconv.
72614
72615 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * modules/vararrays: New file.
72618         * m4/vararrays.m4: New file, taken from diffutils.
72619         * MODULES.html.sh: New module vararrays.
72620
72621 2006-10-24  Karl Berry  <karl@gnu.org>
72622
72623         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72624         Don't call GNU Unix.
72625
72626 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72627
72628         * users.txt: Add Libtool.
72629
72630         Sync from Libtool:
72631
72632         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72633
72634         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72635         to gnulib's policy of including config.h unconditionally.
72636
72637 2006-10-24  Bruno Haible  <bruno@clisp.org>
72638
72639         * modules/wcwidth (Files): Add m4/wint_t.m4.
72640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72641         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72642
72643 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72646         to pacify GCC with some -W flags enabled.  Problem reported by
72647         Bruno Haible.
72648
72649 2006-10-24  Jim Meyering  <jim@meyering.net>
72650
72651         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72652         Reported by Karl Berry.
72653
72654 2006-10-23  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72657
72658 2006-10-24  Bruno Haible  <bruno@clisp.org>
72659
72660         * lib/gl_list.h: Use C comment style, not C++ comment style.
72661
72662 2006-10-23  Eric Blake  <ebb9@byu.net>
72663
72664         * lib/getaddrinfo.c (includes): Add missing include.
72665
72666 2006-10-23  Bruno Haible  <bruno@clisp.org>
72667             Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         Ability to rename obstack_free.
72670         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72671         obstack_free.
72672         (obstack_free): Invoke the __obstack_free macro.
72673         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72674
72675 2006-10-23  Bruno Haible  <bruno@clisp.org>
72676             Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72679         __argc, __argv from the declaration. (They are defined as macros on
72680         mingw.)
72681
72682 2006-10-22  Bruno Haible  <bruno@clisp.org>
72683
72684         * doc/gnulib-intro.texi: New file.
72685         * doc/gnulib.texi: Include it.
72686
72687 2006-10-21  Bruno Haible  <bruno@clisp.org>
72688
72689         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72690         "Introduction", "Miscellanous Notes", "Particular Modules".
72691
72692 2006-10-21  Bruno Haible  <bruno@clisp.org>
72693
72694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72695         Change mostlyclean-local rule to avoid sh syntax error from bash
72696         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72697
72698 2006-10-23  Jim Meyering  <jim@meyering.net>
72699
72700         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72701         in place of snprintf.
72702
72703         * modules/inttostr (Files): Add lib/uinttostr.c.
72704         * lib/uinttostr.c (inttostr): New file/function.
72705         * lib/inttostr.h (uinttostr): Declare.
72706         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72707         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72708         Add uinttostr.
72709         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72710
72711 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * lib/canonicalize.c (ELOOP): Define if not already defined.
72714         Problem reported by Bruno Haible in
72715         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72716
72717 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72720         Problem reported by Perry Smith and Ville Laurikari.
72721
72722         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72723         uses.
72724
72725 2006-10-19  Bruno Haible  <bruno@clisp.org>
72726
72727         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72728         for mingw.
72729
72730 2006-10-19  Bruno Haible  <bruno@clisp.org>
72731
72732         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72733         Needed for mingw.
72734
72735 2006-10-19  Bruno Haible  <bruno@clisp.org>
72736
72737         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72738
72739 2006-10-19  Bruno Haible  <bruno@clisp.org>
72740
72741         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72742         it.
72743
72744 2006-10-19  Bruno Haible  <bruno@clisp.org>
72745
72746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72747         invocation.
72748
72749 2006-10-19  Bruno Haible  <bruno@clisp.org>
72750
72751         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72752         mountlist by default.
72753
72754 2006-10-16  Bruno Haible  <bruno@clisp.org>
72755
72756         * lib/c-strstr.c: Include c-strstr.h.
72757
72758 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72759
72760         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72761         in a slash.
72762
72763 2006-10-18  Bruno Haible  <bruno@clisp.org>
72764
72765         * lib/lock.h [C++]: Wrap definitions in extern "C".
72766
72767 2006-10-18  Bruno Haible  <bruno@clisp.org>
72768
72769         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72770         gl_LIBOBJS list.
72771
72772 2006-10-18  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72775
72776 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72777
72778         * lib/xstrtol.h: Include gettext.h.
72779         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72780         Problem reported by Eric Blake.
72781         * modules/xstrtol (Depends-on): Add gettext-h.
72782
72783 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72784
72785         * lib/strftime.c (advance): New macro.
72786         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72787         incomplete type, so you can't add 0 to it.  Problem and patch
72788         reported by Eelco Dolstra for dietlibc.
72789
72790 2006-10-18  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72793         type for a local, and rename it: s/up/user_proc/.
72794
72795 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72796
72797         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72798         READ_UTMP_USER_PROCESS.
72799         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72800
72801 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72804         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72805
72806 2006-10-17  Eric Blake  <ebb9@byu.net>
72807
72808         * lib/sigprocmask.c (sigprocmask): Fix typo.
72809
72810         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72811
72812         * modules/clean-temp (Makefile.am): Don't add to make output...
72813         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72814         config.h.
72815
72816 2006-10-17  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72819         differently if DEFAULT_TEXT_DOMAIN is set.
72820
72821 2006-10-16  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/clean-temp.c: Include fwriteerror.h.
72824
72825 2006-10-16  Bruno Haible  <bruno@clisp.org>
72826
72827         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72828
72829 2006-10-16  Bruno Haible  <bruno@clisp.org>
72830
72831         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72832         * lib/sigprocmask.h: Include <sys/types.h>.
72833         (sigset_t): Use the system's definition if present.
72834
72835 2006-10-17  Eric Blake  <ebb9@byu.net>
72836
72837         * lib/xvasprintf.c (includes): Assume config.h.
72838         * lib/xasprintf.c (includes): Likewise.
72839
72840 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72843         at least as wide as intmax_t.
72844
72845 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72846
72847         (Imported from Automake.)
72848         * build-aux/gnupload: Update to version 1.1 of directive file.
72849
72850 2006-10-16  Eric Blake  <ebb9@byu.net>
72851
72852         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72853         match Automake 1.10a.
72854
72855 2006-10-14  Bruno Haible  <bruno@clisp.org>
72856
72857         * modules/sigprocmask: New file.
72858         * lib/sigprocmask.h: New file.
72859         * lib/sigprocmask.c: New file.
72860         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72861         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72862         request sigprocmask.o.
72863         (gl_PREREQ_SIGPROCMASK): New macro.
72864         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72865         (Depends-on): Add sigprocmask.
72866         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72867         gt_SIGNALBLOCKING. Test for 'raise' only once.
72868         * lib/fatal-signal.c: Include sigprocmask.h.
72869         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72870         unblock_fatal_signals): Define always.
72871         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72872         sigprocmask.
72873
72874 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72875
72876         Sync from Automake.
72877         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72878         which incorrectly sets the mode of an existing destination
72879         directory.  In some cases the unpatched install-sh could do the
72880         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72881         system.  We hope this is rare in practice, but it's clearly worth
72882         fixing.  Problem reported by Alex Unleashed in
72883         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72884         Also, don't bother to check for -m bugs unless we're using -m;
72885         suggested by Stepan Kasal.
72886
72887 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72888
72889         Sync from Automake.
72890         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72891         `-c' flag, so they appear at the same position as in %FASTDEP%
72892         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72893         which ignores unknown options only after the first non-option.
72894         Bug report against M4 by Nelson H. F. Beebe.
72895
72896 2006-10-13  Jim Meyering  <jim@meyering.net>
72897
72898         Fix a bug in yesterday's change.
72899         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72900         p->fts_statp->st_dev would be used uninitialized.
72901         Ensures that we always call fts_stat on the very first entry.
72902         Miklos Szeredi reported that find -xdev stopped working.
72903
72904 2006-10-12  Bruno Haible  <bruno@clisp.org>
72905
72906         * gnulib-tool (func_get_automake_snippet): Append an automatically
72907         computed EXTRA_DIST augmentation.
72908         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72909         * modules/alloca-opt (Makefile.am): Likewise.
72910         * modules/allocsa (Makefile.am): Likewise.
72911         * modules/arcfour (Makefile.am): Likewise.
72912         * modules/arctwo (Makefile.am): Likewise.
72913         * modules/argmatch (Makefile.am): Likewise.
72914         * modules/argz (Makefile.am): Likewise.
72915         * modules/atexit (Makefile.am): Likewise.
72916         * modules/backupfile (Makefile.am): Likewise.
72917         * modules/byteswap (Makefile.am): Likewise.
72918         * modules/c-strtod (Makefile.am): Likewise.
72919         * modules/c-strtold (Makefile.am): Likewise.
72920         * modules/calloc (Makefile.am): Likewise.
72921         * modules/canon-host (Makefile.am): Likewise.
72922         * modules/canonicalize (Makefile.am): Likewise.
72923         * modules/chdir-long (Makefile.am): Likewise.
72924         * modules/chdir-safer (Makefile.am): Likewise.
72925         * modules/check-version (Makefile.am): Likewise.
72926         * modules/chown (Makefile.am): Likewise.
72927         * modules/cloexec (Makefile.am): Likewise.
72928         * modules/close-stream (Makefile.am): Likewise.
72929         * modules/closeout (Makefile.am): Likewise.
72930         * modules/crc (Makefile.am): Likewise.
72931         * modules/csharpexec (Makefile.am): Likewise.
72932         * modules/cycle-check (Makefile.am): Likewise.
72933         * modules/des (Makefile.am): Likewise.
72934         * modules/dev-ino (Makefile.am): Likewise.
72935         * modules/dirfd (Makefile.am): Likewise.
72936         * modules/dirname (Makefile.am): Likewise.
72937         * modules/dup2 (Makefile.am): Likewise.
72938         * modules/eealloc (Makefile.am): Likewise.
72939         * modules/error (Makefile.am): Likewise.
72940         * modules/euidaccess (Makefile.am): Likewise.
72941         * modules/exclude (Makefile.am): Likewise.
72942         * modules/exitfail (Makefile.am): Likewise.
72943         * modules/fcntl-safer (Makefile.am): Likewise.
72944         * modules/fcntl (Makefile.am): Likewise.
72945         * modules/file-type (Makefile.am): Likewise.
72946         * modules/fileblocks (Makefile.am): Likewise.
72947         * modules/filemode (Makefile.am): Likewise.
72948         * modules/filenamecat (Makefile.am): Likewise.
72949         * modules/fnmatch (Makefile.am): Likewise.
72950         * modules/fopen-safer (Makefile.am): Likewise.
72951         * modules/fpending (Makefile.am): Likewise.
72952         * modules/fprintftime (Makefile.am): Likewise.
72953         * modules/free (Makefile.am): Likewise.
72954         * modules/fsusage (Makefile.am): Likewise.
72955         * modules/ftruncate (Makefile.am): Likewise.
72956         * modules/fts (Makefile.am): Likewise.
72957         * modules/gc-arcfour (Makefile.am): Likewise.
72958         * modules/gc-des (Makefile.am): Likewise.
72959         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72960         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72961         * modules/gc-md4 (Makefile.am): Likewise.
72962         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72963         * modules/gc-sha1 (Makefile.am): Likewise.
72964         * modules/gc (Makefile.am): Likewise.
72965         * modules/getaddrinfo (Makefile.am): Likewise.
72966         * modules/getcwd (Makefile.am): Likewise.
72967         * modules/getdelim (Makefile.am): Likewise.
72968         * modules/getdomainname (Makefile.am): Likewise.
72969         * modules/getgroups (Makefile.am): Likewise.
72970         * modules/gethostname (Makefile.am): Likewise.
72971         * modules/gethrxtime (Makefile.am): Likewise.
72972         * modules/getline (Makefile.am): Likewise.
72973         * modules/getloadavg (Makefile.am): Likewise.
72974         * modules/getlogin_r (Makefile.am): Likewise.
72975         * modules/getndelim2 (Makefile.am): Likewise.
72976         * modules/getopt (Makefile.am): Likewise.
72977         * modules/getpagesize (Makefile.am): Likewise.
72978         * modules/getpass-gnu (Makefile.am): Likewise.
72979         * modules/getpass (Makefile.am): Likewise.
72980         * modules/getsubopt (Makefile.am): Likewise.
72981         * modules/gettime (Makefile.am): Likewise.
72982         * modules/gettimeofday (Makefile.am): Likewise.
72983         * modules/getugroups (Makefile.am): Likewise.
72984         * modules/getusershell (Makefile.am): Likewise.
72985         * modules/glob (Makefile.am): Likewise.
72986         * modules/group-member (Makefile.am): Likewise.
72987         * modules/hard-locale (Makefile.am): Likewise.
72988         * modules/hash (Makefile.am): Likewise.
72989         * modules/hmac-md5 (Makefile.am): Likewise.
72990         * modules/hmac-sha1 (Makefile.am): Likewise.
72991         * modules/human (Makefile.am): Likewise.
72992         * modules/idcache (Makefile.am): Likewise.
72993         * modules/imaxabs (Makefile.am): Likewise.
72994         * modules/imaxdiv (Makefile.am): Likewise.
72995         * modules/inet_ntop (Makefile.am): Likewise.
72996         * modules/inet_pton (Makefile.am): Likewise.
72997         * modules/intprops (Makefile.am): Likewise.
72998         * modules/inttostr (Makefile.am): Likewise.
72999         * modules/inttypes (Makefile.am): Likewise.
73000         * modules/isapipe (Makefile.am): Likewise.
73001         * modules/javaversion (Makefile.am): Likewise.
73002         * modules/lchmod (Makefile.am): Likewise.
73003         * modules/lchown (Makefile.am): Likewise.
73004         * modules/localcharset (Makefile.am): Likewise.
73005         * modules/long-options (Makefile.am): Likewise.
73006         * modules/lstat (Makefile.am): Likewise.
73007         * modules/malloc (Makefile.am): Likewise.
73008         * modules/mathl (Makefile.am): Likewise.
73009         * modules/mbchar (Makefile.am): Likewise.
73010         * modules/md2 (Makefile.am): Likewise.
73011         * modules/md4 (Makefile.am): Likewise.
73012         * modules/md5 (Makefile.am): Likewise.
73013         * modules/memcasecmp (Makefile.am): Likewise.
73014         * modules/memchr (Makefile.am): Likewise.
73015         * modules/memcmp (Makefile.am): Likewise.
73016         * modules/memcoll (Makefile.am): Likewise.
73017         * modules/memcpy (Makefile.am): Likewise.
73018         * modules/memmem (Makefile.am): Likewise.
73019         * modules/memmove (Makefile.am): Likewise.
73020         * modules/mempcpy (Makefile.am): Likewise.
73021         * modules/memrchr (Makefile.am): Likewise.
73022         * modules/memset (Makefile.am): Likewise.
73023         * modules/memxor (Makefile.am): Likewise.
73024         * modules/mkancesdirs (Makefile.am): Likewise.
73025         * modules/mkdir-p (Makefile.am): Likewise.
73026         * modules/mkdir (Makefile.am): Likewise.
73027         * modules/mkdtemp (Makefile.am): Likewise.
73028         * modules/mkstemp (Makefile.am): Likewise.
73029         * modules/mktime (Makefile.am): Likewise.
73030         * modules/modechange (Makefile.am): Likewise.
73031         * modules/mountlist (Makefile.am): Likewise.
73032         * modules/nanosleep (Makefile.am): Likewise.
73033         * modules/obstack (Makefile.am): Likewise.
73034         * modules/openat (Makefile.am): Likewise.
73035         * modules/pagealign_alloc (Makefile.am): Likewise.
73036         * modules/pathmax (Makefile.am): Likewise.
73037         * modules/physmem (Makefile.am): Likewise.
73038         * modules/poll (Makefile.am): Likewise.
73039         * modules/posixtm (Makefile.am): Likewise.
73040         * modules/posixver (Makefile.am): Likewise.
73041         * modules/putenv (Makefile.am): Likewise.
73042         * modules/quote (Makefile.am): Likewise.
73043         * modules/quotearg (Makefile.am): Likewise.
73044         * modules/raise (Makefile.am): Likewise.
73045         * modules/read-file (Makefile.am): Likewise.
73046         * modules/readline (Makefile.am): Likewise.
73047         * modules/readlink (Makefile.am): Likewise.
73048         * modules/readtokens (Makefile.am): Likewise.
73049         * modules/readutmp (Makefile.am): Likewise.
73050         * modules/realloc (Makefile.am): Likewise.
73051         * modules/regex (Makefile.am): Likewise.
73052         * modules/rename-dest-slash (Makefile.am): Likewise.
73053         * modules/rename (Makefile.am): Likewise.
73054         * modules/rijndael (Makefile.am): Likewise.
73055         * modules/rmdir (Makefile.am): Likewise.
73056         * modules/rpmatch (Makefile.am): Likewise.
73057         * modules/safe-read (Makefile.am): Likewise.
73058         * modules/safe-write (Makefile.am): Likewise.
73059         * modules/same-inode (Makefile.am): Likewise.
73060         * modules/same (Makefile.am): Likewise.
73061         * modules/save-cwd (Makefile.am): Likewise.
73062         * modules/savedir (Makefile.am): Likewise.
73063         * modules/setenv (Makefile.am): Likewise.
73064         * modules/settime (Makefile.am): Likewise.
73065         * modules/sha1 (Makefile.am): Likewise.
73066         * modules/sig2str (Makefile.am): Likewise.
73067         * modules/snprintf (Makefile.am): Likewise.
73068         * modules/stat-macros (Makefile.am): Likewise.
73069         * modules/stat-time (Makefile.am): Likewise.
73070         * modules/stdbool (Makefile.am): Likewise.
73071         * modules/stdint (Makefile.am): Likewise.
73072         * modules/stdlib-safer (Makefile.am): Likewise.
73073         * modules/stpcpy (Makefile.am): Likewise.
73074         * modules/stpncpy (Makefile.am): Likewise.
73075         * modules/strcase (Makefile.am): Likewise.
73076         * modules/strcasestr (Makefile.am): Likewise.
73077         * modules/strchrnul (Makefile.am): Likewise.
73078         * modules/strcspn (Makefile.am): Likewise.
73079         * modules/strdup (Makefile.am): Likewise.
73080         * modules/strerror (Makefile.am): Likewise.
73081         * modules/strftime (Makefile.am): Likewise.
73082         * modules/strndup (Makefile.am): Likewise.
73083         * modules/strnlen (Makefile.am): Likewise.
73084         * modules/strpbrk (Makefile.am): Likewise.
73085         * modules/strsep (Makefile.am): Likewise.
73086         * modules/strstr (Makefile.am): Likewise.
73087         * modules/strtod (Makefile.am): Likewise.
73088         * modules/strtoimax (Makefile.am): Likewise.
73089         * modules/strtok_r (Makefile.am): Likewise.
73090         * modules/strtol (Makefile.am): Likewise.
73091         * modules/strtoll (Makefile.am): Likewise.
73092         * modules/strtoul (Makefile.am): Likewise.
73093         * modules/strtoull (Makefile.am): Likewise.
73094         * modules/strtoumax (Makefile.am): Likewise.
73095         * modules/strverscmp (Makefile.am): Likewise.
73096         * modules/sys_socket (Makefile.am): Likewise.
73097         * modules/sys_stat (Makefile.am): Likewise.
73098         * modules/sysexits (Makefile.am): Likewise.
73099         * modules/time_r (Makefile.am): Likewise.
73100         * modules/timegm (Makefile.am): Likewise.
73101         * modules/timespec (Makefile.am): Likewise.
73102         * modules/tmpfile-safer (Makefile.am): Likewise.
73103         * modules/trim (Makefile.am): Likewise.
73104         * modules/unistd-safer (Makefile.am): Likewise.
73105         * modules/unlinkdir (Makefile.am): Likewise.
73106         * modules/unlocked-io (Makefile.am): Likewise.
73107         * modules/userspec (Makefile.am): Likewise.
73108         * modules/utime (Makefile.am): Likewise.
73109         * modules/utimecmp (Makefile.am): Likewise.
73110         * modules/utimens (Makefile.am): Likewise.
73111         * modules/vasnprintf (Makefile.am): Likewise.
73112         * modules/vasprintf (Makefile.am): Likewise.
73113         * modules/vsnprintf (Makefile.am): Likewise.
73114         * modules/xalloc (Makefile.am): Likewise.
73115         * modules/xgetcwd (Makefile.am): Likewise.
73116         * modules/xnanosleep (Makefile.am): Likewise.
73117         * modules/xreadlink (Makefile.am): Likewise.
73118         * modules/xstrtod (Makefile.am): Likewise.
73119         * modules/xstrtol (Makefile.am): Likewise.
73120         * modules/xstrtold (Makefile.am): Likewise.
73121         * modules/yesno (Makefile.am): Likewise.
73122         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73123
73124 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         * modules/error (Makefile.am): Distribute files through
73127         EXTRA_DIST, not lib_SOURCES.
73128
73129 2006-10-12  Eric Blake  <ebb9@byu.net>
73130
73131         * modules/error (Makefile.am): Distribute files in /lib.
73132         * modules/obstack (Makefile.am): Likewise.
73133
73134 2006-10-12  Bruno Haible  <bruno@clisp.org>
73135
73136         * modules/acl (Makefile.am): Distribute all files in lib/ through
73137         EXTRA_DIST.
73138         * modules/arcfour (Makefile.am): Likewise.
73139         * modules/arctwo (Makefile.am): Likewise.
73140         * modules/argmatch (Makefile.am): Likewise.
73141         * modules/argz (Makefile.am): Likewise.
73142         * modules/atexit (Makefile.am): Likewise.
73143         * modules/backupfile (Makefile.am): Likewise.
73144         * modules/c-strtod (Makefile.am): Likewise.
73145         * modules/c-strtold (Makefile.am): Likewise.
73146         * modules/calloc (Makefile.am): Likewise.
73147         * modules/canon-host (Makefile.am): Likewise.
73148         * modules/canonicalize (Makefile.am): Likewise.
73149         * modules/chdir-long (Makefile.am): Likewise.
73150         * modules/chdir-safer (Makefile.am): Likewise.
73151         * modules/check-version (Makefile.am): Likewise.
73152         * modules/chown (Makefile.am): Likewise.
73153         * modules/cloexec (Makefile.am): Likewise.
73154         * modules/close-stream (Makefile.am): Likewise.
73155         * modules/closeout (Makefile.am): Likewise.
73156         * modules/crc (Makefile.am): Likewise.
73157         * modules/cycle-check (Makefile.am): Likewise.
73158         * modules/des (Makefile.am): Likewise.
73159         * modules/dirfd (Makefile.am): Likewise.
73160         * modules/dirname (Makefile.am): Likewise.
73161         * modules/dup2 (Makefile.am): Likewise.
73162         * modules/euidaccess (Makefile.am): Likewise.
73163         * modules/exclude (Makefile.am): Likewise.
73164         * modules/exitfail (Makefile.am): Likewise.
73165         * modules/fcntl-safer (Makefile.am): Likewise.
73166         * modules/file-type (Makefile.am): Likewise.
73167         * modules/fileblocks (Makefile.am): Likewise.
73168         * modules/filemode (Makefile.am): Likewise.
73169         * modules/filenamecat (Makefile.am): Likewise.
73170         * modules/fnmatch (Makefile.am): Likewise.
73171         * modules/fopen-safer (Makefile.am): Likewise.
73172         * modules/fpending (Makefile.am): Likewise.
73173         * modules/fprintftime (Makefile.am): Likewise.
73174         * modules/free (Makefile.am): Likewise.
73175         * modules/fsusage (Makefile.am): Likewise.
73176         * modules/ftruncate (Makefile.am): Likewise.
73177         * modules/fts (Makefile.am): Likewise.
73178         * modules/gc (Makefile.am): Likewise.
73179         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73180         * modules/getaddrinfo (Makefile.am): Likewise.
73181         * modules/getcwd (Makefile.am): Likewise.
73182         * modules/getdelim (Makefile.am): Likewise.
73183         * modules/getdomainname (Makefile.am): Likewise.
73184         * modules/getgroups (Makefile.am): Likewise.
73185         * modules/gethostname (Makefile.am): Likewise.
73186         * modules/gethrxtime (Makefile.am): Likewise.
73187         * modules/getline (Makefile.am): Likewise.
73188         * modules/getloadavg (Makefile.am): Likewise.
73189         * modules/getlogin_r (Makefile.am): Likewise.
73190         * modules/getopt (Makefile.am): Likewise.
73191         * modules/getpass (Makefile.am): Likewise.
73192         * modules/getpass-gnu (Makefile.am): Likewise.
73193         * modules/getsubopt (Makefile.am): Likewise.
73194         * modules/gettime (Makefile.am): Likewise.
73195         * modules/gettimeofday (Makefile.am): Likewise.
73196         * modules/getugroups (Makefile.am): Likewise.
73197         * modules/getusershell (Makefile.am): Likewise.
73198         * modules/glob (Makefile.am): Likewise.
73199         * modules/group-member (Makefile.am): Likewise.
73200         * modules/hard-locale (Makefile.am): Likewise.
73201         * modules/hash (Makefile.am): Likewise.
73202         * modules/hmac-md5 (Makefile.am): Likewise.
73203         * modules/hmac-sha1 (Makefile.am): Likewise.
73204         * modules/human (Makefile.am): Likewise.
73205         * modules/idcache (Makefile.am): Likewise.
73206         * modules/imaxabs (Makefile.am): Likewise.
73207         * modules/imaxdiv (Makefile.am): Likewise.
73208         * modules/inet_ntop (Makefile.am): Likewise.
73209         * modules/inet_pton (Makefile.am): Likewise.
73210         * modules/inttostr (Makefile.am): Likewise.
73211         * modules/isapipe (Makefile.am): Likewise.
73212         * modules/lchown (Makefile.am): Likewise.
73213         * modules/long-options (Makefile.am): Likewise.
73214         * modules/lstat (Makefile.am): Likewise.
73215         * modules/malloc (Makefile.am): Likewise.
73216         * modules/mathl (Makefile.am): Likewise.
73217         * modules/mbchar (Makefile.am): Likewise.
73218         * modules/md2 (Makefile.am): Likewise.
73219         * modules/md4 (Makefile.am): Likewise.
73220         * modules/md5 (Makefile.am): Likewise.
73221         * modules/memcasecmp (Makefile.am): Likewise.
73222         * modules/memchr (Makefile.am): Likewise.
73223         * modules/memcmp (Makefile.am): Likewise.
73224         * modules/memcoll (Makefile.am): Likewise.
73225         * modules/memcpy (Makefile.am): Likewise.
73226         * modules/memmem (Makefile.am): Likewise.
73227         * modules/memmove (Makefile.am): Likewise.
73228         * modules/mempcpy (Makefile.am): Likewise.
73229         * modules/memrchr (Makefile.am): Likewise.
73230         * modules/memset (Makefile.am): Likewise.
73231         * modules/memxor (Makefile.am): Likewise.
73232         * modules/mkancesdirs (Makefile.am): Likewise.
73233         * modules/mkdir (Makefile.am): Likewise.
73234         * modules/mkdir-p (Makefile.am): Likewise.
73235         * modules/mkdtemp (Makefile.am): Likewise.
73236         * modules/mkstemp (Makefile.am): Likewise.
73237         * modules/mktime (Makefile.am): Likewise.
73238         * modules/modechange (Makefile.am): Likewise.
73239         * modules/mountlist (Makefile.am): Likewise.
73240         * modules/nanosleep (Makefile.am): Likewise.
73241         * modules/openat (Makefile.am): Likewise.
73242         * modules/pagealign_alloc (Makefile.am): Likewise.
73243         * modules/physmem (Makefile.am): Likewise.
73244         * modules/poll (Makefile.am): Likewise.
73245         * modules/posixtm (Makefile.am): Likewise.
73246         * modules/posixver (Makefile.am): Likewise.
73247         * modules/putenv (Makefile.am): Likewise.
73248         * modules/quote (Makefile.am): Likewise.
73249         * modules/quotearg (Makefile.am): Likewise.
73250         * modules/raise (Makefile.am): Likewise.
73251         * modules/read-file (Makefile.am): Likewise.
73252         * modules/readline (Makefile.am): Likewise.
73253         * modules/readlink (Makefile.am): Likewise.
73254         * modules/readtokens (Makefile.am): Likewise.
73255         * modules/readutmp (Makefile.am): Likewise.
73256         * modules/realloc (Makefile.am): Likewise.
73257         * modules/regex (Makefile.am): Likewise.
73258         * modules/rename (Makefile.am): Likewise.
73259         * modules/rename-dest-slash (Makefile.am): Likewise.
73260         * modules/rijndael (Makefile.am): Likewise.
73261         * modules/rmdir (Makefile.am): Likewise.
73262         * modules/rpmatch (Makefile.am): Likewise.
73263         * modules/safe-read (Makefile.am): Likewise.
73264         * modules/safe-write (Makefile.am): Likewise.
73265         * modules/same (Makefile.am): Likewise.
73266         * modules/save-cwd (Makefile.am): Likewise.
73267         * modules/savedir (Makefile.am): Likewise.
73268         * modules/setenv (Makefile.am): Likewise.
73269         * modules/settime (Makefile.am): Likewise.
73270         * modules/sha1 (Makefile.am): Likewise.
73271         * modules/sig2str (Makefile.am): Likewise.
73272         * modules/snprintf (Makefile.am): Likewise.
73273         * modules/stdlib-safer (Makefile.am): Likewise.
73274         * modules/stpcpy (Makefile.am): Likewise.
73275         * modules/stpncpy (Makefile.am): Likewise.
73276         * modules/strcase (Makefile.am): Likewise.
73277         * modules/strcasestr (Makefile.am): Likewise.
73278         * modules/strchrnul (Makefile.am): Likewise.
73279         * modules/strcspn (Makefile.am): Likewise.
73280         * modules/strdup (Makefile.am): Likewise.
73281         * modules/strerror (Makefile.am): Likewise.
73282         * modules/strftime (Makefile.am): Likewise.
73283         * modules/strndup (Makefile.am): Likewise.
73284         * modules/strnlen (Makefile.am): Likewise.
73285         * modules/strpbrk (Makefile.am): Likewise.
73286         * modules/strsep (Makefile.am): Likewise.
73287         * modules/strstr (Makefile.am): Likewise.
73288         * modules/strtod (Makefile.am): Likewise.
73289         * modules/strtoimax (Makefile.am): Likewise.
73290         * modules/strtok_r (Makefile.am): Likewise.
73291         * modules/strtol (Makefile.am): Likewise.
73292         * modules/strtoll (Makefile.am): Likewise.
73293         * modules/strtoul (Makefile.am): Likewise.
73294         * modules/strtoull (Makefile.am): Likewise.
73295         * modules/strtoumax (Makefile.am): Likewise.
73296         * modules/strverscmp (Makefile.am): Likewise.
73297         * modules/time_r (Makefile.am): Likewise.
73298         * modules/timegm (Makefile.am): Likewise.
73299         * modules/tmpfile-safer (Makefile.am): Likewise.
73300         * modules/unistd-safer (Makefile.am): Likewise.
73301         * modules/unlinkdir (Makefile.am): Likewise.
73302         * modules/userspec (Makefile.am): Likewise.
73303         * modules/utime (Makefile.am): Likewise.
73304         * modules/utimecmp (Makefile.am): Likewise.
73305         * modules/utimens (Makefile.am): Likewise.
73306         * modules/vasnprintf (Makefile.am): Likewise.
73307         * modules/vasprintf (Makefile.am): Likewise.
73308         * modules/vsnprintf (Makefile.am): Likewise.
73309         * modules/xalloc (Makefile.am): Likewise.
73310         * modules/xgetcwd (Makefile.am): Likewise.
73311         * modules/xnanosleep (Makefile.am): Likewise.
73312         * modules/xreadlink (Makefile.am): Likewise.
73313         * modules/xstrtod (Makefile.am): Likewise.
73314         * modules/xstrtol (Makefile.am): Likewise.
73315         * modules/xstrtold (Makefile.am): Likewise.
73316         * modules/yesno (Makefile.am): Likewise.
73317
73318 2006-10-12  Jim Meyering  <jim@meyering.net>
73319
73320         * m4/getloadavg.m4: Revert the change below.
73321
73322         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73323         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73324         fail with a symlink, which is what coreutils' ./bootstrap now
73325         creates by default.
73326
73327 2006-10-12  Bruno Haible  <bruno@clisp.org>
73328
73329         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73330         mingw.
73331         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73332         MSVC and mingw explicitly.
73333
73334 2006-10-11  Simon Josefsson  <jas@extundo.com>
73335             Bruno Haible  <bruno@clisp.org>
73336
73337         Add support for multiple gnulib-tool invocations in the scope of a
73338         single configure.ac file.
73339         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73340         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73341         with the same contents as the _LIBADD variable.
73342         (func_emit_initmacro_start, func_emit_initmacro_end,
73343         func_emit_initmacro_done): New functions.
73344         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73345         gl_LIBOBJS and gl_LTLIBOBJS.
73346
73347 2006-10-11  Bruno Haible  <bruno@clisp.org>
73348
73349         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73350         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73351         autoreconf. Instead, invoke autopoint explicitly but move back the
73352         *.m4 files from gnulib.
73353
73354 2006-10-11  Bruno Haible  <bruno@clisp.org>
73355
73356         * gnulib-tool (func_usage): Make module names after --create-testdir
73357         optional.
73358         (func_create_testdir): If no module was specified, use nearly all
73359         modules.
73360
73361 2006-10-12  Jim Meyering  <jim@meyering.net>
73362
73363         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73364         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73365         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73366         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73367         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73368         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73369         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73370         (fts_set_stat_required): New function.
73371         (fts_open): Defer the calls to fts_stat, if possible or requested.
73372         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73373         into fts_stat itself.
73374         (fts_read): Perform any required (deferred) fts_stat call.
73375         (fts_build): Likewise, for the directory we're about to open and read.
73376         In the readdir loop, carefully decide whether each entry will require
73377         an eventual call to fts_stat, using dirent.d_type info if available.
73378         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73379         a command line argument into this function.  Update all callers.
73380         Map a return value of FTS_DOT to FTS_D for a command line argument.
73381         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73382         Thanks to Miklos Szeredi for his tenacity and for the initial
73383         bug report about "find" failing on a FUSE-based file system.
73384
73385         * lib/fts.c (fts_open): Use consistent indentation.
73386
73387 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73388
73389         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73390         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73391         reported by Jim Meyering.  All uses of cache variables renamed
73392         to match Autoconf's.
73393         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73394         the other one.
73395
73396         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73397         Fix misspelling in diagnostic.
73398
73399 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73402         defined.  Problem reported by Matthew Woehlke.
73403
73404         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73405         Add support for Tandem NonStop R series.
73406         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73407         Use new macro.
73408
73409         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73410         (has_trailing_slash): Omit size arg; all callers changed.
73411         Omit 'inline', since it doesn't help performance and we'd
73412         need to configure it.
73413         Don't count //, ///, etc. as having a trailing slash.
73414         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73415         (rpl_rename_dest_slash): On failure, use rename's errno rather
73416         than (in some cases) an incorrect or junk errno.
73417         Simplify code by removing need to compute length; this does
73418         cause it to make two passes instead of one over the file name,
73419         but it's worth it.
73420
73421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73422         change, since Autoconf's version may no longer be appropriate now
73423         that we are using CVS Autoconf's version.  Add support for Tandem.
73424
73425 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73426             Bruno Haible  <bruno@clisp.org>
73427
73428         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73429         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73430         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73431         gl_AC_TYPE_LONG_LONG.
73432
73433         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73434         instead of HAVE_LONG_LONG.
73435         * lib/printf-args.c (printf_fetchargs): Likewise.
73436         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73437         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73438         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73439         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73440         gl_AC_TYPE_LONG_LONG.
73441
73442 2006-10-11  Bruno Haible  <bruno@clisp.org>
73443
73444         * m4/longlong.m4: Add comments.
73445         * m4/ulonglong.m4: Likewise.
73446
73447 2006-10-10  Bruno Haible  <bruno@clisp.org>
73448
73449         Make it possible to #define stpcpy, strdup to aliases.
73450         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73451         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73452
73453 2006-10-10  Bruno Haible  <bruno@clisp.org>
73454
73455         Make it possible to #define gcd to an alias.
73456         * lib/gcd.c: Include config.h.
73457
73458 2006-10-10  Bruno Haible  <bruno@clisp.org>
73459
73460         Make it possible to #define c_isascii to an alias.
73461         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73462         defined. Undefine the macros before defining them, to avoid gcc
73463         warnings.
73464         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73465         define NO_C_CTYPE_MACROS early.
73466
73467 2006-10-10  Bruno Haible  <bruno@clisp.org>
73468
73469         Make it possible to #define set_program_name to an alias.
73470         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73471         ENABLE_RELOCATABLE early.
73472
73473 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73476         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73477         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73478         More generally, don't assume that 64-bit signed int is available
73479         if unsigned int is, and vice versa.
73480         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73481         unsigned symbols, not on their signed counterparts.
73482         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73483         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73484         (UINT64_C, UINTMAX_C):
73485         Likewise.
73486         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73487         unsigned counterparts.
73488         (Have_long_long, Unsigned): New macros.
73489         (Int): Renamed from INT.
73490         (strtoimax): Use the new macros.
73491         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73492         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73493         * modules/inttypes (inttypes.h): Substitute
73494         HAVE_UNSIGNED_LONG_LONG_INT.
73495         * modules/stdint (stdint.h): Likewise.
73496         (Files): Add m4/ulonglong.m4.
73497
73498 2006-10-10  Bruno Haible  <bruno@clisp.org>
73499
73500         Fix a gcc -Wshadow warning.
73501         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73502         to 'bucket'.
73503         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73504         gl_linked_indexof_from_to): Likewise.
73505         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73506         Likewise.
73507         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73508         Likewise.
73509         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73510         Reported by Eric Blake.
73511
73512 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73515         for NetBSD.  Problem reported by Bruno Haible.
73516
73517 2006-10-09  Jim Meyering  <jim@meyering.net>
73518
73519         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73520         Patch from Bruno Haible.
73521
73522 2006-10-09  Jim Meyering  <jim@meyering.net>
73523
73524         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73525         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73526         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73527
73528 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73529
73530         Don't include <config.h> twice; this doesn't work in some cases,
73531         e.g., when config.h has "#define intmax_t long long int" and
73532         we include <config.h>, <inttypes.h>, <config.h> in that order.
73533         Problem reported by Matthew Woehlke in:
73534         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73535         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73536         * lib/fts-cycle.c: Don't include config.h.
73537         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73538         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73539         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73540         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73541         inttypes.h.
73542         * lib/xstrtoumax.c: Likewise.
73543         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73544         __strtol and the like, so that this module is more like its siblings.
73545         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73546         Remove; no longer needed now that we assume gnulib inttypes.h.
73547
73548 2006-10-08  Bruno Haible  <bruno@clisp.org>
73549
73550         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73551         option.
73552
73553 2006-10-07  Jim Meyering  <jim@meyering.net>
73554
73555         * modules/inttypes (inttypes.h): Revert what seems to have been
73556         an inadvertent part of today's change: use "|", not "/" in the
73557         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73558
73559 2006-10-07  Bruno Haible  <bruno@clisp.org>
73560
73561         * modules/sublist: New file.
73562
73563 2006-10-07  Bruno Haible  <bruno@clisp.org>
73564
73565         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73566         * modules/argz (argz.h): Likewise.
73567         * modules/arpa_inet (arpa/inet.h): Likewise.
73568         * modules/byteswap (byteswap.h): Likewise.
73569         * modules/configmake (configmake.h): Likewise.
73570         * modules/fcntl (fcntl.h): Likewise.
73571         * modules/fnmatch (fnmatch.h): Likewise.
73572         * modules/getopt (getopt.h): Likewise.
73573         * modules/glob (glob.h): Likewise.
73574         * modules/inttypes (inttypes.h): Likewise.
73575         * modules/netinet_in (netinet/in.h): Likewise.
73576         * modules/poll (poll.h): Likewise.
73577         * modules/stdbool (stdbool.h): Likewise.
73578         * modules/stdint (stdint.h): Likewise.
73579         * modules/sys_select (sys/select.h): Likewise.
73580         * modules/sys_socket (sys/socket.h): Likewise.
73581         * modules/sys_stat (sys/stat.h): Likewise.
73582         * modules/sysexits (sysexits.h): Likewise.
73583         * modules/unistd (unistd.h): Likewise.
73584         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73585         Add a "DO NOT EDIT" comment to the generated file.
73586         (func_import): Likewise for gnulib-comp.m4.
73587
73588 2006-10-07  Bruno Haible  <bruno@clisp.org>
73589
73590         * lib/gl_sublist.h: New file.
73591         * lib/gl_sublist.c: New file.
73592
73593 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73594
73595         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73596         name (relative to the original working directory) and the file
73597         name component (relative to the temporary working directory).  All
73598         callers changed.
73599         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73600         * lib/mkdir-p.c (make_dir_parents): Likewise.
73601         * lib/mkdir-p.h (make_dir_parents): Likewise.
73602
73603 2006-10-06  Eric Blake  <ebb9@byu.net>
73604
73605         Define several macros for use by the clean-temp module.
73606         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73607         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73608         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73609
73610         * lib/clean-temp.h (close_stream_temp): New declaration.
73611         * lib/clean-temp.c (includes): Pull in headers according to what
73612         other modules are in use.
73613         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73614
73615 2006-10-06  Bruno Haible  <bruno@clisp.org>
73616
73617         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73618         instead of fopen, fwriteerror.
73619
73620 2006-10-06  Bruno Haible  <bruno@clisp.org>
73621
73622         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73623         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73624         int.
73625         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73626         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73627         Return an error indicator.
73628         Suggested by Eric Blake.
73629
73630 2006-10-06  Bruno Haible  <bruno@clisp.org>
73631
73632         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73633         Reported by Eric Blake.
73634
73635 2006-10-06  Bruno Haible  <bruno@clisp.org>
73636
73637         * modules/closeout (Description): Mention stderr too.
73638
73639 2006-10-06  Bruno Haible  <bruno@clisp.org>
73640         and Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * lib/closeout.c (close_stdout): Also close stderr.
73643         * lib/closeout.h: Update comment.
73644
73645 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73648         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73649         * lib/dirchownmod.c: Include lchown.h.
73650         * lib/lchown.c: Don't include files that lchown.h now includes.
73651         Don't declare chown, since lchown.h now does that.
73652         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73653         (lchown): Define to rpl_chown if lchown is declared but
73654         does not exist.  Declare using a prototype if lchown is not
73655         declared.  Add a copyright notice.
73656         * lib/mkstemp.h: Include <unistd.h>.
73657         * lib/openat.c: Include lchown.h.
73658
73659         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73660         we now test for that separately.
73661         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73662         rather than O_NOFOLLOW, when testing whether it's possible to
73663         avoid a race condition reliably.
73664         * lib/savewd.c (savewd_chdir): Likewise.
73665
73666         Remove macros that are no longer needed now that stdint.h is
73667         reliable.
73668         * lib/fsusage.c (UINTMAX_MAX): Remove.
73669         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73670         * lib/utimecmp.c (SIZE_MAX): Remove.
73671
73672         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73673
73674         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73675         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73676         O_NOATIME works.
73677
73678 2006-10-05  Bruno Haible  <bruno@clisp.org>
73679
73680         * lib/gl_list.h (gl_sortedlist_search_from_to,
73681         gl_sortedlist_indexof_from_to): New declarations.
73682         (gl_list_implementation): New fields sortedlist_search_from_to,
73683         sortedlist_indexof_from_to.
73684         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73685         inline functions.
73686         * lib/gl_list.c (gl_sortedlist_search_from_to,
73687         gl_sortedlist_indexof_from_to): New functions.
73688         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73689         function.
73690         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73691         (gl_array_sortedlist_search_from_to): New function.
73692         (gl_array_list_implementation): Update.
73693         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73694         function.
73695         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73696         (gl_carray_sortedlist_search_from_to): New function.
73697         (gl_carray_list_implementation): Update.
73698         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73699         gl_linked_sortedlist_indexof_from_to): New functions.
73700         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73701         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73702         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73703         gl_tree_sortedlist_indexof_from_to): New functions.
73704         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73705         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73706         Update.
73707         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73708         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73709         Update.
73710
73711 2006-10-05  Bruno Haible  <bruno@clisp.org>
73712
73713         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73714         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73715         (struct gl_list_implementation): Add fields search_from_to,
73716         indexof_from_to. Remove fields search, indexof.
73717         (gl_list_search): Use the search_from_to method.
73718         (gl_list_search_from, gl_list_search_from_to): New functions.
73719         (gl_list_indexof): Use the indexof_from_to method.
73720         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73721         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73722         (gl_list_search_from, gl_list_search_from_to): New functions.
73723         (gl_list_indexof): Use the indexof_from_to method.
73724         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73725         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73726         gl_array_indexof. Add start_index, end_index arguments.
73727         (gl_array_search_from_to): Renamed from gl_array_search. Add
73728         start_index, end_index arguments.
73729         (gl_array_remove, gl_array_list_implementation): Update.
73730         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73731         gl_carray_indexof. Add start_index, end_index arguments.
73732         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73733         start_index, end_index arguments.
73734         (gl_carray_remove, gl_carray_list_implementation): Update.
73735         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73736         gl_linked_search. Add start_index, end_index arguments.
73737         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73738         start_index, end_index arguments.
73739         (gl_linked_remove): Update.
73740         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73741         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73742         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73743         field to 'size_t'.
73744         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73745         gl_tree_search. Add start_index, end_index arguments.
73746         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73747         start_index, end_index arguments.
73748         (gl_tree_remove): Update.
73749         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73750         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73751         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73752         function.
73753         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73754         gl_tree_search. Add start_index, end_index arguments.
73755         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73756         start_index, end_index arguments.
73757         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73758         Update.
73759         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73760
73761 2006-10-05  Bruno Haible  <bruno@clisp.org>
73762
73763         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73764
73765         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73766         fwriteerror_temp): New declarations.
73767         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73768         (descriptors): New variable.
73769         (cleanup): First, close the descriptors.
73770         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73771         fclose_temp, fwriteerror_temp): New functions.
73772
73773 2006-10-04  Jim Meyering  <jim@meyering.net>
73774
73775         * lib/fts.c (fts_open): Tiny comment change.
73776
73777 2006-10-04  Bruno Haible  <bruno@clisp.org>
73778
73779         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73780         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73781         gl_LOCK_BODY.
73782         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73783         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73784         gl_LOCK_EARLY_BODY.
73785         (gl_LOCK): Require gl_LOCK_BODY.
73786
73787 2006-10-04  Bruno Haible  <bruno@clisp.org>
73788
73789         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73790         (gl_oset_search_atleast): New declaration.
73791         (struct gl_oset_implementation): Add field 'search_atleast'.
73792         (gl_oset_search_atleast): New inline function.
73793         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73794         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73795         (gl_array_oset_implementation): Update.
73796         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73797         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73798         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73799
73800 2006-10-04  Bruno Haible  <bruno@clisp.org>
73801
73802         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73803
73804 2006-10-03  Bruno Haible  <bruno@clisp.org>
73805
73806         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73807         from gl_avltreehash_list_implementation.
73808
73809 2006-10-03  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/gl_oset.c (gl_oset_add): Fix return type.
73812
73813 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73814
73815         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73816
73817 2006-10-02  Eric Blake  <ebb9@byu.net>
73818
73819         * modules/strnlen (Depends-on): Add extensions.
73820
73821 2006-10-02  Eric Blake  <ebb9@byu.net>
73822
73823         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73824         definition in 2.60+.
73825
73826 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73827
73828         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73829         checks.
73830
73831 2006-10-02  Bruno Haible  <bruno@clisp.org>
73832
73833         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73834         to the AUTOMAKE_OPTIONS.
73835         Reported by Jim Meyering.
73836
73837 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         Work around bug in Solaris 10 /proc file system:
73840         /proc/self/fd/NNN/.. isn't the parent directory of
73841         the directory whose file descriptor is NNN.  This needs to
73842         be worked around at run time, not compile time, since a
73843         program might be built on Solaris 8, where things work, and
73844         run on Solaris 10.
73845         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73846         to use the following interface instead:
73847         (OPENAT_BUFFER_SIZE): New macro.
73848         (openat_proc_name): New function.
73849         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73850         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73851         Likewise.
73852         * lib/openat-proc.c: New file.
73853         * modules/openat (Files): Add lib/openat-proc.c.
73854         (Depends-on): Add same-inode, stdbool.
73855         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73856
73857 2006-09-29  Bruno Haible  <bruno@clisp.org>
73858
73859         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73860         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73861         argument. Set stdout_closed before testing for ferror, not after.
73862         (fwriteerror, fwriteerror_no_ebadf): New functions.
73863
73864 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73865
73866         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73867
73868 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73869
73870         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73871         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73872
73873 2006-09-28  Jim Meyering  <jim@meyering.net>
73874
73875         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73876         Include <unistd.h>.
73877
73878 2006-09-28  Bruno Haible  <bruno@clisp.org>
73879
73880         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73881         * modules/linkedhash-list (Depends-on): Likewise.
73882         * modules/rbtreehash-list (Depends-on): Likewise.
73883
73884 2006-09-28  Bruno Haible  <bruno@clisp.org>
73885
73886         * lib/strndup.h: Simplify the redefinition of strndup.
73887         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73888         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73889
73890 2006-09-28  Bruno Haible  <bruno@clisp.org>
73891
73892         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73893         * lib/gl_linkedhash_list.c: Likewise.
73894         * lib/gl_rbtreehash_list.c: Likewise.
73895
73896 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73899         getaddrinfo.
73900
73901         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73902         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73903         it causes <stdio_ext.h> to cause a compile-time error.
73904         Problem reported by Nelson H. F. Beebe.
73905         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73906         of HAVE_DECL___PENDING.
73907
73908         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73909         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73910         declaration.
73911
73912 2006-09-27  Jim Meyering  <jim@meyering.net>
73913
73914         This file could end up with a definition for a function
73915         named __strndup, rather than rpl_strndup on a system with
73916         incomplete weak_alias support.
73917         * lib/strndup.c (strndup): Rename from __strndup.
73918         Remove #defines that used to map __strndup to strndup.
73919         Don't use K&R prototypes.
73920         Remove LIBC-related code, since this file is not sync'd with glibc.
73921         * lib/strndup.h: Revamp, accordingly.
73922         * m4/strndup.m4: Modernize.
73923
73924 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * modules/savewd (Depends-on): Add 'raise'.
73927         * lib/savewd.c: Include <signal.h>, for 'raise'.
73928
73929 2006-09-26  Jim Meyering  <jim@meyering.net>
73930
73931         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73932         when we detect Darwin 8.7.0's acl_get_file bug.
73933         Rearrange to perform the new (below) run-test while $LIBS
73934         contains any acl-related library.  Set USE_ACL at the end.
73935         (gl_ACL_GET_FILE): New function.
73936
73937 2006-09-26  Eric Blake  <ebb9@byu.net>
73938
73939         * lib/verror.c: Include <config.h> unconditionally.
73940
73941 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * modules/clock-time (Maintainer): Add self.
73944         * modules/getlogin_r (Depends-on): Add extensions.
73945
73946 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73947
73948         * modules/clock-time: New module.
73949         * modules/nanosleep (Depends-on): Add clock-time.
73950         * modules/gethrxtime (Depends-on): Likewise.
73951         * modules/gettime (Depends-on): Likewise.
73952         * modules/settime (Depends-on): Likewise.
73953
73954         * modules/fts-lgpl: Depend on openat.
73955         * modules/mkancesdirs: Depend on savewd.
73956         * modules/mkdir-p: Likewise.
73957
73958 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73959
73960         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73961
73962         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73963         `gl_have_arbitrary_file_name_length_limit' to
73964         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73965         actually works between configure runs.
73966
73967 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73968             Bruno Haible  <bruno@clisp.org>
73969
73970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73971
73972 2006-09-25  Jim Meyering  <jim@meyering.net>
73973
73974         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73975         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73976
73977 2006-09-25  Eric Blake  <ebb9@byu.net>
73978
73979         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73980         exec's in 2006-09-18 patch when shuffling fds.
73981
73982 2006-09-25  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73985         Reported by Jim Meyering.
73986
73987 2006-09-24  Jim Meyering  <jim@meyering.net>
73988
73989         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73990         compare a pointer against a literal "0".  That caused failures with
73991         at least HP-UX's hpcc.
73992
73993 2006-09-22  Simon Josefsson  <jas@extundo.com>
73994
73995         * modules/gc-sha1:
73996         * modules/gc-md4:
73997         * modules/gc-hmac-sha1:
73998         * modules/gc-hmac-md5:
73999         * modules/gc-des:
74000         * modules/gc-arcfour: Distribute more files.
74001
74002 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74003
74004         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74005         (gl_linked_iterator_from_to): Initialize struct completely.
74006         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74007         (gl_tree_iterator_from_to): Likewise
74008         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74009         * lib/gl_array_list.c [lint] (gl_array_iterator)
74010         (gl_array_iterator_from_to): Likewise.
74011         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74012         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74013         (gl_carray_iterator_from_to): Likewise.
74014
74015         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74016         * lib/md4.c (md4_process_block): Remove unused variable.
74017         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74018         parentheses for clarity.
74019
74020 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74021
74022         * modules/bison-i18n (Depends-on): Add gettext.
74023
74024 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74025
74026         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74027         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74028         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74029         also add missing comma that caused broken test.
74030         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74031         stdlib.h, for `abort'.
74032         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74033         variables.
74034         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74035         include unistd.h if present, for `rmdir'.
74036         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74037         variables.
74038         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74039         in the process include standard headers for prototypes.
74040         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74041         gets declared on GNU/Linux.
74042         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74043         unistd.h, for `rmdir'.
74044         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74045
74046         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74047         always true.
74048         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74049
74050         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74051
74052 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74053
74054         * gnulib-tool (func_version): Create output all at once.  This
74055         may help avoid triggering unnecessary SIGPIPEs, and at any
74056         rate it doesn't hurt.
74057
74058 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74059             Bruno Haible  <bruno@clisp.org>
74060
74061         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74062         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74063         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74064
74065         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74066         (gl_FUNC_VASPRINTF): Invoke it.
74067
74068 2006-09-22  Bruno Haible  <bruno@clisp.org>
74069
74070         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74071         getloadavg.c as first argument.
74072
74073 2006-09-22  Bruno Haible  <bruno@clisp.org>
74074
74075         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74076         at the beginning of the gl_INIT macro.
74077         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74078         gl_GETLOADAVG.
74079
74080 2006-09-22  Bruno Haible  <bruno@clisp.org>
74081
74082         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74083         module.
74084         Suggested by Ralf Wildenhues.
74085
74086 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74087
74088         Import this patch from libc:
74089
74090         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74091
74092         * lib/regex_internal.c (re_string_reconstruct): Handle
74093         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74094         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74095         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74096         re_string_context_at.
74097
74098         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74099         now requires it.
74100         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74101         gl_REGEX now does it for us.
74102         (gl_REGEX): Add test taken from
74103         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74104
74105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74106         Check that large offsets work.  Modernize Autoconf usages.
74107         Prefer "yes" to mean a good thing rather than a bad.
74108         Don't put "#define mkstemp" in config.h, as this might interfere
74109         with standard system headers that "#define mkstemp mkstemp64".
74110
74111         * modules/mkstemp (Depends-on): Add extensions, so that
74112         mkstemp is visible on some platforms.
74113         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74114         (Include): Change to "mkstemp.h" from <stdlib.h>.
74115         (Files): Add mkstemp.h.
74116
74117         * lib/mkstemp.h: New file, since some standard headers
74118         #define mkstemp.
74119         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74120         Include "mkstemp.h".
74121         Make the _LIBC code resemble glibc original more,
74122         e.g., use K&R style.
74123         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74124         (mkstemp): Remove, since mkstemp.h does this for us.
74125         * lib/stdlib--.h: Include mkstemp.h.
74126
74127         Import this patch from libc:
74128
74129         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74130
74131         * lib/tempname.c (__gen_tempname): Change attempts_min
74132         into a macro.  Use preprocessor to decide how to initialize
74133         attempts [Coverity CID 67].
74134
74135 2006-09-20  Bruno Haible  <bruno@clisp.org>
74136
74137         * lib/mkdtemp.c: Import from libc.
74138         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74139                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74140                 attempts_min into a macro.  Use preprocessor to decide how to
74141                 initialize attempts [Coverity CID 67].
74142         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74143                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74144                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74145
74146 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74147
74148         * gnulib-tool (func_exit): New function, to allow to pass the
74149         exit status portably through the trap.  Use everywhere.
74150         (--help, --version): Signal a write error.
74151         (trap): catch SIGPIPE, for write errors.
74152         Exit at the end of the trap, with the correct exit status.
74153
74154 2006-09-19  Karl Berry  <karl@gnu.org>
74155
74156         * doc/gnulib.texi: note about the license texinfo files.
74157
74158 2006-09-19  Eric Blake  <ebb9@byu.net>
74159
74160         * gnulib-tool: Avoid space-tab.
74161
74162 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74165         that prevented coreutils 6.1 from building.  Problem reported
74166         by Petter Reinholdtsen.
74167
74168 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74169
74170         * gnulib-tool (avoidlist): Fix typo that broke options like
74171         --avoid=lock that are used by coreutils bootstrap.
74172
74173 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74174
74175         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74176         more systematically.
74177
74178 2006-09-18  Jim Meyering  <jim@meyering.net>
74179
74180         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74181
74182 2006-09-18  Bruno Haible  <bruno@clisp.org>
74183
74184         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74185
74186 2006-09-18  Bruno Haible  <bruno@clisp.org>
74187
74188         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74189         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74190         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74191         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74192         * m4/gettext.m4: Require autoconf >= 2.52.
74193         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74194         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74195         of gl_cv_header_inttypes_h.
74196
74197 2006-09-18  Bruno Haible  <bruno@clisp.org>
74198
74199         * lib/javaversion.c: Include configmake.h.
74200
74201 2006-09-18  Bruno Haible  <bruno@clisp.org>
74202
74203         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74204         avoid that the while loops be executed in a subshell.
74205
74206 2006-09-18  Bruno Haible  <bruno@clisp.org>
74207
74208         * MODULES.html.sh (func_module): Break long lines.
74209         Suggested by Bruce Korb <bkorb@gnu.org>.
74210
74211 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74212
74213         Speed up by a factor of 1.12.
74214         * gnulib-tool (nl): New variable.
74215         (func_import): Rewrite include directive extraction to only read each
74216         directive once.
74217
74218 2006-09-17  Bruno Haible  <bruno@clisp.org>
74219
74220         * modules/javaversion (Makefile.am): Remove DEFS setting.
74221         (Depends-on): Add configmake, for PKGDATADIR definition.
74222
74223 2006-09-17  Bruno Haible  <bruno@clisp.org>
74224
74225         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74226
74227 2006-09-17  Bruno Haible  <bruno@clisp.org>
74228
74229         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74230         (func_modules_transitive_closure, func_modules_add_dummy,
74231         func_modules_to_filelist, func_import, func_create_testdir,
74232         func_create_megatestdir, ...): Use it wherever possible.
74233         Suggested by Ralf Wildenhues.
74234
74235 2006-09-16  Karl Berry  <karl@gnu.org>
74236
74237         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74238         to avoid sectioning errors.
74239         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74240         [ifinfo]: blank line after @center-ed titles.
74241         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74242         Spell FSF address consistently with others.
74243         (These changes approved by rms.)
74244
74245 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74246
74247         Speed up by a factor of 1.61.
74248         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74249         already checked module names again.
74250
74251 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74252
74253         Speed up by a factor of 1.13.
74254         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74255         for new_files, and the input to func_add_or_update.
74256
74257 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74258
74259         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74260         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74261
74262 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         * modules/mkancesdirs (Depends-on): Add fcntl.
74265         * modules/savewd: New file.
74266         * MODULES.html.sh (File system functions): Add savewd.
74267
74268         * modules/configmake (Makefile.am): Add support for the
74269         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74270
74271 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         * m4/savewd.m4: New file.
74274
74275 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74278         (dirchownmod): New arg FD.  All callers changed.
74279         Use FD rather than opening the directory ourself, as opening is
74280         now the caller's responsibility.
74281         * lib/dirchownmod.h: Likewise.
74282         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74283         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74284         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74285         (test_dir): Remove.
74286         (mkancesdirs): Return length of prefix of FILE that has already
74287         been made, or -2 if there is a child doing the work.  Redo
74288         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74289         ".", and treat ".." specially since it might stray back into
74290         already-created areas.  Use a subprocess if necessary.  New arg
74291         WD; all users changed.  MAKE_DIR function should now return 1
74292         if it creates a directory that is not readable.  Return -2 if
74293         a child process is spun off.
74294         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74295         Adjust signature to match code.
74296         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74297         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74298         all users changed.
74299         * lib/savewd.c, lib/savewd.h: New files.
74300
74301 2006-09-15  Jim Meyering  <jim@meyering.net>
74302
74303         * modules/rename-dest-slash: New module.
74304         * MODULES.html.sh (posix_compat): Add it here.
74305
74306         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74307
74308 2006-09-15  Jim Meyering  <jim@meyering.net>
74309
74310         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74311         file.
74312
74313         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74314
74315 2006-09-15  Jim Meyering  <jim@meyering.net>
74316
74317         * lib/rename-dest-slash.c (has_trailing_slash): Use
74318         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74319         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74320         test before testing whether SRC is a directory.
74321         Suggestions from Bruno Haible.
74322
74323         Avoid a warning about an unused variable.
74324         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74325         into the #ifdef block where it's used.
74326
74327         * lib/rename-dest-slash.c: New file.
74328
74329 2006-09-14  Bruno Haible  <bruno@clisp.org>
74330
74331         * lib/allocsa.c: Include <config.h> unconditionally.
74332         * lib/asnprintf.c: Likewise.
74333         * lib/asprintf.c: Likewise.
74334         * lib/c-strcasecmp.c: Likewise.
74335         * lib/c-strcasestr.c: Likewise.
74336         * lib/c-strncasecmp.c: Likewise.
74337         * lib/c-strstr.c: Likewise.
74338         * lib/classpath.c: Likewise.
74339         * lib/clean-temp.c: Likewise.
74340         * lib/concatpath.c: Likewise.
74341         * lib/copy-file.c: Likewise.
74342         * lib/csharpcomp.c: Likewise.
74343         * lib/csharpexec.c: Likewise.
74344         * lib/execute.c: Likewise.
74345         * lib/fatal-signal.c: Likewise.
74346         * lib/findprog.c: Likewise.
74347         * lib/fwriteerror.c: Likewise.
74348         * lib/gl_array_list.c: Likewise.
74349         * lib/gl_array_oset.c: Likewise.
74350         * lib/gl_avltree_list.c: Likewise.
74351         * lib/gl_avltree_oset.c: Likewise.
74352         * lib/gl_avltreehash_list.c: Likewise.
74353         * lib/gl_carray_list.c: Likewise.
74354         * lib/gl_linked_list.c: Likewise.
74355         * lib/gl_linkedhash_list.c: Likewise.
74356         * lib/gl_list.c: Likewise.
74357         * lib/gl_oset.c: Likewise.
74358         * lib/gl_rbtree_list.c: Likewise.
74359         * lib/gl_rbtree_oset.c: Likewise.
74360         * lib/gl_rbtreehash_list.c: Likewise.
74361         * lib/imaxabs.c: Likewise.
74362         * lib/imaxdiv.c: Likewise.
74363         * lib/javacomp.c: Likewise.
74364         * lib/javaexec.c: Likewise.
74365         * lib/javaversion.c: Likewise.
74366         * lib/linebreak.c: Likewise.
74367         * lib/localcharset.c: Likewise.
74368         * lib/lock.c: Likewise.
74369         * lib/mbchar.c: Likewise.
74370         * lib/mbswidth.c: Likewise.
74371         * lib/mkdtemp.c: Likewise.
74372         * lib/pipe.c: Likewise.
74373         * lib/printf-args.c: Likewise.
74374         * lib/printf-parse.c: Likewise.
74375         * lib/progname.c: Likewise.
74376         * lib/progreloc.c: Likewise.
74377         * lib/readlink.c: Likewise.
74378         * lib/sh-quote.c: Likewise.
74379         * lib/stpcpy.c: Likewise.
74380         * lib/stpncpy.c: Likewise.
74381         * lib/strcasecmp.c: Likewise.
74382         * lib/strcasestr.c: Likewise.
74383         * lib/strcspn.c: Likewise.
74384         * lib/striconv.c: Likewise.
74385         * lib/strncasecmp.c: Likewise.
74386         * lib/strnlen1.c: Likewise.
74387         * lib/strstr.c: Likewise.
74388         * lib/strtok_r.c: Likewise.
74389         * lib/tls.c: Likewise.
74390         * lib/tmpdir.c: Likewise.
74391         * lib/unicodeio.c: Likewise.
74392         * lib/unsetenv.c: Likewise.
74393         * lib/vasnprintf.c: Likewise.
74394         * lib/vasprintf.c: Likewise.
74395         * lib/wait-process.c: Likewise.
74396         * lib/xallocsa.c: Likewise.
74397         * lib/xsetenv.c: Likewise.
74398         * lib/xstriconv.c: Likewise.
74399
74400 2006-09-13  Simon Josefsson  <jas@extundo.com>
74401
74402         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74403         that internally, suggested by Ralf Wildenhues
74404         <Ralf.Wildenhues@gmx.de>.
74405
74406 2006-09-13  Simon Josefsson  <jas@extundo.com>
74407
74408         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74409         @LIBOBJS@.
74410         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74411
74412 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74415         longer worry about uses that don't define HAVE_CONFIG_H.
74416         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74417         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74418         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74419         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74420         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74421         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74422         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74423         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74424         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74425         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74426         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74427         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74428         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74429         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74430         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74431         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74432         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74433         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74434         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74435         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74436         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74437         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74438         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74439         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74440         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74441         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74442         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74443         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74444         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74445         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74446         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74447         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74448         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74449         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74450         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74451         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74452         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74453         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74454         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74455         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74456         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74457         Likewise.
74458
74459 2006-09-13  Eric Blake  <ebb9@byu.net>
74460
74461         * lib/getopt.c: Fix typo in last commit.
74462
74463 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74464
74465         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74466         dgettext.
74467
74468 2006-09-12  Jim Meyering  <jim@meyering.net>
74469
74470         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74471         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74472         Reported by Nelson H. F. Beebe.
74473
74474 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74475
74476         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74477         program_invocation_name and program_invocation_short_name are
74478         initialized.
74479         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74480         and program_invocation_short_name to argp.h, so they are visible
74481         to user programs.
74482         * lib/argp.h: Likewise
74483
74484 2006-09-10  Bruno Haible  <bruno@clisp.org>
74485
74486         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74487         m4/inttypes_h.m4, m4/uintmax_t.m4.
74488
74489 2006-09-10  Bruno Haible  <bruno@clisp.org>
74490
74491         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74492         gl_AC_TYPE_UINTMAX_T.
74493
74494 2006-09-10  Bruno Haible  <bruno@clisp.org>
74495
74496         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74497
74498 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74499
74500         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74501         convention.  Text proposed by Bruno Haible.
74502         (struct argp_option): Document the use of N_() wrappers.
74503
74504         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74505         '\v', and translate the two parts separately, instead of feeding
74506         the whole string to gettext.  This allows to exclude
74507         '\v' from the strings visible to the translator by writing doc
74508         strings as N_("..") "\v" N_("..").
74509
74510 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * config/srclist.txt: Undo latest change; the bug was fixed.
74513
74514 2006-09-09  Bruno Haible  <bruno@clisp.org>
74515
74516         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74517         assignments if building a library without libtool.
74518         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74519         in func_emit_lib_Makefile_am.
74520         (func_import): When building a static library libfoo.a, arrange to
74521         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74522         (func_create_testdir): Likewise.
74523         * modules/gc (configure.ac, Makefile.am): If building statically,
74524         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74525         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74526         * modules/striconv (configure.ac, Makefile.am): Likewise.
74527         Based on a suggestion by Ralf Wildenhues.
74528
74529 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74532         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74533         Also:
74534
74535         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74536         Add year_2050_test to catch glibc bug 2821
74537         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74538
74539         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74540         Prefer #ifdef to #if.
74541
74542         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74543         Return from 'main' instead of calling 'exit'.
74544
74545 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74548         returned the maximum time_t value rather than (time_t) -1.
74549         Problem originally reported by William Bardwell
74550         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74551
74552         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74553         Moved to here ...
74554         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74555         ... from here.
74556
74557 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74560         2821 is fixed.
74561
74562 2006-09-08  Jim Meyering  <jim@meyering.net>
74563
74564         Don't make generated files read-only.  That would bother too many
74565         people.  However, do retain the ability to work when targets are
74566         read-only: remove the destination and temporary files before writing
74567         them (when generated via sed or echo), or by using the -f option for
74568         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74569         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74570         * modules/byteswap, modules/configmake, modules/fcntl:
74571         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74572         * modules/localcharset, modules/netinet_in, modules/poll:
74573         * modules/stdbool, modules/stdint, modules/sys_select:
74574         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74575
74576 2006-09-08  Jim Meyering  <jim@meyering.net>
74577
74578         Avoid new build failure on FreeBSD 6.0.
74579         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74580         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74581         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74582
74583 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74584
74585         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74586
74587 2006-09-07  Jim Meyering  <jim@meyering.net>
74588
74589         Fix global typo in last change: use chmod u-w, not chmod u-x.
74590         Spotted by Paul Eggert and Bruce Korb.
74591         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74592         * modules/byteswap, modules/configmake, modules/fcntl:
74593         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74594         * modules/localcharset, modules/netinet_in, modules/poll:
74595         * modules/stdbool, modules/stdint, modules/sys_select:
74596         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74597
74598 2006-09-06  Jim Meyering  <jim@meyering.net>
74599
74600         Make generated files be read-only.
74601         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74602         Ensure that each generated file is now read-only.
74603         * modules/argz: Likewise.
74604         * modules/arpa_inet: Likewise.
74605         * modules/byteswap: Likewise.
74606         * modules/configmake: Likewise.
74607         * modules/fcntl: Likewise.
74608         * modules/fnmatch: Likewise.
74609         * modules/getopt: Likewise.
74610         * modules/glob: Likewise.
74611         * modules/inttypes: Likewise.
74612         * modules/netinet_in: Likewise.
74613         * modules/poll: Likewise.
74614         * modules/stdbool: Likewise.
74615         * modules/stdint: Likewise.
74616         * modules/sys_select: Likewise.
74617         * modules/sys_socket: Likewise.
74618         * modules/sys_stat: Likewise.
74619         * modules/sysexits: Likewise.
74620         * modules/localcharset: Same as above, but continue using temporary
74621         file named "t-$@" (why different?) rather than the "$@-t" used
74622         everywhere else.
74623
74624         * modules/sysexits (Makefile.am): Replace literal occurrences
74625         of "sysexit.h" more readable, and more consistent, "$@".
74626
74627 2006-09-06  Bruno Haible  <bruno@clisp.org>
74628
74629         * modules/striconv: New file.
74630         * modules/xstriconv: New file.
74631         * MODULES.html.sh (Internationalization functions): Add striconv,
74632         xstriconv.
74633
74634 2006-09-06  Bruno Haible  <bruno@clisp.org>
74635
74636         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74637         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74638         not using libtool correctly.
74639
74640 2006-09-06  Bruno Haible  <bruno@clisp.org>
74641
74642         * lib/striconv.h: New file.
74643         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74644         iconvstring.c.
74645         * lib/xstriconv.h: New file.
74646         * lib/xstriconv.c: New file.
74647
74648 2006-09-06  Bruno Haible  <bruno@clisp.org>
74649
74650         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74651         lib_..._LDFLAGS.
74652
74653 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74654
74655         * lib/argz_.h: Sync from Libtool.
74656
74657         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74658                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74659
74660         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74661
74662 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74663
74664         * modules/trim: New file.
74665
74666 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74667
74668         * lib/trim.h: New file.
74669         * lib/trim.c: New file.
74670
74671 2006-09-05  Bruno Haible  <bruno@clisp.org>
74672
74673         * MODULES.html.sh (String handling): Add trim.
74674
74675 2006-09-04  Karl Berry  <karl@gnu.org>
74676
74677         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74678         until next release.
74679
74680 2006-09-03  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74683         correctly.
74684
74685 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74688         not gl_GETLOADAVG.  Omit unneeded semicolons.
74689         Problems reported by Ralf Wildenhues in
74690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74691         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74692         at the end, which is the usual gnulib style.
74693
74694         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74695         of doing all the work ourselves.
74696         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74697         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74698
74699 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74702         Problem reported by Ralf Wildenhues in
74703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74704
74705         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74706         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74707
74708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74711         yesterday's patch by changing test -n to test -z.
74712
74713 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74714
74715         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74716         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74717         the former is now obsolescent.
74718
74719         * modules/chdir-long (Depends-on): Add fcntl.
74720
74721 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74722
74723         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74724         obsolescent, and programs should use gnulib instead.
74725         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74726         but with prefixes changed.
74727
74728 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74731         or stdbool.h, because they might not exist while configuring.
74732
74733         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74734         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74735         does that for us.
74736         (O_DIRECTORY): Remove.
74737
74738 2006-08-31  Eric Blake  <ebb9@byu.net>
74739
74740         * gnulib-tool: Don't let emacs change spaces to TAB.
74741
74742 2006-08-31  Bruno Haible  <bruno@clisp.org>
74743
74744         * gnulib-tool: When calling func_import more than once, do it in a
74745         subshell.
74746         Reported by Eric Blake <ebb9@byu.net>.
74747
74748 2006-08-31  Bruno Haible  <bruno@clisp.org>
74749
74750         * gnulib-tool (nl): Remove variable.
74751         (sed_transform_lib_file): Use more robust test for config-h module.
74752         (func_import): Fix typo in 2006-08-25 patch.
74753
74754 2006-08-31  Bruno Haible  <bruno@clisp.org>
74755
74756         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74757         specified, augment Makefile.am variables instead of assigning them.
74758
74759 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         Work around a bug in both the Linux and SunOS 64-bit kernels:
74762         nanosleep mishandles sleeps for longer than 2**31 seconds.
74763         Problem reported by Frank v Waveren in
74764         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74766         Check for nanosleep bug.
74767         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74768
74769 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74770
74771         Work around a bug in both the Linux and SunOS 64-bit kernels:
74772         nanosleep mishandles sleeps for longer than 2**31 seconds.
74773         Problem reported by Frank v Waveren in
74774         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74775         * lib/nanosleep.c (BILLION): New constant.
74776         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74777         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74778         implementation.
74779
74780 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * modules/nanosleep (Depends-on): Add gettime.
74783
74784 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74785         and Simon Josefsson  <jas@extundo.com>
74786         and Oskar Liljeblad  <oskar@osk.mine.nu>
74787
74788         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74789         * gnulib-tool (func_import): New license type 'unmodifiable license
74790         text'.
74791         * modules/fdl: Use it.  Longer description.
74792         * module/gpl, module/lgpl: New files.
74793
74794 2006-08-30  Jim Meyering  <jim@meyering.net>
74795
74796         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74797         shadowing the parameter.
74798
74799 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74800
74801         Sync from Libtool:
74802
74803         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74804
74805         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74806         sharing with gnulib.  Report by Eric Blake.
74807
74808 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * modules/isapipe: New file.
74811         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74812
74813 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * modules/configmake (Makefile.am): Add a comment, and omit
74816         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74817         by Bruno Haible.
74818
74819 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * m4/isapipe.m4: New file.
74822
74823 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/isapipe.c, lib/isapipe.h: New files.
74826
74827 2006-08-29  Jim Meyering  <jim@meyering.net>
74828
74829         * modules/configmake (Makefile.am): Make configmake.h depend on
74830         Makefile.  Otherwise, a stale configmake.h could hang around.
74831
74832 2006-08-29  Eric Blake  <ebb9@byu.net>
74833
74834         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74835         resolution of upstream bug 3044.
74836
74837 2006-08-29  Bruno Haible  <bruno@clisp.org>
74838
74839         * modules/localcharset (Depends-on): Add configmake.
74840         (Makefile.am): Remove setting of LIBDIR through DEFS.
74841
74842 2006-08-29  Bruno Haible  <bruno@clisp.org>
74843
74844         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74845         defined.
74846
74847 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * modules/fcntl: New file.
74850         * modules/chdir-safer (Depends-on): Add fcntl.
74851         * modules/fts: Likewise.
74852         * modules/mkdir-p: Likewise.
74853
74854         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74855         This undoes the most recent change, since we're now addressing the
74856         problem in a different way.
74857
74858         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74859         into output, since the output might be called Makefile.am even
74860         if $makefile_name is something different.
74861         (func_import): Use $makefile_am rather than
74862         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74863         empty.
74864
74865         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74866
74867 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74870         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74871         recent change to stdint.m4, since we're now addressing the problem in a
74872         different way.
74873
74874 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74875
74876         * m4/fcntl_h.m4: New file.
74877
74878 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * lib/fcntl_.h: New file.
74881         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74882         the fcntl module.
74883         * lib/dirchownmod.c: Likewise.
74884         * lib/fts.c: Likewise.
74885
74886         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74887         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74888         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74889         just before including <inttypes.h>, to avoid circular inclusion.
74890
74891 2006-08-28  Jim Meyering  <jim@meyering.net>
74892
74893         * doc/visibility.texi: Actually read and correct the grammar of the
74894         sentence affected by yesterday's change.
74895
74896 2006-08-28  Eric Blake  <ebb9@byu.net>
74897
74898         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74899         needs wrapper.
74900
74901 2006-08-28  Eric Blake  <ebb9@byu.net>
74902
74903         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74904
74905 2006-08-28  Eric Blake  <ebb9@byu.net>
74906
74907         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74908
74909 2006-08-28  Bruno Haible  <bruno@clisp.org>
74910
74911         * modules/c-strstr: New file, from GNU gettext.
74912         * MODULES.html.sh (String handling): Add c-strstr.
74913
74914 2006-08-28  Bruno Haible  <bruno@clisp.org>
74915
74916         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74917         macros.
74918         Reported by Eric Blake.
74919
74920 2006-08-28  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74923         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74924         * lib/vasprintf.c: Include errno.h, limits.h.
74925         (EOVERFLOW): New fallback definition.
74926         (vasprintf): Test here whether the string length is > INT_MAX.
74927         * lib/vsnprintf.c: Include errno.h, limits.h.
74928         (EOVERFLOW): New fallback definition.
74929         (vsnprintf): Fix bug when generated string was too long for the buffer.
74930         Test here whether the string length is > INT_MAX.
74931
74932 2006-08-28  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/inttypes_.h (SCNX*): Remove definitions.
74935         Reported by Eric Blake.
74936
74937 2006-08-28  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/c-strstr.h: New file, from GNU gettext.
74940         * lib/c-strstr.c: New file, from GNU gettext.
74941
74942 2006-08-28  Bruno Haible  <bruno@clisp.org>
74943
74944         * gnulib-tool: Reorder some statements.
74945
74946 2006-08-28  Bruno Haible  <bruno@clisp.org>
74947
74948         * gnulib-tool: New option --makefile-name.
74949         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74950         $makefile_name.
74951         (func_import): Write $makefile_name to the cache file, and read it from
74952         there unless explicitly specified. Use $makefile_name as file name
74953         instead of Makefile.am. Adjust the recommendations accordingly.
74954
74955 2006-08-28  Bruno Haible  <bruno@clisp.org>
74956
74957         * gnulib-tool (func_verify_module): Check against misapplying patch.
74958
74959 2006-08-28  Bruno Haible  <bruno@clisp.org>
74960
74961         * gnulib-tool (func_relativize, func_relconcat): New functions.
74962         Give an error if --local-dir is given with --update.
74963         Remove trailing slashes from $local_gnulib_dir.
74964         (func_import): Store the relativized $local_gnulib_dir in
74965         gnulib-cache.m4, and read it from there if not specified explicitly.
74966
74967 2006-08-28  Bruno Haible  <bruno@clisp.org>
74968
74969         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74970         is the current directory. Respect also $local_gnulib_dir.
74971
74972 2006-08-28  Bruno Haible  <bruno@clisp.org>
74973             Simon Josefsson  <jas@extundo.com>
74974
74975         BeOS portability.
74976         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74977
74978 2006-08-27  Jim Meyering  <jim@meyering.net>
74979
74980         * doc/visibility.texi: Remove duplicate word: "pointer".
74981
74982 2006-08-26  Bruno Haible  <bruno@clisp.org>
74983
74984         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74985         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74986         (Makefile.am): Create inttypes.h from inttypes_.h.
74987         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74988
74989         * modules/imaxabs: New file.
74990
74991         * modules/imaxdiv: New file.
74992
74993 2006-08-26  Bruno Haible  <bruno@clisp.org>
74994
74995         * m4/inttypes.m4: New file.
74996         * m4/_inttypes_h.m4: Remove file.
74997         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74998         PRI_MACROS_BROKEN.
74999         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75000
75001         * m4/imaxabs.m4: New file.
75002
75003         * m4/imaxdiv.m4: New file.
75004
75005 2006-08-26  Bruno Haible  <bruno@clisp.org>
75006
75007         * lib/inttypes_.h: New file.
75008         * lib/inttypes.h: Remove file.
75009         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75010
75011         * lib/imaxabs.c: New file.
75012
75013         * lib/imaxdiv.c: New file.
75014
75015 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         New config-h module, so that "make" output needn't be cluttered
75018         by -DHAVE_CONFIG_H.
75019         * MODULES.html.sh (Support for building libraries and executables):
75020         Add config-h.
75021         * modules/config-h: New file.
75022         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75023         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75024         the config-h module is used.
75025
75026         New configmake module, so that "make" output needn't be cluttered
75027         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75028         * MODULES.html.sh (Support for building libraries and executables):
75029         Add configmake.
75030         * modules/configmake: New file.
75031
75032 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * m4/config-h.m4: New file.
75035
75036 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * config/srclist.txt: Add elisp-comp.
75039
75040 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * MODULES.html.sh (Support for building libraries and executables):
75043         Add elisp-comp.
75044         * build-aux/elisp-comp: New file.
75045         * modules/elisp-comp: New file.
75046
75047 2006-08-24  Bruno Haible  <bruno@clisp.org>
75048
75049         * gnulib-tool (func_create_testdir): Use non-default values of
75050         sourcebase and m4base.
75051
75052 2006-08-24  Bruno Haible  <bruno@clisp.org>
75053
75054         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75055         HTML structure.
75056
75057 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * modules/openat (Depends-on): Add lchown.
75060
75061 2006-08-23  Bruno Haible  <bruno@clisp.org>
75062
75063         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75064         of gl_LOCK_EARLY instead of gl_LOCK.
75065
75066 2006-08-23  Bruno Haible  <bruno@clisp.org>
75067
75068         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75069         on OSF/1 to no.
75070         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75071
75072 2006-08-23  Bruno Haible  <bruno@clisp.org>
75073
75074         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75075         as unusable.
75076
75077         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75078         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75079         (gl_LOCK): New macro.
75080
75081 2006-08-22  Simon Josefsson  <jas@extundo.com>
75082
75083         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75084         to md5 module.
75085
75086 2006-08-22  Simon Josefsson  <jas@extundo.com>
75087
75088         * MODULES.html.sh: Add "Support for maintaining and release
75089         projects".
75090
75091         * build-aux/gnupload: New file, from coreutils.
75092
75093 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75094
75095         Avoid the need for AC_LIBSOURCES in m4 macros.
75096         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75097         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75098         * modules/check-version (EXTRA_DIST): Add check-version.h.
75099         * modules/crc (EXTRA_DIST): Add crc.h.
75100         * modules/des (EXTRA_DIST): Add des.h.
75101         * modules/gc (EXTRA_DIST): Add gc.h.
75102         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75103         * modules/getline (EXTRA_DIST): Add getline.h.
75104         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75105         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75106         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75107         * modules/md2 (EXTRA_DIST): Add md2.h.
75108         * modules/md4 (EXTRA_DIST): Add md4.h.
75109         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75110         * modules/read-file (EXTRA_DIST): Add read-file.h.
75111         * modules/readline (EXTRA_DIST): Add readline.h.
75112         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75113         rijndael-api-fst.h.
75114
75115 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * m4/rijndael.m4 (gl_ARCFOUR):
75118         * m4/arctwo.m4 (gl_ARCTWO):
75119         * m4/check-version.m4 (gl_CHECK_VERSION):
75120         * m4/crc.m4 (gl_CRC):
75121         * m4/des.m4 (gl_DES):
75122         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75123         * m4/gc.m4 (gl_GC):
75124         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75125         * m4/getline.m4 (gl_FUNC_GETLINE):
75126         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75127         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75128         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75129         * m4/md2.m4 (gl_MD2):
75130         * m4/md4.m4 (gl_MD4):
75131         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75132         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75133         * m4/readline.m4 (gl_FUNC_READLINE):
75134         * m4/rijndael.m4 (gl_RIJNDAEL):
75135         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75136         to get the necessary .h files and whatnot.
75137
75138 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75141         gnulib rather than the other way around.
75142         * config/srclistvars.sh (COREUTILS): Remove.
75143
75144 2006-08-22  Jim Meyering  <jim@meyering.net>
75145
75146         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75147
75148         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75149
75150 2006-08-22  Eric Blake  <ebb9@byu.net>
75151
75152         * modules/regexprops-generic: New file.
75153         * MODULES.html.sh (Support for building documentation): List it.
75154
75155 2006-08-22  Eric Blake  <ebb9@byu.net>
75156
75157         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75158         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75159         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75160         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75161
75162 2006-08-22  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75165         and lib_LTLIBRARIES like the other lib_* variables.
75166
75167 2006-08-22  Bruno Haible  <bruno@clisp.org>
75168
75169         * build-aux/x-to-1.in: New file, from GNU gettext.
75170
75171 2006-08-22  Bruno Haible  <bruno@clisp.org>
75172
75173         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75174         <utmpx.h> exists.
75175
75176 2006-08-22  Bruno Haible  <bruno@clisp.org>
75177
75178         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75179         <utmpx.h> exists.
75180
75181 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         BeOS portability.
75184         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75185         exist.
75186         Problem reported by Bruno Haible.
75187
75188 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         Avoid the need for AC_LIBSOURCES in m4 macros.
75191         * modules/acl (EXTRA_DIST): Add acl.h.
75192         * modules/argmatch (Files): Add m4/argmatch.m4.
75193         (configure.ac): Add gl_ARGMATCH.
75194         (EXTRA_DIST): Renamed from lib_SOURCES, for
75195         consistency with the other modules.  Remove argmatch.c.
75196         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75197         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75198         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75199         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75200         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75201         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75202         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75203         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75204         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75205         * modules/closeout (EXTRA_DIST): Add closeout.h.
75206         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75207         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75208         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75209         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75210         dirname.h; remove basename.c and stripslash.c.
75211         * modules/exclude (EXTRA_DIST): Add exclude.h.
75212         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75213         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75214         * modules/file-type (EXTRA_DIST): Add file-type.h.
75215         * modules/filemode (EXTRA_DIST): Add filemode.h.
75216         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75217         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75218         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75219         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75220         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75221         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75222         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75223         * modules/getdate (EXTRA_DIST): Add getdate.c.
75224         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75225         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75226         * modules/getpass (EXTRA_DIST): Add getpass.h.
75227         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75228         * modules/group-member (EXTRA_DIST): Add group-member.h.
75229         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75230         * modules/hash (EXTRA_DIST): Add hash.h.
75231         * modules/human (EXTRA_DIST): Add human.h.
75232         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75233         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75234         * modules/lchown (EXTRA_DIST): Add lchown.h.
75235         * modules/long-options (EXTRA_DIST): Add long-options.h.
75236         * modules/lstat (EXTRA_DIST): Add lstat.h.
75237         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75238         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75239         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75240         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75241         * modules/memxor (EXTRA_DIST): Add memxor.h.
75242         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75243         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75244         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75245         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75246         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75247         * modules/physmem (EXTRA_DIST): Add physmem.h.
75248         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75249         * modules/posixver (EXTRA_DIST): Add posixver.h.
75250         * modules/quote (EXTRA_DIST): Add quote.h.
75251         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75252         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75253         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75254         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75255         regex_internal.h regexec.c.
75256         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75257         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75258         * modules/same (EXTRA_DIST): Add same.h.
75259         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75260         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75261         * modules/savedir (EXTRA_DIST): Add savedir.h.
75262         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75263         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75264         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75265         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75266         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75267         * modules/strdup (EXTRA_DIST): Add strdup.h.
75268         * modules/strftime (EXTRA_DIST): Add strftime.h.
75269         * modules/strndup (EXTRA_DIST): Add strndup.h.
75270         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75271         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75272         * modules/time_r (EXTRA_DIST): Add time_r.h.
75273         * modules/timespec (EXTRA_DIST): Add timespec.h.
75274         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75275         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75276         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75277         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75278         * modules/userspec (EXTRA_DIST): Add userspec.h.
75279         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75280         * modules/utimens (EXTRA_DIST): Add utimens.h.
75281         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75282         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75283         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75284         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75285         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75286         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75287         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75288         * modules/yesno (EXTRA_DIST): Add yesno.h.
75289
75290 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75291
75292         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75293
75294         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75295         * m4/dev-ino.m4, same-inode.m4: Remove.
75296
75297         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75298         * m4/acl.m4 (AC_FUNC_ACL):
75299         * m4/backupfile.m4 (gl_BACKUPFILE):
75300         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75301         * m4/canon-host.m4 (gl_CANON_HOST):
75302         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75303         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75304         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75305         * m4/cloexec.m4 (gl_CLOEXEC):
75306         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75307         * m4/closeout.m4 (gl_CLOSEOUT):
75308         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75309         * m4/dirname.m4 (gl_DIRNAME):
75310         * m4/exclude.m4 (gl_EXCLUDE):
75311         * m4/exitfail.m4 (gl_EXITFAIL):
75312         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75313         * m4/file-type.m4 (gl_FILE_TYPE):
75314         * m4/filemode.m4 (gl_FILEMODE):
75315         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75316         * m4/fpending.m4 (gl_FUNC_FPENDING):
75317         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75318         * m4/fts.m4 (gl_FUNC_FTS):
75319         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75320         * m4/getdate.m4 (gl_GETDATE):
75321         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75322         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75323         * m4/getpass.m4 (gl_FUNC_GETPASS):
75324         * m4/gettime.m4 (gl_GETTIME):
75325         * m4/getugroups.m4 (gl_GETUGROUPS):
75326         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75327         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75328         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75329         * m4/hash.m4 (gl_HASH):
75330         * m4/idcache.m4 (gl_IDCACHE):
75331         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75332         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75333         * m4/long-options.m4 (gl_LONG_OPTIONS):
75334         * m4/lstat.m4 (gl_FUNC_LSTAT):
75335         * m4/md5.m4 (gl_MD5):
75336         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75337         * m4/memcoll.m4 (gl_MEMCOLL):
75338         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75339         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75340         * m4/memxor.m4 (gl_MEMXOR):
75341         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75342         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75343         * m4/modechange.m4 (gl_MODECHANGE):
75344         * m4/mountlist.m4 (gl_MOUNTLIST):
75345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75346         * m4/openat.m4 (gl_FUNC_OPENAT):
75347         * m4/pathmax.m4 (gl_PATHMAX):
75348         * m4/physmem.m4 (gl_PHYSMEM):
75349         * m4/posixtm.m4 (gl_POSIXTM):
75350         * m4/posixver.m4 (gl_POSIXVER):
75351         * m4/quote.m4 (gl_QUOTE):
75352         * m4/quotearg.m4 (gl_QUOTEARG):
75353         * m4/readtokens.m4 (gl_READTOKENS):
75354         * m4/readutmp.m4 (gl_READUTMP):
75355         * m4/regex.m4 (gl_REGEX):
75356         * m4/safe-read.m4 (gl_SAFE_READ):
75357         * m4/safe-write.m4 (gl_SAFE_WRITE):
75358         * m4/same.m4 (gl_SAME):
75359         * m4/save-cwd.m4 (gl_SAVE_CWD):
75360         * m4/savedir.m4 (gl_SAVEDIR):
75361         * m4/settime.m4 (gl_SETTIME):
75362         * m4/sha1.m4 (gl_SHA1):
75363         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75364         * m4/stat-macros.m4 (gl_STAT_MACROS):
75365         * m4/stat-time.m4 (gl_STAT_TIME):
75366         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75367         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75368         * m4/strdup.m4 (gl_FUNC_STRDUP):
75369         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75370         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75371         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75372         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75373         * m4/time_r.m4 (gl_TIME_R):
75374         * m4/timespec.m4 (gl_TIMESPEC):
75375         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75376         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75377         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75378         * m4/userspec.m4 (gl_USERSPEC):
75379         * m4/utimecmp.m4 (gl_UTIMECMP):
75380         * m4/utimens.m4 (gl_UTIMENS):
75381         * m4/xalloc.m4 (gl_XALLOC):
75382         * m4/xgetcwd.m4 (gl_XGETCWD):
75383         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75384         * m4/xreadlink.m4 (gl_XREADLINK):
75385         * m4/xstrtod.m4 (gl_XSTRTOD):
75386         * m4/yesno.m4 (gl_YESNO):
75387         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75388         to get the necessary .h files and whatnot.
75389
75390 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75391             Bruno Haible  <bruno@clisp.org>
75392
75393         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75394         /bin/sh understanding of '!' conditional negation.
75395
75396 2006-08-21  Jim Meyering  <jim@meyering.net>
75397
75398         * modules/openat (Depends-on): Really alphabetize.
75399
75400         * modules/acl (Depends-on): Add error and quote.
75401
75402         * check-module (find_included_lib_files): Add at-func.c to the
75403         ok-to-include-more-than-once white list.
75404
75405         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75406
75407 2006-08-21  Bruno Haible  <bruno@clisp.org>
75408
75409         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75410         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75411         Reported by Martin Lambers <marlam@marlam.de>.
75412
75413 2006-08-21  Bruno Haible  <bruno@clisp.org>
75414
75415         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75416         specify an installation location, don't emit a noinst_LIBRARIES or
75417         noinst_LTLIBRARIES assignment.
75418
75419 2006-08-21  Bruno Haible  <bruno@clisp.org>
75420
75421         BeOS portability.
75422         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75423         BeOS has mbrtowc() but no <wctype.h>.
75424
75425 2006-08-21  Bruno Haible  <bruno@clisp.org>
75426
75427         BeOS portability.
75428         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75429         exist.
75430
75431 2006-08-21  Bruno Haible  <bruno@clisp.org>
75432
75433         BeOS portability.
75434         * lib/mbchar.h: Include <wctype.h> only if it exists.
75435
75436 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         Remove files that are no longer needed by their respective modules.
75439         * m4/obstack.m4: Remove.
75440         * m4/strerror_r.m4: Remove.
75441         * m4/uint32_t.m4: Remove.
75442         * m4/uintptr_t.m4: Remove.
75443         * m4/ullong_max.m4: Remove.
75444         * m4/xstrtoimax.m4: Remove.
75445         * m4/xstrtoumax.m4: Remove.
75446
75447         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75448         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75449         dependencies now capture this.
75450
75451         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75452         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75453         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75454         * m4/human.m4 (gl_HUMAN): Likewise.
75455         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75456         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75457
75458         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75459
75460         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75461         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75462         stdint.
75463         * m4/human.m4 (gl_HUMAN): Likewise.
75464         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75465         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75466         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75467         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75468         * m4/xstrtol (gl_XSTRTOL): Likewise.
75469
75470         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75471         AC_TYPE_LONG_LONG_INT.
75472         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75473         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75474         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75475         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75476
75477         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75478         on stdbool.
75479
75480         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75481         (gl_PREREQ_XSTRTOUL): Remove.
75482
75483         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75484
75485         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75486         mode.
75487
75488 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75489
75490         Add and change modules to make it easier for coreutils to use
75491         gnulib-tool.
75492         * modules/backupfile (Files): Remove m4/d-ino.m4.
75493         (Depends-on): Add d-ino.
75494         * modules/cycle-check (Depends-on): Add stdint.
75495         (lib_SOURCES): Add cycle-check.h.
75496         * modules/d-ino: New module.
75497         * modules/d-type: New module.
75498         * modules/error (Files): Remove m4/strerror_r.m4.
75499         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75500         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75501         m4/inttypes_h.m4, m4/uintmax_t.m4.
75502         (Depends-on): Add stdint.
75503         (lib_SOURCES): Add fsusage.h.
75504         * modules/getcwd (Files): Remove d-ino.m4.
75505         (Depends-on): Add d-ino.
75506         * modules/getndelim2 (Depends-on): Add stdint.
75507         * modules/glob (Files): Remove m4/d-type.m4.
75508         (Depends-on): Add d-type.
75509         * modules/host-os: New module.
75510         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75511         m4/inttypes_h.m4, m4/uintmax_t.m4.
75512         * Depends-on: Add stdint.
75513         (lib_SOURCES): Add human.h.
75514         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75515         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75516         m4/uintmax_t.m4, m4/ulonglong.m4.
75517         (Depends-on): Add stdint.
75518         (EXTRA_DIST): Add inttostr.h.
75519         * modules/lchmod: New module.
75520         * modules/link-follow: New module.
75521         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75522         (Depends-on): Add lchmod.
75523         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75524         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75525         (Depends-on): Add stdint.
75526         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75527         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75528         (Depends-on): Add stdint.
75529         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75530         * modules/perl: New module.
75531         * modules/regex (Depends-on): Add stdint.
75532         * modules/rmdir-errno: New module.
75533         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75534         m4/intmax_t.m4.
75535         (Depends-on): Add stdint.
75536         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75537         m4/uintmax_t.m4.
75538         (Depends-on): Add stdint.
75539         * modules/unlink-busy: New module.
75540         * modules/utimecmp (Depends-on): Add stdint.
75541         * modules/uptime: New module.
75542         * modules/winsz-ioctl: New module.
75543         * modules/winsz-termios: New module.
75544         * modules/xnanosleep (Depends-on): Add nanosleep.
75545         * modules/ullong_max: Remove.
75546         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75547         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75548         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75549         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75550         (Depends-on): Add inttypes.
75551         (lib_SOURCES): Add xstrtol.h.
75552         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75553         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75554         * MODULES.html.sh: Move 'assert' into the assert section.
75555         Move 'dummy' into the linking section.
75556         Remove ullong_max.
75557         Add section for compatibility checks for POSIX:2001 functions,
75558         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75559         winsz-ioctl, and winsz-termios into it.
75560         Add lchmod.
75561         Add top-level Misc section and put host-os, perl, and uptime
75562         into it.
75563
75564 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75565
75566         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75567         now assume the stdint module.  Do not include inttypes.h.
75568         * lib/fsusage.h: Likewise.
75569         * lib/getndelim2.c: Likewise.
75570         * lib/human.h: Likewise.
75571         * lib/inttostr.h: Likewise.
75572         * lib/obstack.c: Likewise.
75573         * lib/regex_internal.h: Likewise.
75574         * lib/tempname.c: Likewise.
75575         * lib/utimecmp.c: Likewise.
75576         * lib/xstrtol.h: Likewise.
75577
75578         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75579
75580         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75581         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75582         * lib/xtime.h: Likewise.
75583
75584 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * modules/openat (Files): Add lib/fchmodat.c.
75587         Fixes problem reported by Jay Youngman.
75588
75589 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75590
75591         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75592         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75593
75594 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75595             Bruno Haible  <bruno@clisp.org>
75596
75597         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75598         and is a script that invokes bison. Tighten the code. Add comments.
75599
75600 2006-08-18  Jim Meyering  <jim@meyering.net>
75601
75602         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75603         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75604         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75605         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75606
75607 2006-08-18  Bruno Haible  <bruno@clisp.org>
75608
75609         * modules/bison-i18n: New file.
75610         * MODULES.html.sh (Internationalization functions): Add it.
75611
75612 2006-08-18  Bruno Haible  <bruno@clisp.org>
75613
75614         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75615         sys/statvfs.h. When getmntinfo was found, check its declaration and
75616         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75617
75618 2006-08-18  Bruno Haible  <bruno@clisp.org>
75619
75620         * m4/bison-i18n.m4: New file, from bison.
75621
75622 2006-08-18  Bruno Haible  <bruno@clisp.org>
75623
75624         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75625         (ME_DUMMY): Treat "kernfs" as a dummy.
75626         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75627
75628 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         Update from coreutils.
75631
75632         2006-08-15  Jim Meyering  <jim@meyering.net>
75633
75634         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75635
75636         2006-01-17  Jim Meyering  <jim@meyering.net>
75637
75638         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75639
75640         2006-01-11  Jim Meyering  <jim@meyering.net>
75641
75642         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75643         Check for the lchmod function.
75644
75645 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         Update from coreutils.
75648
75649         * lib/__fpending.h: Add copyright notice.
75650         * lib/fprintftime.h: Likewise.
75651         * lib/savedir.c: Use (C) in copyright notice.
75652         * lib/savedir.h: Likewise.
75653
75654         2006-08-15  Jim Meyering  <jim@meyering.net>
75655
75656         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75657         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75658         in support of the EXPECTED_ERRNO macro.
75659         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75660         definitions.  Instead, define the appropriate symbols and include
75661         "at-func.c".
75662         * lib/mkdirat.c (mkdirat): Likewise.
75663         * lib/fchmodat.c (fchmodat): Likewise.
75664         (ENOSYS): Remove definition.
75665         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75666         it.  Don't include "unistd--.h" -- it wasn't ever used.
75667
75668         2006-01-17  Jim Meyering  <jim@meyering.net>
75669
75670         Rewrite fts.c not to change the current working directory,
75671         by using openat, fstatat, fdopendir, etc..
75672
75673         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75674         (HAVE_OPENAT_SUPPORT): Define.
75675         [_LIBC] (fchdir): Don't undef or define; no longer used.
75676         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75677         Now, this `function' always succeeds, and consumes its file descriptor
75678         parameter -- so callers must not close such FDs.  Update callers.
75679         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75680         (diropen): Add parameter, SP.  Adjust all callers.
75681         Implement using diropen_fd, rather than open.
75682         (fts_open): Initialize new member, fts_cwd_fd.
75683         Remove fts_rft-setting code.
75684         (fts_close): Close fts_cwd_fd, if necessary.
75685         (__opendir2): Define in terms of opendir or opendirat,
75686         depending on whether the FST_NOCHDIR flag is set.
75687         (fts_build): Since fts_safe_changedir consumes its FD, and since
75688         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75689         and close the dup'd file descriptor upon failure.
75690         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75691         (fts_safe_changedir): Tweak semantics to reflect that this function
75692         now calls cwd_advance_fd and hence consumes its FD argument.
75693         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75694         [struct FTS] (fts_rft): Remove now-unused member.
75695         [struct FTS] (fts_cycle.state): Improve comment.
75696
75697         * lib/openat.c (openat_needs_fchdir): New function.
75698         * lib/openat.h (openat_needs_fchdir): Declare it.
75699
75700 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75701
75702         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75703         Problem and fix reported by Pádraig Brady in
75704         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75705
75706 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75709
75710 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * lib/memcoll.c (memcoll): Optimize for the common case where the
75713         arguments are bytewise equal.
75714
75715 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         * doc/regexprops-generic.texi: Add a copyright notice.
75718
75719 2006-08-15  Bruno Haible  <bruno@clisp.org>
75720
75721         * modules/tmpdir (License): Change to LGPL.
75722
75723 2006-08-15  Bruno Haible  <bruno@clisp.org>
75724
75725         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75726         module.
75727
75728 2006-08-14  Simon Josefsson  <jas@extundo.com>
75729
75730         * config/srclist.txt: Add gnupload.
75731
75732 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75733
75734         Change copyright notice from LGPL 2 to GPL 2, since that's the
75735         standard form used in the gnulib repository.
75736         * tests/test-lock.c: Likewise.
75737         * tests/test-stdint.c: Likewise.
75738         * tests/test-tls.c: Likewise.
75739
75740         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75741         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75742         Add copyright notice.
75743
75744         * check-module: Add copyright notice.  Output a copyright
75745         notice if "--version" is specified.
75746         * modules/COPYING: New file.
75747         * tests/test-getaddrinfo.c: Add copyright notice.
75748         * tests/test-verify.c: Likewise.
75749
75750 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         Change copyright notice from LGPL 2 to GPL 2, since that's the
75753         standard form used in the gnulib repository.
75754         * lib/lock.c: LGPL -> GPL.
75755         * lib/lock.h: Likewise.
75756         * lib/strnlen1.c: Likewise.
75757         * lib/strnlen1.h: Likewise.
75758         * lib/tls.c: Likewise.
75759         * lib/tls.h: Likewise.
75760         * lib/tmpdir.c: Likewise.
75761
75762         * lib/TODO: Remove; this belongs only in coreutils.
75763
75764 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         Add copyright notices to long-enough files that lack them, since
75767         otherwise the files aren't clearly free.  Use the same notice that
75768         getdate.texi already uses.
75769         * doc/alloca-opt.texi: Add copyright notice.
75770         * doc/alloca.texi: Likewise.
75771         * doc/ctime.texi: Likewise.
75772         * doc/functions.texi: Likewise.
75773         * doc/gcd.texi: Likewise.
75774         * doc/gnulib-tool.texi: Likewise.
75775         * doc/inet_ntoa.texi: Likewise.
75776         * doc/visibility.texi: Likewise.
75777
75778         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75779         * doc/quote.texi: Add copyright notice.
75780
75781         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75782         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75783         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75784         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75785         is now obsolete, and give a pointer to the Sun list.
75786         Add copyright notice.
75787
75788 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         * config/srclistvars.sh: Add copyright notice.
75791
75792 2006-08-14  Eric Blake  <ebb9@byu.net>
75793
75794         Import the following change from libc:
75795
75796         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75797
75798         Upstream bug 2997.
75799         * lib/misc/error.c: Add space between program name and message if file
75800         name is missing.
75801
75802 2006-08-12  Karl Berry  <karl@gnu.org>
75803
75804         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75805         remove, these originate in gnulib now.
75806
75807 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75808
75809         * doc/Makefile (standards.info standards.html standards.dvi):
75810         Also depend on make-stds.texi.
75811
75812 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75815         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75816
75817         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75818         in wchar_t.  Problem reported by Eric Blake.
75819
75820         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75821         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75822         Also, help the compiler to keep LEN in a register.
75823
75824 2006-08-11  Eric Blake  <ebb9@byu.net>
75825
75826         * users.txt: Sort.  Add tar.
75827
75828 2006-08-11  Bruno Haible  <bruno@clisp.org>
75829
75830         * users.txt: New file.
75831
75832 2006-08-11  Bruno Haible  <bruno@clisp.org>
75833
75834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75835         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75836
75837 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * modules/snprintf (Depends-on): Remove minmax.
75840         (Maintainer): Add self and Bruno.
75841
75842 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75843
75844         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75845         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75846         (EOVERFLOW): Define if the system does not.
75847         Do not include "minmax.h"; it wasn't used.
75848         (snprintf): Don't assume size_t promotes to an unsigned type.
75849         Fix bug when generated string was too long for the buffer: the
75850         buffer's contents are supposed to be the initial prefix of the
75851         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75852         exceeds INT_MAX; do the check ourselves.
75853
75854         Import the following changes from libc:
75855
75856         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75857
75858         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75859         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75860         set wc to the byte which couldn't be converted.
75861         (re_string_reconstruct): Don't clear valid_raw_len before calling
75862         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75863         tip_context using re_string_context_at.
75864
75865         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75866
75867         * lib/posix/regex.h: g++ still cannot handled [restrict].
75868
75869         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75870
75871         * lib/posix/regex.h: Remove special handling for VMS.
75872
75873 2006-08-10  Jim Meyering  <jim@meyering.net>
75874
75875         * modules/same-inode: New module.
75876         * modules/dev-ino: New module.
75877         * modules/cycle-check: Depend on these modules, rather than simply
75878         including their .h files.
75879         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75880         required via m4/cycle-check.m4.
75881         * modules/same: Depend on new same-inode module, rather than
75882         including same-inode.h.
75883         * modules/chdir-safer: New file.
75884
75885         * modules/chown (Depends-on): Add stat-macros.
75886
75887 2006-08-10  Jim Meyering  <jim@meyering.net>
75888
75889         * m4/cycle-check.m4: New file.
75890         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75891         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75892
75893 2006-08-10  Eric Blake  <ebb9@byu.net>
75894
75895         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75896         in from original proposal.
75897
75898 2006-08-10  Eric Blake  <ebb9@byu.net>
75899         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75900
75901         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75902         namespace.
75903
75904 2006-08-10  Bruno Haible  <bruno@clisp.org>
75905
75906         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75907         as well.
75908
75909 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75910
75911         Sync from coreutils.
75912
75913         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75914
75915         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75916         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75917
75918 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * modules/restrict: Remove; no longer needed now that we assume
75921         Autoconf 2.59 or later.
75922         * MODULES.html.sh: Remove 'restrict'.
75923         * modules/argp (Depends-on): Remove 'restrict'.
75924         * modules/base64 (Depends-on): Likewise.
75925         * modules/gc (Depends-on): Likewise.
75926         * modules/getaddrinfo (Depends-on): Likewise.
75927         * modules/glob (Depends-on): Likewise.
75928         * modules/inet_ntop (Depends-on): Likewise.
75929         * modules/inet_pton (Depends-on): Likewise.
75930         * modules/memxor (Depends-on): Likewise.
75931         * modules/regex (Depends-on): Likewise.
75932         * modules/strtok_r (Depends-on): Likewise.
75933         * modules/time_r (Depends-on): Likewise.
75934
75935 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75938         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75939         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75940         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75941         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75942         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75943         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75944         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75945
75946         Merge from coreutils.
75947         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75948         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75949         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75950         * m4/time_r.m4 (gl_TIME_R): Likewise.
75951
75952 2006-08-09  Karl Berry  <karl@gnu.org>
75953
75954         * config/srclist.txt: no more gettext-tools, per Bruno.
75955
75956 2006-08-08  Eric Blake  <ebb9@byu.net>
75957
75958         * modules/verror: New module.
75959         * MODULES.html.sh: Document it.
75960
75961 2006-08-08  Eric Blake  <ebb9@byu.net>
75962
75963         * lib/verror.h, lib/verror.c: New files.
75964
75965 2006-08-08  Eric Blake  <ebb9@byu.net>
75966
75967         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75968         verror_at_line output complies with GNU Coding Standards even when
75969         file is NULL.
75970
75971 2006-08-07  Bruno Haible  <bruno@clisp.org>
75972
75973         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75974         versions of AIX.
75975         Reported by Ralf Wildenhues.
75976
75977 2006-08-07  Bruno Haible  <bruno@clisp.org>
75978
75979         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75980         in an AC_DEFUN. Needed so that the autoconf snippets can use
75981         AC_REQUIRE.
75982
75983 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75984
75985         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75986         Initialize pkgdata_DATA.
75987         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75988         overriding it.
75989
75990 2006-08-06  Eric Blake  <ebb9@byu.net>
75991
75992         * lib/error.h: Fold in some upstream changes from glibc.
75993         * lib/error.c: Likewise.
75994
75995 2006-08-04  Bruno Haible  <bruno@clisp.org>
75996
75997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75998         Make the mostlyclean-local rule depend on mostlyclean-generic.
75999         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76000
76001 2006-07-31  Bruno Haible  <bruno@clisp.org>
76002
76003         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76004         <stdlib.h>, <string.h>.
76005
76006 2006-07-30  Bruno Haible  <bruno@clisp.org>
76007
76008         * modules/readlink (License): Change to LGPL.
76009
76010 2006-07-30  Bruno Haible  <bruno@clisp.org>
76011
76012         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76013         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76014         set PKGDATADIR to point to it.
76015
76016 2006-07-30  Bruno Haible  <bruno@clisp.org>
76017
76018         * modules/csharpexec (configure.ac): Comment out macro invocation.
76019         * modules/javaexec (configure.ac): Likewise.
76020         * modules/javacomp-script (configure.ac): Likewise.
76021
76022         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76023
76024 2006-07-30  Bruno Haible  <bruno@clisp.org>
76025
76026         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76027         linked-list.
76028
76029 2006-07-30  Bruno Haible  <bruno@clisp.org>
76030
76031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76032
76033 2006-07-30  Bruno Haible  <bruno@clisp.org>
76034
76035         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76036         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76037         get removed.
76038
76039 2006-07-29  Bruno Haible  <bruno@clisp.org>
76040
76041         Make it possible for gnulib-tool to work with locally modified or
76042         augmented gnulib repositories.
76043         * gnulib-tool (func_usage): Document --local-dir option.
76044         (local_gnulib_dir): New variable.
76045         Handle --local-dir option.
76046         (func_lookup_file): New function.
76047         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76048         (func_get_description, func_get_filelist, func_get_description,
76049         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76050         func_get_automake_snippet, func_get_include_directive,
76051         func_get_license, func_get_maintainer): Use func_lookup_file.
76052         (func_import, func_create_testdir): Use func_lookup_file.
76053
76054 2006-07-29  Bruno Haible  <bruno@clisp.org>
76055
76056         * modules/setenv (Depends-on): Add unistd.
76057
76058 2006-07-29  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76061
76062 2006-07-29  Bruno Haible  <bruno@clisp.org>
76063
76064         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76065
76066 2006-07-29  Bruno Haible  <bruno@clisp.org>
76067
76068         * gnulib-tool (import, update): If there is no Makefile.am, look at
76069         aclocal.m4, instead of bailing out.
76070
76071 2006-07-29  Bruno Haible  <bruno@clisp.org>
76072
76073         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76074         Categorize the options by when they are useful.
76075
76076 2006-07-29  Bruno Haible  <bruno@clisp.org>
76077
76078         * gnulib-tool (func_usage): Document option --no-libtool.
76079         Handle option --no-libtool.
76080         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76081         for changed semantics of $libtool variable.
76082         (func_import): Likewise. If libtool is not used, show this through
76083         an option --no-libtool.
76084         (func_create_testdir): Update.
76085
76086 2006-07-29  Bruno Haible  <bruno@clisp.org>
76087
76088         * gnulib-tool (func_import): Extend error message about missing
76089         --doc-base.
76090
76091 2006-07-29  Bruno Haible  <bruno@clisp.org>
76092
76093         * gnulib-tool (func_import): Don't create the $docbase directory if
76094         there is no file to store there.
76095
76096 2006-07-29  Bruno Haible  <bruno@clisp.org>
76097
76098         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76099         relevant, look for configure.ac there, not in the current directory.
76100         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76101
76102 2006-07-29  Bruno Haible  <bruno@clisp.org>
76103
76104         * gnulib-tool (SORT): New variable.
76105         (func_usage): Undocument --assume-autoconf option.
76106         Remove --assume-autoconf option handling.
76107         (autoconf_minversion): Determine from the contents of configure.ac.
76108         (func_import): Remove autoconf_minversion handling.
76109         Suggested by Eric Blake.
76110
76111 2006-07-29  Bruno Haible  <bruno@clisp.org>
76112
76113         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76114
76115 2006-07-29  Bruno Haible  <bruno@clisp.org>
76116
76117         * config/srclist.txt (*setenv.[ch]): Remove rules.
76118
76119 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76120
76121         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76122
76123 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76124
76125         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76126         arpa/inet.h.
76127
76128 2006-07-28  Simon Josefsson  <jas@extundo.com>
76129
76130         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76131         * modules/inet_pton (Depends-on): Likewise.
76132
76133 2006-07-28  Simon Josefsson  <jas@extundo.com>
76134
76135         * m4/netinet_in_h.m4: New file.
76136
76137 2006-07-28  Simon Josefsson  <jas@extundo.com>
76138
76139         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76140         #include's.
76141
76142 2006-07-28  Simon Josefsson  <jas@extundo.com>
76143
76144         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76145         #include's.
76146
76147 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76150         setgid on directories only if they set these bits.
76151         * lib/modechange.h: Remove obsolete comment about masks.
76152
76153 2006-07-28  Eric Blake  <ebb9@byu.net>
76154
76155         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76156         macro expansion.
76157
76158 2006-07-28  Bruno Haible  <bruno@clisp.org>
76159
76160         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76161
76162 2006-07-28  Bruno Haible  <bruno@clisp.org>
76163
76164         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76165
76166 2006-07-28  Bruno Haible  <bruno@clisp.org>
76167
76168         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76169         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76170         Define fallbacks.
76171         Avoids link error on FreeBSD 4.x.
76172         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76173
76174         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76175         encoding.
76176         * lib/mbswidth.c (iswcntrl): Likewise.
76177
76178 2006-07-27  Bruno Haible  <bruno@clisp.org>
76179
76180         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76181         test.
76182
76183 2006-07-27  Bruno Haible  <bruno@clisp.org>
76184
76185         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76186         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76187         defined.
76188
76189 2006-07-26  Eric Blake  <ebb9@byu.net>
76190
76191         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76192
76193 2006-07-26  Eric Blake  <ebb9@byu.net>
76194
76195         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76196         like mingw that lack mkstemp.
76197         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76198         avoid compilation warning on mingw.
76199
76200 2006-07-26  Bruno Haible  <bruno@clisp.org>
76201
76202         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76203         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76204         INT_FAST*_MIN, INTPTR_MIN.
76205
76206 2006-07-25  Bruno Haible  <bruno@clisp.org>
76207
76208         * modules/version-etc (Depends-on): Add stdarg.
76209
76210 2006-07-25  Bruno Haible  <bruno@clisp.org>
76211
76212         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76213         complex commands.
76214
76215 2006-07-25  Bruno Haible  <bruno@clisp.org>
76216
76217         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76218         defined in <stdarg.h> or config.h.
76219
76220 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76223         (gl_STDIO_SAFER): Remove.
76224
76225 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * MODULES.html.sh (File stream based Input/Output):
76228         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76229         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76230         * modules/fopen-safer, modules/tmpfile-safer: New files.
76231         * modules/stdio-safer: Remove.
76232
76233 2006-07-24  Bruno Haible  <bruno@clisp.org>
76234
76235         * modules/tmpdir: New file.
76236         * MODULES.html.sh (File system functions): Add it.
76237
76238 2006-07-24  Bruno Haible  <bruno@clisp.org>
76239
76240         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76241         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76242
76243 2006-07-24  Bruno Haible  <bruno@clisp.org>
76244
76245         * modules/clean-temp: New file.
76246
76247 2006-07-24  Bruno Haible  <bruno@clisp.org>
76248
76249         * m4/tmpdir.m4: New file, from GNU gettext.
76250
76251 2006-07-24  Bruno Haible  <bruno@clisp.org>
76252
76253         * lib/tmpdir.h: New file, from GNU gettext.
76254         * lib/tmpdir.c: New file, from GNU gettext.
76255
76256 2006-07-24  Bruno Haible  <bruno@clisp.org>
76257
76258         * lib/clean-temp.h: New file, from GNU gettext.
76259         * lib/clean-temp.c: New file, from GNU gettext.
76260
76261 2006-07-23  Eric Blake  <ebb9@byu.net>
76262
76263         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76264         (Depends-on): Add binary-io.
76265
76266 2006-07-23  Eric Blake  <ebb9@byu.net>
76267
76268         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76269
76270 2006-07-23  Eric Blake  <ebb9@byu.net>
76271
76272         * lib/tmpfile-safer.c: New file.
76273         * lib/stdio-safer.h (fopen_safer): Add prototype.
76274         * lib/stdio--.h (tmpfile): Make safer.
76275
76276 2006-07-23  Bruno Haible  <bruno@clisp.org>
76277
76278         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76279         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76280         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76281         gl_linked_remove_at): Use it.
76282
76283 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76284         and Simon Josefsson <jas@extundo.com>
76285
76286         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76287
76288         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76289
76290 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         * modules/close-stream: New file.
76293         * modules/closeout (Description): Make it clear that it exits
76294         with a diagnostic on error.
76295         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76296         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76297
76298 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * m4/close-stream.m4: New file.
76301
76302 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76303
76304         * lib/close-stream.c, lib/close-stream.h: New files.
76305
76306 2006-07-22  Bruno Haible  <bruno@clisp.org>
76307
76308         Merge from GNU gettext 0.15.
76309
76310         2006-05-01  Bruno Haible  <bruno@clisp.org>
76311
76312                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76313
76314         2006-07-22  Bruno Haible  <bruno@clisp.org>
76315
76316                 * modules/javaversion: New file.
76317                 * MODULES.html.sh (Java): Add javaversion.
76318
76319         2006-03-12  Bruno Haible  <bruno@clisp.org>
76320
76321                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76322
76323         2005-12-04  Bruno Haible  <bruno@clisp.org>
76324
76325                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76326                 (untested).
76327
76328         2006-06-21  Bruno Haible  <bruno@clisp.org>
76329
76330                 Avoid warnings from recent versions of mcs.
76331                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76332                 -o, -L, -r any more. Use options documented since mcs-1.0
76333                 instead. Similarly for -g.
76334
76335         2005-12-04  Bruno Haible  <bruno@clisp.org>
76336
76337                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76338                 .resources, not .resource.
76339
76340         2005-07-09  Bruno Haible  <bruno@clisp.org>
76341
76342                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76343                 add a .dll suffix.
76344                 Reported by Mark Junker <mjscod@gmx.de>.
76345
76346         2006-07-22  Bruno Haible  <bruno@clisp.org>
76347
76348                 * modules/gettext: Upgrade to gettext-0.15.
76349                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76350                 m4/visibility.m4.
76351                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76352
76353 2006-07-22  Bruno Haible  <bruno@clisp.org>
76354
76355         Merge from GNU gettext 0.15.
76356
76357         2006-03-25  Bruno Haible  <bruno@clisp.org>
76358
76359                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76360
76361         2006-07-21  Bruno Haible  <bruno@clisp.org>
76362
76363                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76364                 "1.1".
76365
76366         2006-05-09  Bruno Haible  <bruno@clisp.org>
76367
76368                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76369                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76370                 for the conftestver execution.
76371
76372         2006-05-01  Bruno Haible  <bruno@clisp.org>
76373
76374                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76375                 optional target-version argument. Verify that the compiler
76376                 groks source of the specified source-version, or add -source
76377                 option as necessary. Verify that the compiler produces
76378                 bytecode in the specified target-version, or add -target and
76379                 -source options as necessary. Make the result of the test
76380                 available as variable CONF_JAVAC. Also log error output in
76381                 config.log.
76382
76383         2006-03-11  Bruno Haible  <bruno@clisp.org>
76384
76385                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76386
76387         2006-05-09  Bruno Haible  <bruno@clisp.org>
76388
76389                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76390                 CLASSPATH_SEPARATOR to a semicolon.
76391
76392         2006-03-12  Bruno Haible  <bruno@clisp.org>
76393
76394                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76395                 available as variable CONF_JAVA, for subsequent autoconf
76396                 tests. Also log error output in config.log.
76397
76398         2006-07-19  Bruno Haible  <bruno@clisp.org>
76399
76400                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76401                 that getline works on glibc2 systems. Needed to avoid trouble
76402                 in relocatable.c.
76403                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76404
76405         2005-12-04  Bruno Haible  <bruno@clisp.org>
76406
76407                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76408                 launcher (untested).
76409
76410         2005-12-04  Bruno Haible  <bruno@clisp.org>
76411
76412                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76413
76414         2006-07-22  Bruno Haible  <bruno@clisp.org>
76415
76416                 * gettext.m4: Update from GNU gettext-0.15.
76417                 * nls.m4: Likewise.
76418                 * po.m4: Likewise.
76419                 * inttypes-pri.m4: Likewise.
76420                 * inttypes-h.m4: Renamed from inttypes.m4.
76421                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76422
76423 2006-07-22  Bruno Haible  <bruno@clisp.org>
76424
76425         Merge from GNU gettext 0.15.
76426
76427         2005-07-05  Bruno Haible  <bruno@clisp.org>
76428
76429                 * printf-args.c (printf_fetchargs): Work around broken
76430                 definition of wint_t on mingw.
76431
76432         2005-02-12  Bruno Haible  <bruno@clisp.org>
76433
76434                 * xallocsa.h: Add extern "C" for C++.
76435
76436         2006-05-17  Bruno Haible  <bruno@clisp.org>
76437
76438                 Cygwin portability.
76439                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76440
76441         2006-04-30  Bruno Haible  <bruno@clisp.org>
76442
76443                 * progreloc.c: Include <mach-o/dyld.h> if available.
76444                 (find_executable): Use _NSGetExecutablePath when possible.
76445
76446         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76447
76448                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76449                 function.
76450
76451         2005-12-29  Bruno Haible  <bruno@clisp.org>
76452
76453                 * progreloc.c (set_program_name_and_installdir): Fix
76454                 compilation error.
76455
76456         2005-12-04  Bruno Haible  <bruno@clisp.org>
76457
76458                 Cygwin portability.
76459                 * progreloc.c: Include <windows.h> also on Cygwin.
76460                 (find_executable): Add support for Cygwin.
76461                 (set_program_name_and_installdir): Handle also platforms with
76462                 nonempty EXEEXT.
76463
76464         2006-07-11  Bruno Haible  <bruno@clisp.org>
76465
76466                 * javacomp.c: Fix a comment.
76467                 Reported by Jim Meyering.
76468
76469         2006-04-30  Bruno Haible  <bruno@clisp.org>
76470
76471                 * javacomp.h (compile_java_class): Add source_version,
76472                 target_version arguments.
76473                 * javacomp.c: Rewritten to choose only a compiler that
76474                 respects the specified source_version and target_version.
76475
76476         2006-06-27  Bruno Haible  <bruno@clisp.org>
76477
76478                 Assume correct S_ISDIR macro.
76479                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76480
76481         2006-07-22  Bruno Haible  <bruno@clisp.org>
76482
76483                 * javaversion.h: New file, from GNU gettext.
76484                 * javaversion.c: New file, from GNU gettext.
76485                 * javaversion.java: New file, from GNU gettext.
76486                 * javaversion.class: New file, from GNU gettext.
76487
76488         2006-05-17  Bruno Haible  <bruno@clisp.org>
76489
76490                 Cygwin portability.
76491                 * javaexec.c (execute_java_class): Test for jview program
76492                 also on Cygwin.
76493
76494         2006-04-09  Bruno Haible  <bruno@clisp.org>
76495
76496                 * fatal-signal.c: Don't include string.h.
76497                 (at_fatal_signal): Use a copying loop instead of memcpy.
76498
76499         2005-12-04  Bruno Haible  <bruno@clisp.org>
76500
76501                 * csharpexec.c: Add support for 'clix' launcher (untested).
76502                 (execute_csharp_using_sscli): New function.
76503                 (execute_csharp_program): Call it.
76504
76505         2006-06-21  Bruno Haible  <bruno@clisp.org>
76506
76507                 Avoid warnings from recent versions of mcs.
76508                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76509                 -o, -L, -r any more. Use options documented since mcs-1.0
76510                 instead. Similarly for -g.
76511
76512         2005-07-09  Bruno Haible  <bruno@clisp.org>
76513
76514                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76515                 add a .dll suffix.
76516                 Reported by Mark Junker <mjscod@gmx.de>.
76517
76518         2006-06-17  Bruno Haible  <bruno@clisp.org>
76519
76520                 * config.charset: Update for NetBSD 3.0.
76521
76522         2006-05-17  Bruno Haible  <bruno@clisp.org>
76523
76524                 Cygwin portability.
76525                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76526
76527         2006-05-16  Bruno Haible  <bruno@clisp.org>
76528
76529                 * localcharset.c [CYGWIN]: Include <windows.h>.
76530                 (get_charset_aliases): For Cygwin, return the same CPxxx
76531                 aliases list as under WIN32.
76532                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76533                 the environment variables. Fall back to GetACP().
76534
76535         2006-04-05  Bruno Haible  <bruno@clisp.org>
76536
76537                 * config.charset: Update Juan Manuel Guerrero's address.
76538
76539         2005-02-12  Bruno Haible  <bruno@clisp.org>
76540
76541                 * allocsa.h: Add extern "C" for C++.
76542
76543         2005-02-10  Bruno Haible  <bruno@clisp.org>
76544
76545                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76546                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76547
76548         2006-07-22  Bruno Haible  <bruno@clisp.org>
76549
76550                 * gettext.h: Update to GNU gettext-0.15.
76551
76552 2006-07-22  Bruno Haible  <bruno@clisp.org>
76553
76554         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76555         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76556         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76557
76558 2006-07-21  Eric Blake  <ebb9@byu.net>
76559
76560         * modules/stdlib-safer: New file.
76561         * MODULES.html.sh (File stream based Input/Output): Add
76562         stdlib-safer.
76563
76564 2006-07-21  Eric Blake  <ebb9@byu.net>
76565
76566         * lib/stdlib-safer.h: New file from coreutils, required by
76567         stdlib--.h.
76568
76569 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76572
76573 2006-07-20  Bruno Haible  <bruno@clisp.org>
76574
76575         * gnulib-tool: Recognize new option --assume-autoconf.
76576         (autoconf_minversion): New variable.
76577         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76578
76579 2006-07-20  Bruno Haible  <bruno@clisp.org>
76580
76581         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76582
76583 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76584
76585         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76586         Reindent and repaginate.
76587
76588 2006-07-19  Derek Price  <derek@ximbiot.com>
76589
76590         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76591         Correct grammar.
76592
76593 2006-07-17  Bruno Haible  <bruno@clisp.org>
76594
76595         * modules/list: New file.
76596         * modules/array-list: New file.
76597         * modules/carray-list, modules/carray-list-tests: New files.
76598         * modules/linked-list, modules/linked-list-tests: New files.
76599         * modules/avltree-list, modules/avltree-list-tests: New files.
76600         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76601         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76602         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76603         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76604         * modules/oset: New file.
76605         * modules/array-oset: New file.
76606         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76607         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76608         * tests/test-carray_list.c: New file.
76609         * tests/test-linked_list.c: New file.
76610         * tests/test-avltree_list.c: New file.
76611         * tests/test-rbtree_list.c: New file.
76612         * tests/test-linkedhash_list.c: New file.
76613         * tests/test-avltreehash_list.c: New file.
76614         * tests/test-rbtreehash_list.c: New file.
76615         * tests/test-avltree_oset.c: New file.
76616         * tests/test-rbtree_oset.c: New file.
76617         * MODULES.html.sh (Container data structures): New section.
76618
76619 2006-07-17  Bruno Haible  <bruno@clisp.org>
76620
76621         * m4/gl_list.m4: New file.
76622
76623 2006-07-17  Bruno Haible  <bruno@clisp.org>
76624
76625         * lib/gl_list.h: New file.
76626         * lib/gl_list.c: New file.
76627         * lib/gl_array_list.h: New file.
76628         * lib/gl_array_list.c: New file.
76629         * lib/gl_carray_list.h: New file.
76630         * lib/gl_carray_list.c: New file.
76631         * lib/gl_linked_list.h: New file.
76632         * lib/gl_linked_list.c: New file.
76633         * lib/gl_anylinked_list1.h: New file.
76634         * lib/gl_anylinked_list2.h: New file.
76635         * lib/gl_avltree_list.h: New file.
76636         * lib/gl_avltree_list.c: New file.
76637         * lib/gl_anyavltree_list1.h: New file.
76638         * lib/gl_anyavltree_list2.h: New file.
76639         * lib/gl_rbtree_list.h: New file.
76640         * lib/gl_rbtree_list.c: New file.
76641         * lib/gl_anyrbtree_list1.h: New file.
76642         * lib/gl_anyrbtree_list2.h: New file.
76643         * lib/gl_anytree_list1.h: New file.
76644         * lib/gl_anytree_list2.h: New file.
76645         * lib/gl_linkedhash_list.h: New file.
76646         * lib/gl_linkedhash_list.c: New file.
76647         * lib/gl_anyhash_list1.h: New file.
76648         * lib/gl_anyhash_list2.h: New file.
76649         * lib/gl_avltreehash_list.h: New file.
76650         * lib/gl_avltreehash_list.c: New file.
76651         * lib/gl_rbtreehash_list.h: New file.
76652         * lib/gl_rbtreehash_list.c: New file.
76653         * lib/gl_anytreehash_list1.h: New file.
76654         * lib/gl_anytreehash_list2.h: New file.
76655
76656         * lib/gl_oset.h: New file.
76657         * lib/gl_oset.c: New file.
76658         * lib/gl_array_oset.h: New file.
76659         * lib/gl_array_oset.c: New file.
76660         * lib/gl_avltree_oset.h: New file.
76661         * lib/gl_avltree_oset.c: New file.
76662         * lib/gl_rbtree_oset.h: New file.
76663         * lib/gl_rbtree_oset.c: New file.
76664         * lib/gl_anytree_oset.h: New file.
76665
76666 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * m4/mkancesdirs.m4: New file.
76669         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76670         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76671         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76672         it.
76673
76674 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76675
76676         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76677         * lib/mkancesdirs.h: New files.
76678         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76679         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76680         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76681         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76682         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76683         callers changed.  Revamp internals significantly, by not
76684         attempting to create directories that are temporarily more
76685         permissive than the final results.  Do not attempt to use
76686         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76687         This removes some race conditions, fixes some bugs, and simplifies
76688         things.  Use new dirchownmod function to do owner and mode changes.
76689         * lib/mkdir-p.h: Likewise.
76690         * lib/modechange.c (octal_to_mode): New function.
76691         (struct mode_change): New member mentioned.
76692         (make_node_op_equals): New arg mentioned.  All callers changed.
76693         (mode_compile): Keep track of which mode bits the user has explicitly
76694         mentioned.
76695         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76696         New arg PMODE_BITS, to keep track of which mode bits the user
76697         mentioned; it treats S_ISUID and S_ISGID speciall.
76698         All callers changed.
76699         * lib/modechange.h: Likewise.
76700
76701 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         * MODULES.html.sh: Add mkancestors.
76704         * modules/mkancesdirs: New module.
76705         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76706         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76707         The chdir-safer and afs files are now orphans; I'll remove them
76708         unless someone speaks up.
76709         Add lib/dirchownmod.c, lib/dirchownmod.h.
76710         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76711         Add lchown, mkancesdirs.
76712         (Maintainer): Add self.
76713
76714 2006-07-15  Karl Berry  <karl@gnu.org>
76715
76716         * gnulib-tool: help message wording/arrangement.
76717
76718 2006-07-14  Simon Josefsson  <jas@extundo.com>
76719
76720         * doc/gnulib.texi (Libtool and Windows): New section.
76721
76722 2006-07-12  Simon Josefsson  <jas@extundo.com>
76723
76724         * modules/gendocs (License): Fix license, approved by Karl.
76725
76726 2006-07-12  Eric Blake  <ebb9@byu.net>
76727
76728         * MODULES.html.sh: Add gendocs.
76729
76730 2006-07-11  Eric Blake  <ebb9@byu.net>
76731
76732         * modules/fdl: New module, to install doc/fdl.texi.
76733         * MODULES.html.sh: Add new section for documentation modules.
76734         * gnulib-tool: Avoid space-tab.
76735         (--doc-base): New option, to manage files from doc.
76736
76737 2006-07-11  Eric Blake  <ebb9@byu.net>
76738
76739         * m4/absolute-header.m4: Fix comments to match recent change.
76740
76741 2006-07-11  Eric Blake  <ebb9@byu.net>
76742
76743         * gnulib-tool: List --doc-base before --tests-base.
76744
76745 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76746
76747         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76748
76749 2006-07-11  Bruno Haible  <bruno@clisp.org>
76750
76751         * README: Mention where to put documentation.
76752
76753 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76754
76755         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76756
76757 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76760         to stdint.m4.
76761
76762 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76765         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76766         "no/such/file/stdint.h" when there is no such file, so that
76767         the resulting C code can be parsed by dodgy compilers.
76768         Problems reported by Bob Proulx.
76769
76770 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76771
76772         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76773         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76774         macros into the GNU _D_EXACT_NAMLEN.
76775         * lib/savedir.c:  Likewise.
76776         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76777
76778 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76779         and Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76782         * m4/savedir.m4:
76783         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76784         macros into the GNU _D_EXACT_NAMLEN.
76785
76786 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76787
76788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76789         around the absolute name, to work around a problem with the HP-UX
76790         11.23 native C compiler, reported by Bob Proulx.
76791
76792 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         * doc/maintain.texi, make-stds.texi: Sync from
76795         <http://savannah.gnu.org/projects/gnustandards>.
76796
76797 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76800
76801 2006-07-09  Jim Meyering  <jim@meyering.net>
76802
76803         * m4/glob.m4: Remove a doubled word in a comment.
76804
76805 2006-07-09  Jim Meyering  <jim@meyering.net>
76806
76807         * lib/argp-pv.c: Remove a doubled word in a comment.
76808         * lib/check-version.c (check_version): Likewise.
76809         * lib/javacomp.c (compile_java_class): Likewise.
76810
76811 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76812
76813         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76814         for the benefit of people using Autoconf 2.60.  If you want to
76815         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76816         (or m4/onceonly.m4, if pre-2.57) manually.
76817
76818 2006-07-08  Jim Meyering  <jim@meyering.net>
76819
76820         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76821         comment.
76822         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76823         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76824         comment.
76825
76826 2006-07-08  Jim Meyering  <jim@meyering.net>
76827
76828         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76829
76830 2006-07-07  Simon Josefsson  <jas@extundo.com>
76831
76832         * tests/test-crc.c: Change expected crc value, the test vector
76833         were probably computed using the old broken crc.c?
76834
76835 2006-07-06  Simon Josefsson  <jas@extundo.com>
76836
76837         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76838         now the canonical place for the M4 file).
76839
76840         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76841         from the sys_socket dependency now.
76842
76843         * modules/inet_pton (Files): Ditto.
76844
76845         * modules/inet_ntop (Files): Ditto.
76846
76847 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76848
76849         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76850         not gl_PREREQ_GETUSERSHELL.
76851
76852 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76853
76854         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76855         with only one argument, for Autoconf 2.60.
76856         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76857         expand to nothing, so add a shell command to avoid syntax error.
76858         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76859
76860 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76861
76862         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76863
76864 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76865
76866         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76867         no longer needed.  Check for isblank decl.
76868         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76869         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76870         of existence.
76871
76872 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76873
76874         * lib/getloadavg.c: Use __VMS, not VMS.
76875         * lib/getopt.c: Likewise.
76876         * lib/getpagesize.h: Likewise.
76877         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76878         and probably does not work.
76879
76880 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * lib/.cppi-disable: Add wcwidth.
76883         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76884         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76885         (ISGRAPH): Remove.  All uses changed to isgraph.
76886         (FOLD) [!defined _LIBC]: Remove special case.
76887         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76888         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76889         HAVE_ISBLANK.
76890         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76891         case.
76892
76893 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76894
76895         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76896         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76897         brackets.  Other minor changes to suppress some compiler
76898         warnings.
76899
76900 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76901         and Paul Eggert  <eggert@cs.ucla.edu>
76902
76903         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76904         of invoking obsolescent AC_HEADER_DIRENT macro.
76905         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76906         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76907         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76909         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76910         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76911         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76912         * m4/readdir.m4: Remove; no longer needed.
76913
76914 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76915         and Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76918         Don't worry about this obsolete case any more.
76919         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76920         directories.
76921         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76922         worry about this obsolete case any more.
76923         * lib/fts.c: Likewise.
76924         * lib/getcwd.c: Likewise.
76925         * lib/glob.h: Likewise.
76926         * lib/savedir.c: Likewise.
76927
76928 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76931         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76932         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76933         needed.
76934         All uses removed.
76935         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76936         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76937         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76938         needed.
76939         * m4/getdate.m4 (gl_GETDATE): Likewise.
76940         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76941         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76942         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76943         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76944         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76945         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76946         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76947         needed.
76948
76949 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76950
76951         * lib/memcasecmp.c: Include <limits.h>.
76952         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76953         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76954         Don't assume isdigit succeeds only on '0' through '9'.
76955
76956 2006-07-05  Eric Blake  <ebb9@byu.net>
76957
76958         * modules/getaddrinfo (Depends-on): Add snprintf.
76959
76960 2006-07-05  Eric Blake  <ebb9@byu.net>
76961
76962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76963         to avoid 'header present but could not be compiled' on cygwin.
76964
76965 2006-07-05  Eric Blake  <ebb9@byu.net>
76966
76967         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76968         missing from netdb.h.
76969         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76970
76971 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76972
76973         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76974         no longer needed.
76975         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76976         * m4/getdate.m4 (gl_GETDATE): Likewise.
76977         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76978         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76979         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76980         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76982
76983 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76984
76985         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76986         All uses of is_space replaced by isspace.
76987         * lib/exit.h: Don't talk about STDC_HEADERS.
76988         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76989         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76990         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76991         replaced by isprint etc.
76992         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76993         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76994         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76995         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76996         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76997         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76998
76999 2006-07-05  Bruno Haible  <bruno@clisp.org>
77000
77001         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77002         the function exists, before testing against AIX.
77003         Reported by Martin Lambers <marlam@marlam.de>.
77004
77005 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77008         From Mark D. Baushke.
77009
77010 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77011
77012         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77013         to the absolute name, not just one, to bypass Sun C 5.8's
77014         "warning: #include of /usr/include/... may be non-portable".
77015
77016 2006-07-04  Eric Blake  <ebb9@byu.net>
77017
77018         * modules/dirname-tests: New test module.
77019         * tests/test-dirname.c: New file, replacing dirname.c
77020         TEST_DIRNAME section that was recently deleted.
77021
77022 2006-07-04  Bruno Haible  <bruno@clisp.org>
77023
77024         Assume ANSI C header files and <ctype.h> functions.
77025         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77026         (mbsnwidth): Use isprint, iscntrl instead.
77027
77028 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         Merge from coreutils.
77031         * MODULES.html.sh: Add xstrtold.
77032         * modules/xstrtold: New file.
77033         * modules/cycle-check (Files): Add lib/same-inode.h.
77034         * modules/dirname (Files): Add m4/double-slash-root.m4.
77035         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77036         * modules/mkdir-p (Files): Add lib/same-inode.h.
77037         * modules/same (Files): Add lib/same-inode.h.
77038
77039 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77040
77041         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77042         This is to keep the terminology clean; POSIX talks about
77043         "absolute pathnames", not "full pathnames", but the GNU
77044         Coding Standards say to use "path" for something else;
77045         so use "absolute" to keep both sides happy.
77046         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77047         Set gl_absolute_header, not gl_full_header_path.
77048         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77049         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77050         All uses changed.
77051
77052         Merge from coreutils.
77053
77054         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77057         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77058         want to require the building of c-strtod.o.
77059         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77060         needs -lm directly.
77061         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77062
77063         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77066         --as-needed option if available.  Problem reported by Albert Chin in
77067         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77068         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77069         cc merely issues a bunch of annoying warnings for --as-needed
77070         (this problem was reported by Bob Proulx).  Also, try linking with
77071         -lm to detect a bug in binutils 2.16 (this problem was reported
77072         by Ralf Wildenhues).
77073
77074         2006-06-18  Jim Meyering  <jim@meyering.net>
77075
77076         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77077         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77078         macro.
77079         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77080         also check for glibc-2.4's abort-inducing bug.
77081
77082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77083         Low-probability clean-up should be to use rmdir to get rid of
77084         the just-created directory, not unlink.
77085
77086         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77087         configure fail, and request a bug report to inform us about it.
77088         Add a comment that, barring reports to the contrary, in 2007 we'll
77089         assume ftruncate is universally available.
77090
77091         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77092
77093         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77094
77095         2006-03-12  Jim Meyering  <jim@meyering.net>
77096
77097         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77098         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77099         * m4/same.m4 (gl_SAME): Likewise.
77100         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77101
77102         2006-03-11  Eric Blake  <ebb9@byu.net>
77103
77104         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77105         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77106         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77107         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77108
77109 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77112         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77113         reported by Mark D. Baushke, one in
77114         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77115
77116         Merge from coreutils.
77117
77118         * lib/.cppi-disable: Add stdint_.h.
77119         * lib/.cvsignore: Add stdint.h.
77120
77121         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77122
77123         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77124         both double and long double versions.
77125         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77126         * lib/xstrtold.c: New file.
77127         * lib/xstrtod.h (xstrtold): New decl.
77128
77129         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * lib/filemode.c (setst): Remove.
77132         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77133         (arguably) clearer, and the generated code is a bit smaller on my
77134         Debian GNU/Linux stable x86 host.
77135
77136         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77137
77138         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77139         Assume that filemode.h includes sys/types.h and sys/stat.h.
77140         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77141         (ftypelet): Reorder to put common cases first, for efficiency.
77142         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77143         to do 'M'.
77144         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77145         of 10, for compatibility with FreeBSD.  All callers changed.
77146         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77147         types that can't be deduced solely from st_mode.  First arg is now a
77148         const pointer.
77149         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77150         (strmode): Renamed from mode_string.
77151         (filemodestring): New decl.
77152         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77153         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77154         needed.
77155         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77156
77157         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77160         fsusage.h now does that.  Include fsusage.h first, to test interface.
77161         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77162         at most one method (the old code could have generated decls that
77163         didn't conform to C89, not that this was ever exercised).
77164         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77165
77166         2006-03-19  Jim Meyering  <jim@meyering.net>
77167
77168         Work even in a chroot where d_ino values for entries in "/"
77169         don't match the stat.st_ino values for the same names.
77170         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77171         number, iterate through all entries again, using lstat instead.
77172         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77173         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77174
77175         * lib/getcwd.c (__getcwd): Clarify a comment.
77176         Use memcpy in place of a call to strcpy.
77177
77178         2006-03-12  Jim Meyering  <jim@meyering.net>
77179
77180         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77181         matches that of the current directory (which we're about to chdir ".."
77182         out of), then save the dev-ino of the parent, instead.
77183
77184         * lib/same-inode.h (SAME_INODE): New file/macro.
77185         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77186         Include "same-inode.h", instead.
77187         * lib/same.c: Likewise.
77188         * lib/cycle-check.h: Include "same-inode.h".
77189         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77190         * lib/cycle-check.c (SAME_INODE): Remove definition.
77191         * lib/root-dev-ino.h: Include "same-inode.h".
77192
77193         2006-03-11  Eric Blake  <ebb9@byu.net>
77194
77195         * lib/same.c (same_name): s/base_name/last_component/
77196         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77197         * lib/filenamecat.c (file_name_concat): Likewise.
77198
77199         2006-03-11  Eric Blake  <ebb9@byu.net>,
77200                     Paul Eggert  <eggert@cs.ucla.edu>
77201
77202         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77203         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77204         drive prefix.
77205         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77206         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77207         (last_component): New method.
77208         * lib/dirname.c (dir_len): Determine when drive letters need a
77209         subsequent slash.  Preserve // when it is special.
77210         (dir_name): Don't append dot when drive letter is absolute.
77211         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77212         * lib/basename.c (base_name): New semantics - malloc the result.
77213         Preserve // when it is special.  Preserve relative files that look
77214         like drive letters.
77215         (base_len): Preserve // when it is special.
77216         (last_component): New method, similar to old base_name semantics.
77217         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77218         base_name.  Strip redundant slashes from ///.
77219
77220 2006-07-03  Jim Meyering  <jim@meyering.net>
77221
77222         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77223         macro is used before the first cycle_check call.
77224
77225 2006-07-03  Eric Blake  <ebb9@byu.net>
77226
77227         * modules/dirname (Depends-on): Add xstrndup.
77228
77229 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77232         test cases, so that config.log is a bit easier to follow.
77233
77234 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77237         both are 64 bits, since this seems to be the tradition, and this
77238         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77239         we ever run into a host that prefers long long to long in this
77240         case, we'll need another configure-time test.  Problem reported by
77241         Jim Meyering.
77242
77243 2006-07-02  Eric Blake  <ebb9@byu.net>
77244
77245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77246
77247 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77248
77249         * modules/inttypes (Depends-on): No longer depends on stdint.
77250         * modules/stdint (Description): Say more about assumptions.
77251         Say that the fast types might differ.  Say macros are used.
77252         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77253         (Makefile.am): Revise list of substituted symbols to match
77254         new stdint.m4.
77255         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77256         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77257         * tests/test-stdint.c (verify_same_types)
77258         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77259         the code conforms to C99/C89.
77260         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77261         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77262
77263 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77266         but fix a bug, by requiring at least 64 bits.
77267         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77268         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77269         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77270         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77271
77272         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77273         changes.  Make 2.59 a prerequisite.  Check and substitute for
77274         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77275         inttypes.h.  Do not use special include files; just use the
77276         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77277         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77278         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77279         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77280         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77281         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77282         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77283         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77284         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77285         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77286         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77287         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77288         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77289         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77290         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77291         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77292         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77293         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77294         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77295         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77296         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77297         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77298         not check for things that C99 does not require, e.g., int8_t.  If
77299         a test isn't needed unless <stdint.h> isn't working, and is
77300         unlikely to be needed for any other reason, then don't do it
77301         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77302         size_t, since we assume C89 freestanding at least.  Do not check
77303         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77304         the right thing even if the types are not defined.  Instead use:
77305         (gl_STDINT_TYPE_PROPERTIES): New macro.
77306         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77307         testing whether <sys/types.h> clashes, as Autoconf does this for
77308         us now.  All uses removed.
77309         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77310         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77311         (gl_CHECK_TYPE_SAME):
77312         Remove; no longer needed.
77313         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77314         exists, since we'll return 0 anyway in that case.
77315         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77316
77317 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77320         possible collision with system files.
77321         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77322         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77323         WCHAR_MIN and WCHAR_MAX in this case.
77324         (<stddef.h>): Do not include; no longer needed.
77325         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77326         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77327         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77328         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77329         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77330         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77331         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77332         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77333         !defined(__c99))]: Include in this case too, since it's harmless
77334         now.
77335         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77336         dangerous to do so.
77337         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77338         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77339         (_STDINT_MIN, _STDINT_MAX): New macros.
77340         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77341         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77342         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77343         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77344         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77345         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77346         macros, not typedefs; this simplifies things quite a bit.
77347         Use long int for all types narrower than int64_t.
77348         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77349         Define in terms of long long int or int64_t or long int,
77350         not int64_t or int32_t.  This saves some compile-time testing.
77351         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77352         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77353         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77354         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77355         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77356         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77357         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77358         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77359         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77360         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77361         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77362         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77363         undef any previous version and define our own version, for
77364         simplicity and consistency with the new macros for types.
77365         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77366         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77367         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77368         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77369         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77370         @WINT_T_SUFFIX@ to keep things simple here.
77371         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77372         Simplify by assuming typical 8/16/32/64 host, since we're
77373         already doing that elsewhere anyway.
77374         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77375         and assume long long int is 64 bits if available.  This
77376         speeds up 'configure'.
77377
77378 2006-07-01  Eric Blake  <ebb9@byu.net>
77379
77380         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77381         Reported by Andreas Buening.
77382
77383 2006-07-01  Eric Blake  <ebb9@byu.net>
77384
77385         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77386
77387 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77388
77389         * lib/getaddrinfo.c: fixed typo
77390
77391 2006-06-29  Jim Meyering  <jim@meyering.net>
77392
77393         * modules/strftime (Maintainer): Add my name, since with the
77394         FPRINTFTIME changes strftime.c has forked from glibc.
77395
77396 2006-06-29  Eric Blake  <ebb9@byu.net>
77397
77398         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77399
77400 2006-06-29  Eric Blake  <ebb9@byu.net>
77401
77402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77403
77404 2006-06-29  Eric Blake  <ebb9@byu.net>
77405
77406         * lib/stat_.h: New file.
77407
77408 2006-06-29  Eric Blake  <ebb9@byu.net>
77409
77410         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77411         unused static function.
77412
77413 2006-06-29  Eric Blake  <ebb9@byu.net>
77414
77415         * doc/functions.texi (Function Portability): Document missing lstat
77416         on mingw.
77417
77418 2006-06-29  Eric Blake  <ebb9@byu.net>
77419
77420         * MODULES.html.sh: Add sys_stat.
77421         * modules/sys_stat: New module.
77422         * modules/mkstemp (Depends-on): Add sys_stat.
77423
77424 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77425
77426         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77427
77428 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77429
77430         * m4/c-bs-a.m4: Removed.
77431
77432 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77433
77434         * lib/strftime.c: Assume strftime() exists.
77435
77436 2006-06-29  Derek Price  <derek@ximbiot.com>
77437
77438         * modules/c-bs-a: Removed - \a is C89.
77439         * MODULES.html.sh: Remove c-bs-a.
77440
77441 2006-06-29  Bruno Haible  <bruno@clisp.org>
77442
77443         * modules/wcwidth (License): Change to LGPL.
77444
77445 2006-06-28  Simon Josefsson  <jas@extundo.com>
77446
77447         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77448         on _WIN32.
77449
77450         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77451         getnameinfo.
77452
77453 2006-06-28  Simon Josefsson  <jas@extundo.com>
77454
77455         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77456
77457 2006-06-28  Simon Josefsson  <jas@extundo.com>
77458
77459         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77460         functions there.  It will succeed on Windows XP, but on Windows
77461         2000 and (presumably) earlier, it will fail, and use the internal
77462         re-implementation.
77463         (use_win32_p): New function.
77464         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77465         Support AI_NUMERICSERV to disable getservbyname.
77466         (getnameinfo): New function, only supports
77467         NI_NUMERICHOST|NI_NUMERICSERV for now.
77468
77469         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77470         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77471         getnameinfo.
77472
77473 2006-06-28  Eric Blake  <ebb9@byu.net>
77474
77475         * modules/wcwidth: New file.
77476         * modules/mbchar (Depends-on): Add wcwidth.
77477         * modules/mbswidth (Depends-on): Add wcwidth.
77478         * MODULES.html.sh: Add wcwidth.
77479
77480 2006-06-28  Eric Blake  <ebb9@byu.net>
77481
77482         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77484
77485 2006-06-28  Eric Blake  <ebb9@byu.net>
77486
77487         * lib/xvasprintf.h: Fix comments.
77488
77489 2006-06-28  Eric Blake  <ebb9@byu.net>
77490
77491         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77492         * lib/mbswidth.c (wcwidth): Move from here...
77493         * lib/wcwidth.h: ...to this new file.
77494
77495 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77496
77497         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77498
77499         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77500         it's obsolete.
77501         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77502
77503 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77504
77505         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77506         Autoconf 2.60 says this stuff was obsolete.
77507
77508 2006-06-28  Bruno Haible  <bruno@clisp.org>
77509
77510         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77511
77512 2006-06-28  Bruno Haible  <bruno@clisp.org>
77513
77514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77515         gt_TYPE_WCHAR_T.
77516
77517 2006-06-28  Bruno Haible  <bruno@clisp.org>
77518
77519         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77520         declaration for wcwidth.
77521         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77522
77523 2006-06-28  Bruno Haible  <bruno@clisp.org>
77524
77525         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77526         (mkdir): Define using _mkdir.
77527
77528 2006-06-28  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/getaddrinfo.h: Fix POSIX URL.
77531         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77532         _WIN32.
77533         (use_win32_p): Make static.
77534         (getaddrinfo): Reject service name if it is empty or does not consist
77535         solely of decimal digits, or if its value is > 65535.
77536         (getnameinfo): Remove useless casts.
77537
77538 2006-06-27  Simon Josefsson  <jas@extundo.com>
77539
77540         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77541         Eggert and Martin Lambers.
77542
77543 2006-06-27  Simon Josefsson  <jas@extundo.com>
77544
77545         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77546         Eggert and Martin Lambers.
77547
77548 2006-06-27  Bruno Haible  <bruno@clisp.org>
77549
77550         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77551         result to 0, not to empty.
77552         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77553
77554 2006-06-27  Bruno Haible  <bruno@clisp.org>
77555
77556         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77557
77558 2006-06-26  Simon Josefsson  <jas@extundo.com>
77559
77560         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77561         present.
77562
77563 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77566         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77567         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77568
77569 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77570
77571         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77572
77573 2006-06-26  Bruno Haible  <bruno@clisp.org>
77574
77575         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77576
77577 2006-06-26  Bruno Haible  <bruno@clisp.org>
77578
77579         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77580
77581 2006-06-26  Bruno Haible  <bruno@clisp.org>
77582
77583         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77584         SGI C compiler in pre-C99 mode.
77585         Suggested by Mark D. Baushke and Larry Jones.
77586
77587 2006-06-26  Bruno Haible  <bruno@clisp.org>
77588
77589         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77590         WCHAR_MAX.
77591         Reported by Mark D. Baushke and Larry Jones.
77592
77593 2006-06-26  Bruno Haible  <bruno@clisp.org>
77594
77595         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77596         in pre-C99 mode.
77597         Suggested by Mark D. Baushke and Larry Jones.
77598
77599 2006-06-23  Simon Josefsson  <jas@extundo.com>
77600             Bruno Haible  <bruno@clisp.org>
77601
77602         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77603         Emit mostlyclean-local rule.
77604         (func_emit_tests_Makefile_am): Likewise.
77605         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77606
77607 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77608
77609         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77610
77611 2006-06-23  Bruno Haible  <bruno@clisp.org>
77612
77613         * tests/test-stdint.c: Update to match ISO C 99 Technical
77614         Corrigendum 1.
77615
77616 2006-06-23  Bruno Haible  <bruno@clisp.org>
77617
77618         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77619
77620 2006-06-23  Bruno Haible  <bruno@clisp.org>
77621
77622         * lib/stdint_.h: Treat IRIX like OpenBSD.
77623
77624 2006-06-23  Bruno Haible  <bruno@clisp.org>
77625
77626         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77627         ISO C 99 Technical Corrigendum 1.
77628
77629 2006-06-22  Simon Josefsson  <jas@extundo.com>
77630
77631         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77632         MinGW.
77633
77634 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77637         needed.  Some compiler complained about some of them.  Problem reported
77638         by Larry Jones in
77639         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77640
77641 2006-06-21  Simon Josefsson  <jas@extundo.com>
77642
77643         * tests/test-getaddrinfo.c: New file.
77644
77645         * modules/getaddrinfo-tests: New file.
77646
77647         * MODULES.html.sh: Add inet_pton.
77648
77649         * modules/inet_pton: New file.
77650
77651 2006-06-21  Simon Josefsson  <jas@extundo.com>
77652
77653         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77654         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77655         of using the (limited) gnulib implementation on Windows XP.
77656
77657         * m4/inet_pton.m4: New file.
77658
77659 2006-06-21  Simon Josefsson  <jas@extundo.com>
77660
77661         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77662         variable.
77663
77664         * lib/socket_.h: Don't define WINVER.
77665
77666         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77667         slightly modified to work in gnulib.
77668
77669 2006-06-21  Simon Josefsson  <jas@extundo.com>
77670
77671         * doc/gnulib.texi (Windows sockets): Add.
77672
77673 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * lib/read-file.c (fread_file): Start with buffer allocation of
77676         0 bytes rather than 1 byte; this simplifies the code.
77677         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77678         code to free buffer and save/restore errno.
77679         (internal_read_file): Remove unused local.
77680
77681 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77682
77683         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77684         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77685         Problem reported by Denis Excoffier in
77686         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77687
77688 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77689
77690         * modules/sys_socket, modules/socklen: Include sys/types since
77691         FreeBSD 4.x's sys/socket.h needs it.
77692
77693 2006-06-19  Simon Josefsson  <jas@extundo.com>
77694
77695         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77696
77697 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77700
77701 2006-06-19  Bruno Haible  <bruno@clisp.org>
77702
77703         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77704         and FULL_PATH_INTTYPES_H in angle brackets.
77705         Reported by Mark D. Baushke <mdb@gnu.org>.
77706
77707 2006-06-17  Eric Blake  <ebb9@byu.net>
77708
77709         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77710         errno.
77711
77712 2006-06-17  Bruno Haible  <bruno@clisp.org>
77713
77714         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77715         <sys/inttypes.h>.
77716
77717 2006-06-17  Bruno Haible  <bruno@clisp.org>
77718
77719         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77720         whether errno is declared. Assume <errno.h> declares errno.
77721
77722 2006-06-17  Bruno Haible  <bruno@clisp.org>
77723
77724         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77725
77726 2006-06-17  Bruno Haible  <bruno@clisp.org>
77727
77728         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77729         problem on Solaris 2.5.1.
77730
77731 2006-06-16  Eric Blake  <ebb9@byu.net>
77732
77733         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77734         * lib/unicodeio.c [!defined errno]: Likewise.
77735         * lib/strtol.c [!defined errno]: Likewise.
77736         * lib/strtod.c [!defined errno]: Likewise.
77737
77738 2006-06-15  Eric Blake  <ebb9@byu.net>
77739
77740         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77741
77742 2006-06-15  Eric Blake  <ebb9@byu.net>
77743
77744         * config/srclist.txt (ssize_t.m4): Lose sync.
77745
77746 2006-06-15  Bruno Haible  <bruno@clisp.org>
77747
77748         * modules/stdint (Files): Include m4/full-header-path.m4,
77749         m4/size_max.m4, m4/wchar_t.m4.
77750         (Makefile.am): Many more substitutions.
77751         * modules/stdint-tests: New file.
77752         * tests/test-stdint.c: New file.
77753
77754 2006-06-15  Bruno Haible  <bruno@clisp.org>
77755
77756         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77757         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77758         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77759         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77760         gl_CHECK_TYPE_SAME): New macros.
77761
77762 2006-06-15  Bruno Haible  <bruno@clisp.org>
77763
77764         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77765
77766 2006-06-15  Bruno Haible  <bruno@clisp.org>
77767
77768         * lib/stdint_.h: Rewritten to be fully auto-configured.
77769         Fixes bug on HP-UX/IA64.
77770
77771 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * lib/getdate.y (__attribute__): Don't define if already defined.
77774         Problem reported by Larry Jones.
77775         * lib/utimens.c (__attribute__): Likewise.
77776
77777 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77780         reported by Andreas Schwab.
77781
77782 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77783             Bruno Haible  <bruno@clisp.org>
77784
77785         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77786         check for the declaration of strnlen and a run test that exposes the
77787         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77788         rpl_strndup.
77789
77790 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77791             Bruno Haible  <bruno@clisp.org>
77792
77793         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77794
77795 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77796
77797         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77798         compile test, for Tru64 4.0D.
77799
77800 2006-05-28  Karl Berry  <karl@gnu.org>
77801
77802         * config/srclist.txt (printf-args.c): lose sync.
77803
77804 2006-05-26  Martin Lambers  <marlam@marlam.de>
77805
77806         * lib/getpass.c: Updates the test for the native W32 API, and adds
77807         missing includes, thus fixing compilation warnings.
77808
77809 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77810
77811         * lib/exclude.c (exclude_fnmatch): New function.
77812         (excluded_file_name): Call exclude_fnmatch.
77813         * lib/exclude.h (excluded_file_name): New prototype
77814
77815 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77816
77817         * lib/tempname.c (small_open, large_open): New macros.
77818         (__open, __open64) [!_LIBC]: Remove.
77819         (__gen_tempname): Use small_open and large_open instead of __open
77820         and __open64.  This fixes a portability bug on HP-UX 11.11i
77821         reported by Simon Wing-Tang in
77822         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77823
77824 2006-05-24  Bruno Haible  <bruno@clisp.org>
77825
77826         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77827         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77828         Reported by Thorsten Maerz <torte@netztorte.de> via
77829         Aaron Stone <aaron@serendipity.cx>.
77830
77831 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77834         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77835         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77836         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77837         not really conditional on the cache.
77838         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77839
77840 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77843         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77844         (my_usleep): Don't mishandle maximum value.
77845
77846 2006-05-19  Jim Meyering  <jim@meyering.net>
77847
77848         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77849
77850 2006-05-17  Bruno Haible  <bruno@clisp.org>
77851
77852         Cygwin portability.
77853         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77854
77855 2006-05-17  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/stdint_.h: Fix recognition of Cygwin.
77858
77859 2006-05-15  Bruno Haible  <bruno@clisp.org>
77860
77861         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77862         on libtool patch by Ralf Wildenhues.
77863
77864 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77867         test for C99 conformance; (bool) 0.5 is an integer constant
77868         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77869         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77870
77871 2006-05-11  Simon Josefsson  <jas@extundo.com>
77872
77873         * m4/xvasprintf.m4: Fix obvious typo.
77874
77875 2006-05-11  Jim Meyering  <jim@meyering.net>
77876
77877         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77878         James Lemley.
77879
77880 2006-05-10  Simon Josefsson  <jas@extundo.com>
77881
77882         * lib/md4.c: Typo fix, update copyright years.
77883         (K1, K2): Don't use L because it turn computations into 64-bit on
77884         64-bit platforms.
77885
77886 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77889         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77890         unwanted sign propagation, e.g., on hosts with 64-bit int.
77891         There still are some problems with reeelly weird theoretical hosts
77892         (e.g., 33-bit int) but it's not worth worrying about now.
77893         * lib/sha1.c (rol): Likewise.
77894         (K1, K2, K3, K4): Remove unnecessary L suffix.
77895
77896 2006-05-10  Bruno Haible  <bruno@clisp.org>
77897
77898         * lib/des.c: Cast to avoid warnings.
77899
77900 2006-05-09  Bruno Haible  <bruno@clisp.org>
77901
77902         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77903         (Depends-on): Depend also on xsize, stdarg.
77904         (configure.ac): Add gl_XVASPRINTF.
77905
77906 2006-05-09  Bruno Haible  <bruno@clisp.org>
77907
77908         * m4/xvasprintf.m4: New file.
77909
77910 2006-05-09  Bruno Haible  <bruno@clisp.org>
77911
77912         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77913         (EOVERFLOW): Define fallback value.
77914         (xstrcat): New function.
77915         (xvasprintf): Recognize the special case of a string concatenation.
77916
77917 2006-05-08  Eric Blake  <ebb9@byu.net>
77918
77919         * gnulib-tool (func_version): Base copyright year on CVS date.
77920         (func_emit_copyright_notice): New function.
77921         (func_emit_lib_Makefile_am): Use it.
77922         (func_emit_tests_Makefile_am): Likewise.
77923         (func_import): Likewise.
77924
77925 2006-05-08  Bruno Haible  <bruno@clisp.org>
77926
77927         * modules/stdarg: New file.
77928         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77929
77930 2006-05-08  Bruno Haible  <bruno@clisp.org>
77931
77932         * m4/stdarg.m4: New file, from GNU gettext.
77933
77934 2006-05-08  Bruno Haible  <bruno@clisp.org>
77935
77936         * config/srclist.txt (build-aux/config.rpath): different from latest
77937         release.
77938
77939 2006-05-08  Bruno Haible  <bruno@clisp.org>
77940
77941         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77942
77943 2006-05-05  Jim Meyering  <jim@meyering.net>
77944
77945         * m4/warning.m4: New file, derived from bison's file by the same name.
77946
77947 2006-05-03  Bruno Haible  <bruno@clisp.org>
77948
77949         * lib/stdint_.h: Shorter URL.
77950         * lib/inttypes.h: Likewise.
77951
77952 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77953
77954         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77955
77956 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         * lib/verify.h: Document the internals better.  Most of this change
77959         was written by Bruno Haible.
77960
77961 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * doc/verify.texi: New file, partly based on a proposal by
77964         Bruno Haible.
77965
77966 2006-05-02  Bruno Haible  <bruno@clisp.org>
77967
77968         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77969         test from here...
77970         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77971
77972 2006-04-29  Bruno Haible  <bruno@clisp.org>
77973
77974         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77975         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77976
77977 2006-04-29  Bruno Haible  <bruno@clisp.org>
77978
77979         * gnulib-tool: Make --update option actually work.
77980
77981 2006-04-29  Bruno Haible  <bruno@clisp.org>
77982
77983         * doc/gcd.texi: New file.
77984         * doc/gnulib.texi: Include it.
77985
77986 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77987
77988         * lib/getdate.y (get_date): When adding relative date, start with the
77989         initial time, not with the result of the first mktime call.
77990
77991 2006-04-25  Bruno Haible  <bruno@clisp.org>
77992
77993         * gnulib-tool (func_import): Output the include directives in three
77994         blocks, sorted separately.
77995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77996
77997 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77998
77999         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78000         to define main with arguments, for C++.  Reported by Eric Blake.
78001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78002         Prefer 'int main ()' to 'int main (void)', for C++.
78003         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78004         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78005         for 'main', for C99 and C++.
78006
78007 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78010         Don't assume that exit status -1 is valid.
78011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78012         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78013         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78014         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78015         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78016         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78017         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78018         functions can be used without declaring them, or that you can
78019         exit with status -1.
78020         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78021
78022 2006-04-24  Karl Berry  <karl@gnu.org>
78023
78024         * config/srclist.txt (longdouble.m4): sync lost.
78025
78026 2006-04-24  Eric Blake  <ebb9@byu.net>
78027
78028         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78029
78030 2006-04-24  Bruno Haible  <bruno@clisp.org>
78031
78032         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78033         poll() implementation in AIX.
78034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78035
78036 2006-04-24  Bruno Haible  <bruno@clisp.org>
78037
78038         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78039         assigned exactly once.
78040
78041 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78042             Bruno Haible  <bruno@clisp.org>
78043
78044         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78045         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78046         for AM_CPPFLAGS.
78047
78048 2006-04-23  Bruno Haible  <bruno@clisp.org>
78049
78050         * modules/copy-file: Depend on unistd.
78051         * modules/execute: Likewise.
78052         * modules/fatal-signal: Likewise.
78053         * modules/findprog: Likewise.
78054         * modules/mkdtemp : Likewise.
78055         * modules/pipe: Likewise.
78056         * modules/wait-process: Likewise.
78057
78058 2006-04-23  Bruno Haible  <bruno@clisp.org>
78059
78060         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78061         condition was already detected.
78062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78063
78064 2006-04-23  Bruno Haible  <bruno@clisp.org>
78065
78066         * lib/copy-file.c: Include <unistd.h> unconditionally.
78067         * lib/execute.c: Likewise.
78068         * lib/fatal-signal.c: Likewise.
78069         * lib/findprog.c: Likewise.
78070         * lib/mkdtemp.c: Likewise.
78071         * lib/pipe.h: Likewise.
78072         * lib/pipe.c: Likewise.
78073         * lib/wait-process.h: Likewise.
78074
78075 2006-04-23  Bruno Haible  <bruno@clisp.org>
78076
78077         * gnulib-tool (func_usage): Fix --import description. Document
78078         --update.
78079         (func_import): Create temporary file in a temporary directory, if
78080         --dry-run is specified. Silence errors from 'grep' when there are no
78081         m4 files in $m4dir.
78082         (func_create_testdir): Silence errors from 'grep' when there are no
78083         m4 files in $m4dir.
78084         Reported by Karl Berry <karl@freefriends.org>.
78085
78086 2006-04-20  Bruno Haible  <bruno@clisp.org>
78087
78088         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78089         one argument, so that the code will be portable to Autoconf 2.60.
78090         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78091         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78092         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78093
78094 2006-04-19  Derek Price  <derek@ximbiot.com>
78095             Eric Blake  <ebb9@byu.net>
78096
78097         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78098         rather than "/full/path.h".  Update comment to match.  Shorten &
78099         generalize m4_translit call via AS_TR_CPP.
78100
78101 2006-04-19  Derek Price  <derek@ximbiot.com>
78102             Eric Blake  <ebb9@byu.net>
78103
78104         * lib/inttypes.h: Correct grammar in comment.
78105
78106 2006-04-18  Derek Price  <derek@ximbiot.com>
78107             Paul Eggert  <eggert@cs.ucla.edu>
78108
78109         * modules/inttypes: New file.
78110         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78111
78112 2006-04-18  Derek Price  <derek@ximbiot.com>
78113             Paul Eggert  <eggert@cs.ucla.edu>
78114
78115         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78116         New files.
78117
78118 2006-04-18  Derek Price  <derek@ximbiot.com>
78119             Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         * lib/inttypes.h: New file.
78122         * lib/strtoimax.c: Assume <inttypes.h>.
78123
78124 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78127         isn't mounted.  Problem reported by Kir Kolyshkin.
78128
78129 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78132         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78133         Derek R. Price.
78134         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78135         implementation.
78136
78137 2006-04-12  Eric Blake  <ebb9@byu.net>
78138
78139         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78140         is now done automatically by the corresponding Autoconf macro.
78141
78142 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78145         time_r.h.
78146
78147 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         Merge regex changes from libc, removing some of our
78150         POSIX-conformance changes that were rejected and redoing them in a
78151         less-intrusive way.
78152
78153         * lib/regcomp.c (re_compile_internal, init_dfa):
78154         Length arg is now size_t, not Idx.  All uses changed.
78155         (peek_token): Forward decl now says internal_function.
78156         (__re_error_msgid, __re_error_msgid_idx):
78157         Now static rather than extern with attribute_hidden.
78158         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78159         For some reason libc prefers K&R style defns for external functions.
78160         (regerror) [!defined _LIBC]: Likewise.
78161         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78162         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78163         (build_range_exp, build_collating_symbol):
78164         Use K&R-style defn.
78165         (re_compile_fastmap): Use '\0' to memset, not 0.
78166         (utf8_sb_map): Make the calculations more obvious.
78167         (init_dfa, parse_bracket_exp, build_charclass_op):
78168         Call calloc and cast result, as glibc does.
78169         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78170         (build_range_exp, build_collating_symbol):
78171         Now internal functions.
78172
78173         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78174
78175         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78176         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78177         Don't depend on VMS; depend on __VMS instead, for POSIX
78178         namespace cleanness.
78179         (regoff_t): Define to ssize_t, not long int.
78180
78181         Remove the REG_ macros named below.  Instead, make the old names
78182         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78183         __USE_GNU_REGEX.
78184         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78185         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78186         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78187         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78188         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78189         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78190         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78191         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78192         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78193         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78194         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78195         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78196         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78197         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78198         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78199         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78200         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78201         (REG_NREGS):
78202         Remove.  All uses replaced by the old RE_* names.
78203         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78204         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78205         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78206         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78207         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78208         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78209         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78210         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78211         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78212         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78213         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78214         Don't bother having these macros be independent of each others'
78215         values, since they no longer exist in the POSIX name space.
78216
78217         Rename the following member names back to their old names,
78218         unless !__USE_GNU_REGEX.  All uses changed back.
78219         (buffer): Renamed from re_buffer.
78220         (allocated): Renamed from re_allocated.
78221         (used): Renamed from re_used.
78222         (syntax): Renamed from re_syntax.
78223         (fastmap): Renamed from re_fastmap.
78224         (translate): Renamed from re_translate.
78225         (can_be_null): Renamed from re_can_be_null.
78226         (regs_allocated): Renamed from re_regs_allocated.
78227         (fastmap_accurate): Renamed from re_fastmap_accurate.
78228         (no_sub): Renamed from re_no_sub.
78229         (not_bol): Renamed from re_not_bol.
78230         (not_eol): Renamed from re_not_eol.
78231         (newline_anchor): Renamed from re_newline_anchor.
78232         (num_regs): Renamed from rm_num_regs.
78233         (start): Renamed from rm_start.
78234         (end): Renamed from rm_end.
78235
78236         (free_state): Move up a bit.
78237
78238         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78239         #define to be empty.
78240         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78241         when that is what is intended.
78242         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78243         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78244         (MAX): New macro.
78245         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78246         All uses changed back to re_malloc, etc.  It's now the caller's
78247         responsibility to check for overflow; all callers changed.
78248         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78249         (re_x2nrealloc): Remove.
78250         (free_state): Remove decl.
78251
78252         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78253         (re_set_registers, re_exec):
78254         Use K&R-style defn.
78255
78256         2006-01-31  Roland McGrath  <roland@redhat.com>
78257
78258         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78259         Reported by Mike Frysinger <vapier@gentoo.org>.
78260
78261         2006-01-15  Andreas Jaeger  <aj@suse.de>
78262
78263         [BZ #1950]
78264         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78265         build_wcs_upper_buffer change.
78266         (build_wcs_upper_buffer): Change return type.
78267
78268         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78269
78270         * lib/regex_internal.h: Include <stdint.h> if available.
78271
78272         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78273
78274         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78275
78276         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78277
78278         * lib/regcomp.c: Adjust for changed secondary hash function.
78279
78280         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78281
78282         * lib/regex.h: Pretty printing.
78283         Clean up namespace a bit.
78284
78285         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78286
78287         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78288         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78289
78290         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78291                     Ulrich Drepper  <drepper@redhat.com>
78292
78293         [BZ #1302]
78294         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78295         changed.
78296         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78297
78298         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78299
78300         [BZ #281]
78301         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78302         * lib/regcomp.c: Remove unnecessary uses of
78303         unsigned RE_TRANSLATE_TYPE.
78304         * lib/regex_internal.h: Likewise.
78305         * lib/regex_internal.c: Likewise.
78306         * lib/regexec.c: Likewise.
78307         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78308
78309         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78310
78311         * lib/regexec.c (find_recover_state): Remove unnecessary
78312         initialization.
78313         (transit_state_bkref): Make DFA a const pointer.
78314         (get_subexp): Likewise.
78315         (check_arrival): Likewise.
78316         (update_cur_sifted_state): Likewise.
78317         (re_search_internal): Likewise.
78318         (prune_impossible_nodes): Likewise.
78319         (acquire_init_state_context): Likewise.
78320         (proceed_next_node): Likewise.
78321         (set_regs): Likewise.
78322         (free_fail_stack_return): Likewise.
78323         (check_arrival_expand_ecl): Mark DFA parameter as const.
78324         (check_arrival_expand_ecl_sub): Likewise.
78325         (check_subexp_limits): Likewise.
78326         (sub_epsilon_src_nodes):  Likewise.
78327         (add_epsilon_src_nodes):  Likewise.
78328         (merge_state_array): Likewise.
78329         (update_regs): Likewise.
78330         (build_trtable): Likewise.
78331         (sift_states_backward): Mark MCTX parameter as const.
78332         (build_sifted_states): Likewise.
78333         (update_cur_sifted_state): Likewise.
78334         (sift_states_mkref): Likewise.
78335         (check_arrival_expand_ecl): Mark eclosure as const.
78336         (check_dst_limits_calc_pos_1): Likewise.
78337         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78338         pointer.
78339
78340         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78341
78342         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78343         (transit_state_sb): Likewise.
78344         (transit_state_mb): Likewise.
78345         (sift_states_iter_mb): Likewise.
78346         (check_arrival_add_next_nodes): Likewise.
78347         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78348         [_LIBC] (re_search_2_stub): Use mempcpy.
78349
78350         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78351         mbrtowc for very simple UTF-8 case.
78352
78353         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78354         a pointer-to-const.
78355         (re_acquire_state_context): Likewise.
78356         * lib/regex_internal.h: Adjust prototypes.
78357
78358         * lib/regex.c: Prevent using C++ compilers.
78359
78360         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78361         (re_acquire_state_context): Likewise.
78362
78363 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * modules/regex (Depends-on): Add ssize_t.
78366
78367 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78370         translation table.
78371
78372 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78375
78376 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78377             Bruno Haible  <bruno@clisp.org>
78378
78379         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78380         <sys/types.h> and <inttypes.h>.
78381
78382 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78383
78384         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78385         `__error_t_defined', so argp.h will not typedef the former.
78386
78387 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78390         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78391         glibc names.  Even if glibc is changed to conform to POSIX, the
78392         traditional names will be available anyway, since regex depends on
78393         the extensions module.  Also, fix a longstanding typo in the
78394         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78395         reported by Emanuele Giaquinta.  Also, change sense of cached
78396         variable, so that the message makes sense.
78397
78398 2006-03-24  Simon Josefsson  <jas@extundo.com>
78399
78400         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78401         including some doc fixes.
78402         (base64_encode_alloc): Fix +1 bug on allocation failures.
78403
78404 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78405
78406         * lib/base64.c (base64_encode): Do not read past end of array with
78407         unsanitized input on systems with CHAR_BIT > 8.
78408
78409 2006-03-24  Eric Blake  <ebb9@byu.net>
78410
78411         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78412
78413 2006-03-22  Karl Berry  <karl@gnu.org>
78414
78415         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78416         * config/srclistvars.sh (COREUTILS): new var.
78417
78418 2006-03-17  Jim Meyering  <jim@meyering.net>
78419
78420         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78421         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78422
78423 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78424
78425         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78426         no longer needs it.  Instead, check that regoff_t is as least
78427         as wide as ptrdiff_t.
78428
78429         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78430         so that our regex.h stays compatible with the installed regex.
78431         This is helpful for installers who configure --without-included-regex.
78432         Problem reported by Emanuele Giaquinta.
78433
78434 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78437         Typedef to long int, not to off_, as POSIX will likely change
78438         in that direction.
78439
78440 2006-03-15  Eric Blake  <ebb9@byu.net>
78441
78442         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78443
78444 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78445
78446         * lib/argp-help.c (validate_uparams): Fix typo
78447         * lib/argp-parse.c (argp_default_options): Consistently begin help
78448         messages with a lowercase letter.
78449
78450 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78453         overrun buffers and shouldn't be used (much as gets shouldn't be
78454         used).
78455         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78456
78457 2006-03-08  Simon Josefsson  <jas@extundo.com>
78458
78459         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78460         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78461
78462 2006-03-08  Simon Josefsson  <jas@extundo.com>
78463
78464         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78465         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78466
78467 2006-03-08  Simon Josefsson  <jas@extundo.com>
78468
78469         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78470         signal that configure disabled the device.
78471
78472 2006-03-08  Simon Josefsson  <jas@extundo.com>
78473
78474         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78475         languages.
78476
78477 2006-03-07  Simon Josefsson  <jas@extundo.com>
78478
78479         * modules/getopt (Depends-on): Add unistd.
78480
78481         * modules/unistd: New file.
78482
78483 2006-03-07  Simon Josefsson  <jas@extundo.com>
78484
78485         * modules/gc-random: New file.
78486
78487 2006-03-07  Simon Josefsson  <jas@extundo.com>
78488
78489         * m4/unistd_h.m4: New file.
78490
78491 2006-03-07  Simon Josefsson  <jas@extundo.com>
78492
78493         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78494         test to be side-effect free by storing the result in the cache
78495         variable gl_cv_lib_readline, and moving the assignment of
78496         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78497         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78498
78499 2006-03-07  Simon Josefsson  <jas@extundo.com>
78500
78501         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78502         error on missing devices (the functions will return an error).
78503
78504         * m4/gc.m4: Move random stuff to gc-random.m4
78505
78506 2006-03-07  Simon Josefsson  <jas@extundo.com>
78507
78508         * lib/unistd_.h: New file.
78509
78510 2006-03-07  Simon Josefsson  <jas@extundo.com>
78511
78512         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78513
78514 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78517         Problem reported by Juan Manuel Guerrero.
78518
78519 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78522         the unistd module.
78523         * lib/getlogin_r.c: Likewise.
78524         * lib/getlogin_r.h: Likewise.
78525         * lib/glob.c: Likewise.
78526         * lib/pagealign_alloc.c: Likewise.
78527         * lib/unistd_.h: Remove; no longer needed.
78528
78529 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78532         Add unistd.
78533         * modules/c-stack (Depends-on): Add unistd.
78534         * modules/getlogin_r: Likewise.
78535         * modules/glob: Likewise.
78536         * modules/pagealign_alloc: Likewise.
78537         * modules/unistd (Files): Remove lib/unistd_.h.
78538         (EXTRA_DIST): Remove.
78539         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78540         need unistd_.h.
78541         (MOSTLYCLEANFILES): Remove unistd.h-t.
78542
78543 2006-03-03  Simon Josefsson  <jas@extundo.com>
78544
78545         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78546
78547 2006-03-03  Simon Josefsson  <jas@extundo.com>
78548
78549         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78550         libidn and bison.
78551
78552 2006-03-03  Simon Josefsson  <jas@extundo.com>
78553
78554         * build-aux/maint.mk: Add indent target.
78555
78556 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78557
78558         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78559         our replacement poll.h in any case, to avoid a differing
78560         declaration from a system header.  Seen on AIX.
78561
78562 2006-03-01  Simon Josefsson  <jas@extundo.com>
78563
78564         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78565         <kasal@ucw.cz>.
78566
78567 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * modules/gettime (Depends-on): Add extensions module.
78570         * modules/nanosleep (Depends-on): Likewise.
78571         * modules/settime (Depends-on): Likewise.
78572
78573 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78576         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78577         pedantically.
78578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78579         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78580
78581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78582         not "==".  Reported by Ralf Wildenhues.
78583
78584 2006-03-01  Karl Berry  <karl@gnu.org>
78585
78586         * doc/Copyright/request-*: new files, synced from gnuorg.
78587
78588 2006-03-01  Karl Berry  <karl@gnu.org>
78589
78590         * config/srclist.txt (Copyright/*): new entries.
78591
78592 2006-02-28  Simon Josefsson  <jas@extundo.com>
78593
78594         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78595
78596 2006-02-27  Simon Josefsson  <jas@extundo.com>
78597
78598         * lib/base64.h: Indent #define's.  From Jim Meyering
78599         <jim@meyering.net>.
78600
78601 2006-02-27  Jim Meyering  <jim@meyering.net>
78602
78603         Revert the change of 2006-02-24, so these files can continue
78604         to be sync'd from gettext.
78605         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78606         of `config.h'.
78607
78608 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78609
78610         * modules/intprops: New file.
78611         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78612         Add intprops.
78613         * modules/getloadavg (Files): Remove lib/intprops.h.
78614         (Depends-on): Add intprops.
78615         * modules/human: Likewise.
78616         * modules/inttostr: Likewise.
78617         * modules/openat: Likewise.
78618         * modules/sig2str: Likewise.
78619         * modules/userspec: Likewise.
78620         * modules/utimecmp: Likewise.
78621         * modules/xnanosleep: Likewise.
78622         * modules/xstrtol: Likewise.
78623
78624 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78625
78626         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78627         * modules/lock-tests (TESTS): Use $(EXEEXT).
78628         * modules/tls-tests: Likewise.
78629         * modules/argp-tests: Likewise.
78630         (check_PROGRAMS): New var, replacing...
78631         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78632
78633 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78634
78635         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78636         `config.h'.
78637
78638 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78641
78642 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78643
78644         Sync from coreutils.
78645         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78646         gl_CHDIR_SAFER.
78647
78648 2006-02-22  Jim Meyering  <jim@meyering.net>
78649
78650         Sync from coreutils.
78651         * m4/chdir-safer.m4: New file.
78652
78653 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78656         AT_FDCWD exceeds INT_MAX.
78657         * lib/openat.h (AT_FDCWD): Likewise.
78658
78659 2006-02-17  Eric Blake  <address@hidden>
78660
78661         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78662
78663 2006-02-16  Simon Josefsson  <jas@extundo.com>
78664
78665         * modules/getaddrinfo (Depends-on): Add sys_socket.
78666
78667 2006-02-15  Simon Josefsson  <jas@extundo.com>
78668
78669         * build-aux/maint.mk: Add dsyntax-check rule.
78670
78671 2006-02-15  Eric Blake  <ebb9@byu.net>
78672
78673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78674         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78675         'present but cannot compile' warnings on cygwin.
78676         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78677         use ws2tcpip.h if sys/socket.h works.
78678         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78679         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78680
78681 2006-02-14  Simon Josefsson  <jas@extundo.com>
78682
78683         * modules/maintainer-makefile (Files): Rename.
78684
78685         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78686         and (the local) Makefile.cfg to maint-cfg.mk.
78687
78688         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78689         to the latter.
78690
78691         * modules/maintainer-makefile: New module.
78692
78693         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78694         severaly stripped to make it possible to build it up from scratch
78695         with reliable tests.
78696
78697         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78698         fixes to permit overriding the default actions when configure and
78699         makefile are not available.
78700
78701 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         Sync from coreutils.
78704         * modules/lstat (Depends-on): Don't depend on xalloc.
78705         (License): Change from GPL to LGPL, since this is now simply a
78706         replacement for a libc function.
78707
78708 2006-02-14  Jim Meyering  <jim@meyering.net>
78709
78710         Sync from coreutils.
78711
78712         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78713         failure on deficient systems, and simplify gnulib lgpl dependencies.
78714         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78715         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78716
78717         * lib/xalloc-die.c: Remove unused definition of N_.
78718
78719 2006-02-14  Jim Meyering  <jim@meyering.net>
78720
78721         Sync from coreutils.
78722         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78723         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78724         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78725         double-quote uses of that variable, to accommodate the rare case in
78726         which getmntent is available in none of the libraries checked.  This
78727         happens at least on FreeBSD 5.0.
78728
78729 2006-02-13  Simon Josefsson  <jas@extundo.com>
78730
78731         * gnulib-tool (Usage): Fix --import, from
78732         karl@freefriends.org (Karl Berry).
78733
78734 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78735
78736         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78737
78738 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78739
78740         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78741         "autoupdate" on 2005-12-12.
78742
78743 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         * modules/closeout (Depends-on): Remove atexit.
78746
78747 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78750         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78751
78752 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78755         __EXTENSIONS__ if this causes compilation to fail.  Problem
78756         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78757         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78758
78759 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78762         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78764         All uses changed.
78765
78766 2006-01-26  Simon Josefsson  <jas@extundo.com>
78767
78768         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78769         prototype is visible on mingw32.
78770
78771         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78772         for mingw32.
78773
78774         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78775         mingw32).
78776
78777 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78780         attempt to open for write; this always fails, at least on POSIX
78781         hosts.  This reinstates the 2006-01-09 change, which was
78782         inadvertently removed.
78783
78784 2006-01-26  Bruno Haible  <bruno@clisp.org>
78785
78786         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78787         Reported by Paul Eggert.
78788
78789 2006-01-26  Bruno Haible  <bruno@clisp.org>
78790             Paul Eggert  <eggert@cs.ucla.edu>
78791
78792         * lib/stdbool_.h (_Bool)
78793         [(! (defined __cplusplus || defined __BEOS__)
78794           && !defined __GNUC__
78795           && !(defined __HP_cc || defined __xlc__
78796                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78797                || defined __sgi))]:
78798         #define to signed char in these cases too; this simplifies
78799         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78800         etc., separately) and makes it more conservative.
78801
78802 2006-01-25  Simon Josefsson  <jas@extundo.com>
78803
78804         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78805         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78806         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78807
78808 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78809
78810         * lib/argp-namefrob.h: Bugfix. Remove stray #
78811
78812 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78813
78814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78815         so that we test the test.
78816         Check for yet another HP-UX cc bug involving *bool |= bool.
78817
78818 2006-01-25  Karl Berry  <karl@gnu.org>
78819
78820         * config/srclist.txt (vasnprintf.c): sync lost.
78821
78822 2006-01-25  Jim Meyering  <jim@meyering.net>
78823
78824         Sync from the stable (b5) branch of coreutils:
78825
78826         * lib/fts.c (fts_children): Don't let close() clobber errno from
78827         failed fchdir().
78828
78829         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78830         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78831         a dangling symlink.  That can also happen at least for ELOOP.
78832         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78833         FYI, this bug predates the inclusion of fts.c in coreutils.
78834
78835         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78836         in their own block, so pre-c99 compilers don't object.
78837
78838         Avoid the double-free (first in fts_read, second in fts_close) that
78839         would occur when an `active' directory is made inaccessible (e.g.,
78840         via chmod a-x) during a traversal.
78841         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78842         before returning.  Reproduce this failure by
78843         mkdir -p a/b; cd a; chmod a-x . b
78844         Reported by Stavros Passas.
78845
78846 2006-01-25  Jim Meyering  <jim@meyering.net>
78847
78848         * lib/fileblocks.c: Remove more useless parentheses.
78849         * lib/readutmp.h: Likewise.
78850
78851 2006-01-25  Bruno Haible  <bruno@clisp.org>
78852
78853         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78854         warnings.
78855         Reported by Paul Eggert.
78856
78857 2006-01-25  Bruno Haible  <bruno@clisp.org>
78858
78859         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78860         rid of a trap command. For Solaris sh.
78861         Reported by Mark D. Baushke <mdb@gnu.org>.
78862
78863 2006-01-24  Simon Josefsson  <jas@extundo.com>
78864
78865         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78866         Bruno.
78867
78868 2006-01-24  Karl Berry  <karl@gnu.org>
78869
78870         * config/srclist.txt (argp-namefrob.h): sync lost.
78871
78872 2006-01-24  Jim Meyering  <jim@meyering.net>
78873
78874         * modules/openat (Files): Add lib/intprops.h.
78875         From Mark D. Baushke.
78876
78877 2006-01-24  Jim Meyering  <jim@meyering.net>
78878
78879         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78880         Reported by Mark D. Baushke.
78881
78882 2006-01-24  Jim Meyering  <jim@meyering.net>
78883
78884         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78885
78886 2006-01-24  Bruno Haible  <bruno@clisp.org>
78887
78888         * modules/strnlen (Maintainer): Change from glibc to all.
78889
78890 2006-01-24  Bruno Haible  <bruno@clisp.org>
78891
78892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78893         Patch by Paul Eggert.
78894
78895 2006-01-24  Bruno Haible  <bruno@clisp.org>
78896
78897         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78898         already has it.
78899         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78900         2005-11-26.
78901
78902         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78903         'signed char' to avoid problems with the built-in _Bool type.
78904         Reported by Paul Eggert on 2005-11-26.
78905
78906 2006-01-24  Bruno Haible  <bruno@clisp.org>
78907
78908         * gnulib-tool (func_import): Avoid constructing complicated sed
78909         expressions inside backquote.
78910         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78911
78912 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78913
78914         These changes imported from libc.
78915         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78916         test and two separate function calls.
78917         * lib/strndup.c (__strndup): Add libc_hidden_def.
78918
78919 2006-01-23  Simon Josefsson  <jas@extundo.com>
78920
78921         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78922         Remove the test_*_SOURCES variable: automake infers it by default.
78923         * modules/tls-tests: Likewise.
78924
78925 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         Work around porting bugs reported by Dieter in
78928         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78929         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78930         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78931         Include "getopt.h" first, to check interface.
78932         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78933         !HAVE_DECL_GETENV.
78934         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78935         (__strndup): Revert to K&R-style function dfns, the glibc style.
78936         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78937         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78938         Include strnlen.h first, to get prototype properly.
78939         (strnlen): Renamed from __strnlen.
78940         Remove weak alias.
78941
78942 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78945
78946 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * config/srclist.txt: Adjust to reflect glibc reorganization.
78949         This affects only comments.
78950
78951 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78952
78953          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78954          Reported by Bruce Korb <bkorb@gnu.org>.
78955
78956 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78959         to pacify gcc -Wswitch-default.
78960
78961 2006-01-22  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78964         temporary buffer for sprintf, take into account the precision also
78965         for 'd', 'i', 'u', 'o', 'x', 'X'.
78966
78967 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78968
78969         * modules/argp-tests: New module
78970         * tests/test-argp.c: New file
78971         * tests/test-argp-2.sh: New file
78972
78973 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78974
78975         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78976         (__argp_base_name): Removed
78977         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78978         typo.
78979         (__argp_base_name): Provide macro definition or extern declaration
78980         depending on the configuration
78981
78982 2006-01-20  Simon Josefsson  <jas@extundo.com>
78983
78984         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78985
78986 2006-01-20  Simon Josefsson  <jas@extundo.com>
78987
78988         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78989
78990 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78993         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78994         Suggested by Bruno Haible.
78995
78996 2006-01-20  Karl Berry  <karl@gnu.org>
78997
78998         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78999         until changes propagate, I guess.
79000
79001 2006-01-19  Simon Josefsson  <jas@extundo.com>
79002
79003         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79004
79005 2006-01-19  Simon Josefsson  <jas@extundo.com>
79006
79007         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79008
79009 2006-01-19  Simon Josefsson  <jas@extundo.com>
79010
79011         * gnulib-tool: Set check_PROGRAMS.
79012
79013         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79014         modules/des-tests, modules/gc-arcfour-tests,
79015         modules/gc-arctwo-tests, modules/gc-des-tests,
79016         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79017         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79018         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79019         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79020         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79021         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79022         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79023         test_*_SOURCES.
79024
79025 2006-01-18  Simon Josefsson  <jas@extundo.com>
79026
79027         * modules/socklen (Depends-on): Depend on sys_socket.
79028
79029 2006-01-18  Simon Josefsson  <jas@extundo.com>
79030
79031         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79032         modules/des-tests, modules/gc-arcfour-tests,
79033         modules/gc-arctwo-tests, modules/gc-des-tests,
79034         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79035         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79036         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79037         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79038         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79039         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79040         $(EXEEXT) to automake TESTS variable, for mingw32.
79041
79042 2006-01-17  Simon Josefsson  <jas@extundo.com>
79043
79044         * modules/socklen (Include): Need sys/socket.h.
79045
79046 2006-01-17  Bruno Haible  <bruno@clisp.org>
79047
79048         * modules/ssize_t (Include): Add <sys/types.h>.
79049
79050 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79053         it's not portable and it doesn't work with cross-compiles.
79054         Problem reported by Bruno Haible.  Fix missing-$ typo in
79055         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79056         -zignore from being used with Sun's C compiler.
79057
79058 2006-01-12  Simon Josefsson  <jas@extundo.com>
79059
79060         * lib/base64.c: Fix warning, reported by Bruno Haible
79061         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79062
79063 2006-01-12  Bruno Haible  <bruno@clisp.org>
79064
79065         * modules/ldd: New file.
79066         * build-aux/ldd.sh.in: New file.
79067         * MODULES.html.sh (Support for building libraries and executables): Add
79068         ldd.
79069
79070 2006-01-12  Bruno Haible  <bruno@clisp.org>
79071
79072         * m4/ldd.m4: New file.
79073
79074 2006-01-12  Bruno Haible  <bruno@clisp.org>
79075
79076         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79077         endless loop while replacing $auxdir with build-aux.
79078
79079 2006-01-11  Simon Josefsson  <jas@extundo.com>
79080
79081         * lib/stdint_.h (SIZE_MAX): Add missing (.
79082
79083 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         Sync from coreutils.
79086         * lib/md5.c: Fix commentary typos.
79087         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79088         * lib/md5.h (__attribute__): Remove; unused.
79089         * lib/sha1.c: Fix commentary to match md5 better.
79090         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79091         so that we don't need to worry about alignment.  All uses changed.
79092         This merges the 2005-10-28 md5 change into sha1.
79093
79094 2006-01-11  Jim Meyering  <jim@meyering.net>
79095
79096         Sync from coreutils.
79097         * lib/md5.c (OP): Fix spacing.
79098
79099 2006-01-11  Bruno Haible  <bruno@clisp.org>
79100
79101         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79102         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79103         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79104
79105 2006-01-11  Bruno Haible  <bruno@clisp.org>
79106
79107         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79108         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79109         the "early" section as well.
79110
79111 2006-01-11  Bruno Haible  <bruno@clisp.org>
79112
79113         Avoid "ar: no archive members specified" error on MacOS X.
79114         * gnulib-tool (func_modules_add_dummy): New function.
79115         (func_import, func_create_testdir): Invoke it.
79116
79117 2006-01-11  Bruno Haible  <bruno@clisp.org>
79118
79119         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79120         with $auxdir in AC_CONFIG_FILES statements.
79121
79122 2006-01-11  Bruno Haible  <bruno@clisp.org>
79123
79124         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79125         Initialize also noinst_HEADERS to empty.
79126
79127 2006-01-11  Bruno Haible  <bruno@clisp.org>
79128
79129         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79130         variables.
79131         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79132         autoreconf.
79133
79134 2006-01-11  Bruno Haible  <bruno@clisp.org>
79135
79136         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79137         overridable by the user.
79138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79139
79140 2006-01-10  Simon Josefsson  <jas@extundo.com>
79141
79142         * modules/sys_socket: New file.
79143
79144 2006-01-10  Simon Josefsson  <jas@extundo.com>
79145
79146         * m4/sys_socket_h.m4: New file.
79147
79148 2006-01-10  Simon Josefsson  <jas@extundo.com>
79149
79150         * lib/socket_.h: New file.
79151
79152 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79153
79154         * modules/readutmp (Maintainer): Add myself.
79155
79156 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79159         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79160         People who are still concerned with buggy memcmp implementations
79161         can invoke gl_FUNC_MEMCMP themselves.
79162
79163 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79164
79165         * lib/regex_internal.h (BITSET_WORD_BITS):
79166         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79167         preprocessor mishandles large unsigned values as if they were signed.
79168         Problem reported by Claudio Fontana in
79169         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79170
79171 2006-01-10  Jim Meyering  <jim@meyering.net>
79172
79173         Avoid the double-free (first in fts_read, second in fts_close) that
79174         would occur when an `active' directory is made inaccessible (e.g.,
79175         via chmod a-x) during a traversal.
79176         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79177         before returning.  Reproduce this failure by
79178         mkdir -p a/b; cd a; chmod a-x . b
79179         Reported by Stavros Passas.
79180
79181         Sync from coreutils.
79182         * lib/sha1.c: Tweak grammar in a comment.
79183
79184 2006-01-10  Jim Meyering  <jim@meyering.net>
79185
79186         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79187         Patch by Joerg Sonnenberger.
79188
79189 2006-01-10  Bruno Haible  <bruno@clisp.org>
79190
79191         * modules/readutmp: Depend on module free.
79192         * modules/strtok_r: Depend on module restrict.
79193
79194 2006-01-10  Bruno Haible  <bruno@clisp.org>
79195
79196         * modules/gettext (configure.ac): Add an invocation of
79197         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79198
79199 2006-01-10  Bruno Haible  <bruno@clisp.org>
79200
79201         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79202         Reported by Werner Lemberg <wl@gnu.org>.
79203
79204 2006-01-10  Bruno Haible  <bruno@clisp.org>
79205
79206         * lib/localcharset.c: Update from GNU gettext.
79207
79208 2006-01-10  Bruno Haible  <bruno@clisp.org>
79209
79210         * lib/argp.h (__const): Remove macro. Use const instead.
79211         * lib/argp-fmtstream.h (__const): Likewise.
79212         * lib/glob_.h (__const): Remove macro.
79213         * lib/glob-libc.h: Use const instead of __const.
79214
79215 2006-01-10  Bruno Haible  <bruno@clisp.org>
79216
79217         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79218         variable.
79219         Needed to avoid an automake error regarding the 'gettext' module.
79220
79221 2006-01-09  Simon Josefsson  <jas@extundo.com>
79222
79223         * modules/inet_ntop (Depends-on): Add restrict.
79224
79225 2006-01-09  Simon Josefsson  <jas@extundo.com>
79226
79227         * modules/gc-rijndael-tests (License): Put under LGPL.
79228
79229         * modules/gc-des-tests (License): Likewise.
79230
79231         * modules/gc-arcfour-tests (License): Likewise.
79232
79233         * modules/gc-arctwo-tests (License): Likewise.
79234
79235         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79236
79237         * modules/gc-hmac-sha1-tests (Files): Likewise.
79238
79239         * modules/gc-hmac-md5-tests (License): Likewise.
79240
79241         * modules/gc-sha1-tests (License): Likewise.
79242
79243         * modules/gc-md5-tests (License): Likewise.
79244
79245         * modules/gc-md4-tests (License): Likewise.
79246
79247         * modules/gc-md2-tests (License): Likewise.
79248
79249         * modules/gc-tests (License): Likewise.
79250
79251         * modules/des-tests (License): Likewise.
79252
79253         * modules/md4-tests (License): Likewise.
79254
79255         * modules/md2-tests (License): Likewise.
79256
79257 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         Sync from coreutils:
79260
79261         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79262         * modules/lib-ignore: New file.
79263         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79264         chdir-safer.m4, lchmod.m4.
79265         * modules/openat: Add mkdirat.c, openat-priv.h.
79266
79267 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79268
79269         Sync from coreutils.
79270         * m4/lib-ignore.m4: New file.
79271         * m4/lchmod.m4: New file.
79272
79273 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         Sync from coreutils.
79276         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79277         for write access: POSIX says that must fail.
79278         * lib/fts.c (diropen): Likewise.
79279         * lib/save-cwd.c (save_cwd): Likewise.
79280         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79281         well, for minor improvements on hosts that lack O_DIRECTORY.
79282         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79283         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79284         Fall back on chown if open failed with EACCES.
79285
79286         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79287         Report an error at compile-time if only a 1-second nominal clock
79288         resolution is found.
79289
79290         * lib/lchmod.h: New file.
79291         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79292         (make_dir_parents): Use lchown rather than chown, and
79293         lchmod rather than chmod.
79294
79295         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79296         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79297         "proc" reported by n0dalus.
79298
79299         * lib/mountlist.c: Include <limits.h>.
79300         (dev_from_mount_options)
79301         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79302         New function.  It no longer assumes "dev=" has the System V meaning
79303         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79304         (read_file_system_list)
79305         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79306         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79307         dev= in that case.
79308
79309         * lib/posixtm.h (PDS_PRE_2000): New macro.
79310         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79311         allow_century.  All usages changed.  Reject dates outside the range
79312         1969-1999 if PDS_PRE_2000 is used.
79313
79314 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         Sync from coreutils.
79317         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79318         (Time of day items): Mention the possibility of leap seconds.
79319         Problem reported by Dr. David Alan Gilbert.
79320
79321 2006-01-09  Jim Meyering  <jim@meyering.net>
79322
79323         Sync from coreutils.
79324
79325         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79326
79327         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79328
79329         * lib/modechange.c (mode_compile): Reject an invalid mode string
79330         that starts with an octal digit.  From Andreas Gruenbacher.
79331
79332         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79333         and dup to open_safer and dup_safer, respectively.
79334         (openat_permissive): Fix typo in comment.
79335
79336         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79337         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79338         (_): Remove; no longer needed.
79339         (openat): Renamed from rpl_openat; no need for rpl_openat
79340         since openat.h renames openat for us.
79341         Replace most of the body with a call to openat_permissive,
79342         to avoid duplicate code.
79343         Port to (probably hypothetical) environments were mode_t is
79344         wider than int.
79345         (openat_permissive): Require mode arg, so that we can check
79346         types better.  Put it just after flags.  Change cwd failure
79347         indicator from pointer-to-bool to pointer-to-errno-value.
79348         All callers changed.
79349         Invoke openat_save_fail and/or openat_restore_fail if
79350         cwd_errno is null, so that openat can call us.
79351         (openat_permissive, fdopendir, fstatat, unlinkat):
79352         Simplify errno handling to avoid some duplicate code,
79353         as it's OK to set errno on success.
79354         * lib/openat.h: Revamp code so that function macros depend on
79355         __OPENAT_PREFIX only, not also on AT_FDCWD.
79356         (openat_ro): Remove.  Caller changed to use openat_permissive.
79357         (openat_permissive): Now a macro, if not a function.
79358         (openat_restore_fail, openat_save_fail): Now always functions,
79359         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79360
79361         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79362         and openat.c.
79363         * lib/mkdirat.c: Include openat-priv.h.
79364         Remove definitions of macros defined therein.
79365         * lib/openat.c: Likewise.
79366
79367         * lib/mkdirat.c (mkdirat): New file and function.
79368         * lib/openat.h (mkdirat): Declare.
79369
79370         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79371
79372         * lib/openat.h (openat_permissive): Declare.
79373         (openat_ro): Define.
79374
79375         * lib/openat.c (EXPECTED_ERRNO): New macro.
79376         (openat_permissive): New function -- used in remove.c rewrite.
79377         (all functions): Set errno just before returning, only if there
79378         was an actual failure.
79379         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79380
79381         Emulate openat-family functions using Linux's procfs, if possible.
79382         Idea and some code based on Ulrich Drepper's glibc changes.
79383
79384         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79385         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79386         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79387         before falling back on save_cwd and restore_cwd.
79388         (fdopendir, fstatat, unlinkat): Likewise.
79389
79390         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79391         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79392
79393         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79394         as second argument to va_arg.  Otherwise, some versions of gcc
79395         warn that `if this code is reached, the program will abort'.
79396
79397 2006-01-09  Jim Meyering  <jim@meyering.net>
79398
79399         Sync from coreutils.
79400         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79401         Require openat-priv.h.
79402
79403 2006-01-09  Bruno Haible  <bruno@clisp.org>
79404
79405         * modules/strnlen (Include): Use strnlen.h.
79406
79407 2006-01-09  Bruno Haible  <bruno@clisp.org>
79408
79409         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79410
79411 2006-01-09  Bruno Haible  <bruno@clisp.org>
79412
79413         * lib/sysexit_.h (EX_OK): New macro.
79414         Suggested by Martin Lambers <marlam@marlam.de>.
79415
79416 2006-01-09  Bruno Haible  <bruno@clisp.org>
79417
79418         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79419         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79420
79421 2006-01-09  Bruno Haible  <bruno@clisp.org>
79422
79423         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79424         numbers.
79425
79426 2006-01-09  Bruno Haible  <bruno@clisp.org>
79427
79428         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79429         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79430         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79431         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79432
79433 2006-01-09  Bruno Haible  <bruno@clisp.org>
79434
79435         * build-aux/javacomp.sh.in: New file, moved from lib/.
79436         * modules/javacomp-script (Files): Update.
79437         (configure.ac): Add AC_CONFIG_FILES invocation.
79438         (EXTRA_DIST): Remove variable.
79439
79440         * build-aux/javaexec.sh.in: New file, moved from lib/.
79441         * modules/javaexec (Files): Update.
79442         (configure.ac): Add AC_CONFIG_FILES invocation.
79443         (EXTRA_DIST): Remove javaexec.sh.in.
79444
79445         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79446         * modules/csharpcomp-script (Files): Update.
79447         (configure.ac): Add AC_CONFIG_FILES invocation.
79448         (EXTRA_DIST): Remove variable.
79449
79450         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79451         * modules/csharpexec (Files): Update.
79452         (configure.ac): Add AC_CONFIG_FILES invocation.
79453         (EXTRA_DIST): Remove csharpexec.sh.in.
79454
79455 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79456
79457         Sync from coreutils.
79458
79459         Add POSIX ACL support
79460         * lib/acl.h (copy_acl, set_acl): Add declarations.
79461         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79462         systems other than Linux.
79463         (chmod_or_fchmod): New function: use fchmod when possible,
79464         and chmod otherwise.
79465         (file_has_acl): Add a POSIX ACL implementation, with a
79466         Linux-specific subcase.
79467         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79468         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79469         acls are unsupported.
79470         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79471         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79472         are unsupported.
79473
79474 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79475
79476         Sync from coreutils.
79477         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79478
79479 2006-01-07  Bruno Haible  <bruno@clisp.org>
79480
79481         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79482         gl_EARLY.
79483
79484 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79487         Problem reported for Mingw by Mark Junker.
79488
79489 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         * README: Gnulib normally doesn't generate a tarball.
79492
79493 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79496         long int, not int, for nanosecond counts, so that people who are
79497         used to POSIX struct timespec won't be surprised.  Reported by Jim
79498         Meyering.
79499
79500 2005-12-28  Bruno Haible  <bruno@clisp.org>
79501
79502         * build-aux/config.rpath: Update from GNU gettext.
79503
79504 2005-12-16  Jim Meyering  <jim@meyering.net>
79505
79506         * modules/fprintftime: New module.
79507         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79508
79509 2005-12-16  Jim Meyering  <jim@meyering.net>
79510
79511         * m4/fprintftime.m4: New file.
79512
79513 2005-12-16  Jim Meyering  <jim@meyering.net>
79514
79515         * lib/fprintftime.c, lib/fprintftime.h: New files.
79516
79517 2005-12-15  Simon Josefsson  <jas@extundo.com>
79518
79519         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79520         new m4/socklen.m4.
79521
79522 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79523
79524         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79525         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79526
79527 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79528
79529         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79530         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79531         struct uparams is valid. Fall back to the default values if it is
79532         not.
79533
79534 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79535
79536         * modules/argp (Files): Add argp-pin.c
79537         (Depends-on): dirname
79538         (lib_SOURCES): Add argp-pin.c
79539
79540 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79541
79542         * m4/argp.m4:  Check if program_invocation_name and
79543         program_invocation_short_name are declared and define appropriate
79544         macros if they are not.
79545
79546 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79547
79548         * lib/argp-help.c (__argp_base_name): New function
79549         (__argp_short_program_name): Rewrite using __argp_base_name
79550         * lib/argp-namefrob.h: Define program_invocation_name and
79551         program_invocation_short_name if requested
79552         (__argp_base_name): Add prototype
79553         * lib/argp-parse.c (argp_def): Use gettext wrappers
79554         (argp_default_parser): Use __argp_base_name
79555         * lib/argp-pin.c: New file. Defines program_invocation_name and
79556         program_invocation_short_name on systems that lack them.
79557
79558 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79559
79560         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79561         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79562         porting problem reported by Georg Schwarz in
79563         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79564
79565 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79568         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79569         porting problem reported by Georg Schwarz in
79570         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79571
79572 2005-12-05  Bruno Haible  <bruno@clisp.org>
79573
79574         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79575         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79576         Reported by Mark Junker <mjscod@gmx.de>.
79577
79578 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79581         Use implementation from Albert Chin, with some
79582         comments/corrections by Stepan Kasal and myself.
79583
79584 2005-12-02  Bruno Haible  <bruno@clisp.org>
79585
79586         * gnulib-tool (func_import): Accept GPLed build tool modules when
79587         --lgpl is given.
79588         * modules/csharpcomp-script: New file.
79589         * modules/csharpcomp: Depend on it.
79590         * modules/javacomp-script: New file.
79591         * modules/javacomp: Depend on it.
79592         Suggested by Simon Josefsson.
79593
79594 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79595
79596         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79597         statement, to work around an HP-UX 10.20 compiler bug reported by
79598         Peter O'Gorman.
79599
79600 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79601
79602         * modules/savedir (Depends-on): Add openat.
79603
79604 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79607         (uintmax_t) [defined uintmax_t]: Do not declare.
79608         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79609         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79610         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79611         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79612         sake of portability to weird hosts that C allows (though we don't
79613         know of any practical examples).
79614
79615         * lib/savedir.h (fdsavedir): New decl.
79616         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79617         contains most of the former guts of savedir.
79618         (savedir): Use savedirstream.
79619         Include "openat.h".
79620
79621 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79622
79623         * modules/obstack (Files): Add m4/ulonglong.m4.
79624         Problem reported by Davide Angelocola.
79625
79626 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79629         coreutils no longer futzes with rounding modes.
79630
79631 2005-11-14  Jim Meyering  <jim@meyering.net>
79632
79633         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79634         replacement of mkstemp.
79635
79636 2005-11-10  Simon Josefsson  <jas@extundo.com>
79637
79638         * lib/readline.c: Remove EOL.
79639
79640 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * modules/gethrxtime (Depends-on): Add gettime.
79643
79644 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79647         or gettimeofday; no longer needed.
79648
79649 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79652         time business.
79653         (gethrxtime) [! (HAVE_NANOUPTIME
79654         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79655         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79656         our own approximation.
79657
79658 2005-11-08  Eric Blake  <ebb9@byu.net>
79659
79660         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79661
79662 2005-11-08  Eric Blake  <ebb9@byu.net>
79663
79664         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79665
79666 2005-11-04  Bruno Haible  <bruno@clisp.org>
79667
79668         * gnulib-tool: Implement --update mode.
79669
79670 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         Fix porting problem reported by Theodoros V. Kalamatianos.
79673         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79674         Don't assume that futimes failing means we must fail.
79675
79676 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79677
79678         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79679         variables to suggest the intended function of the PATH_MAX check.
79680
79681 2005-10-30  Kean Johnston  <jkj@sco.com>
79682
79683         Trivial changes to support SCO systems.
79684         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79685         as PATH_MAX.
79686         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79687         where __ptr is null when no I/O is pending.
79688
79689 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79692         leave errno alone.  Problem reported by Dmitry V. Levin.
79693
79694 2005-10-28  Simon Josefsson  <jas@extundo.com>
79695
79696         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79697         Test more.
79698
79699         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79700
79701         * modules/md2, modules/md2-tests: New files.
79702
79703 2005-10-28  Simon Josefsson  <jas@extundo.com>
79704
79705         * m4/inet_ntop.m4: More tests.
79706
79707         * m4/gc-md2.m4, md2.m4: New file.
79708
79709 2005-10-28  Simon Josefsson  <jas@extundo.com>
79710
79711         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79712         "restrict" keywords, as per POSIX.  Protect the function
79713         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79714         Don't use K&R prototypes.  Check the sprintf return values.
79715         Re-define EAFNOSUPPORT if not present.  Indent.
79716
79717         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79718         suggested by Bruno Haible <bruno@clisp.org>.
79719
79720         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79721
79722         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79723
79724         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79725         libgcrypt).
79726
79727         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79728
79729         * lib/md2.h, lib/md2.c: New files.
79730
79731 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79734         errno alone.  Problem reported by Frederic Jolliton.
79735
79736 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         * modules/verify (License): Change from GPL to LGPL.  This is a
79739         tiny module and there are apparently near-equivalents that are
79740         under the BSD license.
79741
79742 2005-10-24  Simon Josefsson  <jas@extundo.com>
79743
79744         * modules/sha1: Relicense to LGPL.
79745
79746 2005-10-24  Simon Josefsson  <jas@extundo.com>
79747
79748         * lib/md4.h: Shrink buffer size, now that we changed the type.
79749
79750 2005-10-23  Simon Josefsson  <jas@extundo.com>
79751
79752         * gnulib-tool (func_import): Fix --tests-base.
79753
79754 2005-10-22  Simon Josefsson  <jas@extundo.com>
79755
79756         * modules/arcfour (Depends-on): Need stdint.
79757
79758 2005-10-22  Simon Josefsson  <jas@extundo.com>
79759
79760         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79761         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79762
79763 2005-10-22  Simon Josefsson  <jas@extundo.com>
79764
79765         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79766         suggested by Bruno Haible <bruno@clisp.org>.
79767
79768 2005-10-22  Simon Josefsson  <jas@extundo.com>
79769
79770         * lib/crc.h: Include stddef.h, for size_t.
79771
79772 2005-10-22  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79775         arcfour_context struct (simplify test vector testing in GNU
79776         Shishi).
79777
79778 2005-10-21  Simon Josefsson  <jas@extundo.com>
79779
79780         * modules/des, modules/des-tests: New files.
79781
79782         * modules/gc-des, modules/gc-des-tests: New files.
79783
79784         * tests/test-des.c, tests/test-gc-des.c: New file.
79785
79786 2005-10-21  Simon Josefsson  <jas@extundo.com>
79787
79788         * modules/arctwo, modules/arctwo-tests: New files.
79789
79790         * tests/test-arctwo.c: New file.
79791
79792         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79793
79794         * tests/test-gc-arctwo.c: New file.
79795
79796 2005-10-21  Simon Josefsson  <jas@extundo.com>
79797
79798         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79799         Bruno Haible <bruno@clisp.org>.
79800
79801         * m4/gc-des.m4: New file.
79802
79803 2005-10-21  Simon Josefsson  <jas@extundo.com>
79804
79805         * m4/arctwo.m4: New file.
79806
79807         * m4/gc-arctwo.m4: New file.
79808
79809 2005-10-21  Simon Josefsson  <jas@extundo.com>
79810
79811         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79812         block.
79813
79814 2005-10-21  Simon Josefsson  <jas@extundo.com>
79815
79816         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79817         <bruno@clisp.org>.
79818
79819         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79820
79821         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79822         Bruno Haible <bruno@clisp.org>.
79823
79824         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79825         <bruno@clisp.org>.
79826
79827 2005-10-21  Simon Josefsson  <jas@extundo.com>
79828
79829         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79830
79831 2005-10-21  Simon Josefsson  <jas@extundo.com>
79832
79833         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79834
79835 2005-10-21  Simon Josefsson  <jas@extundo.com>
79836
79837         * lib/des.h, lib/des.c: New files.
79838
79839         * lib/gc-gnulib.c: Support DES.c
79840
79841 2005-10-21  Simon Josefsson  <jas@extundo.com>
79842
79843         * lib/arctwo.h, lib/arctwo.c: New files.
79844
79845         * lib/gc-gnulib.c: Support ARCTWO.
79846
79847 2005-10-21  Simon Josefsson  <jas@extundo.com>
79848
79849         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79850         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79851
79852 2005-10-21  Simon Josefsson  <jas@extundo.com>
79853
79854         * gnulib-tool (func_import, func_create_testdir): Define automake
79855         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79856         Makefile.am snippet),
79857         suggested by Bruno Haible <bruno@clisp.org>.
79858
79859         * modules/gc (Makefile.am): Use it.
79860
79861 2005-10-21  Bruno Haible  <bruno@clisp.org>
79862
79863         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79864         patch.
79865
79866 2005-10-19  Simon Josefsson  <jas@extundo.com>
79867
79868         * tests/test-gc-rijndael.c: New file.
79869
79870         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79871
79872 2005-10-19  Simon Josefsson  <jas@extundo.com>
79873
79874         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79875         interface too.
79876
79877 2005-10-19  Simon Josefsson  <jas@extundo.com>
79878
79879         * tests/test-gc-arcfour.c: New file.
79880
79881         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79882
79883 2005-10-19  Simon Josefsson  <jas@extundo.com>
79884
79885         * modules/gc-md4, modules/gc-md4-tests: New file.
79886
79887         * tests/test-gc-md4.c: New file.
79888
79889 2005-10-19  Simon Josefsson  <jas@extundo.com>
79890
79891         * m4/gc-md4.m4: New file.
79892
79893 2005-10-19  Simon Josefsson  <jas@extundo.com>
79894
79895         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79896         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79897         <kasal@ucw.cz>.
79898
79899 2005-10-19  Simon Josefsson  <jas@extundo.com>
79900
79901         * m4/gc-arcfour.m4: New file.
79902
79903         * m4/gc-rijndael.m4: New file.
79904
79905 2005-10-19  Simon Josefsson  <jas@extundo.com>
79906
79907         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79908
79909 2005-10-19  Simon Josefsson  <jas@extundo.com>
79910
79911         * lib/gc-gnulib.c: Support ARCFOUR.
79912
79913 2005-10-19  Simon Josefsson  <jas@extundo.com>
79914
79915         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79916         support.
79917
79918         * lib/gc.h: Add ECB enum type.
79919
79920         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79921
79922 2005-10-18  Simon Josefsson  <jas@extundo.com>
79923
79924         * tests/test-md5.c: New file.
79925
79926         * modules/md5-tests: New file.
79927
79928 2005-10-18  Simon Josefsson  <jas@extundo.com>
79929
79930         * tests/test-md4.c: New file.
79931
79932         * modules/md4, modules/md4-tests: New files.
79933
79934 2005-10-18  Simon Josefsson  <jas@extundo.com>
79935
79936         * m4/md4.m4: New file.
79937
79938 2005-10-18  Simon Josefsson  <jas@extundo.com>
79939
79940         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79941
79942 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79943
79944         * gnulib-tool (func_create_testdir): Omit the second check whether
79945         BUILT_SOURCES in nonempty.
79946
79947 2005-10-17  Simon Josefsson  <jas@extundo.com>
79948
79949         * tests/test-rijndael.c: New file.
79950
79951 2005-10-17  Simon Josefsson  <jas@extundo.com>
79952
79953         * modules/sha1: Depend on stdint instead of md5.
79954
79955         * modules/md5: Depend on stdint, remove uint32_t.
79956
79957 2005-10-17  Simon Josefsson  <jas@extundo.com>
79958
79959         * modules/gc-sha1-tests: New file.
79960
79961         * tests/test-gc-sha1.c: New file.
79962
79963 2005-10-17  Simon Josefsson  <jas@extundo.com>
79964
79965         * m4/md5.m4: Remove call to uint32_t.m4.
79966
79967 2005-10-17  Simon Josefsson  <jas@extundo.com>
79968
79969         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79970
79971         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79972         md5.h.
79973
79974         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79975
79976         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79977
79978 2005-10-17  Simon Josefsson  <jas@extundo.com>
79979
79980         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79981
79982 2005-10-17  Simon Josefsson  <jas@extundo.com>
79983
79984         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79985
79986 2005-10-17  Simon Josefsson  <jas@extundo.com>
79987
79988         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79989
79990         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79991
79992 2005-10-17  Bruno Haible  <bruno@clisp.org>
79993
79994         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79995         that it can also be used in a test.
79996
79997 2005-10-16  Bruno Haible  <bruno@clisp.org>
79998
79999         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80000         TESTS_ENVIRONMENT, so that individual tests can augment it.
80001
80002         * gnulib-tool (func_create_testdir): Use an intermediate target for
80003         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80004         macros, like $(ALLOCA_H), which cannot be passed through the command
80005         line.
80006
80007 2005-10-15  Simon Josefsson  <jas@extundo.com>
80008
80009         * modules/rijndael-tests: New file.
80010
80011         * modules/rijndael: New file.
80012
80013 2005-10-15  Simon Josefsson  <jas@extundo.com>
80014
80015         * m4/rijndael.m4: New file.
80016
80017 2005-10-15  Simon Josefsson  <jas@extundo.com>
80018
80019         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80020
80021         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80022
80023 2005-10-14  Simon Josefsson  <jas@extundo.com>
80024
80025         * tests/test-arcfour.c: New file.
80026
80027         * modules/arcfour, modules/arcfour-tests: New files.
80028
80029 2005-10-14  Simon Josefsson  <jas@extundo.com>
80030
80031         * m4/arcfour.m4: New file.
80032
80033 2005-10-14  Simon Josefsson  <jas@extundo.com>
80034
80035         * lib/arcfour.h, lib/arcfour.c: New files.
80036
80037 2005-10-14  Roland McGrath  <roland@redhat.com>
80038
80039         Import from libc.  [BZ #1331]
80040         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80041         macro argument.
80042         Reported by Matej Vela <vela@debian.org>.
80043
80044 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80047         include <wchar.h>; no longer needed.
80048
80049 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80052
80053 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80054         and  Ulrich Drepper  <drepper@redhat.com>
80055
80056         Import from libc.
80057         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80058         instead of inline stream orientation test and two separate
80059         function calls.  Pay no attention to USE_IN_LIBIO.
80060
80061 2005-10-13  Simon Josefsson  <jas@extundo.com>
80062
80063         * modules/gc-hmac-md5-tests: New file.
80064
80065         * tests/test-gc-hmac-sha1.c: New file.
80066
80067         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80068
80069         * modules/gc-hmac-md5-tests: New file.
80070
80071         * tests/test-gc-md5.c: New file.
80072
80073         * modules/gc-md5-tests: New file.
80074
80075 2005-10-13  Simon Josefsson  <jas@extundo.com>
80076
80077         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80078         Move memory allocation outside of loop.
80079
80080 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80081
80082         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80083         intermediate directory is in a read-only file system.  Problem
80084         reported by Eric Blake.
80085
80086 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80087
80088         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80089
80090 2005-10-12  Simon Josefsson  <jas@extundo.com>
80091
80092         * tests/test-hmac-sha1.c: New file.
80093
80094         * modules/hmac-sha1-tests: New file.
80095
80096         * modules/hmac-sha1: New file.
80097
80098 2005-10-12  Simon Josefsson  <jas@extundo.com>
80099
80100         * modules/gc-sha1: New file.
80101
80102 2005-10-12  Simon Josefsson  <jas@extundo.com>
80103
80104         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80105
80106         * tests/test-gc-pbkdf2-sha1.c: New file.
80107
80108 2005-10-12  Simon Josefsson  <jas@extundo.com>
80109
80110         * modules/gc-md5, modules/gc-hmac-md5: New files.
80111
80112         * modules/gc (Files): Remove md5, memxor and hmac files.
80113
80114 2005-10-12  Simon Josefsson  <jas@extundo.com>
80115
80116         * m4/gc-pbkdf2-sha1.m4: New file.
80117
80118         * m4/gc-hmac-sha1.m4: New file.
80119
80120         * m4/gc-sha1: New file.
80121
80122         * m4/hmac-sha1.m4: New file.
80123
80124 2005-10-12  Simon Josefsson  <jas@extundo.com>
80125
80126         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80127
80128         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80129
80130 2005-10-12  Simon Josefsson  <jas@extundo.com>
80131
80132         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80133         suggested by Bruno Haible <bruno@clisp.org>.
80134
80135 2005-10-12  Simon Josefsson  <jas@extundo.com>
80136
80137         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80138
80139 2005-10-12  Simon Josefsson  <jas@extundo.com>
80140
80141         * lib/gc-pbkdf2-sha1.c: New file.
80142
80143         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80144
80145 2005-10-12  Simon Josefsson  <jas@extundo.com>
80146
80147         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80148
80149         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80150
80151 2005-10-12  Simon Josefsson  <jas@extundo.com>
80152
80153         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80154         GC_USE_HMAC_MD5, respectively.
80155
80156         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80157         (gc_md5): Fix typo.
80158
80159         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80160
80161         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80162
80163         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80164
80165 2005-10-12  Bruno Haible  <bruno@clisp.org>
80166
80167         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80168         Reported by Stepan Kasal <kasal@ucw.cz>.
80169
80170 2005-10-11  Simon Josefsson  <jas@extundo.com>
80171
80172         * tests/test-crc.c: New file.
80173
80174         * modules/crc, modules/crc-tests: New files.
80175
80176 2005-10-11  Simon Josefsson  <jas@extundo.com>
80177
80178         * m4/crc.m4: New file.
80179
80180 2005-10-11  Simon Josefsson  <jas@extundo.com>
80181
80182         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80183
80184         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80185
80186         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80187
80188 2005-10-11  Simon Josefsson  <jas@extundo.com>
80189
80190         * lib/crc.h, lib/crc.c: New files.
80191
80192         * lib/gc.h (gc_hash_buffer): Add doc.
80193
80194 2005-10-11  Bruno Haible  <bruno@clisp.org>
80195
80196         * modules/c-strcasestr: New file.
80197         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80198
80199 2005-10-11  Bruno Haible  <bruno@clisp.org>
80200
80201         * modules/c-strcase: New file.
80202         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80203
80204 2005-10-11  Bruno Haible  <bruno@clisp.org>
80205
80206         * lib/strcasecmp.c: Include limits.h.
80207         (strcasecmp): Avoid integer overflow on exotic platforms.
80208         * lib/strncasecmp.c: Include limits.h.
80209         (strncasecmp): Avoid integer overflow on exotic platforms.
80210         Reported by Paul Eggert.
80211
80212 2005-10-11  Bruno Haible  <bruno@clisp.org>
80213
80214         * lib/c-strcasestr.h: New file, from GNU gettext.
80215         * lib/c-strcasestr.c: New file, from GNU gettext.
80216
80217 2005-10-11  Bruno Haible  <bruno@clisp.org>
80218
80219         * lib/c-strcase.h: New file, from GNU gettext.
80220         * lib/c-strcasecmp.c: New file, from GNU gettext.
80221         * lib/c-strncasecmp.c: New file, from GNU gettext.
80222
80223 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * modules/mempcpy (License): GPL -> LGPL.
80226         * modules/strchrnul (License): Likewise.
80227         * modules/sysexits (License): Likewise.
80228
80229 2005-10-08  Simon Josefsson  <jas@extundo.com>
80230
80231         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80232
80233 2005-10-07  Simon Josefsson  <jas@extundo.com>
80234
80235         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80236
80237 2005-10-06  Simon Josefsson  <jas@extundo.com>
80238
80239         * tests/test-hmac-md5.c: New file.
80240
80241         * modules/hmac-md5-tests: New file.
80242
80243         * modules/hmac-md5: New file.
80244
80245 2005-10-06  Simon Josefsson  <jas@extundo.com>
80246
80247         * m4/hmac-md5.m4: New file.
80248
80249         * m4/memxor.m4: Require gl_C_RESTRICT.
80250
80251 2005-10-06  Simon Josefsson  <jas@extundo.com>
80252
80253         * lib/memxor.c (memxor): Avoid casts and warnings.
80254
80255 2005-10-06  Simon Josefsson  <jas@extundo.com>
80256
80257         * lib/hmac-md5.c: New file.
80258
80259         * lib/hmac.h: New file.
80260
80261 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80262
80263         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80264         promotes to int, not unsigned int, to catch the AIX 5.3
80265         compiler bug.
80266
80267 2005-10-05  Simon Josefsson  <jas@extundo.com>
80268
80269         * modules/memxor: New file.
80270
80271         * modules/iconv (Files): Move config.rpath to havelib, it is used
80272         there.
80273
80274         * modules/havelib (Files): Add config.rpath.
80275
80276 2005-10-05  Simon Josefsson  <jas@extundo.com>
80277
80278         * m4/memxor.m4: New file.
80279
80280 2005-10-05  Simon Josefsson  <jas@extundo.com>
80281
80282         * lib/memxor.c (memxor): Fix compiler error.
80283
80284         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80285         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80286
80287         * lib/memxor.h, lib/memxor.c: New files.
80288
80289         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80290         we assume all systems have it, suggested by Jim Meyering
80291         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80292         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80293         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80294         same reasons.
80295
80296 2005-10-05  Simon Josefsson  <jas@extundo.com>
80297
80298         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80299
80300 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80301
80302         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80303         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80304         needed, since the source code now assumes these .h files.
80305
80306 2005-10-05  Derek Price  <derek@ximbiot.com>
80307
80308         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80309
80310 2005-10-05  Bruno Haible  <bruno@clisp.org>
80311
80312         * modules/stdint (License): Change to LGPL.
80313
80314 2005-10-04  Simon Josefsson  <jas@extundo.com>
80315
80316         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80317         D. Baushke" <mdb@gnu.org>.
80318
80319 2005-10-04  Bruno Haible  <bruno@clisp.org>
80320
80321         * lib/verify.h (verify_true): Provide alternative definition for C++.
80322
80323 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80324
80325         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80326         (SSIZE_MAX): New macro, if not already defined.
80327         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80328         than 2 GiB.
80329
80330 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         Sync from coreutils.
80333         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80334         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80335         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80336         ULLONG_MAX doesn't work with 2.7.2.1.
80337
80338 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80339
80340         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80341         From Ben Pfaff.
80342
80343         * modules/exclude (Depends-on): Depend on verify.
80344         * modules/strtoimax (Depends-on): Likewise.
80345         * modules/utimecmp (Depends-on): Likewise.
80346
80347 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         * lib/exclude.c: Include verify.h.
80350         (verify): Remove.  All callers changed to use verify.h's version.
80351         * lib/strtoimax.c: Likewise.
80352         * lib/utimecmp.c: Likewis.e
80353
80354         Sync from coreutils.
80355         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80356         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80357         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80358         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80359         bother returning ENOSYS if settimeofday or stime fails; just let
80360         them return whatever errno they want to return.
80361         * lib/utimens.c: Include unistd.h, for dup2.
80362         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80363         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80364
80365 2005-10-02  Jim Meyering  <jim@meyering.net>
80366
80367         Sync from coreutils.
80368         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80369         from glibc-2.2.5 that fails for read-only files.
80370
80371 2005-10-02  Jim Meyering  <jim@meyering.net>
80372
80373         Sync from coreutils.
80374         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80375         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80376         `#if HAVE_CONFIG_H'.
80377         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80378         Remove AT_FDCWD test.
80379         Do not consume the fd unless successful.
80380         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80381         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80382         block, so that we don't even try to compile it if settimeofday is
80383         available.  This works around a compilation failure on OSF1 V5.1,
80384         due to stime requiring a `long int*' while tv_sec is `int'.
80385
80386 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80387
80388         Sync from coreutils.
80389         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80390         against `yes', rather than just testing for nonempty.
80391
80392 2005-10-01  Simon Josefsson  <jas@extundo.com>
80393
80394         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80395         and Darwin.
80396
80397         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80398         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80399         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80400         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80401         Check if struct addrinfo is declared.
80402
80403 2005-10-01  Simon Josefsson  <jas@extundo.com>
80404
80405         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80406         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80407         AI_* and EAI_* definitions.  Protect function declarations.
80408
80409 2005-10-01  Jim Meyering  <jim@meyering.net>
80410
80411         Sync from coreutils.
80412
80413         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80414         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80415         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80417         in the inet and nsl libraries.  Required on Solaris 5.7.
80418
80419 2005-10-01  Jim Meyering  <jim@meyering.net>
80420
80421         Sync from coreutils.
80422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80423         in the inet and nsl libraries.  Required on Solaris 5.7.
80424
80425 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80426
80427         * lib/getdelim.c (getdelim): Remove unused variables.
80428
80429 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80430
80431         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80432         so that the code works even with ancient cpp.  Portability problem
80433         with GCC 2.7.2.1 reported by Thomas M.Ott.
80434
80435 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80436
80437         * modules/regex (Depends-on): Add strcase.
80438
80439         * modules/gethostname (Licence): Change from GPL to LGPL, since
80440         gethostname.c is a trivial implementation of a standard library
80441         function.
80442         * modules/poll (License): Change from GPL to LGPL, since it's
80443         derived from LGPL code.
80444
80445 2005-09-27  Jim Meyering  <jim@meyering.net>
80446
80447         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80448         HAVE_CONFIG_H.
80449
80450         * lib/intprops.h (signed_type_or_expr__): Define.
80451         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80452         for unsigned types.
80453
80454 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80455
80456         * lib/verify.h (verify_expr): Remove, replacing with:
80457         (verify_true): New macro that returns true instead of void.
80458         (verify_type__): Remove.
80459         (verify): Use verify_true rather than verify_type__.
80460
80461 2005-09-26  Bruno Haible  <bruno@clisp.org>
80462
80463         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80464         is necessary.
80465         (lib_SOURCES): Remove mbchar.c.
80466         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80467         (Files): Add m4/mbrtowc.m4.
80468         * modules/mbiter: Likewise.
80469         * modules/mbuiter: Likewise.
80470
80471 2005-09-26  Bruno Haible  <bruno@clisp.org>
80472
80473         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80474         compile mbchar.c if they are not both present.
80475         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80476         * m4/mbiter.m4 (gl_MBITER): Likewise.
80477         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80478         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80479         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80480
80481 2005-09-25  Jim Meyering  <jim@meyering.net>
80482
80483         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80484         also uses socklen_t.
80485
80486 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * lib/utimens.c (ENOSYS): Define if not already defined.
80489         (futimens): Support having a null PATH if the file descriptor
80490         is nonnegative.
80491
80492         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80493         Remove.
80494         (__attribute): Define to empty unless GCC 3.1 or later.
80495         This works around a core dump on OpenBSD 3.4, which has GCC
80496         2.95.3, which dumps core when given __attribute__(()).  It also
80497         simplifies other tests, since we really don't want to bother with
80498         worrying about which ancient version of GCC supported what.
80499         Original problem reported by Yoann Vandoorselaere, with part of
80500         the fix suggested by Derek Price.
80501
80502 2005-09-24  Jim Meyering  <jim@meyering.net>
80503
80504         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80505         so we can once again use a positive bitfield width of 1 -- now we
80506         don't have to explain why we were using a bitfield width of 2.
80507
80508 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80509
80510         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80511         and similarly for the other external symbols.  Problem reported
80512         by James Gallager.
80513
80514         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80515         bug reported by Jim Meyering.
80516
80517         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80519         not needed, since socklen is a prerequisite module.
80520
80521 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80522
80523         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80524         Problem reported by Eric Blake.
80525         (getaddrinfo): Initialize se so that it's not garbage.
80526         Redo internal storage allocation so that it doesn't make unportable
80527         assumptions about alignment.
80528         Fix a memory leak.
80529
80530         * lib/utimens.c (futimens): Use futimesat if available.
80531         Prefer it to futimes since it doesn't have the futimes bug.
80532
80533         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80534         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80535         Instead, declare a function that returns a pointer to an array,
80536         and use verify_type__ to declare the size of the array.
80537         Problem and germ of a solution reported by Bruno Haible.
80538         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80539         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80540
80541 2005-09-23  Jim Meyering  <jim@meyering.net>
80542
80543         Sync from coreutils.
80544         Correct build failure (socklen_t not defined) on at least
80545         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80547
80548 2005-09-23  Jim Meyering  <jim@meyering.net>
80549
80550         * modules/getaddrinfo (Depends-on): Add socklen.
80551
80552 2005-09-23  Bruno Haible  <bruno@clisp.org>
80553
80554         * tests/test-verify.c: New file.
80555
80556 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80557
80558         Sync from coreutils.
80559
80560         * modules/argmatch (Depends-on): Add verify.
80561         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80562         unistd-safer.
80563         * modules/save-cwd (Depends-on): Likewise.
80564
80565         * modules/openat (Files): Add lib/openat-die.c.
80566         (Depends-on): Remove error, exitfail.
80567         Add dirname.
80568
80569         * modules/verify: New file.
80570         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80571         with "verify" module.
80572
80573 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         Sync from coreutils.
80576
80577         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80578         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80579         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80580         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80581         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80582         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80583         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80584         Don't bother checking for string.h, stdlib.h, unistd.h.
80585         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80586         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80587         module's job.
80588         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80589         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80590
80591         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80592         (gl_GETDATE): Use it.
80593
80594         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80595
80596 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80597
80598         Sync from coreutils.
80599
80600         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80601         stat-time.h.
80602         * lib/argmatch.h: Include verify.h
80603         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80604         (ARGMATCH_ASSERT): Remove; unused.
80605         * lib/canonicalize.c: Assume STDC_HEADERS.
80606         * lib/exclude.c: Include "strcase.h".
80607         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80608         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80609         and stdio-safer.h.
80610         (getusershell): Call fopen, not fopen_safer.
80611         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80612         Do not include unistd-safer.h.
80613         (save_cwd): Don't call fd_safer; no longer needed
80614         now that we include fcntl--.h.
80615
80616         * lib/getdate.y (relative_time): New type.
80617         (RELATIVE_TIME_0): New constant.
80618         (parser_control): Use relative_time instead of doing it ourselves.
80619         (%union): Add new relative_time rel member.
80620         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80621         Now typeless.
80622         (relunit, relunit_snumber): Now of type rel.
80623         (zone, rel, relunit, get_date): Adjust to above changes.
80624
80625         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80626         Do not include unistd-safer.h.
80627         (getloadavg): Don't call fd_safer; no longer needed
80628         now that we include fcntl--.h.
80629
80630         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80631         (make_dir_parents): Treat ENOSYS like EEXIST.
80632
80633         Improve quality of diagnostics on restore_cwd failure.
80634         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80635         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80636         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80637         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80638         each time through the loop.  Do not diagnose restore_cwd failure;
80639         that is the caller's job (and perhaps the caller does not care).
80640
80641         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80642         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80643         If the file already exists but is not a directory, don't bother
80644         to try to make its parents.
80645         Close potential file descriptor leak if we can't chdir("/") (!).
80646         Don't always return true if chdir($PWD) fails; return true only
80647         if the requested action was done successfully (except for the
80648         chdir($PWD)).
80649         Don't log final directory unless we actually made it.
80650         Refactor to avoid duplicate code to fix up permissions.
80651         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80652
80653         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80654         to make it a bit faster and (I hope) clearer.
80655         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80656         Fix bug in formats like %2N.
80657
80658         * lib/verify.h: New file.
80659
80660 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80661
80662         Sync from coreutils.
80663         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80664
80665 2005-09-22  Jim Meyering  <jim@meyering.net>
80666
80667         Sync from coreutils.
80668
80669         * m4/lstat.m4 (gl_FUNC_LSTAT):
80670         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80671         Remove obsolete comment.
80672         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80673         * m4/xstrtod.m4: Likewise.
80674
80675         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80676
80677 2005-09-22  Jim Meyering  <jim@meyering.net>
80678
80679         Sync from coreutils.
80680
80681         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80682
80683         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80684         the .tm_year member, since otherwise gcc-4.0 would now warn about
80685         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80686
80687         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80688         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80689
80690         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80691         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80692         when run in a time zone for which daylight savings time is in effect
80693         for the starting date.
80694
80695         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80696         stop us from restricting permissions of just-created absolute-named
80697         directories.
80698         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80699         to restore initial working directory.
80700         * lib/mkdir-p.c (make_dir_parents): New parameter:
80701         different_working_dir, to tell caller if/when we change the working
80702         directory and are unable to return to the initial one.
80703         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80704         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80705         `return false'.  This fixes a bug introduced on 2004-07-30.
80706
80707         * lib/openat.c (fdopendir): Be sure to close the supplied
80708         file descriptor before returning.  This makes our replacement
80709         implementation a little closer to Solaris's, where fdopendir
80710         ties the file descriptor to the returned DIR* pointer.
80711         * lib/openat.c (unlinkat): New function.
80712         * lib/openat.h (unlinkat): Add prototype.
80713         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80714         (openat_restore_fail): Rename from openat_restore_die.
80715         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80716
80717         Provide an alternative to exiting immediately upon save_cwd or
80718         restore_cwd failure.  Now, an application can arrange e.g.,
80719         to perform a longjump in that case.
80720         * lib/openat.c: Include dirname.h.
80721         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80722         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80723         and openat_restore_die rather than calling error directly.
80724         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80725
80726         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80727         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80728         define.
80729
80730         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80731         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80732                             int utc, int nanoseconds);
80733         Background:
80734         date should not have to allocate a megabyte of virtual memory to
80735         handle a format argument like +%1048575T.  When implemented with
80736         strftime, it must allocate such a buffer, use strftime to fill it
80737         in, print it, then free it.
80738         With fprintftime, it simply prints everything and exits.
80739         With no need for memory allocation, that's one fewer way to fail.
80740         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80741         optional field width, not before, so we accept %9:z, not %:9z.
80742         (my_strftime): Be sure to use L_('x') for literals.
80743
80744         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80745         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80746         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80747         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80748         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80749         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80750         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80751         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80752         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80753         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80754         * lib/xgethostname.c, lib/xreadlink.c:
80755         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80756
80757         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80758         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80759         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80760         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80761         and don't include <sys/file.h>).
80762
80763 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80764
80765         Sync from coreutils.
80766
80767         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80768         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80769         [!LDAV_DONE]: Avoid unused variable warning.
80770
80771 2005-09-21  Bruno Haible  <bruno@clisp.org>
80772
80773         * lib/unicodeio.h (unicode_to_mb): New declaration.
80774
80775 2005-09-20  Derek Price  <derek@ximbiot.com>
80776
80777         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80778         getaddrinfo.h.
80779
80780 2005-09-20  Bruno Haible  <bruno@clisp.org>
80781
80782         * gnulib-tool: Remove trailing slashes from the values specified for
80783         --source-base, --m4-base, --tests-base, --aux-dir.
80784         Suggested by Simon Josefsson <jas@extundo.com>.
80785
80786 2005-09-20  Bruno Haible  <bruno@clisp.org>
80787
80788         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80789         func_modules_to_filelist, func_import, func_create_testdir): Make all
80790         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80791         change when gnulib-tool is invoked in a different locale.
80792
80793 2005-09-19  Simon Josefsson  <jas@extundo.com>
80794
80795         * m4/socklen.m4: Fix typo.
80796
80797 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80798
80799         Use a consistent style for including <config.h>.
80800         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80801         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80802         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80803         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80804         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80805         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80806         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80807         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80808         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80809         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80810         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80811         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80812         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80813         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80814         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80815         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80816         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80817         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80818         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80819         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80820         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80821         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80822         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80823         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80824         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80825         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80826         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80827         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80828         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80829         lib/xstrtoumax.c, lib/yesno.c:
80830         Standardize inclusion of config.h.
80831         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80832         lib/inttostr.h:  Removed inclusion of config.h from header files.
80833         * lib/inttostr.c:  Adjusted in-tree users.
80834         * lib/timespec.h: Remove superfluous warning to include config.h.
80835         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80836         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80837         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80838         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80839         config.h with HAVE_CONFIG_H.
80840
80841 2005-09-19  Jim Meyering  <jim@meyering.net>
80842
80843         * modules/pathmax (License): Change to LGPL.
80844
80845 2005-09-19  Derek Price  <derek@ximbiot.com>
80846
80847         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80848
80849 2005-09-19  Bruno Haible  <bruno@clisp.org>
80850
80851         * gnulib-tool (import): Provide default for --tests-base.
80852
80853 2005-09-19  Bruno Haible  <bruno@clisp.org>
80854
80855         * doc/quote.texi: New file, extracted from gnulib.texi.
80856         * doc/ctime.texi: New file, extracted from gnulib.texi.
80857         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80858         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80859         * doc/gnulib.texi: Include them.
80860
80861 2005-09-18  Bruno Haible  <bruno@clisp.org>
80862
80863         Portability fix.
80864         * gnulib-tool (func_readlink): New function.
80865         (func_ln_if_changed): Use it.
80866
80867 2005-09-18  Bruno Haible  <bruno@clisp.org>
80868
80869         * gnulib-tool: Support --with-tests also with --import.
80870         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80871         (func_import): Use variables $testsbase and $inctests. Emit a
80872         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80873         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80874         SUBDIRS += $testsdir.
80875         (func_create_testdir): Update.
80876
80877 2005-09-18  Bruno Haible  <bruno@clisp.org>
80878
80879         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80880         instead of $dry_run.
80881         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80882         (func_ln_if_changed): Don't handle dry-run here.
80883         (func_import): In dry-run mode, detect more precisely which actions
80884         would be performed, and don't use "...ing" verbs.
80885
80886 2005-09-18  Bruno Haible  <bruno@clisp.org>
80887
80888         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80889         (func_import): Use join on two temporary files instead of three nested
80890         loops, in order to determine which files are new or old.
80891
80892 2005-09-18  Bruno Haible  <bruno@clisp.org>
80893
80894         * gnulib-tool (func_import): Comment out code that spits out the
80895         new files with --dry-run.
80896
80897 2005-09-18  Bruno Haible  <bruno@clisp.org>
80898
80899         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80900
80901 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * lib/stat-time.h: New file.
80904         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80905         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80906         in a different way.
80907         (timespec_cmp): New function.
80908         * lib/utimecmp.c: Include stat-time.h.
80909         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80910         members exist, not on the obsolescent ST_MTIM_NSEC.
80911         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80912
80913 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80914
80915         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80916
80917 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80918
80919         * MODULES.html.sh (File system functions): Add stat-time.
80920         * modules/stat-time: New file.
80921         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80922         is now done in a different way, by the stat-time module.
80923         * modules/utimecmp (Depends-on): Add stat-time.
80924
80925 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         * m4/st_mtim.m4: Remove.  Superseded by...
80928         * m4/stat-time.m4: New file.
80929         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80930         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80931
80932 2005-09-15  Derek Price  <derek@ximbiot.com>
80933
80934         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80935
80936 2005-09-15  Derek Price  <derek@ximbiot.com>
80937
80938         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80939         * lib/regex_internal.c: Ditto, using this...
80940         (__GNUC_PREREQ): ...new macro.
80941         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80942         using...
80943         (__GNUC_PREREQ): ...this new macro.
80944
80945         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80946
80947 2005-09-15  Derek Price  <derek@ximbiot.com>
80948             Paul Eggert  <eggert@cs.ucla.edu>
80949
80950         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80951         changes, consolidating in...
80952         * lib/regex_internal.h: ...this file.
80953
80954 2005-09-13  Jim Meyering  <jim@meyering.net>
80955
80956         * lib/canon-host.c: Filter through gnu indent and reword comments
80957         slightly.
80958         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80959
80960 2005-09-13  Derek Price  <derek@ximbiot.com>
80961
80962         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80963         failure.
80964         Reported by Jim Meyering  <jim@meyering.net>.
80965
80966 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80967
80968         * lib/base64.c: Typo.
80969         (base64_encode): Put b64str in initialized data section.
80970
80971 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80972
80973         Merge glibc and coreutils changes into gnulib, plus a few
80974         extra fixes.
80975         * lib/md5.c: Use #error rather than a string.
80976         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80977         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80978         (__attribute__): Define to empty for non recent-GCC.
80979         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80980         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80981         Renamed from their non-__ counterparts, with new macros replacing
80982         them if not _LIBC.  Add __THROW attribute.
80983         (rol): Remove.
80984         (struct md5_ctx): Align buffer if using GCC.
80985         * lib/sha1.h (struct sha1_ctx): Likewise.
80986         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80987         The old name was backwards.
80988         (NOTSWAP): Remove; not used.
80989         (rol): New macro, moved here from md5.h.
80990         (sha1_process_block): Remove a FIXME that doesn't make sense.
80991
80992 2005-09-12  Derek Price  <derek@ximbiot.com>
80993
80994         Return usable errors from canon-host.
80995         * lib/canon-host.h: New file.
80996         * lib/canon-host.c (canon_host): Wrap...
80997         (canon_host_r): ...this new function, which now relies exclusively on
80998         getaddrinfo.
80999         (ch_strerror): New function.
81000         (last_cherror): New global.
81001         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81002         interface.
81003         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81004         void *.
81005         (freeaddrinfo): Free ai->ai_canonname when set.
81006
81007 2005-09-12  Derek Price  <derek@ximbiot.com>
81008
81009         Make canon-host require getaddrinfo.
81010         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81011         AC_LIBSOURCE canon-host.h.  Call...
81012         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81013         gl_GETADDRINFO.
81014         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81015
81016 2005-09-12  Derek Price  <derek@ximbiot.com>
81017
81018         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81019         LGPL.
81020         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81021
81022 2005-09-12  Derek Price  <derek@ximbiot.com>
81023
81024         * lib/gai_strerror.c: Include config.h when available.  Include
81025         getaddrinfo.h before other headers to test interface.
81026         Reported by Larry Jones <lawrence.jones@ugs.com>.
81027
81028 2005-09-12  Derek Price  <derek@ximbiot.com>
81029             Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * modules/glob (Files): Add glob-libc.h.
81032
81033 2005-09-12  Derek Price  <derek@ximbiot.com>
81034             Paul Eggert  <eggert@cs.ucla.edu>
81035
81036         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81037         glob_.h, glob-libc.h.
81038         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81039
81040 2005-09-12  Derek Price  <derek@ximbiot.com>
81041             Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81044         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81045         protecting things that should be done only in gnulib contexts.
81046         * lib/glob_.h: New file, containing only the glob things needed for
81047         gnulib.
81048         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81049         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81050         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81051         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81052         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81053         and to respect the namespace rules better.
81054
81055 2005-09-08  Simon Josefsson  <jas@extundo.com>
81056
81057         * modules/socklen: New file.
81058
81059 2005-09-08  Simon Josefsson  <jas@extundo.com>
81060
81061         * m4/socklen.m4: New file.
81062
81063 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * modules/utimens (Files): Add m4/utimbuf.m4, since
81066         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81067         Reported by Sergey Poznyakoff.
81068
81069 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81070
81071         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81072         definitions, since that's the preferred style in glibc.
81073         Fix a minor spacing issue, and update copyright notice to match
81074         glibc's.
81075
81076 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81077
81078         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81079
81080 2005-09-06  Simon Josefsson  <jas@extundo.com>
81081
81082         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81083         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81084
81085 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81088         warning.
81089
81090 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * config/srclist.txt: Add glibc bug 1302.
81093
81094 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81095
81096         Change bitset word type from unsigned int to unsigned long int,
81097         as this has better performance on typical 64-bit hosts.
81098         Port bitset code to hosts with unusual word sizes.
81099         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81100         (build_collating_symbol):
81101         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81102         argument is a bitset.  This is merely a style issue, but it makes
81103         it clearer that an entire array is expected.
81104         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81105         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81106         Port to the case where bitset_word is not the same as unsigned int.
81107         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81108         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81109         Likewise.
81110         * lib/regexec.c (check_dst_limits_calc_pos_1,
81111         check_subexp_matching_top):
81112         (build_trtable, group_nodes_into_DFAstates):
81113         Likewise.
81114         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81115         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81116         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81117         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81118         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81119         * lib/regcomp.c (optimize_subexps, lower_subexp):
81120         Work even if bitset_word has holes in its bitwise representation.
81121         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81122         * lib/regexec.c (check_dst_limits_calc_pos_1,
81123         check_subexp_matching_top):
81124         Likewise.
81125         * lib/regex_internal.c (re_string_reconstruct):
81126         Don't assume UCHAR_MAX == 255.
81127         * lib/regex_internal.h (bitset_set_all): Likewise.
81128         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81129         All uses changed.
81130         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81131         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81132         All uses changed.
81133         (BITSET_WORD_MAX): New macro.
81134         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81135         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81136         (bitset_empty, bitset_copy):
81137         Prefer sizeof (bitset) to multiplying it out ourselves.
81138         (bitset_not_merge): Remove; unused.
81139         (bitset_contain): Return bool, not unsigned int with one bit on.
81140         All callers changed.
81141         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81142         alignment than re_node_set; do this by defining a new internal
81143         type struct dests_alloc and using it to allocate memory.
81144
81145 2005-09-05  Bruno Haible  <bruno@clisp.org>
81146
81147         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81148         links.
81149
81150 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81151
81152         * modules/size_max (Makefile.am): Add size_max.h
81153
81154 2005-09-04  Derek Price  <derek@ximbiot.com>
81155
81156         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81157
81158 2005-09-03  Simon Josefsson  <jas@extundo.com>
81159
81160         * gnulib-tool: Fix typo.
81161
81162 2005-09-03  Simon Josefsson  <jas@extundo.com>
81163
81164         * config/srclist.txt: Add glibc bug 1293.
81165
81166 2005-09-03  Derek Price  <derek@ximbiot.com>
81167
81168         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81169         From Larry Jones <lawrence.jones@ugs.com>.
81170
81171 2005-09-02  Simon Josefsson  <jas@extundo.com>
81172
81173         * modules/socklen: New file.
81174
81175 2005-09-02  Simon Josefsson  <jas@extundo.com>
81176
81177         * modules/havelib: New module.
81178
81179         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81180         Use havelib.
81181
81182 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81183
81184         Check for arithmetic overflow when calculating sizes, to prevent
81185         some buffer-overflow issues.  These patches are conservative, in the
81186         sense that when I couldn't determine whether an overflow was possible,
81187         I inserted a run-time check.
81188         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81189         macros.
81190         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81191         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81192         (re_xnrealloc, re_x2nrealloc): New inline functions.
81193         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81194         parse_bracket_exp):
81195         (build_equiv_class, build_charclass): Check for arithmetic overflow
81196         in size expression calculations.
81197         * lib/regex_internal.c (re_string_realloc_buffers):
81198         (build_wcs_upper_buffer, re_node_set_add_intersect):
81199         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81200         (re_dfa_add_node, register_state): Likewise.
81201         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81202         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81203         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81204         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81205
81206 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81207
81208         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81209         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81210
81211 2005-09-02  Bruno Haible  <bruno@clisp.org>
81212
81213         Support for lib vs. lib64 distinction on biarch platforms.
81214         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81215         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81216         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81217
81218 2005-09-02  Bruno Haible  <bruno@clisp.org>
81219
81220         * gnulib-tool (import): In the other first-use case, provide defaults
81221         as well.
81222
81223 2005-09-02  Bruno Haible  <bruno@clisp.org>
81224
81225         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81226         patches not yet found in the latest gettext release.
81227
81228 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81229
81230         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81231         to avoid a collision with bits/local_lim.h in glibc.
81232         All uses changed.  Problem reported by Dmitry V. Levin in
81233         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81234
81235         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81236         bugs in int versus size_t comparisons.
81237         (re_string_context_at): Fix bug where the code assumed that
81238         Idx is signed.
81239
81240         Use bool where appropriate.
81241         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81242         All callers changed.
81243         (calc_eclosure_iter): Likewise, for ROOT arg.
81244         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81245         (build_charclass_op): Likewise, for NON_MATCH arg.
81246         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81247         (re_string_construct_common): Likewise, for ICASE arg.
81248         * lib/regexec.c (re_search_2_stub, re_search_stub):
81249         Likewise, for RET_LEN arg.
81250         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81251         (set_regs): Likewise, for FL_BACKTRACK arg.
81252         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81253         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81254         (calc_eclosure_iter, parse_bracket_exp):
81255         Use bool for internal variables that are booleans.
81256         * lib/regexec.c (re_search_internal, check_matching,
81257         proceed_next_node):
81258         (set_regs, build_sifted_states, sift_states_bkref):
81259         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81260         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81261         (find_collation_sequence_value):
81262         Likewise.
81263         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81264         (re_node_set_compare):
81265         Return bool, not int. All callers changed.
81266         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81267         (build_trtable, check_node_accept): Likewise.
81268         * lib/regex_internal.h: Include stdbool.h.
81269
81270         Fix bugs uncovered when converting to bool.
81271         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81272         failure instead of charging ahead blindly.
81273         * lib/regex_internal.c (register_state): Likewise.
81274         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81275         for freeing internal storage.
81276         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81277         bitset pieces used as boolean, to avoid undefined behavior
81278         on hosts that do int overflow checking.
81279
81280 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81281
81282         * config/srclist.txt: Add glibc bugs 1285-1287.
81283
81284 2005-09-01  Jim Meyering  <jim@meyering.net>
81285
81286         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81287         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81288         Require gl_STAT_MACROS, too.
81289
81290 2005-09-01  Bruno Haible  <bruno@clisp.org>
81291
81292         * gnulib-tool (import): In the first-use case, provide defaults.
81293
81294 2005-09-01  Bruno Haible  <bruno@clisp.org>
81295
81296         * gnulib-tool (func_import): Remove the .tmp files.
81297
81298 2005-09-01  Bruno Haible  <bruno@clisp.org>
81299
81300         * gnulib-tool (func_import): Fix handling of symbolic links.
81301
81302 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81305         old glibc regex code mishandles strings longer than 2**31 bytes.
81306         This patch fixes this when the regex code is used in gnulib
81307         (i.e., outside glibc).
81308
81309         This patch should not affect the use of the regex code inside
81310         glibc.  No doubt this problem also needs to be handled for glibc
81311         as well, but the result will be an incompatible change to the
81312         glibc ABI, and the old ABI will have to be supported too.  That
81313         can be the the subject for another patch.
81314
81315         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81316         governing whether the rest of this patch is active.  By default,
81317         the macro is disabled and the patch has no effect.
81318         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81319         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81320         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81321         (re_match_2, re_set_registers): Use the new types.
81322         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81323         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81324         New macros.
81325         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81326         (re_string_context_at, bin_tree_t, re_dfastate_t):
81327         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81328         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81329         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81330         (re_string_char_size_at, re_string_wchar_at):
81331         (re_string_elem_size_at):
81332         Use the new types and macros to port to 64-bit hosts.
81333         Use unsigned types for internal values, so that the code
81334         mostly works even for arrays larger than SSIZE_MAX.
81335         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81336         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81337         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81338         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81339         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81340         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81341         (calc_inveclosure, parse_dup_op, build_range_exp):
81342         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81343         (fetch_number, create_token_tree, mark_opt_subexp):
81344         Likewise.
81345         * lib/regex_internal.c (re_string_construct_common,
81346         create_ci_newstate):
81347         (create_cd_newstate, re_string_allocate, re_string_construct):
81348         (re_string_realloc_buffers, build_wcs_upper_buffer):
81349         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81350         (re_string_reconstruct, re_string_peek_byte_case):
81351         (re_string_fetch_byte_case, re_string_context_at):
81352         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81353         (re_node_set_init_copy, re_node_set_add_intersect):
81354         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81355         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81356         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81357         (re_acquire_state, re_acquire_state_context, register_state):
81358         Likewise.
81359         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81360         search_cur_bkref_entry):
81361         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81362         (re_search_internal, re_search_2_stub, re_search_stub)
81363         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81364         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81365         (update_cur_sifted_state, check_dst_limits):
81366         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81367         (check_subexp_limits, sift_states_bkref, merge_state_array):
81368         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81369         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81370         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81371         (expand_bkref_cache, check_node_accept_bytes):
81372         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81373         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81374         (acquire_init_state_context, check_halt_node_context):
81375         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81376         (sift_states_backward, clean_state_log_if_needed):
81377         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81378         (find_recover_state, transit_state_sb, transit_state_mb):
81379         (transit_state_bkref, build_trtable, match_ctx_clean):
81380         Likewise.
81381         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81382         to work around an assumption that REG_MISSING is negative.
81383
81384         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81385         (seek_collating_symbol_entry) [defined _LIBC]:
81386         (lookup_collation_sequence_value) [defined _LIBC]:
81387         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81388         Use prototypes rather than old-style function definitions.
81389         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81390         (transit_state_sb) [0]:
81391         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81392
81393         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81394         rm_eo.
81395
81396         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81397         (optimize_subexps, lower_subexp):
81398         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81399         since the signed shift might overflow.  Use 1u<<31 instead.
81400         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81401         Likewise.
81402         * lib/regexec.c (check_dst_limits_calc_pos_1,
81403         check_subexp_matching_top): Likewise.
81404
81405         * lib/regcomp.c (optimize_subexps, lower_subexp):
81406         Use CHAR_BIT rather than 8, for clarity.
81407         * lib/regexec.c (check_dst_limits_calc_pos_1):
81408         (check_subexp_matching_top): Likewise.
81409         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81410         have to worry about portability issues when shifting it left.
81411         Remove no-longer-needed test for table_size > 0.
81412         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81413         in a word, as the resulting behavior is undefined.
81414         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81415         in one case, a <= should have been an <, and in another case the
81416         whole test was missing.
81417         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81418         the standard name CHAR_BIT.
81419         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81420         this is not true on one's complement and signed-magnitude hosts.
81421
81422         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81423         next_last_offset.
81424         (struct re_dfa_t): Remove unused member states_alloc.
81425         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81426
81427 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81428
81429         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81430         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81431         and large-file glibc and in 32-bit large-file Solaris.
81432
81433 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81434
81435         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81436         lengths fit in regoff_t; this isn't true if regoff_t is the same
81437         width as size_t.
81438         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81439         (= START + RANGE) instead of RANGE.  This avoids overflow
81440         problems when regoff_t is the same width as size_t.
81441         All callers changed.
81442         (re_search_2_stub): Check for overflow when adding the
81443         sizes of the two strings.
81444         (re_search_stub): Check for overflow when adding START
81445         to RANGE; if it occurs, substitute the extreme value.
81446
81447 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81448
81449         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81450
81451 2005-08-31  Jim Meyering  <jim@meyering.net>
81452
81453         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81454         a pointer-to-const.
81455         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81456         (register_state): Likewise.
81457         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81458         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81459         (group_nodes_into_DFAstates): Likewise.
81460
81461 2005-08-31  Jim Meyering  <jim@meyering.net>
81462
81463         * check-module: Add a FIXME comment.
81464
81465 2005-08-31  Eric Blake  <ebb9@byu.net>
81466
81467         * modules/unistd-safer (Files): Add unistd--.h.
81468         * modules/stdio-safer (Files): Add stdio--.h.
81469
81470 2005-08-31  Derek Price  <derek@ximbiot.com>
81471
81472         * lib/getdelim.c (getdelim): Return EOF on EOF.
81473         Reported by Larry Jones <lawrence.jones@ugs.com>.
81474
81475 2005-08-31  Bruno Haible  <bruno@clisp.org>
81476
81477         Avoid unnecessary diffs in the generated lib/Makefile.am.
81478         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81479         the generated files.
81480         (func_import): Don't set cmd.
81481
81482 2005-08-31  Bruno Haible  <bruno@clisp.org>
81483
81484         * lib/strstr.c: Include <stddef.h>, for NULL.
81485         * lib/strcasestr.c: Likewise.
81486         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81487
81488 2005-08-31  Bruno Haible  <bruno@clisp.org>
81489
81490         * gnulib-tool: New option --macro-prefix.
81491         (func_import): Use macro_prefix.
81492         (import): Handle option --macro-prefix.
81493
81494 2005-08-31  Bruno Haible  <bruno@clisp.org>
81495
81496         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81497         Also use new variables cached_lgpl, cached_libtool.
81498
81499 2005-08-31  Bruno Haible  <bruno@clisp.org>
81500
81501         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81502         always instantiating them.
81503
81504 2005-08-31  Bruno Haible  <bruno@clisp.org>
81505
81506         * gnulib-tool (func_import): Read the previous cached settings
81507         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81508         earlier added by gnulib but are now dropped. Warn when a gnulib file
81509         overwrites a non-gnulib file.
81510
81511 2005-08-31  Bruno Haible  <bruno@clisp.org>
81512
81513         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81514         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81515         projects that don't keep autogenerated files in CVS. Put into
81516         actioncmd only the specified modules, not the transitive closure.
81517
81518 2005-08-31  Bruno Haible  <bruno@clisp.org>
81519
81520         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81521         Create directories that shall be filled.
81522         (import): Don't look for gl_* macros in configure.ac. Recurse across
81523         all directories containing a gnulib-cache.m4 files, if meaningful.
81524
81525 2005-08-31  Bruno Haible  <bruno@clisp.org>
81526
81527         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81528         (import): Set seen_libtool when we see gl_LIBTOOL.
81529
81530 2005-08-31  Bruno Haible  <bruno@clisp.org>
81531
81532         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81533         declaration macro definitions from generated gnulib.m4.
81534
81535 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81536
81537         * lib/iconvme.h: Add prototype for iconv_alloc.
81538
81539 2005-08-29  Simon Josefsson  <jas@extundo.com>
81540
81541         * lib/iconvme.c: Fix errno.
81542
81543 2005-08-29  Bruno Haible  <bruno@clisp.org>
81544
81545         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81546         that it works when the directory contains spaces.
81547
81548 2005-08-29  Bruno Haible  <bruno@clisp.org>
81549
81550         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81551
81552 2005-08-29  Bruno Haible  <bruno@clisp.org>
81553
81554         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81555         Emit more advice.
81556
81557 2005-08-29  Bruno Haible  <bruno@clisp.org>
81558         and Stepan Kasal  <kasal@ucw.cz>
81559
81560         * check-module: If more parameters are given, check each of them
81561         separately; add more exceptions, as noted by Jim Meyering.
81562         (check_module): New procedure.
81563         (%exempt_header): Now contains all exceptions.
81564
81565 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81566
81567         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81568
81569 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81570
81571         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81572
81573 2005-08-28  Bruno Haible  <bruno@clisp.org>
81574
81575         * m4/gnulib-tool.m4: New file.
81576
81577 2005-08-27  Jim Meyering  <jim@meyering.net>
81578
81579         * modules/unistd-safer (Files): Add pipe-safer.c.
81580         * modules/fcntl-safer (Files): Add creat-safer.c.
81581
81582 2005-08-27  Jim Meyering  <jim@meyering.net>
81583
81584         * m4/stdlib-safer.m4: New file.  From coreutils.
81585         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81586         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81587         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81588         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81589         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81590
81591 2005-08-27  Jim Meyering  <jim@meyering.net>
81592
81593         * lib/fopen-safer.c: Merge minor changes from coreutils.
81594         * lib/dup-safer.c: Likewise.
81595         * lib/fd-safer.c: Likewise.
81596
81597         Merge from coreutils.
81598         * lib/stdio--.h: New file.
81599         * lib/stdlib--.h: New file.
81600         * lib/mkstemp-safer.c: New file.
81601
81602         GNU tar needs these.
81603         * lib/pipe-safer.c: New file.
81604         * lib/creat-safer.c: New file.
81605         * lib/fcntl--.h (creat): Define to creat_safer.
81606         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81607         * lib/unistd--.h (pipe): Define to pipe_safer.
81608         * lib/unistd-safer.h: Declare pipe_safer.
81609
81610 2005-08-26  Simon Josefsson  <jas@extundo.com>
81611
81612         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81613         Haible <bruno@clisp.org>.
81614
81615 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81616
81617         * lib/regex_internal.h: Remove all references to
81618         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81619         or better.
81620         (bitset_not, bitset_merge, bitset_not_merge):
81621         (bitset_mask, re_string_allocate, re_string_construct):
81622         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81623         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81624         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81625         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81626         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81627         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81628         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81629         (re_acquire_state_context):
81630         Remove unnecessary forward decls.
81631         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81632         Put __attribute at function definition,
81633         now that the function decl has been removed.
81634         * lib/regex_internal.c (re_string_peek_byte_case):
81635         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81636         Likewise.
81637
81638 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81639
81640         * m4/regex.m4: Add AC_PREREQ(2.50).
81641         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81642
81643 2005-08-25  Simon Josefsson  <jas@extundo.com>
81644
81645         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81646         __fsetlocking.
81647
81648 2005-08-25  Simon Josefsson  <jas@extundo.com>
81649
81650         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81651         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81652         GLIBC specific code.
81653
81654 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81655
81656         Make regex safe for g++.  This fixes one real bug (an "err"
81657         that should have been "*err").  g++ problem reported by
81658         Sam Steingold.
81659         * lib/regex_internal.h (re_calloc): New macro, consistent with
81660         re_malloc etc.  All callers of calloc changed to use re_calloc.
81661         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81662         not int.  All callers changed.
81663         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81664         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81665         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81666         (find_recover_state): Change "err" to "*err"; this fixes what
81667         appears to be a real bug.
81668         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81669         versus int.
81670
81671 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * modules/regex (Depends-on): Add malloc, since the code
81674         assumes that !malloc(0) means failure.
81675
81676 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81677
81678         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81679
81680         alloca modernization/simplification for regex.
81681         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81682         needs to be at the start of the file, and can be moved into
81683         regex_internal.h and simplified.
81684         * lib/regex_internal.h: Include <alloca.h>.
81685         (__libc_use_alloca) [!defined _LIBC]: New macro.
81686         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81687         now works outside glibc.
81688
81689 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81690
81691         * config/srclist.txt: Add glibc bugs 1241, 1245.
81692
81693 2005-08-25  Jim Meyering  <jim@meyering.net>
81694
81695         * lib/open-safer.c: Include <config.h>.
81696         Otherwise, we'd lose LARGEFILE support in any file using
81697         e.g. "fcntl--.h"
81698
81699 2005-08-25  Bruno Haible  <bruno@clisp.org>
81700
81701         * m4/minmax.m4: Require autoconf 2.52.
81702         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81703         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81704         alternatives of translit over the alphabet.
81705         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81706
81707 2005-08-24  Simon Josefsson  <jas@extundo.com>
81708
81709         * tests/test-getpass.c: New file.
81710
81711 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81712
81713         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81714         for GNU regex features.
81715
81716 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81717
81718         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81719         * lib/regex.h (regerror): Likewise.
81720
81721         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81722         requires this.  (The code never needed it.)
81723
81724         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81725         All uses of recently-renamed identifiers changed to use the new,
81726         POSIX-compliant names.  The code will build and run just fine
81727         without these changes, but it's better to eat our own dog food
81728         and use the standard-conforming names.
81729
81730         * lib/regex.h: Fix a multitude of POSIX name space violations.
81731         These changes have an effect only for programs that define
81732         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81733         do not change anything for programs compiled in the normal way.
81734         Also, there is no effect on the ABI.
81735
81736         (_REGEX_SOURCE): New macro.
81737         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81738         defined and _GNU_SOURCE is not; this fixes a name space violation.
81739
81740         Rename the following macros to obey POSIX requirements.
81741         The old names are still visible as macros if _REGEX_SOURCE is defined.
81742         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81743         RE_BACKSLASH_ESCAPE_IN_LISTS.
81744         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81745         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81746         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81747         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81748         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81749         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81750         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81751         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81752         (REG_INTERVALS): renamed from RE_INTERVALS.
81753         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81754         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81755         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81756         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81757         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81758         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81759         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81760         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81761         RE_UNMATCHED_RIGHT_PAREN_ORD.
81762         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81763         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81764         (REG_DEBUG): renamed from RE_DEBUG.
81765         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81766         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81767         unusual, since we can't clash with the POSIX REG_ICASE.
81768         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81769         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81770         (REG_NO_SUB): renamed from RE_NO_SUB.
81771         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81772         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81773         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81774         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81775         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81776         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81777         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81778         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81779         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81780         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81781         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81782         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81783         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81784         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81785         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81786         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81787         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81788         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81789         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81790         (REG_FIXED): Renamed from REGS_FIXED.
81791         (REG_NREGS): Renamed from RE_NREGS.
81792
81793         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81794         of other REG_* macros, since POSIX says the user is allowed to
81795         #undef these macros selectively.
81796
81797         (reg_errcode_t): Update comment stating what other tables need
81798         to be consistent.
81799
81800         Rename the following enum values to obey POSIX requirements.
81801         The old names are still visible as macros.
81802         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81803         is not defined, since GNU is supposed to be a superset of POSIX as
81804         much as possible, and since we want reg_errcode_t to be a signed
81805         type for implementation consistency.
81806         (_REG_NOERROR): Renamed from REG_NOERROR.
81807         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81808         (_REG_BADPAT): Renamed from REG_BADPAT.
81809         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81810         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81811         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81812         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81813         (_REG_EBRACK): Renamed from REG_EBRACK.
81814         (_REG_EPAREN): Renamed from REG_EPAREN.
81815         (_REG_EBRACE): Renamed from REG_EBRACE.
81816         (_REG_BADBR): Renamed from REG_BADBR.
81817         (_REG_ERANGE): Renamed from REG_ERANGE.
81818         (_REG_ESPACE): Renamed from REG_ESPACE.
81819         (_REG_BADRPT): Renamed from REG_BADRPT.
81820         (_REG_EEND): Renamed from REG_EEND.
81821         (_REG_ESIZE): Renamed from REG_ESIZE.
81822         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81823         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81824         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81825         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81826         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81827
81828         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81829         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81830         changed.  But support the old name if the new one is not defined
81831         and if _REGEX_SOURCE.
81832
81833         Change the following member names in struct re_pattern_buffer.
81834         The old names are still supported if !_REGEX_SOURCE.
81835         The new names are always supported, regardless of _REGEX_SOURCE.
81836         (re_buffer): Renamed from buffer.
81837         (re_allocated): Renamed from allocated.
81838         (re_used): Renamed from used.
81839         (re_syntax): Renamed from syntax.
81840         (re_fastmap): Renamed from fastmap.
81841         (re_translate): Renamed from translate.
81842         (re_can_be_null): Renamed from can_be_null.
81843         (re_regs_allocated): Renamed from regs_allocated.
81844         (re_fastmap_accurate): Renamed from fastmap_accurate.
81845         (re_no_sub): Renamed from no_sub.
81846         (re_not_bol): Renamed from not_bol.
81847         (re_not_eol): Renamed from not_eol.
81848         (re_newline_anchor): Renamed from newline_anchor.
81849
81850         Change the following member names in struct re_registers.
81851         The old names are still supported if !_REGEX_SOURCE.
81852         The new names are always supported, regardless of _REGEX_SOURCE.
81853         (rm_num_regs): Renamed from num_regs.
81854         (rm_start): Renamed from start.
81855         (rm_end): Renamed from end.
81856
81857         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81858         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81859         Prepend __ to parameter names.
81860
81861         Undo yesterday's changes.
81862
81863 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81866         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81867         lib/regex.c.
81868
81869 2005-08-24  Jim Meyering  <jim@meyering.net>
81870
81871         Sync from coreutils.
81872         * m4/fcntl-safer.m4: New file.
81873
81874         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81875         and object files for this module.
81876
81877 2005-08-24  Jim Meyering  <jim@meyering.net>
81878
81879         Sync from coreutils.
81880         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81881
81882 2005-08-24  Jim Meyering  <jim@meyering.net>
81883
81884         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81885         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81886
81887 2005-08-24  Jim Meyering  <jim@meyering.net>
81888
81889         * modules/fcntl-safer: New module.
81890         * modules/fts (Depends-on): Add fcntl-safer.
81891         * MODULES.html.sh (File descriptor based Input/Output):
81892         Add fcntl-safer.
81893
81894 2005-08-24  Bruno Haible  <bruno@clisp.org>
81895
81896         Support for unit test modules.
81897         * modules/README: Mention tests modules.
81898         * modules/TEMPLATE-TESTS: New file.
81899         * gnulib-tool: New options --extract-tests-module, --with-tests and
81900         --tests-base (unused for the moment).
81901         (testsbase, inctests): New variables.
81902         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81903         (func_verify_module): Exclude TEMPLATE-TESTS.
81904         (func_verify_nontests_module, func_verify_tests_module): New functions.
81905         (func_get_dependencies): Add implicit dependency for tests modules.
81906         (func_get_tests_module): New function.
81907         (func_modules_transitive_closure): When --with-tests was specified,
81908         include the unit tests as well, unless explicitly avoided.
81909         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81910         (func_emit_tests_Makefile_am): New function.
81911         (func_create_testdir): When --with-tests was specified, emit a
81912         tests/ directory.
81913         * MODULES.html.sh (Future developments): Update.
81914
81915 2005-08-24  Bruno Haible  <bruno@clisp.org>
81916
81917         * modules/tls-tests: New file.
81918         * tests/test-tls.c: New file, from GNU gettext.
81919
81920 2005-08-24  Bruno Haible  <bruno@clisp.org>
81921
81922         * modules/lock-tests: New file.
81923         * tests/test-lock.c: New file, from GNU gettext.
81924
81925 2005-08-24  Bruno Haible  <bruno@clisp.org>
81926
81927         * lib/lock.h: Add multiple inclusion guard.
81928         * lib/tls.h: Add multiple inclusion guard.
81929
81930 2005-08-24  Bruno Haible  <bruno@clisp.org>
81931
81932         * gnulib-tool: Add support for the --aux-dir option to
81933         --create-testdir, --create-megatestdir, --test, --megatest.
81934         (func_create_testdir, func_create_megatestdir): Optionally emit a
81935         AC_CONFIG_AUX_DIR directive.
81936         (create-testdir, create-megatestdir, test, megatest): Provide a
81937         default value for $auxdir.
81938
81939 2005-08-24  Bruno Haible  <bruno@clisp.org>
81940
81941         * gnulib-tool (import): Use compound statement instead of subshell
81942         where possible.
81943
81944 2005-08-24  Bruno Haible  <bruno@clisp.org>
81945
81946         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81947
81948 2005-08-24  Bruno Haible  <bruno@clisp.org>
81949
81950         * gnulib-tool (func_version): Update.
81951
81952 2005-08-24  Bruno Haible  <bruno@clisp.org>
81953
81954         * gnulib-tool (func_import, func_create_testdir,
81955         func_create_megatestdir): Quote all autoconf macro arguments.
81956
81957 2005-08-24  Bruno Haible  <bruno@clisp.org>
81958
81959         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81960         option --force, because --force causes the aclocal.m4 of each
81961         subdirectory to be newer than the corresponding config.h.in.
81962
81963 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81964
81965         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81966         All contents moved to gl_REGEX.
81967         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81968         assume that it does.
81969
81970 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81971
81972         * lib/regex.h (REG_NOSYS)
81973         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81974         Define, since POSIX requires it as of 2001.
81975         (_REG_ENOSYS)
81976         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81977         New private symbol, used to keep the enum signed in all cases.
81978         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81979         Youngman in
81980         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81981
81982         * lib/regex_internal.c (re_string_skip_chars, register_state):
81983         (calc_state_hash):
81984         Remove forward decls; no longer needed now that we use prototypes.
81985         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81986         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81987         (clean_state_log_if_needed): Likewise.
81988
81989 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * config/srclist.txt: Add glibc bugs 1231-1233.
81992
81993 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81994
81995         Fix problems reported by Sam Steingold in
81996         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81997         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81998         assumed that reg_errcode_t is a signed type, which is not
81999         necessarily true if _XOPEN_SOURCE is not defined.
82000         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82001         since some compilers warn about it otherwise.
82002
82003 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82006         (init_word_char, create_initial_state, duplicate_node_closure):
82007         (fetch_token, peek_token_bracket, build_range_exp):
82008         (build_collating_symbol): Remove forward decls; no longer needed
82009         now that we use prototypes.
82010
82011         * lib/regcomp.c:
82012         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82013         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82014         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82015         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82016         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82017         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82018         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82019         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82020         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82021         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82022         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82023         (build_charclass, build_charclass_op, fetch_number, create_tree):
82024         (create_token_tree, mark_opt_subexp, duplicate_tree):
82025         Use prototypes rather than old-style definitions.
82026
82027         * lib/regex_internal.c:
82028         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82029         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82030         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82031         (re_string_reconstruct, re_string_peek_byte_case):
82032         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82033         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82034         (re_node_set_init_copy, re_node_set_add_intersect):
82035         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82036         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82037         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82038         (re_acquire_state, re_acquire_state_context, register_state):
82039         (create_ci_newstate, create_cd_newstate, free_state):
82040         Likewise.
82041         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82042         re_search_2):
82043         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82044         (re_search_internal, prune_impossible_nodes):
82045         (acquire_init_state_context, check_matching, static):
82046         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82047         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82048         (update_regs, sift_states_backward, build_sifted_states):
82049         (clean_state_log_if_needed, merge_state_array):
82050         (update_cur_sifted_state, add_epsilon_src_nodes):
82051         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82052         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82053         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82054         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82055         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82056         (check_arrival, check_arrival_add_next_nodes):
82057         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82058         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82059         (check_node_accept_bytes, check_node_accept, extend_buffers):
82060         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82061         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82062         (sift_ctx_init):
82063         Likewise.
82064
82065         * lib/regex_internal.h:
82066         (re_string_allocate, re_string_construct, re_string_reconstruct):
82067         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82068         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82069         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82070         (re_string_context_at, re_string_peek_byte_case):
82071         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82072         is defined, since we now use prototypes always.
82073
82074         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82075         C89 or better.  All uses removed.
82076
82077 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82078
82079         * config/srclist.txt: Add glibc bugs 1220-1227.
82080
82081 2005-08-20  Jim Meyering  <jim@meyering.net>
82082
82083         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82084         of unused local, dfa.
82085
82086 2005-08-20  Bruno Haible  <bruno@clisp.org>
82087
82088         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82089
82090 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82091
82092         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82093         (re_node_set_insert_last, re_dfa_add_node):
82094         Rename local variables to avoid GCC shadowing warnings.
82095
82096 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82097
82098         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82099         [defined lint]: Suppress bogus uninitialized-variable warnings.
82100
82101         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82102         and let the caller return REG_ESPACE if out of space.  This
82103         removes an uninitialied-variable warning with GCC 4.0.1, and also
82104         avoids taking the address of a local variable.  All callers
82105         changed.
82106
82107 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82108
82109         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82110         $LIBCSRC/posix/regexec.c.
82111         Add glibc bug 1217 for regcomp.c.
82112
82113 2005-08-19  Jim Meyering  <jim@meyering.net>
82114
82115         * lib/regexec.c (proceed_next_node): Redo local variables to
82116         avoid GCC shadowing warnings.
82117
82118 2005-08-18  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/strstr.c (strstr): Fix return value in multibyte case.
82121         * lib/strcasestr.c (strcasestr): Likewise.
82122
82123 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82126
82127 2005-08-17  Jim Meyering  <jim@meyering.net>
82128
82129         Make the %s format (seconds since the epoch) work for a negative
82130         number and when used with a zero-padded field width, e.g. %015s.
82131
82132         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82133         label so that it precedes the code to set `digits'.  Otherwise,
82134         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82135         print `00-22'.  Now, it prints `-0022', as it should.
82136
82137 2005-08-17  Bruno Haible  <bruno@clisp.org>
82138
82139         * modules/strstr (Files): Add m4/mbrtowc.m4.
82140         (Depends-on): Add mbuiter.
82141
82142 2005-08-17  Bruno Haible  <bruno@clisp.org>
82143
82144         * modules/strcasestr: New file.
82145         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82146         strcasestr.
82147
82148 2005-08-17  Bruno Haible  <bruno@clisp.org>
82149
82150         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82151
82152 2005-08-17  Bruno Haible  <bruno@clisp.org>
82153
82154         * modules/mbuiter: New file.
82155         * MODULES.html.sh (Extended multibyte and wide character utilities):
82156         Add mbuiter.
82157
82158 2005-08-17  Bruno Haible  <bruno@clisp.org>
82159
82160         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82161         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82162
82163 2005-08-17  Bruno Haible  <bruno@clisp.org>
82164
82165         * m4/strcasestr.m4: New file.
82166
82167 2005-08-17  Bruno Haible  <bruno@clisp.org>
82168
82169         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82170         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82171
82172 2005-08-17  Bruno Haible  <bruno@clisp.org>
82173
82174         * lib/strcasestr.h: New file.
82175         * lib/strcasestr.c: New file.
82176
82177 2005-08-17  Bruno Haible  <bruno@clisp.org>
82178
82179         * lib/strcasecmp.c: Use mbuiter.h.
82180
82181 2005-08-17  Bruno Haible  <bruno@clisp.org>
82182
82183         * lib/mbuiter.h: New file.
82184
82185 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82188         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82189         and gl_GETOPT are both invoked via different paths (as happens
82190         with GNU tar CVS because it uses both argp and getopt), the former
82191         wins.
82192
82193 2005-08-16  Bruno Haible  <bruno@clisp.org>
82194
82195         * modules/tls: New file.
82196         * MODULES.html.sh (Multithreading): Add tls.
82197
82198 2005-08-16  Bruno Haible  <bruno@clisp.org>
82199
82200         * modules/strnlen1: New file.
82201         * MODULES.html.sh (String handling): Add strnlen1.
82202
82203 2005-08-16  Bruno Haible  <bruno@clisp.org>
82204
82205         * modules/strcase (Files): Add m4/mbrtowc.m4.
82206         (Depends-on): Add strnlen1, mbchar.
82207
82208 2005-08-16  Bruno Haible  <bruno@clisp.org>
82209
82210         * modules/mbiter: New file.
82211         * MODULES.html.sh (Extended multibyte and wide character utilities):
82212         Add mbiter.
82213
82214 2005-08-16  Bruno Haible  <bruno@clisp.org>
82215
82216         * modules/mbfile: New file.
82217         * MODULES.html.sh (Extended multibyte and wide character utilities):
82218         Add mbfile.
82219
82220 2005-08-16  Bruno Haible  <bruno@clisp.org>
82221
82222         * modules/mbchar: New file.
82223         * MODULES.html.sh (Extended multibyte and wide character utilities):
82224         New section.
82225
82226 2005-08-16  Bruno Haible  <bruno@clisp.org>
82227
82228         * m4/tls.m4: New file, from GNU gettext.
82229
82230 2005-08-16  Bruno Haible  <bruno@clisp.org>
82231
82232         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82233         always.
82234         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82235
82236 2005-08-16  Bruno Haible  <bruno@clisp.org>
82237
82238         * m4/mbiter.m4: New file.
82239
82240 2005-08-16  Bruno Haible  <bruno@clisp.org>
82241
82242         * m4/mbfile.m4: New file.
82243
82244 2005-08-16  Bruno Haible  <bruno@clisp.org>
82245
82246         * m4/mbchar.m4: New file.
82247
82248 2005-08-16  Bruno Haible  <bruno@clisp.org>
82249
82250         * lib/tls.h: New file, from GNU gettext.
82251         * lib/tls.c: New file, from GNU gettext.
82252
82253 2005-08-16  Bruno Haible  <bruno@clisp.org>
82254
82255         * lib/strnlen1.h: New file.
82256         * lib/strnlen1.c: New file.
82257
82258 2005-08-16  Bruno Haible  <bruno@clisp.org>
82259
82260         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82261         (mbi_init): Update.
82262         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82263         NUL byte, not after it.
82264
82265 2005-08-16  Bruno Haible  <bruno@clisp.org>
82266
82267         * lib/strcase.h (strcasecmp): Add note in comments.
82268         * lib/strncasecmp.c: Use code from strcasecmp.c.
82269         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82270         (strcasecmp): Work correctly in multibyte locales.
82271
82272 2005-08-16  Bruno Haible  <bruno@clisp.org>
82273
82274         * lib/mbiter.h: New file.
82275
82276 2005-08-16  Bruno Haible  <bruno@clisp.org>
82277
82278         * lib/mbfile.h: New file.
82279
82280 2005-08-16  Bruno Haible  <bruno@clisp.org>
82281
82282         * lib/mbchar.h: New file.
82283         * lib/mbchar.c: New file.
82284
82285 2005-08-16  Bruno Haible  <bruno@clisp.org>
82286
82287         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82288         the valid ones. Makes the comparison operations transitive:
82289         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82290         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82291
82292 2005-08-15  Simon Josefsson  <jas@extundo.com>
82293
82294         * modules/ssize_t (License): Change to 'unlimited'.
82295
82296         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82297
82298 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82299
82300         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82301         Add comments for each pending glibc patch.
82302
82303 2005-08-15  Bruno Haible  <bruno@clisp.org>
82304
82305         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82306         __cplusplus is defined.
82307
82308 2005-08-14  Jim Meyering  <jim@meyering.net>
82309
82310         Sync from coreutils.
82311
82312         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82313         Use the hash-table-based cycle-detection code not just when
82314         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82315         Reported by James Youngman in
82316         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82317         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82318         FTS_TIGHT_CYCLE_CHECK.
82319         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82320         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82321         once again.
82322         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82323         * lib/fts.c (fd_safer): Remove decl.
82324         Include fcntl--.h rather than unistd-safer.h
82325         (fts_safe_changedir): Don't call fd_safer; no longer needed
82326         now that we include fcntl--.h.
82327
82328 2005-08-12  Simon Josefsson  <jas@extundo.com>
82329
82330         * modules/getndelim2: Use ssize_t module.
82331         * modules/getnline: Likewise.
82332         * modules/safe-read: Likewise.
82333         * modules/xreadlink: Likewise.
82334
82335         * modules/ssize_t: New file.
82336
82337 2005-08-12  Simon Josefsson  <jas@extundo.com>
82338
82339         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82340
82341 2005-08-12  Simon Josefsson  <jas@extundo.com>
82342
82343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82344         ssize_t.
82345
82346 2005-08-12  Simon Josefsson  <jas@extundo.com>
82347
82348         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82349         readline, getdelim and check_version.
82350         (Support for systems lacking ISO C 99: Sizes of integer types):
82351         Add size_max.
82352
82353 2005-08-12  Bruno Haible  <bruno@clisp.org>
82354
82355         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82356
82357 2005-08-11  Simon Josefsson  <jas@extundo.com>
82358
82359         * modules/readline: New file.
82360
82361         * modules/strnlen (Files): Add strnlen.h.
82362
82363 2005-08-11  Simon Josefsson  <jas@extundo.com>
82364
82365         * m4/readline.m4: New file.
82366
82367 2005-08-11  Simon Josefsson  <jas@extundo.com>
82368
82369         * lib/readline.h, readline.c: New file.
82370
82371 2005-08-11  Simon Josefsson  <jas@extundo.com>
82372
82373         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82374         gl_AVOID.
82375
82376 2005-08-11  Bruno Haible  <bruno@clisp.org>
82377
82378         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82379
82380 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82381
82382         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82383
82384 2005-08-10  Simon Josefsson  <jas@extundo.com>
82385
82386         * tests/test-iconvme.c: New file.
82387
82388 2005-08-10  Simon Josefsson  <jas@extundo.com>
82389
82390         * m4/strnlen.m4: New file.
82391
82392         * m4/strndup.m4: Don't check for strnlen declaration, done in
82393         strnlen.m4.
82394
82395 2005-08-10  Simon Josefsson  <jas@extundo.com>
82396
82397         * lib/strndup.c: Use strnlen.h.
82398
82399         * lib/strnlen.h: New file.
82400
82401 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82402
82403         * README: Typos.
82404
82405 2005-08-02  Simon Josefsson  <jas@extundo.com>
82406
82407         * modules/readline: New file.
82408
82409 2005-08-02  Simon Josefsson  <jas@extundo.com>
82410
82411         * modules/getdelim: New file.
82412
82413         * modules/getline: Rewrite, don't use getndelim2.
82414
82415 2005-08-02  Simon Josefsson  <jas@extundo.com>
82416
82417         * m4/getline.m4: Separate out getdelim stuff into separate module.
82418
82419         * m4/getdelim.m4: New file.
82420
82421 2005-08-02  Simon Josefsson  <jas@extundo.com>
82422
82423         * lib/getline.h, getline.c: Rewrite.
82424
82425         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82426
82427 2005-07-31  Bruno Haible  <bruno@clisp.org>
82428
82429         * lib/lock.h (gl_lock_initializer): New macro.
82430         (gl_lock_define_initialized): Use it.
82431         (gl_rwlock_initializer): New macro.
82432         (gl_rwlock_define_initialized): Use it.
82433         (gl_recursive_lock_initializer): New macro.
82434         (gl_recursive_lock_define_initialized): Use it.
82435
82436 2005-07-30  Karl Berry  <karl@gnu.org>
82437
82438         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82439         Report from Ben Pfaff, regarding getopt.
82440
82441 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82442
82443         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82444         normal way.
82445         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82446         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82447         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82448         (gl_GETOPT): Use the new macros.  Most of the implementation
82449         is moved to the new macros.  This is for programs like Emacs
82450         that don't want all the functionality of gl_GETOPT.
82451
82452 2005-07-26  Bruno Haible  <bruno@clisp.org>
82453
82454         * m4/lock.m4: Update from GNU gettext.
82455
82456 2005-07-26  Bruno Haible  <bruno@clisp.org>
82457
82458         * lib/lock.h: Update from GNU gettext.
82459         * lib/lock.c: Update from GNU gettext.
82460
82461 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82462
82463         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82464         obsolescent AC_TRY_RUN.  Include the default includes files, for
82465         'exit'.
82466
82467 2005-07-24  Bruno Haible  <bruno@clisp.org>
82468
82469         * modules/visibility: New file.
82470         * MODULES.html.sh (Misc): Add visibility.
82471
82472 2005-07-24  Bruno Haible  <bruno@clisp.org>
82473
82474         * m4/visibility.m4: New file.
82475
82476 2005-07-24  Bruno Haible  <bruno@clisp.org>
82477
82478         * doc/visibility.texi: New file.
82479
82480 2005-07-22  Bruno Haible  <bruno@clisp.org>
82481
82482         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82483         $(ALLOCA_H), redundant through BUILT_SOURCES.
82484         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82485         redundant through BUILT_SOURCES.
82486         * modules/byteswap (Makefile.am): Remove explicit dependency on
82487         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82488         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82489         $(FNMATCH_H), redundant through BUILT_SOURCES.
82490         * modules/getopt (Makefile.am): Remove explicit dependency on
82491         $(GETOPT_H), redundant through BUILT_SOURCES.
82492         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82493         redundant through BUILT_SOURCES.
82494         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82495         redundant through BUILT_SOURCES.
82496         * modules/stdbool (Makefile.am): Remove explicit dependency on
82497         $(STDBOOL_H), redundant through BUILT_SOURCES.
82498         * modules/stdint (Makefile.am): Remove explicit dependency on
82499         $(STDINT_H), redundant through BUILT_SOURCES.
82500         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82501         Remove explicit dependency on $(SYSEXITS_H).
82502         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82503
82504 2005-07-18  Simon Josefsson  <jas@extundo.com>
82505
82506         * lib/check-version.c (check_version): Accept identical versions too.
82507
82508 2005-07-18  Bruno Haible  <bruno@clisp.org>
82509
82510         * modules/lock: New file.
82511         * MODULES.html.sh (Multithreading): New section.
82512
82513 2005-07-18  Bruno Haible  <bruno@clisp.org>
82514
82515         * m4/lock.m4: New file, from GNU gettext.
82516
82517 2005-07-18  Bruno Haible  <bruno@clisp.org>
82518
82519         * lib/lock.h: New file, from GNU gettext.
82520         * lib/lock.c: New file, from GNU gettext.
82521
82522 2005-07-18  Bruno Haible  <bruno@clisp.org>
82523
82524         * lib/lock.h (gl_once_t): New type.
82525         (gl_once_define, gl_once): New macros.
82526         * lib/lock.c (fresh_once): New variable.
82527         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82528         functions.
82529
82530 2005-07-16  Simon Josefsson  <jas@extundo.com>
82531
82532         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82533         workaround, suggested by Bruno.
82534
82535 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82536
82537         * modules/xalloc (Depends-on): Add xalloc-die.
82538         * modules/xvasprintf (Depends-on): Add xalloc-die.
82539
82540 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82541
82542         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82543         with a minor change.
82544
82545 2005-07-15  Bruno Haible  <bruno@clisp.org>
82546
82547         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82548         When using lib/poll.c, define poll as rpl_poll.
82549
82550 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         * modules/argp (Depends-on): Remove unlocked-io.
82553
82554 2005-07-14  Derek Price  <derek@ximbiot.com>
82555
82556         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82557         for glob symlink bug.
82558
82559 2005-07-14  Bruno Haible  <bruno@clisp.org>
82560
82561         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82562         Instead, test for *_unlocked function declarations directly.
82563
82564 2005-07-11  Simon Josefsson  <jas@extundo.com>
82565
82566         * modules/size_max: New file.
82567
82568         * modules/xsize: Depend on size_max module for size_max.m4.
82569
82570 2005-07-11  Simon Josefsson  <jas@extundo.com>
82571
82572         * lib/size_max.h: New file.
82573
82574 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82575
82576         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82577         copyright symbol and the year.
82578         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82579         (version_etc_va): Use parameterized copyright notice.
82580         Reword to conform to the current GNU coding standards.
82581
82582 2005-07-11  Karl Berry  <karl@gnu.org>
82583
82584         * doc/gnulib.texi (Quoting): new node.
82585         (Initial import): more info, from Patrice.
82586
82587 2005-07-11  Bruno Haible  <bruno@clisp.org>
82588
82589         * gnulib-tool (func_usage): Document option --avoid.
82590         (Command line options): Handle --avoid.
82591         (func_acceptable): New function.
82592         (func_modules_transitive_closure): Use it.
82593
82594 2005-07-11  Bruno Haible  <bruno@clisp.org>
82595
82596         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82597         Reported by Jim Meyering.
82598
82599 2005-07-10  Bruno Haible  <bruno@clisp.org>
82600
82601         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82602         Needed when size_t is smaller than 'unsigned int'.
82603         Reported by Paul Eggert.
82604
82605 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82606
82607         * modules/argp (Depends-on): Add unlocked-io
82608
82609 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82610
82611         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82612         block of defines.
82613
82614 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82615
82616         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82617         fix now.
82618
82619 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82620         and Paul Eggert  <eggert@cs.ucla.edu>
82621
82622         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82623         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82624
82625 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82626
82627         * modules/regex (Files): Add lib/regex_internal.c,
82628         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82629         (Depends-on): Add extensions.
82630         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82631
82632 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82633
82634         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82635         pathconf.
82636         * m4/same.m4 (gl_SAME): Likewise.
82637         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82638
82639         * m4/regex.m4: Adjust to new libc regex implementation.
82640         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82641         all the .c and .h parts of (the new) regex.
82642         Quote the m4 stuff better.
82643         Check for RE_ICASE bug of old gnulib.
82644         Check for REG_STARTEND of recent libc.
82645         Rename local variables from jm_* to gl_*.
82646         Quote operand of "test -f".
82647         Say "recent enough" version of libc, not "version 2".
82648         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82649         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82650         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82651         Remove check for btowc, isascii.
82652         Require AM_LANGINFO_CODESET.
82653
82654 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * lib/regex.c, regex.h: Sync from libc.
82657         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82658         * lib/regexec.c:
82659         New files, synced from libc, except that regex_internal.h
82660         currently has a small porting fix.
82661
82662 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82663
82664         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82665         regex_internal.c, regexec.c.
82666         Add regex_internal.h too, but as a comment, since the libc version
82667         is currently broken in gnulib mode.
82668
82669 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82670
82671         Support programs like Emacs that use gnulib but not gettext.
82672         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82673         * modules/gettext-h: New file.
82674         * modules/gettext (Files): Remove lib/gettext.h.
82675         (Depends-on): Add gettext-h.
82676         (Makefile.am): Remove lib_SOURCES.
82677         * modules/argmatch, modules/c-stack, modules/closeout:
82678         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82679         * modules/execute, modules/file-type, modules/getaddrinfo:
82680         * modules/getopt, modules/human, modules/javacomp:
82681         * modules/javaexec, modules/mkdir-p, modules/obstack:
82682         * modules/openat, modules/pagealign_alloc, modules/pipe:
82683         * modules/quotearg, modules/regex, modules/rpmatch:
82684         * modules/unicodeio, modules/userspec, modules/version-etc:
82685         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82686         * modules/xsetenv:
82687         Depend on gettext-h, not gettext.
82688
82689 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82690
82691         * gnulib-tool (func_import): Add support for 'public domain' license.
82692         * modules/alloca, modules/atexit, modules/memmove:
82693         Now public domain, not GPL.
82694         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82695         * modules/realloc, modules/strerror, modules/strtod:
82696         Now LGPL, not GPL.
82697
82698 2005-07-05  Bruno Haible  <bruno@clisp.org>
82699
82700         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82701         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
82707
82708 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82709
82710         Remove the dependency of the strftime module on the tzset module.
82711         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82712         gl_FUNC_TZSET_CLOBBER.
82713
82714 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82715
82716         Remove the dependency of the strftime module on the tzset module.
82717         * lib/strftime.c (my_strftime)
82718         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82719         Copy the input structure, to work around some of the bug with
82720         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82721         Solaris releases, you should also use the tzset module, but we won't
82722         require it as a dependency any more since we don't want LGPLed code
82723         to depend on GPLed code.
82724
82725 2005-07-02  Jim Meyering  <jim@meyering.net>
82726
82727         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82728         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82729         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82730         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82731
82732 2005-07-02  Jim Meyering  <jim@meyering.net>
82733
82734         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82735
82736 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82737
82738         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82739         declares only 'struct timespec;' (!).
82740
82741 2005-07-01  Jim Meyering  <jim@meyering.net>
82742
82743         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82744         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82745         * lib/save-cwd.c, tempname.c:
82746         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82747         and don't include <sys/file.h>).
82748
82749 2005-06-29  Jim Meyering  <jim@meyering.net>
82750
82751         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82752         type name.  Use the variable name instead.
82753         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82754         Likewise.
82755
82756 2005-06-28  Simon Josefsson  <jas@extundo.com>
82757
82758         * modules/check-version (Files): Add check-version.m4.
82759
82760 2005-06-28  Simon Josefsson  <jas@extundo.com>
82761
82762         * m4/check-version.m4: New file, suggested by Jim Meyering
82763         <jim@meyering.net>.
82764
82765 2005-06-28  Simon Josefsson  <jas@extundo.com>
82766
82767         * lib/check-version.h, lib/check-version.c: New files.
82768
82769 2005-06-28  Simon Josefsson  <jas@extundo.com>
82770
82771         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82772         collision with global variable.  Better indentation.  Don't
82773         increment buffer pointer beyond buffer end.  Based on comments
82774         from Paul Eggert <eggert@cs.ucla.edu>.
82775
82776         * lib/base64.h: Indent.
82777
82778 2005-06-28  Simon Josefsson  <jas@extundo.com>
82779
82780         * doc/gnulib.texi (Library version handling): New section.
82781
82782 2005-06-28  Jim Meyering  <jim@meyering.net>
82783
82784         * check-module (find_included_lib_files): Hard-code another
82785         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82786         but modules/fts-lgpl (correctly) does not list those files.
82787
82788         * modules/canonicalize (Files): Add lib/pathmax.h.
82789
82790 2005-06-25  Simon Josefsson  <jas@extundo.com>
82791
82792         * modules/check-version: New file.
82793
82794 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82797         initializer of struct addrinfo, as an indication that we don't
82798         care how many members the structure has.
82799
82800 2005-06-24  Derek Price  <derek@ximbiot.com>
82801         and Bruno Haible  <bruno@clisp.org>
82802
82803         Remove stat module & update lstat.
82804         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82805         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82806         * m4/stat.m4: Remove this file.
82807
82808 2005-06-24  Derek Price  <derek@ximbiot.com>
82809         and Bruno Haible  <bruno@clisp.org>
82810
82811         Remove stat module & update lstat.
82812         * lib/stat.c: Remove this file...
82813         (slash_aware_lstat): ...moving this content and its support...
82814         * lib/lstat.c (rpl_lstat): ...into here.
82815         * lib/lstat.h: New file.
82816
82817 2005-06-24  Derek Price  <derek@ximbiot.com>
82818         and Bruno Haible  <bruno@clisp.org>
82819
82820         Remove stat module & update lstat.
82821         * config/srclist.txt (libc sources): Remove stat.
82822
82823 2005-06-24  Derek Price  <derek@ximbiot.com>
82824         and Bruno Haible  <bruno@clisp.org>
82825
82826         Remove stat module & update lstat.
82827         * MODULES.html.sh (stat): Remove.
82828         * MODULES.html: Regenerated.
82829         * modules/lstat (Description): Correct function name.
82830         (Files): Add "lstat.h".
82831         (Depends-on): Remove stat, add xalloc, stat-macros.
82832         * modules/stat: Remove this file.
82833         (Include): Add "lstat.h", remove <sys/stat.h>.
82834
82835 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82836
82837         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82838         (ranged_convert): Don't save conversion in a temporary struct.
82839         This causes a warning with GCC 4.0.0, and anyway in the typical
82840         case it's not worth the extra 100 bytes or so of code.
82841         (ranged_convert, __mktime_internal): When calling a function via a
82842         pointer P, use P () rather than (*P) (), as we now assume C89 or
82843         better.
82844
82845 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82846
82847         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82848         "who -r" failed to give output.  Problem reported by Tim Waugh.
82849
82850         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82851         (xcalloc): Use it to avoid needless tests.
82852         Problem reported by Jim Meyering.
82853
82854 2005-06-20  Derek Price  <derek@ximbiot.com>
82855
82856         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82857         unnecessary for Autoconfs > 2.59c.
82858
82859 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82860
82861         * lib/argp.h (__option_is_short): Check upper limit of
82862         __key. Isprint() requires its argument to have the value
82863         of an unsigned char or EOF.
82864
82865 2005-06-16  Jim Meyering  <jim@meyering.net>
82866
82867         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82868         when either N or S is zero.
82869
82870 2005-06-16  Derek Price  <derek@ximbiot.com>
82871
82872         * m4/bison.m4: Declare YACC & YFLAGS precious.
82873
82874 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82877         multibyte string or pattern, fall back on unibyte matching.
82878         Problem reported by James Youngman.
82879
82880 2005-06-08  Bruno Haible  <bruno@clisp.org>
82881
82882         * modules/csharpcomp: New file.
82883         * MODULES.html.sh (C#): Add csharpcomp.
82884
82885 2005-06-08  Bruno Haible  <bruno@clisp.org>
82886
82887         * m4/csharpcomp.m4: New file, from GNU gettext.
82888
82889 2005-06-08  Bruno Haible  <bruno@clisp.org>
82890
82891         * lib/csharpcomp.h: New file, from GNU gettext.
82892         * lib/csharpcomp.c: New file, from GNU gettext.
82893         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82894
82895 2005-06-08  Bruno Haible  <bruno@clisp.org>
82896
82897         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82898         warning on mingw.
82899
82900 2005-06-07  Derek Price  <derek@ximbiot.com>
82901
82902         Sync from CVS.
82903         * lib/glob_.h: Indent nested #ifdef.
82904
82905 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82906
82907         Sync from coreutils.
82908         Use "file name" when talking about file names, instead of "filename"
82909         or "path", as per the GNU coding standards.
82910         * lib/mkdir-p.c: Renamed from makepath.c.
82911         (make_dir_parents): Renamed from make_path.  All callers changed.
82912         * lib/mkdir-p.h: Likewise.  All includers changed.
82913         * lib/filenamecat.c: Renamed from path-concat.c.
82914         (file_name_concat): Renamed from path_concat.  All callers changed.
82915         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82916         * lib/filenamecat.h: Likewise.  All includers changed.
82917         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82918         in comments or local variable names.
82919         * lib/basename.c: Likewise.
82920         * lib/canonicalize.c, canonicalize.h: Likewise.
82921         * lib/dirname.c, dirname.h: Likewise.
82922         * lib/euidaccess.c: Likewise.
82923         * lib/exclude.c: Likewise
82924         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82925         * lib/fsusage.c, fsuage.h: Likewise.
82926         * lib/fts.c, fts_.h: Likewise.
82927         * lib/getcwd.c: Likewise.
82928         * lib/getloadavg.c: Likewise.
82929         * lib/mkstemp.c: Likewise.
82930         * lib/mountlist.c, mountlist.h: Likewise.
82931         * lib/openat.c, openat.h: Likewise.
82932         * lib/readlink-stub.c: Likewise.
82933         * lib/readutmp.c, readutmp.h: Likewise.
82934         * lib/rename.c: Likewise.
82935         * lib/rmdir.c: Likewise.
82936         * lib/same.c: Likewise.
82937         * lib/savedir.c: Likewise.
82938         * lib/stripslash.c: Likewise.
82939         * lib/tempname.c: Likewise.
82940         * lib/xreadlink.c: Likewise.
82941         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82942         All uses changed.
82943         * lib/exclude.h: Likewise.
82944
82945         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82946         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82947         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82948         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82949         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82950         files have been getting away with it for years (MORE/BSD 4.3
82951         is extinct now).
82952         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82953         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82954
82955         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82956         Define to 256, not 255, as per modern POSIX.
82957
82958 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82959
82960         Sync from coreutils.
82961         Use "file name" when talking about file names, instead of "filename"
82962         or "path", as per the GNU coding standards.
82963         * MODULES.html.sh: mkdir-p renamed from makepath.
82964         filenamecat renamed from path-concat.
82965         * modules/filenamecat: Renamed from modules/path-concat.
82966         (Files): filenamecat.h and filenamecat.c renamed from
82967         path-concat.h and path-concat.c.
82968         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82969         (Include): filenamecat.h, not path-concat.h.
82970         * modules/mkdir-p: Renamed from modules/makepath.
82971         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82972         makepath.c.
82973         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82974         (Include): mkdir-p.h, not makepath.h.
82975
82976 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         Sync from coreutils.
82979         * m4/mkdir-p.m4: Renamed from makepath.m4.
82980         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82981         Rename files from makepath.c to mkdir-p.c, and from
82982         makepath.h to mkdir-p.h.
82983         * m4/filenamecat.m4: Renamed from path-concat.m4.
82984         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82985         Rename files from path-concat.c to filenamecat.c,
82986         and from path-concat.h to filenamecat.h.
82987         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82988         "file name" in local variables or comments.
82989         * m4/rename.m4: Likewise.
82990
82991 2005-06-01  Bruno Haible  <bruno@clisp.org>
82992
82993         * modules/csharpexec: New file.
82994         * MODULES.html.sh (C#): New section.
82995
82996 2005-06-01  Bruno Haible  <bruno@clisp.org>
82997
82998         * m4/csharp.m4: New file, from GNU gettext.
82999         * m4/csharpexec.m4: New file, from GNU gettext.
83000
83001 2005-06-01  Bruno Haible  <bruno@clisp.org>
83002
83003         * lib/csharpexec.h: New file, from GNU gettext.
83004         * lib/csharpexec.c: New file, from GNU gettext.
83005         * lib/csharpexec.sh.in: New file, from GNU gettext.
83006
83007 2005-05-31  Derek Price  <derek@ximbiot.com>
83008             Paul Eggert  <eggert@cs.ucla.edu>
83009
83010         Sync from cvs.
83011         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83012
83013 2005-05-31  Derek Price  <derek@ximbiot.com>
83014             Paul Eggert  <eggert@cs.ucla.edu>
83015
83016         Sync from cvs.
83017         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83018
83019 2005-05-29  Derek Price  <derek@ximbiot.com>
83020
83021         * config/srclist.txt (glob_.h, glob.c): Add these files.
83022
83023 2005-05-29  Derek Price  <derek@ximbiot.com>
83024
83025         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83026         * modules/glob: New file.
83027         * modules/getlogin_r: Add link to POSIX spec in description.
83028
83029 2005-05-29  Derek Price  <derek@ximbiot.com>
83030             Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * m4/glob.m4: New file.
83033
83034 2005-05-29  Derek Price  <derek@ximbiot.com>
83035             Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         * lib/glob_.h, lib/glob.c: New files.
83038
83039 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83042         * modules/fts-lgpl (Depends-on): Remove gettext.
83043
83044 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83047         and don't require gt_INTTYPES_PRI.
83048
83049 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83050
83051         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83052
83053         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83054         the configuration hassle isn't worth it.
83055         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83056         (LONGEST_MODIFIER, PRIuMAX): Remove.
83057
83058 2005-05-27  Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83061
83062 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83063
83064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83065         _POSIX_PTHREAD_SEMANTICS for Solaris.
83066
83067 2005-05-25  Derek Price  <derek@ximbiot.com>
83068
83069         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83070
83071 2005-05-25  Derek Price  <derek@ximbiot.com>
83072             Paul Eggert  <eggert@cs.ucla.edu>
83073
83074         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83075         * lib/getlogin_r.c, getlogin_r.h: New files.
83076
83077 2005-05-25  Bruno Haible  <bruno@clisp.org>
83078             Derek Price  <derek@ximbiot.com>
83079
83080         * lib/getlogin_r.h: Simplify API documentation.
83081
83082 2005-05-23  Derek Price  <derek@ximbiot.com>
83083
83084         * modules/minmax (Files): Add m4/minmax.m4.
83085         (configure.ac): Add gl_MINMAX.
83086
83087 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83088
83089         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83090         so that unistd-safer.h (GPL'ed code) need not be included.
83091
83092 2005-05-22  Bruno Haible  <bruno@clisp.org>
83093
83094         * m4/minmax.m4: New file.
83095         Based on a patch by Derek Price <derek@ximbiot.com>.
83096
83097 2005-05-22  Bruno Haible  <bruno@clisp.org>
83098
83099         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83100         (INT64_MIN): Fix definition.
83101         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83102
83103         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83104         NEED_SIGNED_INT_TYPES.
83105
83106         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83107         HAVE_SYSTEM_INTTYPES.
83108
83109 2005-05-22  Bruno Haible  <bruno@clisp.org>
83110
83111         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83112         Also include <sys/param.h> if it defines MIN, MAX.
83113         Based on a patch by Derek Price <derek@ximbiot.com>.
83114
83115 2005-05-21  Jim Meyering  <jim@meyering.net>
83116
83117         * modules/fts (Files): Add m4/inttypes-pri.m4.
83118         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83119
83120 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         New fts module.
83123         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83124         (setup_dir, free_dir): New functions.
83125         (enter_dir, leave_dir): Define trivial
83126         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83127         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83128         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83129         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83130         Move to fts-cycle.c.
83131         (fts_open): Use setup_dir.
83132         (fts_close): Use free_dir.
83133         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83134         This adds a label and some gotos, but the alternatives were messier.
83135         Check for memory allocation failure when entering a dir.
83136         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83137         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83138         (FTS): New member fts_cycle, that is a union that contains the
83139         old active_dir_ht and cycle_state.  All uses changed to mention
83140         fts_cycle.ht and fts_cycle.state.
83141         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83142         fts.c, with the following changes:
83143         (setup_dir, free_dir): New functions.
83144         (enter_dir): Now returns bool.  Return true if successful, false
83145         if memory exhausted.  All callers changed.
83146         Do not bother partly cleaning up on
83147         memory allocation failure; that is free_dir's job.
83148         However, free ad if hash_insert fails, to avoid memory leak.
83149         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83150         fts->fts_options to see which union member to use.
83151
83152 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83153
83154         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83155         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83156
83157 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83160
83161 2005-05-20  Jim Meyering  <jim@meyering.net>
83162
83163         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83164         Now a macro, to pacify GCC.
83165
83166 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83167
83168         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83169         of -1.
83170
83171 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83172
83173         * lib/chown.c (rpl_chown): Return -1 on failure.
83174
83175 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83178         Don't check for stddef.h.
83179         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83180         don't use its results.
83181         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83182         since we include them unconditionally.  Don't require
83183         AM_STDBOOL_H, since stdbool is a prerequisite.
83184         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83185         since we assume C89 or better.
83186         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83187         as we don't use their results.
83188         Don't check for fchdir, memmove, memset, strrchr, as we use
83189         them unconditionally.
83190         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83191         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83192
83193 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83196         Include <stddef.h> unconditionally, since we assume C89 now.
83197         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83198         * lib/fts.c: Include fts_.h first, to check interface.
83199         Do not include intprops.h; no longer needed.
83200         Include cycle-check.h and hash.h, since fts_.h no longer does.
83201         Remove unnecessary casts of closedir to void.
83202         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83203         decide whether to decrement nlinks.
83204         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83205         (FTS): Use struct hash_table * instead of Hash_table, so that
83206         we no longer need to include hash.h here.
83207
83208 2005-05-18  Jim Meyering  <jim@meyering.net>
83209
83210         * modules/dirfd (License): Change to LGPL.  Most of the code
83211         is already in the public domain.
83212
83213 2005-05-18  Jim Meyering  <jim@meyering.net>
83214
83215         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83216         Reported by Yoann Vandoorselaere.
83217
83218 2005-05-17  Jim Meyering  <jim@meyering.net>
83219
83220         * m4/fts.m4: New file, from coreutils.
83221
83222 2005-05-17  Jim Meyering  <jim@meyering.net>
83223
83224         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83225
83226 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         Sync from coreutils.
83229         * m4/unlinkdir.m4: New file.
83230
83231 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83232
83233         Sync from coreutils.
83234         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83235         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83236         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83237         White space changes only.
83238         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83239         special.
83240         * lib/yesno.c: Include getline.h, not ctype.h.
83241         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83242         Use getline to remove arbitrary restriction on response length.
83243
83244 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83245
83246         * config/srclist-update: Spell out "Street" in FSF postal
83247         mail address; this is the style the FSF seems to prefer.
83248
83249         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83250         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83251         this updates FSF postal mail address.
83252
83253         Sync from coreutils.
83254         * modules/unlinkdir: New file.
83255         * modules/yesno (Depends-on): Add getline.
83256         * MODULES.html.sh (File system functions): Add unlinkdir.
83257
83258 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83259
83260         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83261         lib/strsep.h:
83262         Change the initial comment to refer to GPL, not LGPL.
83263         gnulib-tool will change it to LGPL as needed.
83264
83265         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83266         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83267         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83268         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83269         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83270         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83271         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83272         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83273         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83274         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83275         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83276         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83277         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83278         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83279         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83280         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83281         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83282         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83283         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83284         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83285         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83286         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83287         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83288         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83289         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83290         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83291         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83292         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83293         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83294         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83295         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83296         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83297         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83298         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83299         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83300         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83301         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83302         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83303         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83304         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83305         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83306         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83307         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83308         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83309         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83310         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83311         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83312         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83313         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83314         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83315         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83316         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83317         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83318         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83319         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83320         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83321         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83322         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83323         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83324         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83325         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83326         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83327         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83328         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83329         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83330         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83331         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83332         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83333         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83334         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83335         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83336         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83337         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83338         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83339         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83340         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83341         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83342         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83343         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83344         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83345         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83346         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83347         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83348         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83349         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83350         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83351         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83352         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83353         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83354         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83355         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83356         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83357         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83358         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83359         lib/yesno.c, lib/yesno.h:
83360         Update FSF postal mail address.
83361
83362 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83365         tests/test-memmem.c, tests/test-stpncpy.c:
83366         Update FSF postal mail address.
83367
83368 2005-05-13  Bruno Haible  <bruno@clisp.org>
83369
83370         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83371         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83372         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83373         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83374         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83375         Add support for 64-bit integers in the MSVC compiler.
83376
83377 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83378
83379         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83380
83381 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83382
83383         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83384
83385 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         * doc/getdate.texi (General date syntax): Don't say that date
83388         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83389         Problem reported by Nic Ferrier.
83390
83391 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83392
83393         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83394         specified in ai_socktype. Fix invalid ai_protocol
83395         check. ai_protocol is usually set to 0 or depending on
83396         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83397         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83398         ai_socktype / ai_protocol in the returned addrinfo structure.
83399
83400 2005-05-10  Simon Josefsson  <jas@extundo.com>
83401
83402         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83403         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83404
83405 2005-05-10  Karl Berry  <karl@gnu.org>
83406
83407         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83408         (from http://www.gnu.org/licenses).
83409         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83410         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83411         fdl.texi suffices.
83412
83413 2005-05-10  Karl Berry  <karl@gnu.org>
83414
83415         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83416         (COPYING.DOC): remove.
83417
83418         * config/srclist-update: new FSF address.
83419
83420 2005-05-10  Derek Price  <derek@ximbiot.com>
83421
83422         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83423         possible.
83424
83425 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83426             Bruno Haible  <bruno@clisp.org>
83427
83428         * modules/inet_ntop: New file.
83429         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83430         inet_ntop.
83431
83432 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83433             Bruno Haible  <bruno@clisp.org>
83434
83435         * m4/inet_ntop.m4: New file.
83436
83437 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83438             Bruno Haible  <bruno@clisp.org>
83439
83440         * lib/inet_ntop.h: New file.
83441         * lib/inet_ntop.c: New file, from glibc with modifications.
83442
83443 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83444
83445         * modules/time_r (License): Change to LGPL.
83446         * modules/extensions (License): Change to LGPL.  Actually,
83447         the license is more permissive than that, but currently gnulib-tool
83448         doesn't know how to handle more-permissive licenses.
83449
83450         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83451         Problem reported by Dave Love.
83452
83453 2005-05-08  Jim Meyering  <jim@meyering.net>
83454
83455         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83456         blank.
83457
83458 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83459
83460         * modules/argmatch (Depends-on): Add stdbool.
83461         * modules/backupfile (Depends-on): Likewise.
83462         * modules/chdir-long (Depends-on): Likewise.
83463         * modules/closeout (Depends-on): Likewise.
83464         * modules/cycle-check (Depends-on): Likewise.
83465         * modules/dirname (Depends-on): Likewise.
83466         * modules/fnmatch (Depends-on): Likewise.
83467         * modules/fsusage (Depends-on): Likewise.
83468         * modules/fwriteerror (Depends-on): Likewise.
83469         * modules/getcwd (Depends-on): Likewise.
83470         * modules/getloadavg (Depends-on): Likewise.
83471         * modules/hard-locale (Depends-on): Likewise.
83472         * modules/makepath (Depends-on): Likewise.
83473         * modules/mountlist (Depends-on): Likewise.
83474         * modules/nanosleep (Depends-on): Likewise.
83475         * modules/posixtm (Depends-on): Likewise.
83476         * modules/quotearg (Depends-on): Likewise.
83477         * modules/readtokens (Depends-on): Likewise.
83478         * modules/readtokens0 (Depends-on): Likewise.
83479         * modules/readutmp (Depends-on): Likewise.
83480         * modules/save-cwd (Depends-on): Likewise.
83481         * modules/strftime (Depends-on): Likewise.
83482         * modules/userspec (Depends-on): Likewise.
83483         * modules/utimecmp (Depends-on): Likewise.
83484         * modules/xgetcwd (Depends-on): Likewise.
83485         * modules/xnanosleep (Depends-on): Likewise.
83486         * modules/xstrtod (Depends-on): Likewise.
83487         * modules/yesno (Depends-on): Likewise.
83488
83489 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83490
83491         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83492         needless checks.
83493
83494 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83495
83496         Merge from coreutils.  Among other things,
83497         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83498         * lib/fd-safer.c: New file.
83499         * lib/fcntl-safer.h, open-safer.c: Remove.
83500         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83501         * lib/dup-safer.c: Include unistd-safer.h first.
83502         Don't include errno.h.
83503         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83504         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83505         * lib/file-type.c: Rely on file-type.h change.
83506         * lib/getloadavg.c: Include unistd-safer.h.
83507         (getloadavg): Use safer open.
83508         * lib/getusershell.c: Include "stdio-safer.h".
83509         (getusershell): Use safer fopen.
83510         * lib/long-options.c (long_options): Use NULL rather than 0.
83511         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83512         'free'.
83513         * lib/modechange.c: Likewise.
83514         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83515         (MODE_DONE): New constant.
83516         (struct mode_change): Remove 'next' member.
83517         (make_node_op_equals): New function; like the old one of the
83518         same name, except it allocates an array.
83519         (mode_compile, mode_create_from_ref): Use it.
83520         (mode_compile): Allocate result as an array, not a linked list.
83521         Parse octal string ourself, so that we catch mistakes like "+0".
83522         (mode_adjust): Arg is an array, not a linked list.
83523         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83524         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83525         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83526         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83527         Remove.  This is now stat-macros.h's job.
83528         (talloc): Remove.  All callers replaced by xalloc, so that
83529         our invokers don't have to worry about reporting memory failures.
83530         (make_node_op_equals): Remove.
83531         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83532         New constants.
83533         (struct mode_change): Moved here from modechange.h.
83534         (mode_append_entry): Remove.
83535         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83536         apps to have incorrect behavior.  Use simpler algorithm for head
83537         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83538         Detect more invalid usages rather than having somewhat-random behavior.
83539         Don't insert an "a=" action, as that leads to incorrect behavior.
83540         (mode_compile, mode_create_from_ref): Return NULL on error instead
83541         of an enum, since now there's only one way to have an error.  All
83542         callers changed.
83543         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83544         at the correct time.  Simplify calculation of "+u" and its ilk.
83545         Don't mishandle "+X".
83546         (mode_free): Remove "register" and localize decls.
83547         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83548         (struct mode_change): Move to modechange.c; callers don't
83549         need to see this stuff.
83550         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83551         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83552         (mode_change, mode_adjust): Reflect the new signatures noted above.
83553         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83554         that might redefine system include files.
83555         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83556         (my_usleep): Use NULL rather than (void *) 0.
83557         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83558         Use siginterrupt to specify that system calls should be interrupted.
83559         (rpl_nanosleep): Move initialization of suspended closer to call of
83560         my_usleep.
83561         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83562         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83563         (desirable_utmp_entry): New function.
83564         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83565         using x2nrealloc, to simplify logic.
83566         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83567         size calculation.  Do not assume utmp file is a regular file.
83568         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83569         (READ_UTMP_CHECK_PIDS): New constant.
83570         * lib/save-cwd.c: Include unistd-safer.h.
83571         (save_cwd): Use fd_safer.
83572         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83573         [!_LIBC] Include "stat-macros.h" instead.
83574         * lib/unistd-safer.h (fd_safer): New decl.
83575
83576 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83577
83578         * modules/getloadavg (Depends-on): Add unistd-safer.
83579         * modules/getusershell (Depends-on): Add stdio-safer.
83580         * modules/lstat (Depends-on): Remove xalloc.
83581         * modules/mkstemp (Depends-on): Add stat-macros.
83582         * modules/modechange (Depends-on): Remove xstrtol.
83583         Add stat-macros, xalloc.
83584         * modules/save-cwd (Depends-on): Add unistd-safer.
83585         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83586         * modules/unistd-safer (Files): Add lib/fd-safer.c
83587         (Makefile.am): Remove lib_SOURCES.
83588
83589         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83590         Remove fcntl-safer; unistd-safer supersedes it.
83591
83592 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83593
83594         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83595         AC_HEADER_STAT.
83596         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83597         (gl_PREREQ_CHOWN): Remove.
83598         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83599         it.  Don't require AC_HEADER_STAT.
83600         (gl_PREREQ_LSTAT): Remove.
83601         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83602         Don't require AC_HEADER_STAT.
83603         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83604         (gl_PREREQ_RMDIR): Remove.
83605         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83606         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83607         the stat-macros module a prerequisite.
83608         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83609         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83610         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83611         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83612         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83613         variable names.
83614         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83615         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83616         variable prefixes.
83617         * m4/fcntl-safer.m4: Remove.
83618         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83619         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83620         Invoke gl_PREREQ_FD_SAFER.
83621         (gl_PREREQ_FD_SAFER): New macro.
83622         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83623         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83624         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83625         Remove duplicate call to AC_LIBOBJ(readutmp).
83626         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83627
83628         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83629         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83630
83631 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83632
83633         * MODULES.html.sh (Misc): Add byteswap.
83634
83635 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83636
83637         * modules/getcwd (Depends-on): Add extensions.
83638         * modules/openat (Depends-on): Likewise.
83639
83640 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83641
83642         * modules/byteswap: New file.
83643
83644 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83645
83646         * m4/byteswap.m4: New file.
83647
83648 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83649
83650         * lib/byteswap_.h: New file.
83651
83652 2005-04-25  Karl Berry  <karl@gnu.org>
83653
83654         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83655
83656 2005-04-25  Albert Chin  <china@thewrittenword.com>
83657
83658         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83659         Toolkit C bug.
83660
83661 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83662
83663         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83664         (func_ln_if_changed): Remove forcibly for no error message
83665         in case file does not exist.
83666
83667 2005-04-19  Simon Josefsson  <jas@extundo.com>
83668
83669         * gnulib-tool (Options): Make --symlink mean --symbolic.
83670
83671 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83672
83673         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83674
83675 2005-04-16  Simon Josefsson  <jas@extundo.com>
83676
83677         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83678
83679 2005-04-15  Simon Josefsson  <jas@extundo.com>
83680
83681         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83682
83683 2005-04-15  Simon Josefsson  <jas@extundo.com>
83684
83685         * gnulib-tool: Rename --symlink to --symbolic.
83686
83687 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83688
83689         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83690         symbolic links to files instead of copying/moving.  Add --aux-dir,
83691         specifying directory relative --dir where auxiliary build tools
83692         are placed.
83693
83694 2005-04-14  Bruno Haible  <bruno@clisp.org>
83695
83696         * modules/allocsa (License): Change to LGPL.
83697         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83698
83699 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83700
83701         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83702         that "UTC +1 second" continues to work.  Problem reported
83703         by Dmitry V. Levin.
83704         (relunit_snumber): New rule.
83705         (relunit): Use it.
83706
83707 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83708
83709         * lib/getdate.y (universal_time_zone_table): New constant.
83710         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83711         universal_time_zone_table.
83712         (lookup_zone): Prefer universal_time_zone_table to
83713         local_time_zone_table, so that "GMT" time stamps are allowed in
83714         London during the summer.  Problem reported by Ian Abbott.
83715
83716 2005-04-12  Jim Meyering  <jim@meyering.net>
83717
83718         * lib/human.c (humblock): Set *options even when returning due to
83719         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83720         warning from gcc-4.
83721
83722 2005-04-09  Jim Meyering  <jim@meyering.net>
83723
83724         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83725         -Wuninitialized: initialize tm0.tm_year.
83726
83727 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83730         count, since there's no maximum.  All uses changed.
83731         Add member dsts_seen.
83732         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83733         not being INT_MAX.
83734         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83735         Use pc_rels_seen to decide whther a date is absolute.
83736
83737         * lib/getdate.y (number): Don't overwrite year.
83738         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83739         check.
83740
83741 2005-04-02  Simon Josefsson  <jas@extundo.com>
83742
83743         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83744         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83745
83746 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83747
83748         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83749         where no absolute path name can be longer than PATH_MAX.
83750
83751 2005-03-27  Jim Meyering  <jim@meyering.net>
83752
83753         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83754
83755 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83756
83757         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83758         "one's complement" -> "ones' complement" in comment, as per Knuth.
83759         "value of type" -> "type or expression" in comment.
83760         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83761
83762 2005-03-26  Jim Meyering  <jim@meyering.net>
83763
83764         Comment nits.
83765         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83766         Correct typos: s/or/of/.
83767
83768 2005-03-26  Jim Meyering  <jim@meyering.net>
83769
83770         * modules/check-include-files: Move to ../ and rename to...
83771         * check-module: ...this.
83772
83773 2005-03-25  Jim Meyering  <jim@meyering.net>
83774
83775         * modules/xvasprintf (Files): Add xalloc.h.
83776
83777 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83778
83779         * modules/gettext (Files): config/config.rpath ->
83780         build-aux/config.rpath
83781         * modules/iconv (Files): Likewise.
83782         Problem reported by Oskar Liljeblad.
83783
83784 2005-03-23  Jim Meyering  <jim@meyering.net>
83785
83786         * modules/check-include-files: New script to check for
83787         missing dependencies, multiple includes, etc.
83788
83789         * modules/c-strtold (Depends-on): Add xalloc.
83790         * modules/c-strtod (Depends-on): Add xalloc.
83791         * modules/hash (Depends-on): Add xalloc.
83792         (Files): Remove lib/xalloc.h.
83793
83794         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83795         * modules/userspec (Files): Add lib/inttostr.h.
83796
83797 2005-03-23  Jim Meyering  <jim@meyering.net>
83798
83799         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83800
83801 2005-03-22  Jim Meyering  <jim@meyering.net>
83802
83803         * modules/stat-macros: New module.
83804         * modules/canonicalize, modules/euidaccess, modules/file-type,
83805         * modules/filemode, modules/lchown, modules/makepath,
83806         * modules/rmdir, modules/stat: Depend on new stat-macros module
83807         rather than listing lib/stat-macros.h manually.
83808         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83809
83810 2005-03-22  Jim Meyering  <jim@meyering.net>
83811
83812         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83813
83814 2005-03-22  Bruno Haible  <bruno@clisp.org>
83815
83816         * config/srclist.txt: Replace target directory 'config' with
83817         'build-aux'.
83818         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83819         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83820         ../build-aux/.
83821
83822 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83823
83824         * modules/chdir-long (Depends-on): Add mempcpy.
83825
83826         * modules/acl, modules/backupfile, modules/c-strtod,
83827         modules/c-strtold, modules/canon-host, modules/canonicalize,
83828         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83829         modules/exclude, modules/exitfail, modules/file-type,
83830         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83831         modules/getdate, modules/getline, modules/getpagesize,
83832         modules/getpass, modules/getugroups, modules/group-member,
83833         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83834         modules/inttostr, modules/long-options, modules/makepath,
83835         modules/md5, modules/memcasecmp, modules/memcoll,
83836         modules/modechange, modules/mountlist, modules/path-concat,
83837         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83838         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83839         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83840         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83841         modules/strftime, modules/strndup, modules/strverscmp,
83842         modules/timespec, modules/unlocked-io, modules/userspec,
83843         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83844         modules/yesno:
83845         Remove lib_SOURCES line from Makefile.am section, as this is now
83846         done automatically by the corresponding Autoconf macro.
83847
83848 2005-03-21  Jim Meyering  <jim@meyering.net>
83849
83850         Changes imported from coreutils.
83851
83852         * lib/cycle-check.c: Don't include xalloc.h.
83853
83854         * lib/path-concat.c: Don't include assert.h.
83855         (path_concat): Remove assertion that would have triggered
83856         for ABASE starting with more than one slash.
83857         Reported by Andreas Schwab.
83858
83859         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83860         properly when ABASE is an absolute file name.
83861         Correct the description of this function.
83862         Include <assert.h>.
83863         Add an assertion and a test driver.
83864         This fixes a bug introduced on 2004-07-02.
83865         Andreas Schwab reported the resulting failure of cp --parents:
83866         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83867
83868 2005-03-21  Jim Meyering  <jim@meyering.net>
83869
83870         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83871         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83872
83873 2005-03-21  Jim Meyering  <jim@meyering.net>
83874         and  Paul Eggert  <eggert@cs.ucla.edu>
83875
83876         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83877         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83878         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83879         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83880         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83881         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83882         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83883         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83884         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83885         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83886         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83887         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83888         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83889         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83890         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83891         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83892         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83893         for these modules.
83894
83895 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83896
83897         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83898         (which shouldn't happen), generate nothing instead of returning 0
83899         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83900
83901 2005-03-16  Bruno Haible  <bruno@clisp.org>
83902
83903         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83904         HAVE_LONGLONG_64BIT.
83905
83906 2005-03-16  Bruno Haible  <bruno@clisp.org>
83907
83908         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83909         HAVE_LONGLONG_64BIT.
83910
83911 2005-03-16  Bruno Haible  <bruno@clisp.org>
83912
83913         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83914         HAVE_LONGLONG_64BIT.
83915
83916 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83919         reliably distinguish strftime failure from empty output on POSIX
83920         hosts.
83921
83922 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83923
83924         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83925         (iconv_string): Don't guess a size-zero buffer, as that might cause
83926         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83927         result would be 'too large', where 'too large' is (heuristically)
83928         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83929         overflow concerns.  This will prevent some unwanted malloc failures
83930         when the inputs are very large.
83931
83932 2005-03-15  Karl Berry  <karl@gnu.org>
83933
83934         * config/srclist.txt (config.rpath): from gettext.
83935         * config/config.rpath: update.
83936
83937 2005-03-15  Bruno Haible  <bruno@clisp.org>
83938
83939         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83940         to 'negate'.
83941
83942         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83943         variable.
83944
83945         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83946         results.
83947
83948 2005-03-14  Simon Josefsson  <jas@extundo.com>
83949
83950         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83951         <fx@gnu.org>.
83952
83953 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83956         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83957         intprops.h.
83958         * lib/strtol.c: Likewise.
83959
83960 2005-03-14  Jim Meyering  <jim@meyering.net>
83961
83962         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83963         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83964         to be nonzero so that we (and caller) can detect the difference
83965         between a valid zero-length expansion and an error return, even
83966         when the underlying strftime fails before writing anything into
83967         that location.
83968
83969 2005-03-14  Bruno Haible  <bruno@clisp.org>
83970
83971         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83972         Update from GNU gettext 0.14.3.
83973
83974 2005-03-10  Jim Meyering  <jim@meyering.net>
83975
83976         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83977
83978 2005-03-10  Jim Meyering  <jim@meyering.net>
83979
83980         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83981         so that this module works on systems without fchdir.
83982
83983 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         Factor int-properties macros into a single file, except for
83986         glibc-related files.
83987         * lib/intprops.h: New file.
83988         * lib/getloadavg.c: Include it instead of limits.h.
83989         (INT_STRLEN_BOUND): Remove.
83990         * lib/human.c: Include intprops.h.
83991         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83992         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83993         302/1000.
83994         * lib/inttostr.h: Include intprops.h instead of limits.h.
83995         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83996         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83997         for consistency with intprops.h.
83998         (time_t_is_integer, twos_complement_arithmetic): Use them.
83999         * lib/sig2str.h: Include <signal.h>, intprops.h.
84000         (INT_STRLEN_BOUND): Remove.
84001         * lib/strftime.c (TYPE_SIGNED): Remove.
84002         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84003         * lib/strtol.c: Adjust comments to match intprops.h.
84004         * lib/userspec.c: Include intprops.h.
84005         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84006         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84007         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84008         instead of rolling our own expressions.
84009         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84010
84011         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84012         instead of int.
84013         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84014         the right thing even if adding 1900 would overflow.  Similarly
84015         for tm_mon + 1 and tm_yday + 1.
84016         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84017         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84018         (DO_SIGNED_NUMBER): New macro.
84019         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84020
84021 2005-03-07  Bruno Haible  <bruno@clisp.org>
84022
84023         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84024
84025 2005-03-07  Bruno Haible  <bruno@clisp.org>
84026
84027         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84028
84029 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84030
84031         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84032         (func_import): Only replace files via --import when they have actually
84033         changed.
84034
84035 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84036
84037         * m4/mmap-anon.m4: New file.
84038         * m4/pagealign_alloc.m4: New file.
84039
84040 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84041             Bruno Haible  <bruno@clisp.org>
84042
84043         * modules/pagealign_alloc: New file.
84044         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84045
84046 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84047             Bruno Haible  <bruno@clisp.org>
84048
84049         * lib/pagealign_alloc.h: New file.
84050         * lib/pagealign_alloc.c: New file.
84051
84052 2005-03-03  Bruno Haible  <bruno@clisp.org>
84053
84054         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84055         Use an all-permissive copyright notice, recommended by RMS.
84056
84057 2005-03-02  Bruno Haible  <bruno@clisp.org>
84058
84059         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84060         of AIX, the replacement has to be done only after <string.h> is
84061         included, therefore not in config.h. stpncpy.h does the replacement,
84062         and stpncpy.c uses it.
84063
84064 2005-03-02  Bruno Haible  <bruno@clisp.org>
84065
84066         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84067         stpncpy.c uses it.
84068
84069 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84070
84071         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84072         The workaround isn't strictly needed for POSIX conformance, and
84073         it's too much of a pain to configure and maintain.  We'll ask
84074         people to fix their kernels instead.
84075         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84076         (NANOSLEEP_BUG_WORKAROUND): Remove.
84077         (xnanosleep): Remove the workaround.
84078
84079 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84080
84081         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84082         Reported by Derek Price.
84083         (Include): Add "timespec.h".
84084
84085         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84086
84087 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84088
84089         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84090         to detect nanosleep bug.
84091
84092 2005-03-01  Bruno Haible  <bruno@clisp.org>
84093
84094         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84095
84096 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         * modules/gethrxtime: New file.
84099         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84100         (Depends-on): Add gethrxtime.
84101         (configure.ac): Add gl_XNANOSLEEP.
84102         (Makefile.am): Remove lib_SOURCES line.
84103
84104 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84105
84106         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84107         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84108
84109 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84110
84111         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84112         * lib/timespec.h (gettime): Return void, since it always
84113         succeeds now.  All uses changed.
84114         * lib/gettime.c (gettime): Likewise.
84115         [HAVE_NANOTIME]: Prefer nanotime.
84116         Assume gettimeofday succeeds, as POSIX requires.
84117         Assime time () succeeds, since other code already does.
84118         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84119         (timespec_subtract): Remove.
84120         (NANOSLEEP_BUG_WORKAROUND): New constant.
84121         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84122         things considerably.  Use it only on GNU/Linux hosts, since the
84123         workaround shouldn't be needed elsewhere.
84124
84125 2005-02-24  Bruno Haible  <bruno@clisp.org>
84126
84127         * modules/gettext (Files): Add m4/glibc2.m4.
84128
84129 2005-02-24  Bruno Haible  <bruno@clisp.org>
84130
84131         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84132         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84133         * m4/progtest.m4:
84134         Update from GNU gettext 0.14.2.
84135         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84136
84137 2005-02-24  Bruno Haible  <bruno@clisp.org>
84138
84139         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84140         * lib/config.charset: Update from GNU gettext 0.14.2.
84141
84142 2005-02-24  Bruno Haible  <bruno@clisp.org>
84143
84144         * lib/gettext.h: Update from GNU gettext 0.14.2.
84145
84146 2005-02-23  Simon Josefsson  <jas@extundo.com>
84147
84148         * m4/iconvme.m4: New file.
84149
84150 2005-02-23  Jim Meyering  <jim@meyering.net>
84151
84152         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84153         change.
84154         Thanks to Bruno Haible for catching it.
84155
84156 2005-02-22  Simon Josefsson  <jas@extundo.com>
84157
84158         * modules/iconvme: New file.
84159
84160         * MODULES.html.sh: Add iconvme.
84161
84162 2005-02-22  Simon Josefsson  <jas@extundo.com>
84163
84164         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84165
84166 2005-02-22  Simon Josefsson  <jas@extundo.com>
84167
84168         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84169
84170 2005-02-22  Jim Meyering  <jim@meyering.net>
84171
84172         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84173         s/ifndef/ifdef/.
84174
84175 2005-02-20  Neil Conway  <neilc@samurai.com>
84176
84177         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84178         returned by OSX/Darwin if the specified buffer is not large
84179         enough for the hostname.
84180
84181 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84182
84183         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84184         pass it to _help, otherwise the latter coredumps trying to
84185         dereference state.root_argp.
84186
84187 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84188
84189         * modules/chdir-long (Depends-on): Add memrchr.
84190         * modules/memrchr (Files): Add lib/memrchr.h.
84191         (Include): "memrchr.h".
84192
84193 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84194
84195         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84196
84197 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84198
84199         * lib/memrchr.h: New file.
84200         * lib/chdir-long.c: Include it.
84201         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84202         Don't bother including stddef.h.
84203
84204 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84205
84206         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84207         inclusion.
84208         Include <sys/types.h>, for dev_t.
84209         (ME_DUMMY, ME_REMOTE): Move from here....
84210         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84211         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84212         Dmitry V. Levin.
84213         Include mountlist.h first, to test the interface.
84214
84215 2005-01-29  Bruno Haible  <bruno@clisp.org>
84216
84217         * lib/progname.c (program_name): Initialize.
84218         Needed when linking statically on MacOS X.
84219
84220 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84221
84222         Sync from coreutils.
84223         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84224         (Depends-on): Add c-strtod.
84225         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84226
84227 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         Sync from coreutils.
84230         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84231
84232         Remove files that are specific to coreutils.
84233         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84234
84235 2005-01-28  Bruno Haible  <bruno@clisp.org>
84236
84237         * modules/javacomp: New file.
84238         * MODULES.html.sh (Java): Add javacomp.
84239
84240 2005-01-28  Bruno Haible  <bruno@clisp.org>
84241
84242         * m4/javacomp.m4: New file, from GNU gettext.
84243
84244 2005-01-28  Bruno Haible  <bruno@clisp.org>
84245
84246         * lib/javacomp.sh.in: New file, from GNU gettext.
84247         * lib/javacomp.h: New file, from GNU gettext.
84248         * lib/javacomp.c: New file, from GNU gettext.
84249
84250 2005-01-26  Simon Josefsson  <jas@extundo.com>
84251
84252         * lib/gai_strerror.c: Use GPL in header.
84253
84254 2005-01-26  Bruno Haible  <bruno@clisp.org>
84255
84256         * modules/javaexec: New file.
84257         * MODULES.html.sh (Java): Add javaexec.
84258
84259 2005-01-26  Bruno Haible  <bruno@clisp.org>
84260
84261         * m4/javaexec.m4: New file, from GNU gettext.
84262
84263 2005-01-26  Bruno Haible  <bruno@clisp.org>
84264
84265         * lib/javaexec.sh.in: New file, from GNU gettext.
84266         * lib/javaexec.h: New file, from GNU gettext.
84267         * lib/javaexec.c: New file, from GNU gettext.
84268
84269 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84270
84271         * modules/lchown (Depends-on): Remove lchown.h
84272
84273 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84274
84275         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84276         must be defined if the header file was not found, in order
84277         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84278
84279 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84280
84281         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84282         initializers for struct pentry_state.
84283         (__argp_error): Check return value of __asprintf
84284         (__argp_failure): Translate error message
84285
84286         * lib/argp-parse.c: Removed braces around the expansion of N_()
84287
84288 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84289
84290         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84291         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84292         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84293         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84294         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84295         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84296         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84297         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84298         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84299         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84300         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84301         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84302         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84303         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84304         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84305         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84306         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84307         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84308         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84309         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84310         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84311         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84312         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84313         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84314         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84315         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84316         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84317         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84318         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84319         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84320         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84321         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84322         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84323         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84324         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84325         Use an all-permissive copyright notice, recommended by RMS.
84326
84327 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * modules/chdir-long (Depends-on): Remove mempcpy.
84330
84331 2005-01-21  Jim Meyering  <jim@meyering.net>
84332
84333         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84334         same value as for Solaris 9.
84335
84336         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84337         component length.  This included changing the parameter to be
84338         of type `char *' rather than `char const *'.
84339         * lib/chdir-long.h (chdir_long): Update prototype.
84340
84341         * lib/openat.c (fdopendir, fstatat): New functions.
84342         * lib/openat.h: Include headers required for use of DIR and struct
84343         stat.
84344         [AT_SYMLINK_NOFOLLOW]: Define.
84345         (fdopendir, fstatat): Add prototypes.
84346
84347 2005-01-21  Bruno Haible  <bruno@clisp.org>
84348
84349         * modules/classpath: New file.
84350         * MODULES.html.sh (Java): Add classpath.
84351
84352 2005-01-21  Bruno Haible  <bruno@clisp.org>
84353
84354         * lib/classpath.h: New file, from GNU gettext.
84355         * lib/classpath.c: New file, from GNU gettext.
84356
84357 2005-01-20  Simon Josefsson  <jas@extundo.com>
84358
84359         * modules/version-etc-fsf: New file.
84360
84361 2005-01-20  Simon Josefsson  <jas@extundo.com>
84362
84363         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84364         * lib/version-etc.c: Remove version_etc_copyright.
84365         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84366         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84367
84368 2005-01-20  Simon Josefsson  <jas@extundo.com>
84369
84370         * lib/base64.h (isbase64): Add.
84371
84372         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84373         using a unsigned prototype, don't inline.
84374         (base64_decode): Use it.
84375
84376 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84379         it.
84380
84381 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84382
84383         * lib/save-cwd.c (save_cwd): Remove code to support the case
84384         where fchdir is missing or flaky.
84385
84386 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84389
84390 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84393         AC_LIBSOURCES now does this.
84394         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84395         with new ullong_max module.
84396
84397 2005-01-19  Bruno Haible  <bruno@clisp.org>
84398
84399         * modules/sh-quote: New file.
84400         * MODULES.html.sh (Executing programs): Add sh-quote.
84401
84402 2005-01-19  Bruno Haible  <bruno@clisp.org>
84403
84404         * lib/sh-quote.h: New file, from GNU gettext.
84405         * lib/sh-quote.c: New file, from GNU gettext.
84406
84407 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84408
84409         Merge from coreutils.
84410         * m4/ullong_max.m4: New file.
84411         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84412         (gl_MACROS): Assume localeconv exists.
84413
84414 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84415
84416         Merge changes from coreutils, as described below in several
84417         changelogs dated today.
84418
84419         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84420         (O_DIRECTORY): Remove; not needed here, since "." must be
84421         a directory.  All uses removed.
84422         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84423         universal on Suns, and we also need to test for IRIX.
84424         Revamp code to use 'if' rather than '#if'.
84425         Avoid unnecessary comparison of cwd->desc to 0.
84426
84427         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84428         for known valid error numbers rather than observed invalid ones.
84429
84430 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * modules/ullong_max: New file.
84433
84434         * modules/chdir-long, modules/openat: New files.
84435         * modules/save-cwd (Depends-on): Depend on chdir-long.
84436         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84437
84438 2005-01-18  Jim Meyering  <jim@meyering.net>
84439
84440         Merge from coreutils.
84441         * m4/chdir-long.m4, m4/openat.m4: New files.
84442         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84443         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84444         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84445         is sane and DOES follow symlinks.  Besides, testing 20 different
84446         systems found no broken chown implementations.
84447         Prompted by a change in rsync's copy of this macro.
84448         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84449
84450         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84451
84452         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84453         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84454         NULL-means-set-to-current-time semantics.
84455         Remove temporary file immediately, rather than waiting
84456         for configure's at-exit trap code to do it.
84457
84458 2005-01-18  Jim Meyering  <jim@meyering.net>
84459
84460         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84461
84462         * lib/utimens.c (futimens): Account for the fact that futimes
84463         can also fail with errno == ENOSYS or errno == ENOENT.
84464         Patch from Dmitry V. Levin.
84465
84466         Change the name of the robust chdir function from chdir to chdir_long.
84467         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84468         (restore_cwd): Use chdir_long, not chdir.
84469         * lib/chdir-long.c: Renamed from chdir.c.
84470         * lib/chdir-long.h: Renamed from chdir.h.
84471         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84472         Hurd.
84473
84474 2005-01-18  Bruno Haible  <bruno@clisp.org>
84475
84476         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84477         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84478         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84479         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84480         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84481         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84482         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84483         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84484         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84485         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84486         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84487         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84488         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84489         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84490         Use an all-permissive copyright notice, recommended by RMS.
84491
84492 2005-01-18  Bob Proulx  <bob@proulx.com>
84493
84494         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84495         simplify offsetof() macro construct to avoid compile failure with
84496         native HP-UX 11.0 ANSI C compiler.
84497
84498 2005-01-17  Bruno Haible  <bruno@clisp.org>
84499
84500         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84501         redundant because stpncpy.m4 takes care of it.
84502
84503 2005-01-17  Bruno Haible  <bruno@clisp.org>
84504
84505         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84506
84507 2005-01-17  Bruno Haible  <bruno@clisp.org>
84508
84509         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84510         used.
84511
84512 2005-01-17  Bruno Haible  <bruno@clisp.org>
84513
84514         * lib/fwriteerror.h (fwriteerror): Change specification to include
84515         fclose.
84516         * lib/fwriteerror.c: Include <stdbool.h>.
84517         (fwriteerror): At the end, close the file stream. Record whether
84518         stdout was already closed.
84519
84520 2005-01-17  Bruno Haible  <bruno@clisp.org>
84521
84522         * lib/execute.c (environ): Declare if needed.
84523         * lib/pipe.c (environ): Likewise.
84524         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84525
84526 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84527
84528         * modules/argp: Depend on vsnprintf
84529
84530 2005-01-10  Jim Meyering  <jim@meyering.net>
84531
84532         * modules/closeout (Depends-on): Add atexit.
84533
84534 2005-01-06  Bruno Haible  <bruno@clisp.org>
84535
84536         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84537
84538 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84539
84540         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84541         definitions to be after all include files, to avoid collisions.
84542         Problem reported by Bob Proulx.
84543
84544 2005-01-04  Jim Meyering  <jim@meyering.net>
84545
84546         Changes imported from coreutils.
84547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84548         as the mkstemp template, use a temporary directory and an
84549         8.3-friendly template to avoid trouble on systems like DJGPP.
84550         Reported by Juan M. Guerrero via Stepan Kasal.
84551         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84552         close. Remove the temporary directory right away, rather than waiting
84553         for configure's at-exit trap code to do it.
84554         Suggestion from Stepan Kasal.
84555
84556 2005-01-01  Simon Josefsson  <jas@extundo.com>
84557
84558         * gnulib-tool: Print #include directives when --import'ing.
84559
84560 2004-12-28  Simon Josefsson  <jas@extundo.com>
84561
84562         * tests/test-base64.c: Include required header files.  Remove
84563         unused variables.
84564
84565 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84566
84567         * modules/error (Depends-on): Remove gettext.
84568
84569 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84572         not needed.  This removes a dependency on the gettext module.
84573         [defined _LIBC]: Do not include <libintl.h>; not needed.
84574
84575 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84578         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84579
84580 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84581
84582         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84583         HAVE_DECL_STRTOLD.
84584
84585 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84586
84587         * modules/getdate (Depends-on): Remove alloca-opt.
84588
84589 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84590
84591         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84592
84593 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84594
84595         * lib/argp-parse.c: Include <stddef.h>.
84596         (alignof, alignto): New macros.
84597         (parser_init): Don't assume that void * is aligned sufficiently
84598         for struct option.
84599
84600         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84601         need to extend the stack.
84602         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84603         large.
84604
84605 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84606
84607         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84608
84609 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84610
84611         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84612         (2004-10-24) change.  Apparently this was a false alarm.
84613
84614         * modules/getdate: Depend on alloca-opt, not alloca.
84615
84616 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84617
84618         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84619         Remove now-obsolete comment about AIX.
84620         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84621         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84622         (YYMAXDEPTH): New macro.
84623
84624 2004-12-18  Simon Josefsson  <jas@extundo.com>
84625
84626         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84627
84628 2004-12-18  Bruno Haible  <bruno@clisp.org>
84629
84630         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84631
84632 2004-12-18  Bruno Haible  <bruno@clisp.org>
84633
84634         * lib/fatal-signal.c (fatal_signals): Make non-const.
84635         (init_fatal_signals): New function.
84636         (uninstall_handlers, install_handlers): Ignore signals that were set to
84637         SIG_IGN.
84638         (at_fatal_signal): Call init_fatal_signals.
84639         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84640         SIG_IGN.
84641         Reported by Paul Eggert.
84642
84643 2004-12-18  Bruno Haible  <bruno@clisp.org>
84644
84645         * doc/alloca.texi: New file.
84646         * doc/alloca-opt.texi: New file.
84647
84648 2004-12-17  Jim Meyering  <jim@meyering.net>
84649
84650         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84651         Otherwise, install-sh could exit with improper exit status when
84652         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84653
84654 2004-12-16  Simon Josefsson  <jas@extundo.com>
84655
84656         * tests/test-base64.c: Add license.
84657
84658 2004-12-15  Stepan Kasal  <address@hidden>
84659
84660         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84661
84662 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * modules/getcwd (Files): Add m4/d-ino.m4.
84665         Suggested by Mark D. Baushke.
84666
84667 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84668
84669         * lib/getdate.y (textint): New member "negative".
84670         (time_zone_hhmm): New function.
84671         Expect 14 shift-reduce conflicts, not 13.
84672         (o_colon_minutes): New rule.
84673         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84674         (yylex): Set the "negative" member of signed numbers.
84675
84676 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84677
84678         * doc/getdate.texi (Time of day items, Time zone items):
84679         Describe new formats +00:00, UTC+00:00.
84680
84681 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84682
84683         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84684         spurious "-l"s.  Problem reported by Stepan Kasal.
84685
84686 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84687
84688         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84689         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84690
84691 2004-12-04  Simon Josefsson  <jas@extundo.com>
84692
84693         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84694         Vandoorselaere <yoann@prelude-ids.org>.
84695
84696 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84697
84698         Changes imported from coreutils.
84699         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84700         exist.
84701         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84702
84703 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84704
84705         Changes imported from coreutils.
84706         * lib/hard-locale.c: Assume <locale.h> exists.
84707         Include "strdup.h".
84708         (GLIBC_VERSION): New macro.
84709         (hard_locale): Assume setlocale exists.
84710         Rewrite to avoid #ifdef.
84711         Use strdup rather than malloc + strcpy.
84712         * lib/human.c: Assume <locale.h> exists.
84713         (human_readable): Assume localeconv exists.
84714
84715 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84716
84717         * modules/hard-locale (Depends-on): Add strdup.
84718
84719 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84720
84721         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84722         convert T2, not T.  (Imported from libc.)
84723
84724 2004-11-30  Simon Josefsson  <jas@extundo.com>
84725
84726         * modules/restrict (License): Change to LGPL.
84727
84728 2004-11-30  Simon Josefsson  <jas@extundo.com>
84729
84730         * m4/restrict.m4: Add copyright and copying conditions.
84731
84732 2004-11-30  Simon Josefsson  <jas@extundo.com>
84733
84734         * m4/base64.m4: New file.
84735
84736 2004-11-30  Simon Josefsson  <jas@extundo.com>
84737
84738         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84739         base64.
84740
84741         * tests/test-base64.c: New file.
84742
84743         * modules/base64: New file.
84744
84745 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84746
84747         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84748         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84749
84750         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84751
84752 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84753
84754         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84755         (__getcwd.c): Don't restore errno; glibc doesn't.
84756         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84757         first, falling back to our code only if its results look suspicious.
84758         Ensure that the resulting buffer is only as large as necessary.
84759
84760         * lib/readutmp.c: Include readutmp.h first.
84761         Include <errno.h>, since readutmp.h no longer does that.
84762         * lib/readutmp.h: Don't include <errno.h>,
84763         <sys/param.h>, <time.h>; not needed to establish interface.
84764         (errno): Remove decl.
84765         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84766         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84767         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84768
84769 2004-11-28  Simon Josefsson  <jas@extundo.com>
84770
84771         * lib/base64.h, base64.c: New file.
84772
84773 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84774
84775         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84776
84777 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84780         (Depends-on): Remove pathmax, same.  Add mempcpy.
84781         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84782         (Makefile.am): Append getcwd.h to lib_SOURCES.
84783         (Include): Add getcwd.h.
84784         (Maintainer): Change from Jim Meyering to "all, glibc",
84785         since getdate now uses intended-for-glibc code.
84786         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84787         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84788
84789 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84790
84791         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84792         HP's ANSI C compiler.
84793         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84794         Declaring int functions causes warnings on some modern systems and
84795         shouldn't be needed to compile on ancient ones.
84796         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84797         defined.
84798
84799         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84800         with the following changes.
84801         (__set_errno): Parenthesize properly.
84802         Include <stdbool.h>.
84803         (MIN, MAX, MATCHING_INO): New macros.
84804         (__getcwd): Define with prototype, not K&R form.
84805         Use heuristics to allocate default buffer on stack if possible.
84806         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84807         behavior, and to avoid the PATH_MAX limit when computing
84808         ../../../../...
84809         Use MATCHING_INO to compare inode number to file.
84810         Check for arithmetic overflow in size calculations.
84811         Fix bug in reallocation of dot array that caused getcwd to fail
84812         on directories nested deeper than 75.
84813         Be more careful about saving errno on error.
84814         Do not use realloc; use only free+malloc, as this is a bit
84815         more flexible and avoids a needless copy operation.
84816         Do not inspect st_dev and st_ino for symbolic links; POSIX
84817         doesn't specify the latter.
84818         Check for closedir errors.
84819         Avoid needless casts.
84820         Use "#ifdef weak_alias" around weak_alias, to be like other
84821         glibc code.
84822         The following changes to getcwd.c have effect only when used in
84823         gnulib; they have no effect inside glibc proper.
84824         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84825         as alloca isn't used.
84826         (alloca, __alloca): Likewise.
84827         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84828         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84829         unconditionally, as gnulib assumes C89 or better.
84830         Do not include <sys/param.h>.
84831         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84832         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84833         better.
84834         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84835         Include <dirent.h> in a way that is compatible with modern Autoconf.
84836         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84837         New macros, if not already defined.
84838         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84839         Use "_LIBC", not "defined _LIBC", for consistency.
84840         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84841         a mempcpy module.
84842         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84843         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84844         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84845         credit only to Jim Meyering and adjust the copyright dates.
84846         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84847         <stdlib.h>, <unistd.h>, "pathmax.h".
84848         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84849         (INITIAL_BUFFER_SIZE): Remove.
84850         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84851
84852 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84853
84854         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84855         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84856         Use the _ONCE methods, for efficiency.
84857         Check for fcntl.h.  In test program, include <errno.h>
84858         and <fcntl.h> if available.  Remove old K&R cruft from
84859         test program.  Check for common errors in GNU/Linux,
84860         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84861         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84862         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84863         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84864         name accordingly.
84865         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84866         accommodate new getcwd.c.
84867         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84868         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84869         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84870         that's all we need now.
84871
84872 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84873
84874         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84875         argp-parse.c depends on getopt internals, that means we should
84876         always use our getopt, to be on the safe side.
84877         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84878         order not to spoil the result of an eventual previous invocation
84879         of gl_GETOPT_SUBSTITUTE.
84880
84881 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84882
84883         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84884         redefinition warnings. To avoid them, include the defines
84885         in `#if !defined __need_getopt ... #endif'. The only place
84886         where __getopt_argv_const is used is in definitions
84887         of getopt_long and getopt_long_only below, which are as well
84888         protected by `#ifndef __need_getopt'.
84889         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84890         __need_getopt after including <stdio.h> and <unistd.h> These
84891         headers might have defined it.
84892
84893 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84894
84895         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84896
84897 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84900         (futimens): New function, which uses futimes if available.
84901         (futimens, utimens): Support timespec==NULL, with same semantics
84902         as utime and utimens.
84903         * lib/utimens.h (futimens): New decl.
84904
84905 2004-11-23  Jim Meyering  <jim@meyering.net>
84906
84907         * lib/getopt_.h: Remove trailing blanks.
84908
84909 2004-11-23  Jim Meyering  <jim@meyering.net>
84910
84911         * lib/__fpending.c: Add comment.
84912
84913 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84914
84915         * modules/canonicalize (Depends-on): Add xreadlink.
84916         Problem reported by James Youngman.
84917
84918 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84921         New macros.
84922         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84923         optopt): Use them instead of invoking ## directly; otherwise, the
84924         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84925
84926 2004-11-19  Bruno Haible  <bruno@clisp.org>
84927
84928         * lib/strtok_r.c: Move comments from here...
84929         * lib/strtok_r.h: ... to here.
84930
84931 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84932
84933         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84934         implementations that mishandle size_t overflow.
84935
84936 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84937
84938         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84939         might fail.  Problem reported by Yoann Vandoorselaere.
84940         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84941         implementations that mishandle size_t overflow.
84942
84943 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84944
84945         * modules/canon-host (Depends-on): Add strdup.
84946
84947 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84950
84951 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84952
84953         * lib/canon-host.c: Include "strdup.h".
84954         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84955         Use strdup instead of malloc/strcpy to duplicate strings.
84956
84957         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84958         (human_space_before_unit): New constant.
84959         * lib/human.c (human_readable): Support it.
84960
84961         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84962         (xgetcwd): Set errno correctly when failing.
84963         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84964         the failure is actually due to a PATH_MAX problem.
84965
84966         Further getopt changes to make it more likely that glibc will
84967         buy the changes back.
84968         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84969         (getopt): Use it, so to preserve glibc semantic
84970         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84971         when compiling for libc.
84972         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84973         (getopt_long, getopt_long_only): Use it.
84974
84975         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84976         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84977         (getopt): Argv is now char * const *, as per standard.
84978         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84979         not char *__getopt_argv_const *.
84980         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84981         _getopt_long_only_r): Likewise.
84982         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84983         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84984         _getopt_long_r, _getopt_long_only_r): Likewise.
84985         * lib/getopt_.h (__getopt_argv_const): Remove.
84986         (getopt): Argv is now char * const *, as per standard.
84987
84988         * lib/getdate.y (tORDINAL): New token.
84989         (day, relunit): Allow it for relative times.
84990         (relative_time_table): Use tORDINAL for ordinals.
84991
84992 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84995         Document that "second" isn't allowed as an ordinal number.
84996
84997 2004-11-16  Jim Meyering  <jim@meyering.net>
84998
84999         * modules/closeout (Depends-on): Add fpending.
85000
85001 2004-11-15  Jim Meyering  <jim@meyering.net>
85002
85003         * lib/closeout.c: Include "__fpending.h" once again.
85004         Include <stdbool.h>.
85005         (close_stdout): Don't fail just because stdout was closed initially,
85006         since some programs don't write to stdout in the normal course of
85007         operation (other than --version and --help), and we don't want this
85008         function to make e.g. `touch file >&-' fail.
85009         But do fail if it was closed and someone has tried to write to it.
85010         E.g., `printf foo >&-' must fail.
85011
85012 2004-11-13  Jim Meyering  <jim@meyering.net>
85013
85014         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85015
85016 2004-11-12  Simon Josefsson  <jas@extundo.com>
85017
85018         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85019         small doc fix is still pending.
85020
85021 2004-11-11  Simon Josefsson  <jas@extundo.com>
85022
85023         * modules/strtok_r: New file.
85024
85025         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85026         strtok_r.
85027
85028 2004-11-11  Simon Josefsson  <jas@extundo.com>
85029
85030         * m4/strtok_r.m4: New file.
85031
85032         * m4/getopt.m4: Replace opterr.
85033
85034 2004-11-11  Simon Josefsson  <jas@extundo.com>
85035
85036         * lib/strtok_r.h, strtok_r.c: New file.
85037
85038 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85041         of replacing opterr, getopt, etc.  This should handle the
85042         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85043
85044 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85047         we can stop lying to compilers about the constness of argv when we
85048         are compiled outside glibc.
85049         (getopt, getopt_long, getopt_long_only): Use it.
85050         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85051         _getopt_internal, getopt): Likewise.
85052         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85053         _getopt_long_only_r): Likewise.
85054         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85055         _getopt_long_r, _getopt_long_only_r): Likewise.
85056
85057         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85058         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85059         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85060         the other external symbols.
85061         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85062         declaration, since the above renaming now works around collisions.
85063
85064 2004-11-11  Jim Meyering  <jim@meyering.net>
85065
85066         * lib/linebreak.c: Remove trailing blanks.
85067         * lib/alloca_.h: Likewise.
85068         * lib/acosl.c: Likewise.
85069         * lib/euidaccess.c: Likewise.
85070         * lib/allocsa.h: Likewise.
85071
85072 2004-11-10  Simon Josefsson  <jas@extundo.com>
85073
85074         * m4/getaddrinfo.m4: New file.
85075
85076 2004-11-10  Simon Josefsson  <jas@extundo.com>
85077
85078         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85079
85080 2004-11-10  Simon Josefsson  <jas@extundo.com>
85081
85082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85083         getaddrinfo.
85084
85085         * modules/getaddrinfo: New file.
85086
85087 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85088
85089         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85090
85091 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85092
85093         * lib/mktime.c (SHR): New macro, which is a portable
85094         substitute for >> that should work even on Crays.
85095         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85096         Problem reported by Mark D. Baushke in
85097         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85098         * lib/getdate.y (SHR): Likewise.
85099         (tm_diff): Use it.
85100         * lib/strftime.c (SHR): Likewise.
85101         (tm_diff): Use it.
85102         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85103         quote_these_too, so that right shifts are well defined.  All uses
85104         changed.
85105
85106 2004-11-10  Jim Meyering  <jim@meyering.net>
85107
85108         Ensure that no close failure goes unreported.
85109         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85110         return early when it seems there's nothing to flush.
85111         Don't include __fpending.h.
85112
85113 2004-11-10  Jim Meyering  <jim@meyering.net>
85114
85115         * modules/closeout (Depends-on): Remove fpending.
85116
85117 2004-11-10  Jim Meyering  <jim@meyering.net>
85118
85119         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85120
85121 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85122
85123         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85124         gl_FUNC_STRFTIME.
85125         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85126         and AC_REQUIRE when possible, to avoid duplicate checks.
85127         Check for <wchar.h>.
85128
85129 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85130
85131         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85132
85133 2004-11-09  Bruno Haible  <bruno@clisp.org>
85134
85135         * m4/sockpfaf.m4: New file.
85136
85137 2004-11-05  Bruno Haible  <bruno@clisp.org>
85138
85139         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85140         Reported by Mark D. Baushke <mdb@cvshome.org>.
85141
85142 2004-11-04  Bruno Haible  <bruno@clisp.org>
85143
85144         2004-09-11  Bruno Haible  <bruno@clisp.org>
85145                 * allocsa.valgrind: New file.
85146         2004-02-06  Bruno Haible  <bruno@clisp.org>
85147                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85148                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85149                 Reported by Christopher Seip <chris.seip@hp.com>.
85150
85151 2004-11-04  Bruno Haible  <bruno@clisp.org>
85152
85153         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85154         (Makefile.am): Distribute it.
85155
85156 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85157
85158         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85159         with errno == ERANGE if the buffer is too small.
85160         Problem reported by Mark D. Baushke.
85161
85162 2004-11-03  Albert Chin  <china@thewrittenword.com>
85163             Paul Eggert  <eggert@cs.ucla.edu>
85164
85165         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85166         equivalent, substitute $ac_type for equivalent type rather than
85167         blindly using uint32_t *always* which won't work if uint32_t is not
85168         available.  Define _UINT32_T to work around typedef of uint32_t if
85169         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85170         2.5.1.
85171
85172 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85173
85174         * m4/jm-macros.m4: Sync from coreutils.
85175         (gl_MACROS): Check for mbrlen, for pathchk.
85176         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85177
85178 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         * lib/xreadlink.c (MAXSIZE): New macro.
85181         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85182         size does not exceed MAXSIZE.  Avoid cast.
85183         As suggested by Mark D. Baushke in
85184         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85185         if readlink fails with buffer size just under MAXSIZE, try again
85186         with MAXSIZE.
85187
85188 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85189
85190         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85191
85192 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85193         and  Paul Eggert  <eggert@cs.ucla.edu>
85194
85195         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85196         (get_date): Overparenthesize to avoid GCC warning.
85197
85198 2004-11-02  Bruno Haible  <bruno@clisp.org>
85199
85200         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85201         returns void.
85202
85203 2004-11-02  Bruno Haible  <bruno@clisp.org>
85204
85205         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85206         function returns void.
85207
85208 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85211         fflush_unlocked, flockfile, funlockfile, funlockfile,
85212         fputs_unlocked, putc_unlocked.
85213
85214 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85215
85216         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85217         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85218         already declared.
85219
85220 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85221
85222         * modules/getdate (Files): Add doc/getdate.texi.
85223         (Depends-on): Add setenv, xalloc.
85224
85225 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         * lib/getdate.y: Add support for TZ="foo" within a date string.
85228         Fix some bugs near time_t boundaries.  Reject dates with
85229         out-of-range components, e.g., "Sept 31".
85230         Include <stdlib.h>, "setenv.h", "xalloc.h".
85231         (ISDIGIT_LOCALE): Remove; unused.
85232         Note that the TZ and time functions used here are not reentrant.
85233         (mktime_ok, get_tz): New functions.
85234         (TZBUFSIZE): New constant.
85235         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85236         This requires that we sometimes generate our own TZ="XXX..." setting.
85237
85238 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         * doc/getdate.texi: New file, from coreutils with modifications for
85241         the new TZ parsing.
85242
85243 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85244
85245         * lib/mktime.c (not_equal_tm): Remove redundant check.
85246
85247 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         * modules/regex (lib_SOURCES): Add regex.c.
85250         Reported by James Youngman in
85251         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85252
85253 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85254
85255         * lib/getdate.y: Use Bison 1.875 features, and some minor
85256         code cleanups.  This change does not affect semantics.
85257         Don't include <stdlib.h>; no longer needed.
85258         Don't include unlocked-io.h; only the "#if TEST" code uses
85259         stdio, and performance isn't crucial there.
85260         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85261         Bison 1.875 features as described below.
85262         All uses of "PC." replaced by "pc->".
85263         (YYSTYPE): Add a forward declaration.
85264         (yylex, yyerror): Use full prototypes in forward decls.
85265         Use "%pure-parser" rather than obsolescent "%pure_parser".
85266         Use %parse-param and %lex-param instead of obsolescent
85267         YYPARSE_PARAM and YYLEX_PARAM.
85268         (meridian_table, month_and_day_table, time_units_table,
85269         relative_time_table, time_zone_table, military_table,
85270         lookup_zone, lookup_word, get_date):
85271         Use NULL instead of 0 where appropriate.
85272         (to_hour): Avoid abort (), to avoid a dependency on
85273         stdlib.h.
85274         (yyerror, yylex): Now accepts parser_control * arg.
85275         (main) [TEST]: Use '\0' rather than 0 for char.
85276
85277 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85278
85279         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85280
85281 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85282
85283         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85284         It's now the caller's responsibility to handle the case where
85285         !HAVE_GETPAGESIZE && !defined getpagesize.
85286
85287         * lib/mktime.c (leapyear): Arg is long int, not int.
85288
85289 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85290
85291         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85292
85293 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85294
85295         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85296         missing.  Problem reported by James Youngman.
85297
85298 2004-10-16  Simon Josefsson  <jas@extundo.com>
85299
85300         * gnulib-tool: Fix comments.  Fix parse problem.
85301         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85302
85303 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85304
85305         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85306         implementation of getopt_long.  Problem reported by Alexander Taler in:
85307         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85308
85309 2004-10-15  Bruno Haible  <bruno@clisp.org>
85310
85311         * gnulib-tool: Untabify. Initialize supplied_libname.
85312         (func_usage): More homogenous output.
85313         (func_modules_transitive_closure, func_modules_to_filelist,
85314         func_emit_lib_Makefile_am): New functions.
85315         (func_import): New function, extracted from big case statement. Use
85316         func_get_license, func_modules_transitive_closure,
85317         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85318         opt_lgpl. Don't use test -a, as it's not portable.
85319         (func_create_testdir): Use func_modules_transitive_closure,
85320         func_modules_to_filelist, func_emit_lib_Makefile_am.
85321
85322 2004-10-15  Bruno Haible  <bruno@clisp.org>
85323
85324         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85325
85326 2004-10-15  Bruno Haible  <bruno@clisp.org>
85327
85328         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85329         the portions belonging to each module.
85330         Suggested by Derek Robert Price <derek@ximbiot.com>.
85331
85332 2004-10-12  Simon Josefsson  <jas@extundo.com>
85333
85334         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85335         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85336         to real functions.
85337
85338 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85339
85340         * modules/vsnprintf: New file.
85341
85342 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85343
85344         * m4/vsnprintf.m4: New file.
85345
85346 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85347
85348         * lib/vsnprintf.h: New file.
85349         * lib/vsnprintf.c: New file.
85350
85351 2004-10-11  Bruno Haible  <bruno@clisp.org>
85352
85353         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85354         vsnprintf.
85355
85356 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85357
85358         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85359
85360 2004-10-07  Bruno Haible  <bruno@clisp.org>
85361
85362         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85363         fits into the provided buffer.
85364
85365 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * lib/diacrit.c, diacrit.h: Add GPL notice.
85368
85369         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85370         notice.
85371         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85372         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85373         This avoids a potential constant-folding bug.
85374
85375 2004-10-05  Bruno Haible  <bruno@clisp.org>
85376
85377         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85378         for the declaration of strsep.
85379
85380 2004-10-05  Bruno Haible  <bruno@clisp.org>
85381
85382         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85383
85384 2004-10-04  Simon Josefsson  <jas@extundo.com>
85385
85386         * modules/memmem: New file.
85387         * tests/test-memmem.c: New file.
85388         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85389
85390 2004-10-04  Simon Josefsson  <jas@extundo.com>
85391
85392         * m4/memmem.m4: New file.
85393
85394 2004-10-04  Simon Josefsson  <jas@extundo.com>
85395
85396         * lib/memmem.h: New file.
85397         * lib/memmem.c: New file, taken from glibc.
85398
85399 2004-10-04  Simon Josefsson  <jas@extundo.com>
85400
85401         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85402         '#ifdef USE_UNLOCKED_IO'.
85403
85404 2004-10-04  Simon Josefsson  <jas@extundo.com>
85405
85406         * config/srclist.txt: Add memmem from glibc.
85407
85408 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85411
85412         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85413         modules/exclude, modules/getdate, modules/getline,
85414         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85415         modules/getusershell, modules/linebuffer, modules/md5,
85416         modules/mountlist, modules/posixtm, modules/readtokens,
85417         modules/readutmp, modules/regex, modules/sha1,
85418         modules/version-etc, modules/yesno:
85419         Remove dependency on unlocked-io.
85420
85421 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85424
85425         * m4/unlocked-io.m4: Add copyright notice.
85426         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85427
85428 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85429
85430         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85431         * lib/xmalloc.c (xmemdup): Likewise.
85432         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85433         XFREE): Remove these long-obsolescent macros.
85434         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85435         * lib/xstrdup.c: Remove.
85436
85437         * lib/regex.c (re_comp): Cast gettext return value to char *,
85438         Problem reported by Martin Neitzel via Mark D. Baushke.
85439
85440 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85441
85442         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85443         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85444         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85445         regex.c, sha1.c, version-etc.c, yesno.c:
85446         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85447         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85448         the includer's responsibility.
85449
85450         Sync from coreutils.
85451
85452         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85453         points to the start of a string, as the C Standard says the
85454         resulting behavior is undefined.
85455
85456         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85457         simple -> simple_backups, numbered_existing ->
85458         numbered_existing_backups, numbered -> numbered_backups
85459         to avoid shadowing problems.  All uses changed.
85460         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85461         * lib/backupfile.c (check_extension, numbered_backup):
85462         Rename locals to avoid shadowing 'basename'.
85463         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85464         once.
85465
85466         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85467         * lib/.cvsignore: Add getopt.h.
85468
85469 2004-10-04  Bruno Haible  <bruno@clisp.org>
85470
85471         * modules/README: New file.
85472         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85473         not a module.
85474
85475 2004-10-02  Jim Meyering  <jim@meyering.net>
85476
85477         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85478
85479 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85480
85481         * modules/strsep: New file.
85482
85483 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85484
85485         * m4/strsep.m4: New file.
85486
85487 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85488
85489         * lib/strsep.h: New file.
85490         * lib/strsep.c: New file.
85491
85492 2004-10-01  Simon Josefsson  <jas@extundo.com>
85493
85494         * lib/snprintf.c (snprintf): Handle size==0.
85495
85496 2004-10-01  Simon Josefsson  <jas@extundo.com>
85497             Bruno Haible  <bruno@clisp.org>
85498
85499         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85500         (snprintf): Declare 'args'.
85501
85502 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85503
85504         * lib/snprintf.c: Remove comments as to why each header is needed.
85505
85506 2004-10-01  Bruno Haible  <bruno@clisp.org>
85507
85508         * MODULES.html.sh: Add strsep.
85509
85510 2004-09-30  Simon Josefsson  <jas@extundo.com>
85511
85512         * modules/snprintf: New file.
85513
85514 2004-09-30  Simon Josefsson  <jas@extundo.com>
85515
85516         * m4/snprintf.m4: New file.
85517
85518 2004-09-30  Simon Josefsson  <jas@extundo.com>
85519
85520         * lib/snprintf.h, lib/snprintf.c: New files.
85521
85522 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85523
85524         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85525         (hol_entry_help): Never translate an empty string.
85526         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85527         * lib/argp.h (OPTION_NO_TRANS): New option.
85528
85529 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * modules/argp (Maintainer): Replace Simon Josefsson
85532         by Sergey Poznyakoff.
85533
85534 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85537         changes merged back into glibc.
85538
85539 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85540
85541         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85542
85543 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85544
85545         * lib/xvasprintf.c: Include xalloc.h.
85546         (xvasprintf): Use xalloc_die, not xmalloc_die.
85547
85548 2004-09-29  Bruno Haible  <bruno@clisp.org>
85549
85550         * modules/alloca-opt: New file, derived from modules/alloca.
85551         * modules/allocsa: Depend on alloca-opt instead of alloca.
85552         * modules/setenv: Likewise.
85553         * modules/vasnprintf: Likewise.
85554         * MODULES.html.sh: Add alloca-opt.
85555
85556 2004-09-28  Simon Josefsson  <jas@extundo.com>
85557
85558         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85559         LGPL, and to replace license template from GPL to LGPL.
85560
85561 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85562
85563         * modules/dummy: Change license to LGPL.
85564
85565 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85566
85567         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85568
85569 2004-09-24  Simon Josefsson  <jas@extundo.com>
85570
85571         * modules/minmax (License): Change from GPL to LGPL.
85572
85573 2004-09-23  Simon Josefsson  <jas@extundo.com>
85574
85575         * gnulib-tool (--import): Typo.
85576
85577 2004-09-23  Simon Josefsson  <jas@extundo.com>
85578
85579         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85580
85581 2004-09-22  Bruno Haible  <bruno@clisp.org>
85582
85583         * modules/*: Add 'License' field.
85584         * gnulib-tool: Accept --extract-license option.
85585         (func_get_license): New function.
85586
85587 2004-09-21  Bruno Haible  <bruno@clisp.org>
85588
85589         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85590         Reported by Simon Josefsson.
85591
85592 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85593
85594         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85595         gl_AC_TYPE_LONG_LONG.
85596
85597 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85598
85599         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85600
85601 2004-09-18  Simon Josefsson  <jas@extundo.com>
85602         and  Paul Eggert  <eggert@cs.ucla.edu>
85603
85604         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85605         calls with autoreconf.  Define GL_LIB.
85606
85607 2004-09-14  Karl Berry  <karl@gnu.org>
85608
85609         * config/srclist.txt: unsync setenv.c, sigh.
85610
85611 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85612
85613         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85614         Problem reported by Bruno Haible in:
85615         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85616
85617 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85618
85619         * config/srclist.txt: Comment out argp-pvh.c.
85620
85621 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85622
85623         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85624         in case some system header has #define'd it.  Problem reported by
85625         Soeren D. Schulze in
85626         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85627
85628 2004-09-09  Karl Berry  <karl@gnu.org>
85629
85630         * regex.[ch]: delete from the root.  These were supposed to be
85631                 synced with emacs cvs, but this has not happened for about
85632                 a year, and anyway nothing else uses emacs regex.[ch].
85633                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85634                 lib/regex[.ch] is untouched.
85635
85636 2004-09-09  Bruno Haible  <bruno@clisp.org>
85637
85638         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85639
85640 2004-09-09  Bruno Haible  <bruno@clisp.org>
85641
85642         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85643         modifications.
85644         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85645
85646 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85647
85648         * modules/xvasprintf: New file.
85649         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85650
85651 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85652
85653         * lib/xvasprintf.h: New file.
85654         * lib/xvasprintf.c: New file.
85655         * lib/xasprintf.c: New file.
85656
85657 2004-09-08  Bruno Haible  <bruno@clisp.org>
85658
85659         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85660
85661 2004-09-08  Bruno Haible  <bruno@clisp.org>
85662
85663         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85664         length is > INT_MAX.
85665         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85666         more.
85667
85668 2004-09-08  Bruno Haible  <bruno@clisp.org>
85669
85670         * lib/stdint_.h: New file, taken from GNU clisp.
85671
85672 2004-09-08  Bruno Haible  <bruno@clisp.org>
85673             Oskar Liljeblad  <oskar@osk.mine.nu>
85674
85675         * modules/stdint: New file.
85676         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85677
85678 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         Import from coreutils.
85681         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85682         strings on unbounded length.  alloca's performance benefits aren't
85683         that important here.
85684         (V_STRDUP): Remove.
85685         (parse_with_separator): New function, with most of the internals
85686         of the old parse_user_spec.  Allow user to omit both user and group,
85687         for compatibility with FreeBSD.
85688         Clone only the user name, not the entire spec.
85689         Do not set *uid, *gid unless entirely successful.
85690         Avoid memory leak in some failing cases.
85691         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85692         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85693         (parse_user_spec): Rewrite to use parse_with_separator.
85694
85695 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85696
85697         * modules/userspec: Don't depend on alloca.
85698
85699 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85700
85701         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85702
85703 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85704
85705         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85706         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85707         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85708
85709 2004-08-16  Simon Josefsson  <jas@extundo.com>
85710
85711         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85712         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85713         Add --dry-run for --import.
85714         Let user provided command line parameters override configure.ac
85715         settings.
85716
85717 2004-08-12  Simon Josefsson  <jas@extundo.com>
85718
85719         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85720         as discussed with Paul Eggert in threads rooted at
85721         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85722         and
85723         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85724         Before, the test was empty, and relied on ELIDE_CODE in source
85725         code.)
85726         (gl_PREREQ_GETOPT): New macro.
85727         (gl_GETOPT): Use them.
85728
85729 2004-08-12  Simon Josefsson  <jas@extundo.com>
85730
85731         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85732         * lib/getopt_.h: Renamed from getopt.h.
85733
85734 2004-08-12  Simon Josefsson  <jas@extundo.com>
85735
85736         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85737         Change default library name from libfoo to libgnu.
85738         Now, if you have a configure.ac that says:
85739                 gl_SOURCE_BASE(gl)
85740                 gl_M4_BASE(gl/m4)
85741                 gl_MODULES(error getopt etcetera)
85742                 gl_INIT
85743         you can import all you need by running:
85744                 ../gnulib/gnulib-tool --import
85745
85746         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85747         (Makefile.am): Rewrite, use logic from argz.
85748         (Include): Use <getopt.h> instead of "getopt.h".
85749
85750 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85751
85752         * modules/argp (Files): Add m4/unlocked-io.m4.
85753         (Depends-on): Add extensions.
85754
85755 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85756
85757         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85758         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85759         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85760         Check for program_invocation_name, program_invocation_short_name,
85761         flockfile, funlockfile, features.h, _getopt_long_only_r.
85762
85763 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85764
85765         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85766         its complicated substitute.
85767         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85768         and program_invocation_name.
85769         (__argp_basename) [!_LIBC]: Remove; the only use was
85770         replaced by its body.
85771         (__argp_short_program_name): Change condition from
85772         !defined __argp_short_program_name to
85773         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85774         to match argp-namefrob.h.
85775         (__argp_failure): Don't assume strerror_r returns char *.
85776         * lib/argp-parse.c (N_): Define unconditionally.
85777         (argp_default_options): Fill out initializers with 0 to avoid
85778         gcc warnings.
85779
85780 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85781
85782         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85783         getopt1.c.
85784
85785 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85786
85787         Merge from coreutils.
85788
85789         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85790
85791         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85792         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85793
85794 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         Merge from coreutils.
85797
85798         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85799         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85800         for Reliant Unix 5.43.
85801
85802         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85803         (union fooround): Use uintmax_t, not long int.
85804         The rest is a merge from libc:
85805         [defined _LIBC]: Include <shlib-compat.h>.
85806         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85807
85808         * lib/settime.c (settime): Recode to avoid warning with
85809         Sun Forte C 6U2.
85810
85811         * lib/strverscmp.c: Convert to UTF-8.
85812
85813 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85814
85815         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85816         m4/uintmax_t.m4.
85817
85818 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85819
85820         * modules/xalloc-die: New file.
85821         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85822
85823         * modules/md5 (Files): Add m4/uint32_t.m4.
85824         * modules/sha1: Renamed from modules/sha.
85825         (Files):
85826         Rename lib/sha.h to lib/sha1.h.
85827         Rename lib/sha.c to lib/sha1.c.
85828         Rename m4/sha.m4 to m4/sha1.m4.
85829         (lib_SOURCES): Likewise.
85830         (configure.ac): Rename gl_SHA to gl_SHA1.
85831         (Include): sha.h -> sha1.h.
85832
85833 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85834
85835         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85836         * m4/sha1.m4: Renamed from sha.m4.
85837         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85838
85839 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85840
85841         * lib/obstack.h (obstack_empty_p):
85842         Don't assume that chunk->contents is suitably aligned.
85843         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85844         Likewise. Problem reported by Benno in
85845         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85846
85847         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85848         readable.  This could be improved further but it'd take some work.
85849
85850 2004-08-08  Simon Josefsson  <jas@extundo.com>
85851
85852         * modules/xgethostname (Depends-on): Remove exit and error (not
85853         used).
85854
85855         * modules/getpass-gnu: Add getpass.h.
85856         (Depends-on): Add stdbool.
85857         * modules/getpass: Add getpass.h.
85858
85859 2004-08-08  Simon Josefsson  <jas@extundo.com>
85860
85861         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85862         Check getpass declaration.
85863
85864 2004-08-08  Simon Josefsson  <jas@extundo.com>
85865
85866         * lib/xgethostname.c: Don't include error.h (not used).
85867
85868         * lib/getpass.h: Add.
85869         * lib/getpass.c: Include getpass.h first.
85870
85871 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         * lib/xalloc-die.c: New file.
85874         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85875         All uses removed.
85876         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85877         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85878         xalloc-die.c.
85879         (_, N_, xalloc_die): Move to xalloc-die.c.
85880         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85881         so that we needn't mess with xalloc_msg_memory_exhausted.
85882
85883         * lib/sha1.h: Renamed from sha.h.
85884         (SHA1_H): Renamed from _SHA_H.
85885         (sha1_ctx): Renamed from sha_ctx.
85886         (sha1_init_ctx): Renamed from sha_init_ctx.
85887         (sha1_process_block): Renamed from sha_process_block.
85888         (sha1_process_bytes): Renamed from sha_process_bytes.
85889         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85890         (sha1_read_ctx): Renamed from sha_read_ctx.
85891         (sha1_stream): Renamed from sha_stream.
85892         (sha1_buffer): Renamed from sha_buffer.
85893         * lib/sha1.c: Likewise; renamed from sha.c.
85894         Do not include <sys/types.h>.
85895         Include <stddef.h> rather than <stdlib.h>.
85896
85897 2004-08-08  Bruno Haible  <bruno@clisp.org>
85898
85899         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85900         FILESYSTEM_PREFIX_LEN.
85901         * lib/progreloc.c: Likewise.
85902         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85903
85904 2004-08-06  Simon Josefsson  <jas@extundo.com>
85905
85906         * modules/progname (Depends-on): Don't depend on stdbool.
85907
85908 2004-08-06  Simon Josefsson  <jas@extundo.com>
85909
85910         * modules/getsubopt: New file.
85911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85912         getsubopt.
85913
85914 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85915
85916         More merge from coreutils.
85917
85918         * m4/utimens.m4, m4/utimecmp.m4: New files.
85919         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85920         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85921         prereq.m4, sha.m4: Import changes from coreutils.
85922
85923 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85924
85925         More merge from coreutils.
85926         * modules/raise, modules/readtokens0, modules/utimens:
85927         * modules/utimecmp, module/xnanosleep: New files.
85928         * modules/strftime: Add lib/strftime.h.
85929         Change include from <time.h> to "strftime.h".
85930         * modules/yesno: Add lib/yesno.h.
85931         * modules/backupfile: Remove lib/addext.c.
85932         * modules/euidaccess: Add stat-macros.h.
85933         * modules/canonicalize, modules/euidaccess,
85934         modules/filemode, modules/lchown, modules/makepath,
85935         modules/rmdir, modules/stat: Likewise.
85936
85937 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85938
85939         Merge from tar.
85940         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85941         SIZE_MAX is a valid preprocessor constant.
85942         (__argp_basename): Change from "#ifndef _LIBC"
85943         to "#ifndef __argp_short_program_name", so that
85944         we don't compile these functions for tar.
85945
85946         More merges from coreutils.
85947         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85948         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85949         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85950         * lib/addext.c: Remove; no longer needed.
85951         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85952         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85953         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85954         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85955         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85956         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85957         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85958         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85959         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85960         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85961         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85962         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85963         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85964         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85965         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85966         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85967         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85968         Import changes from coreutils.
85969
85970 2004-08-05  Simon Josefsson  <jas@extundo.com>
85971
85972         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85973
85974 2004-08-05  Simon Josefsson  <jas@extundo.com>
85975
85976         * m4/getsubopt.m4: New file.
85977
85978 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         Merge from coreutils.
85981
85982         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85983         * m4/getcwd-path-max.m4: New files.
85984
85985         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85986         FILESYSTEM_PREFIX_LEN ->
85987         FILE_SYSTEM_PREFIX_LEN.
85988         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85989         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85990         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85991         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85992
85993         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85994         prerequisite modules now handle the DOS stuff.
85995         Don't check for unistd.h.
85996
85997 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85998
85999         Merge from coreutils.
86000
86001         * lib/.gdb-history: Remove; this doesn't belong here.
86002
86003         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86004         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86005         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86006         * lib/getcwd.c: New files.
86007
86008         * lib/dirname.h: Include <stdbool.h>.
86009         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86010         for consistency with POSIX terminology.  All uses changed.
86011         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86012         (strip_trailing_slashes): Use bool for booleans.
86013         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86014
86015         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86016         sometimes returns a positive errno value even when it succeeds.
86017         (print_errno_message) [!LIBC]: Fall back on strerror if
86018         __strerror_r fails.
86019
86020         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86021         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86022         (longest_relative_suffix): New function.
86023         (path_concat): Use it.  Assume first argument is not NULL.
86024         Port to DOS.  Omit redundant separators.
86025         Report an error instead of returning NULL.
86026         Use mempcpy instead of memcpy.
86027         (xpath_concat): Remove: not declared or used.
86028
86029         * lib/same.h: Include <stdbool.h>
86030         (same_name): Return bool, not int.
86031         * lib/same.c (same_name): Likewise.
86032         (errno): Don't declare; we assume C89 or better now.
86033
86034         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86035         if not already defined.
86036
86037         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86038         * lib/dup-safer.c (errno): Likewise.
86039
86040 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86041
86042         Merge from coreutils.
86043         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86044         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86045         * modules/path-concat: Don't depend on strdup.
86046
86047 2004-08-03  Simon Josefsson  <jas@extundo.com>
86048
86049         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86050         * lib/progname.h: Don't include stdbool.h.
86051
86052 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86053
86054         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86055         * MODULES.html.sh (func_all_modules): Remove fatal.
86056
86057 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86058
86059         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86060
86061 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86064         working.
86065
86066 2004-08-02  Simon Josefsson  <jas@extundo.com>
86067
86068         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86069         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86070         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86071
86072 2004-08-01  Simon Josefsson  <jas@extundo.com>
86073
86074         * lib/xgetdomainname.c: Include stdlib.h, for free().
86075
86076 2004-07-19  Bruno Haible  <bruno@clisp.org>
86077
86078         * MODULES.html.sh (func_all_modules): Add dummy.
86079
86080 2004-07-16  Simon Josefsson  <jas@extundo.com>
86081
86082         * modules/dummy: New file.
86083
86084 2004-07-16  Simon Josefsson  <jas@extundo.com>
86085
86086         * lib/dummy.c: New file.
86087
86088 2004-07-16  Bruno Haible  <bruno@clisp.org>
86089
86090         * lib/backupfile.h: Add extern "C" for C++.
86091         * lib/closeout.h: Likewise.
86092         * lib/copy-file.h: Likewise.
86093         * lib/findprog.h: Likewise.
86094         * lib/full-write.h: Likewise.
86095         * lib/pathname.h: Likewise.
86096         * lib/progname.h: Likewise.
86097         * lib/stpcpy.h: Likewise.
86098         * lib/stpncpy.h: Likewise.
86099         * lib/strcase.h: Likewise.
86100         * lib/strstr.h: Likewise.
86101         * lib/xalloc.h: Likewise.
86102
86103         * lib/mbswidth.h: Add extern "C" for C++.
86104         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86105
86106 2004-07-13  Robert Millan  <robertmh@gnu.org>
86107
86108         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86109
86110 2004-07-09  Simon Josefsson  <jas@extundo.com>
86111
86112         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86113         failed without this.)
86114
86115 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86116
86117         * modules/chown (Files): Add lib/fchown-stub.c, since
86118         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86119
86120 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * lib/fchown-stub.c: New file.
86123
86124 2004-06-24  Jim Meyering  <jim@meyering.net>
86125
86126         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86127
86128 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86129
86130         * modules/argz: Omit "#include".
86131
86132         * MODULES.html.sh (func_all_modules): Add calloc, to match
86133         2004-06-01 addition of calloc module.
86134
86135 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86136
86137         * m4/argz.m4: New file, which is autoupdated from libtool.
86138
86139 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86140
86141         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86142         libtool.
86143
86144 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86145
86146         * config/srclist-update: Don't insist on "USA." before the
86147         close-comment, as libtool omits the period and puts the */ on a
86148         separate line.
86149         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86150         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86151
86152 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86153
86154         * modules/argz: New file.
86155         * MODULES.html.sh (func_all_modules): Add argz.
86156
86157 2004-06-12  Jim Meyering  <jim@meyering.net>
86158         and  Paul Eggert  <eggert@cs.ucla.edu>
86159
86160         * modules/hash (Files): Add lib/xalloc.h.
86161         * modules/pipe (Depends-on): Add wait-process.
86162         * modules/stat (Depends-on): Add xalloc.
86163         * modules/userspec (Files): Add lib/userspec.h.
86164         * modules/xstrto
86165
86166         Upgrade from gettext-0.13.
86167         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86168         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86169         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86170
86171 2004-06-10  Jim Meyering  <jim@meyering.net>
86172
86173         * lib/calloc.c: New file.
86174
86175 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86176
86177         * lib/getdate.y (yylex): Allow space between sign and number.
86178         Problem reported by Dan Jacobson.
86179
86180 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86181
86182         Merge from coreutils CVS.
86183
86184         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86185         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86186         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86187         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86188         xstrtol.m4: Fix copyright date and/or serial number.
86189
86190         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86191         See if we need an fchown replacement.
86192         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86193         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86194         and use the replacement function if we detect either defect.
86195
86196         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86197         gl_UTIMECMP.
86198
86199 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86200         and  Jim Meyering  <jim@meyering.net>
86201
86202         Merge from coreutils CVS.
86203
86204         * lib/stat-macros.h: New file, with contents from file-type.h
86205         and coreutils' system.h.
86206         * lib/file-type.c: Include "stat-macros.h".
86207         * lib/file-type.h (file_type): Move all macro definitions to new file,
86208         stat-macros.h.
86209
86210         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86211         Wrap old code with this conditional.
86212         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86213         function that does not dereference symlinks.
86214         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86215
86216         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86217         dependency problems.
86218         (xreadlink): Accept new arg SIZE, for efficiency.
86219         All decls and uses changed.
86220         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86221
86222         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86223         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86224
86225         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86226         sysexits.h.
86227
86228 2004-06-01  Jim Meyering  <jim@meyering.net>
86229
86230         * m4/calloc.m4: New file.
86231
86232 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86233
86234         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86235         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86236         Also, fix a typo in a diagnostic.
86237
86238 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86239
86240         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86241         or AC_FUNC_REALLOC.
86242
86243 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86244
86245         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86246         macros to be defined.
86247         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86248         the allocator returns NULL because the requested size is zero.
86249
86250 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86251
86252         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86253         var.  Add comment explaining why libc still defines it.  This
86254         merges the following patch from glibc:
86255         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86256
86257 2004-05-20  Andreas Schwab  <schwab@suse.de>
86258
86259         * m4/free.m4: Replace free if it not known to work, not the other
86260         way round.
86261
86262 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86263
86264         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86265         present in glibc since revision 1.1 of this file.
86266         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86267         obstack_alignment_mask, obstack_alloc, obstack_base,
86268         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86269         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86270         obstack_grow0, obstack_init, obstack_int_grow,
86271         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86272         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86273         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86274         nonexistent functions.
86275
86276 2004-05-18  Karl Berry  <karl@gnu.org>
86277
86278         * config/srclist.txt: break link for vasnprintf.c.
86279
86280 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86281
86282         Port obstack to the AS/400, where pointers are 16 bytes wide and
86283         you cannot cast an integer to a valid pointer.  This patch is
86284         currently waiting to be integrated into glibc; see
86285         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86286
86287         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86288         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86289         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86290         (struct obstack): temp member is now a union of a pointer and
86291         an integer, instead of an integer.  All integer uses changed.
86292         This does not affect the physical layout of struct obstack,
86293         except on hosts (like the AS/400) where the size or alignment of
86294         void * is greater than that of ptrdiff_t.
86295         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86296         __STDC__)]: Store temporary in pointer member of union, not
86297         integer member.
86298         * lib/obstack.c: Include <stddef.h>, for offsetof.
86299         (struct fooalign): Remove; it doesn't need a name.
86300         (union fooround): Change double to long double, and add void *.
86301         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86302         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86303         not a macro.  Hence the values are always int; so remove all
86304         casts-to-int in uses.
86305
86306 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86307
86308         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86309         we can get this patch merged into glibc.
86310
86311 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86312             Paul Eggert  <eggert@cs.ucla.edu>
86313
86314         * m4/argp: Depend on alloca.
86315
86316 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86317             Paul Eggert  <eggert@cs.ucla.edu>
86318
86319         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86320         freecoding.
86321
86322 2004-05-17  Bruno Haible  <bruno@clisp.org>
86323
86324         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86325         precision that consists of a '.' followed by an empty digit string.
86326         Patch by Tor Lillqvist <tml@iki.fi>.
86327
86328 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86329
86330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86331         for backward compatibility with older code.  We need our own
86332         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86333         it under some other name, and our alloca.h will define it.
86334
86335 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86336             Derek Price  <derek@ximbiot.com>
86337
86338         * lib/alloca.c: Include <alloca.h>, to get our interface.
86339         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86340         include <alloca.h> first.  Use C89 prototype for alloca; this
86341         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86342         Use #elif for simplicity, since we can assume C89 now.
86343         Don't try to source the system alloca.h since it will not be found
86344         and to prevent recursively including its replacement.
86345         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86346         * lib/regex.c: Likewise.
86347
86348 2004-05-16  Derek Price  <derek@ximbiot.com>
86349             Paul Eggert  <eggert@cs.ucla.edu>
86350
86351         getline cleanup.  This changes the getndelim2 API: both order of
86352         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86353         no delimiter).
86354
86355         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86356         interface does that.
86357         (getline): Always use getdelim, so that we don't have two
86358         copies of this code.
86359         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86360         if available.
86361         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86362         (GETNDELIM2_MAXIMUM): New macro.
86363         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86364         instead of the old practice of delim2==0.  All callers changed.
86365         Return -1 on overflow, instead of returning junk.
86366         Do not set *linesize unless allocation succeeds.
86367         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86368         that we include sys/types.h.
86369         * lib/getnline.h: Likewise.
86370         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86371         (getndelim2): Reorder arguments.
86372         * lib/getnline.c (getnline, getndelim):
86373         Don't discard the NMAX argument.
86374         (getnline): Invoke getndelim, to avoid code duplication.
86375         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86376         of (size_t) -1 by callers of the getnline family.
86377
86378 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86379
86380         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86381         Check for gettimeofday.
86382         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86383         Check for settimeofday, stime.
86384
86385 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86386
86387         * lib/nanosleep.c (suspended): Change its type from int to
86388         sig_atomic_t volatile.
86389         (first_call): Make it private to rpl_nanosleep, and have it
86390         be zero initially as that's a bit faster.
86391         (my_usleep): Round up fractional times instead of truncating them,
86392         as this is the usual meaning for 'sleep'.
86393
86394         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86395         doesn't work.
86396         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86397         (ENOSYS): Define if not defined.
86398         (settime): Fall back on stime if it exists and settimeofday fails.
86399         But don't bother with fallbacks if a method fails with errno == EPERM.
86400
86401 2004-05-11  Jim Meyering  <jim@meyering.net>
86402
86403         Prior to this change, the save_cwd caller required read access to the
86404         current directory on most systems (ones with the fchdir function).
86405
86406         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86407         fails, try write-only, and finally, resort to using xgetcwd.
86408
86409 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86410
86411         * lib/obstack.c, obstack.h: Import changes from libc.
86412
86413 2004-04-28  Bruno Haible  <bruno@clisp.org>
86414
86415         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86416         also implicitly appends .exe to executables.
86417         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86418         accepts Windows pathnames.
86419         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86420         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86421         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86422         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86423         Reported by Derek Robert Price <derek@ximbiot.com>.
86424
86425 2004-04-21  Karl Berry  <karl@gnu.org>
86426
86427         * config/srclist.txt (localcharset.c): break sync.
86428
86429 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86430
86431         * m4/host-os.m4: Add a copyright notice.
86432
86433 2004-04-20  Jim Meyering  <jim@meyering.net>
86434
86435         Change UTILS_ to gl_ in AC_DEFINE'd names.
86436         Change utils_- and jm_-prefixed variables, too.
86437         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86438         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86440
86441         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86442         Don't emit trailing blanks.
86443         Also rename jm_-prefixed variables to have gl_ prefix.
86444
86445         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86446         Also rename jm_-prefixed variables to have gl_ prefix.
86447
86448         * m4/jm-macros.m4: Reflect the renamings.
86449         * m4/prereq.m4: Likewise.
86450
86451 2004-04-20  Jim Meyering  <jim@meyering.net>
86452
86453         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86454         memory.
86455
86456 2004-04-20  Jim Meyering  <jim@meyering.net>
86457             Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86460         memory when realloc fails.
86461
86462 2004-04-19  Jim Meyering  <jim@meyering.net>
86463
86464         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86465         now that readutmp.c may call `free (0)'.
86466
86467 2004-04-19  Bruno Haible  <bruno@clisp.org>
86468
86469         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86470         * m4/inttypes_h.m4: Likewise.
86471         * m4/stdint_h.m4: Likewise.
86472         * m4/intmax_t.m4: Likewise.
86473         * m4/uintmax_t.m4: Likewise.
86474
86475 2004-04-18  Jim Meyering  <jim@meyering.net>
86476
86477         * m4/prereq.m4: Don't forbid jm_ prefix.
86478
86479         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86480         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86481         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86482         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86483         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86484         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86485         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86486         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86487         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86488         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86489         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86490         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86491         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86492         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86493         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86494         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86495         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86496         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86497         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86498
86499 2004-04-18  Jim Meyering  <jim@meyering.net>
86500
86501         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86502         failure, don't leak memory and do call END_UTMP_ENT.
86503
86504 2004-04-16  Jim Meyering  <jim@meyering.net>
86505
86506         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86507         coreutils' stat program.
86508         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86509
86510 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86511
86512         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86513         C89.
86514         (CHAR_BIT): Remove, since we assume C89.
86515         Include <stdint.h> if available, as per current Autoconf CVS advice.
86516
86517 2004-03-31  Jim Meyering  <jim@meyering.net>
86518
86519         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86520         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86521         * m4/xalloc.m4: Likewise.
86522
86523 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86524
86525         Merge from coreutils.
86526
86527         * m4/inttostr.m4: New file.
86528         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86529         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86530         Require gl_CLOCK_TIME.
86531         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86532
86533 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86534
86535         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86536         not bool, to be more consistent with Unix conventions.
86537         Suggested by Bruno Haible.
86538
86539         Merge from coreutils.
86540
86541         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86542         * lib/umaxtostr.c: New files.
86543
86544         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86545         the usual <time.h> dance.
86546         (get_date): Change signature to support fractional time stamps.
86547         All callers changed.
86548         * lib/getdate.y: Include "getdate.h" first, as we can now
86549         assume C89 and don't need to worry about 'const'.
86550         Similarly, include "unlocked-io.h" near start, not in middle.
86551         Include <limits.h>.
86552         (textint.value): Use long int rather than int.
86553         (textint.digits): Use size_t rather than int.
86554         (BILLION, LOG10_BILLION): New constants.
86555         (parser_control): New member rel_ns.  Members day_ordinal,
86556         time_zone, month, day, hour, minutes, rel_year, rel_month,
86557         rel_day, rel_hour, rel_minutes, rel_seconds
86558         are now long int, not int.  Member seconds is now struct timespec,
86559         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86560         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86561         not int.
86562         (%union.intval): Now long int, not int.
86563         New member timespec.
86564         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86565         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86566         (spec): Now is a timespec or an item list.
86567         (timespec, items): New nonterminals.
86568         (time, rel, relunit, number, get_date):
86569         Add support for fractional seconds.
86570         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86571         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86572         (to_hour): First arg is now long int, not int.
86573         (to_year): Returns long int, not int.
86574         Don't treat year -70 like 70.
86575         (tm_diff): Returns long int, not int.
86576         (lookup_word): Use bool instead of int when appropriate.
86577         (yylex): Use size_t for count, not int.
86578         Detect overflow when parsing large integer constants.
86579         Add support for fractions.
86580         (get_date): Make pointers 'const' if possible.
86581         Use more-portable code to detect integer overflow.
86582         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86583         Don't use ctime; it's not reliable if the year has >4 digits.
86584
86585         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86586         This is for compatibility with BSD.
86587
86588         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86589         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86590         From coreutils' system.h.
86591
86592         * lib/userspec.c: Don't include "posixver.h".
86593         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86594         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86595         compatible extension.  Simplify code by removing a boolean int
86596         that was always nonzero if a string was nonnull.
86597
86598 2004-03-30  Jim Meyering  <jim@meyering.net>
86599
86600         Merge from coreutils.
86601
86602         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86603         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86604         on some systems one must include <grp.h> before it.
86605         Reported by Christian Krackowizer.
86606
86607 2004-03-30  Jim Meyering  <jim@meyering.net>
86608
86609         Merge from coreutils.
86610
86611         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86612
86613         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86614         an empty input stream.
86615
86616         * lib/readtokens.c: Include <stdbool.h>.
86617         (readtoken): Use `size_t' rather than int/long.
86618         All callers adjusted.
86619         Use `bool' rather than `int' where appropriate.
86620         Use memset rather than an explicit loop.
86621         Use x2nrealloc rather than xrealloc.
86622         Allow the use of `\0' as a delimiter.
86623         (readtokens): Likewise.
86624         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86625
86626 2004-03-30  Jim Meyering  <jim@meyering.net>
86627
86628         * m4/realloc.m4: Remove file, since now it does no more than
86629         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86630         the `configure.ac' section of module/realloc.
86631         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86632
86633 2004-03-30  Bruno Haible  <bruno@clisp.org>
86634
86635         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86636         nonnull.
86637
86638 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86639
86640         Merge changes to getloadavg.c from coreutils and Emacs.
86641
86642         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86643         Define to an expression, not to the empty string.
86644         Include cloexec.h and xalloc.h.
86645         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86646         Use set_cloexec_flag rather than rolling our own.
86647         * lib/cloexec.c, lib/cloexec.h: New files.
86648
86649 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86650
86651         * m4/cloexec.m4: New file.
86652
86653 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86654
86655         * lib/getopt.h: Sync with libc CVS.
86656
86657 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86658             Bruno Haible  <bruno@clisp.org>
86659
86660         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86661         mbswidth.
86662
86663 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86664             Bruno Haible  <bruno@clisp.org>
86665
86666         * lib/mbswidth.h: Include <wchar.h> only if
86667         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86668         <wchar.h>.
86669         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86670
86671 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86672
86673         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86674         Sync with libc CVS.
86675         * lib/getopt_int.h: New file, also synced from libc.
86676
86677 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86678
86679         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86680         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86681         Bring back getopt.c, getopt.h, getopt1.c.
86682
86683 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86684
86685         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86686         All uses changed.  Check for sa_sigaction member; this fixes
86687         a bug first reported by Jason Andrade in
86688         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86689
86690 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86691
86692         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86693         '#if' expressions.  Unlike the code it replaces, it does not
86694         depend on (defined _SC_PAGESIZE).  However, it does depend on
86695         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86696         first reported by Jason Andrade in
86697         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86698
86699 2004-02-25  Simon Josefsson  <jas@extundo.com>
86700
86701         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86702
86703 2004-02-25  Simon Josefsson  <jas@extundo.com>
86704
86705         * lib/strdup.h: New file.
86706         * lib/strdup.c: Include it.
86707         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86708         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86709
86710 2004-02-23  Karl Berry  <karl@gnu.org>
86711
86712         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86713         (from fencepost.gnu.org:/gd/gnuorg).
86714
86715 2004-02-23  Karl Berry  <karl@gnu.org>
86716
86717         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86718         * config/srclist.txt: add maintain/standards documents.
86719
86720 2004-02-18  Bruno Haible  <bruno@clisp.org>
86721
86722         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86723         Reported by Derek Robert Price <derek@ximbiot.com>.
86724
86725 2004-02-16  Karl Berry  <karl@gnu.org>
86726
86727         * config/mkinstalldirs, install-sh: update from automake.
86728
86729 2004-02-06  Karl Berry  <karl@gnu.org>
86730
86731         * m4/po.m4: update from gettext 0.14.1.
86732
86733 2004-02-06  Karl Berry  <karl@gnu.org>
86734
86735         * lib/config.charset: update from gettext 0.14.1.
86736
86737 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86738
86739         Add comments and code, prompted by suggestions from Bruno Haible
86740         for sh-quote.
86741         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86742         describing the enum quoting_style values.
86743         * lib/quotearg.c (quotearg_alloc): New function.
86744         (quotearg_buffer_restyled): Treat lone { and } as special.
86745         Treat = as special.  Work around bug with older shells
86746         that "see" a '\' that is really the 2nd byte of a multibyte char.
86747         Quote empty string with shell_quoting_style.
86748
86749 2004-02-03  Bruno Haible  <bruno@clisp.org>
86750
86751         * m4/pipe.m4: New file, from GNU gettext.
86752
86753 2004-02-03  Bruno Haible  <bruno@clisp.org>
86754
86755         * lib/pipe.h: New file, from GNU gettext.
86756         * lib/pipe.c: New file, from GNU gettext.
86757
86758 2004-01-27  Bruno Haible  <bruno@clisp.org>
86759
86760         * m4/execute.m4: New file, from GNU gettext.
86761
86762 2004-01-27  Bruno Haible  <bruno@clisp.org>
86763
86764         * lib/execute.h: New file, from GNU gettext.
86765         * lib/execute.c: New file, from GNU gettext.
86766         * lib/w32spawn.h: New file, from GNU gettext.
86767
86768 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86769
86770         Merge from diffutils.
86771
86772         * lib/file-type.c (file_type): Add typed memory objects.
86773         * lib/file-type.h (S_TYPEISTMO): New macro.
86774
86775         * lib/c-stack.h (c_stack_action): Remove argv argument.
86776         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86777         (die): Don't calculate message unless segv_action returns.
86778         (get_stack_location, min_address_from_argv, max_address_from_argv,
86779         volatile stack_base, volatile_stack_size): Remove.
86780         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86781         that every segmentation violation is a stack overflow.  (Ouch!)
86782         See Debian bug 136249 (still outstanding) for more info about why
86783         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86784
86785 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86786
86787         Exit-status fix from coreutils.
86788
86789         Use exit_failure consistently in place of EXIT_FAILURE,
86790         so that program exit statuses are consistent on failure.
86791
86792         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86793         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86794         * lib/argmatch.h: Comment fix to match the above.
86795         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86796         Now a macro referring to exit_failure, instead of a separate
86797         variable.  Include "exitfail.h" to get it.
86798         * lib/xstrtol.h: Include "exitfail.h".
86799         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86800
86801         * lib/long-options.c (parse_long_options): Use prototype
86802         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86803         for clarity.
86804
86805 2004-01-21  Jim Meyering  <jim@meyering.net>
86806
86807         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86808         so as not to conflict with a different-sized __mktime_internal
86809         function in GNU libc.
86810         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86811         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86812
86813 2004-01-20  Karl Berry  <karl@gnu.org>
86814
86815         * config/config.guess: update from config.
86816
86817         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86818
86819 2004-01-20  Bruno Haible  <bruno@clisp.org>
86820
86821         Safer stack allocation.
86822         * lib/setenv.c: Include allocsa.h.
86823         (alloca): Remove fallback definition.
86824         (freea): Remove macro.
86825         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86826         instead of freea.
86827
86828 2004-01-20  Bruno Haible  <bruno@clisp.org>
86829
86830         * m4/eealloc.m4: New file, from GNU gettext.
86831
86832 2004-01-20  Bruno Haible  <bruno@clisp.org>
86833
86834         * m4/allocsa.m4: New file, from GNU gettext.
86835
86836 2004-01-20  Bruno Haible  <bruno@clisp.org>
86837
86838         * lib/xallocsa.h: New file, from GNU gettext.
86839         * lib/xallocsa.c: New file, from GNU gettext.
86840
86841 2004-01-20  Bruno Haible  <bruno@clisp.org>
86842
86843         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86844
86845 2004-01-20  Bruno Haible  <bruno@clisp.org>
86846
86847         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86848         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86849         specially.
86850
86851 2004-01-20  Bruno Haible  <bruno@clisp.org>
86852
86853         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86854         patch.
86855
86856 2004-01-20  Bruno Haible  <bruno@clisp.org>
86857
86858         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86859
86860 2004-01-20  Bruno Haible  <bruno@clisp.org>
86861
86862         * lib/eealloc.h: New file.
86863
86864 2004-01-20  Bruno Haible  <bruno@clisp.org>
86865
86866         * lib/binary-io.h: Avoid warnings on Cygwin.
86867
86868 2004-01-20  Bruno Haible  <bruno@clisp.org>
86869
86870         * lib/allocsa.h: New file, from GNU gettext.
86871         * lib/allocsa.c: New file, from GNU gettext.
86872
86873 2004-01-18  Karl Berry  <karl@gnu.org>
86874
86875         * doc/gpl.texi, doc/lgpl.texi: new files.
86876
86877 2004-01-18  Karl Berry  <karl@gnu.org>
86878
86879         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86880         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86881
86882 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86883
86884         Merge from coreutils.
86885
86886         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86887         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86888         (gl_DEFAULT_POSIX2_VERSION): Move
86889         the documentation from 'configure' into 'config.hin',
86890         so that 'configure --help' isn't burdened by it and
86891         we don't have to worry about its formatting there.
86892         Reword the documentation so that it's more succinct
86893         and can be run together into a single paragraph.
86894         * m4/same.m4 (gl_SAME): Check for pathconf.
86895
86896 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86897
86898         Merge from coreutils.
86899
86900         * lib/posixver.c: Include posixver.h.
86901
86902         * lib/same.c: Include <stdbool.h>, <limits.h>.
86903         (_POSIX_NAME_MAX): Define if not defined.
86904         (MIN): New macro.
86905         (same_name): If file names are silently truncated, report
86906         that the file names are the same if they are the same after
86907         the silent truncation.
86908
86909         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86910         conversion function.
86911         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86912         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86913         longer needed.
86914
86915 2004-01-15  Jim Meyering  <jim@meyering.net>
86916
86917         Merge from coreutils.
86918
86919         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86920         if no library is required.
86921         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86922         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86923         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86924         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86925         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86926         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86927         value, $ac_cv_search_crypt, if it's "none required".
86928         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86929         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86930         not gl_FUNC_GETLOADAVG.
86931         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86932         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86933
86934 2004-01-15  Jim Meyering  <jim@meyering.net>
86935
86936         Merge from coreutils.
86937
86938         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86939         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86940         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86941
86942         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86943         optional configure-time default.
86944
86945         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86946
86947         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86948
86949 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86950
86951         Merge from coreutils.
86952
86953         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86954         value, $ac_cv_search_nanosleep, if it's "none required".
86955
86956 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86957
86958         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86959         with like-named macro in fnmatch.c.
86960         (EXT): Use an internal constant instead.
86961
86962         Merge fnmatch patches from glibc.
86963         * lib/fnmatch.c (mbsinit): Remove define.
86964         Add libc_hidden_ver (__fnmatch, fnmatch).
86965         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86966         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86967
86968 2004-01-14  Karl Berry  <karl@gnu.org>
86969
86970         * config/install-sh: update from automake.
86971
86972 2004-01-13  Karl Berry  <karl@gnu.org>
86973
86974         * config/install-sh: update from automake.
86975
86976 2004-01-09  Karl Berry  <karl@gnu.org>
86977
86978         * config/install-sh: update from automake.
86979
86980 2004-01-05  Karl Berry  <karl@gnu.org>
86981
86982         * config/config.{sub,guess}: update from config.
86983
86984 2003-12-31  Karl Berry  <karl@gnu.org>
86985
86986         * config/depcomp: update from automake.
86987
86988 2003-12-14  Karl Berry  <karl@gnu.org>
86989
86990         * lib/config.charset: update from gettext-runtime.
86991
86992 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86993
86994         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86995         Bug reported by Alfred M. Szmidt.
86996
86997 2003-12-03  Bruno Haible  <bruno@clisp.org>
86998
86999         * m4/gettext.m4: Upgrade from gettext-0.13.
87000         * m4/po.m4: Upgrade from gettext-0.13.
87001         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87002         * m4/intmax.m4: New file, from gettext-0.13.
87003         * m4/printf-posix.m4: New file, from gettext-0.13.
87004
87005 2003-11-29  Karl Berry  <karl@gnu.org>
87006
87007         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87008
87009 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87010             Bruno Haible  <bruno@clisp.org>
87011
87012         * lib/printf-parse.h: Don't include sys/types.h.
87013         (ARG_NONE): New macro.
87014         (char_directive): Change type of *arg_index fields to size_t.
87015         * lib/printf-parse.c: Don't include sys/types.h.
87016         (SSIZE_MAX): Remove macro.
87017         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87018         Remove unnecessary overflow check.
87019         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87020         fields.
87021
87022 2003-11-25  Bruno Haible  <bruno@clisp.org>
87023
87024         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87025
87026 2003-11-25  Bruno Haible  <bruno@clisp.org>
87027
87028         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87029         gt_TYPE_SSIZE_T.
87030
87031 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87032
87033         * modules/alloca: Remove dependency on xalloc.
87034
87035 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87036
87037         * lib/alloca.c: Remove dependency on xalloc module.
87038         (xalloc_die): Remove.
87039         (memory_full) [!defined emacs]: New macro.
87040         [!defined emacs]: Don't include xalloc.h.
87041         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87042         address arithmetic overflows.  Change datatypes a bit to avoid
87043         unnecessary casts.
87044
87045 2003-11-22  Jim Meyering  <jim@meyering.net>
87046
87047         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87048         s/size/size_t/.
87049
87050 2003-11-21  Karl Berry  <karl@gnu.org>
87051
87052         * config/config.{sub,guess}: update from config.
87053
87054 2003-11-18  Karl Berry  <karl@gnu.org>
87055
87056         * config/config.{sub,guess}: update from config.
87057
87058         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87059
87060 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87061
87062         * README: Mention that S+T cannot overflow if S is the size of
87063         an existing object and T is sufficiently small.
87064
87065 2003-11-17  Jim Meyering  <jim@meyering.net>
87066
87067         On systems without utime and without a utimes function capable of
87068         dealing with a NULL struct utimbuf* argument, this utime replacement
87069         could -- in unusual circumstances -- leak a file descriptor.
87070         * lib/utime.c: Include <unistd.h> and <errno.h>.
87071         (utime_null): Be sure to close `fd' and to preserve errno.
87072         Reported by Geoff Collyer via Arnold Robbins.
87073
87074 2003-11-17  Bruno Haible  <bruno@clisp.org>
87075
87076         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87077         (Depends-on): Add xsize.
87078
87079 2003-11-17  Bruno Haible  <bruno@clisp.org>
87080
87081         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87082
87083 2003-11-17  Bruno Haible  <bruno@clisp.org>
87084
87085         * lib/vasnprintf.c (alloca): Remove fallback definition.
87086         (freea): Remove definition.
87087         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87088         Reported by Paul Eggert.
87089
87090 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87091             Bruno Haible  <bruno@clisp.org>
87092
87093         Protect against address arithmetic overflow.
87094         * lib/printf-args.h: Include stddef.h.
87095         (arguments): Change type of field 'count' to size_t.
87096         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87097         'unsigned int' where appropriate.
87098         * lib/printf-parse.h: Include sys/types.h.
87099         (char_directive): Change type of *arg_index fields to ssize_t.
87100         (char_directives): Change type of fields 'count', max_*_length to
87101         size_t.
87102         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87103         (SSIZE_MAX): Define fallback value.
87104         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87105         instead of 'int' where appropriate. Check a_allocated, d_allocated
87106         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87107         * lib/vasnprintf.c: Include xsize.h.
87108         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87109         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87110         overflow. Avoid wraparound when converting a width or precision from
87111         decimal to binary.
87112
87113 2003-11-16  Bruno Haible  <bruno@clisp.org>
87114
87115         Update from GNU gettext.
87116         * lib/printf-parse.c: Generalize to it can be compiled for wide
87117         strings.
87118         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87119         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87120         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87121         SNPRINTF): New macros.
87122         Don't include <alloca.h> if the file is used inside libintl.
87123         (local_wcslen): New function, for Solaris 2.5.1.
87124         (VASNPRINTF): Use it instead of wcslen.
87125
87126 2003-11-16  Bruno Haible  <bruno@clisp.org>
87127
87128         * lib/xsize.h (xmax): New function.
87129         (xsum, xsum3, xsum4): Declare as "pure" functions.
87130
87131 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87132
87133         * modules/xalloc (Files): Undo latest change, since xalloc.h
87134         no longer needs SIZE_MAX or PTRDIFF_MAX.
87135
87136 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87137
87138         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87139         gl_PTRDIFF_MAX.
87140
87141 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87142
87143         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87144         "return", to pacify some unknown compiler.  Problem reported
87145         by Joerg Schilling.
87146
87147 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87148
87149         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87150         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87151         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87152         heuristic is just as accurate as far as we know, and it removes a
87153         dependency on size_max.m4 and ptrdiff_max.m4.
87154
87155 2003-11-11  Bruno Haible  <bruno@clisp.org>
87156
87157         * modules/xsize (Files): Add m4/size_max.m4.
87158         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87159
87160 2003-11-11  Bruno Haible  <bruno@clisp.org>
87161
87162         * m4/size_max.m4: New file.
87163         * m4/ptrdiff_max.m4: New file.
87164         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87165         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87166         (gl_XALLOC): Invoke it.
87167
87168 2003-11-11  Bruno Haible  <bruno@clisp.org>
87169
87170         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87171         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87172         defined.
87173
87174 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87175
87176         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87177         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87178         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87179         From Bruno Haible.
87180         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87181         not (size_t) -1, since it's defined here.
87182
87183 2003-11-09  Karl Berry  <karl@gnu.org>
87184
87185         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87186
87187 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87188
87189         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87190         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87191         Reject sizes of exactly SIZE_MAX bytes.
87192         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87193         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87194
87195 2003-11-05  Bruno Haible  <bruno@clisp.org>
87196
87197         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87198         SIZE_MAX defined in <limits.h> on Solaris.
87199
87200 2003-11-04  Jim Meyering  <jim@meyering.net>
87201
87202         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87203         variable names, rather than @VAR@.
87204         * modules/poll: Likewise.
87205
87206 2003-11-04  Bruno Haible  <bruno@clisp.org>
87207
87208         * modules/xsize: New file.
87209         * modules/linebreak: Depend on xsize.
87210         * MODULES.html.sh (func_all_modules): Add xsize.
87211
87212 2003-11-04  Bruno Haible  <bruno@clisp.org>
87213
87214         * m4/xsize.m4: New file.
87215
87216 2003-11-04  Bruno Haible  <bruno@clisp.org>
87217
87218         * lib/xsize.h: New file.
87219         * lib/linebreak.c: Include xsize.h.
87220         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87221         argument for overflow.
87222         Suggested by Paul Eggert.
87223
87224 2003-11-03  Karl Berry  <karl@gnu.org>
87225
87226         * config/config.{guess,sub}: update from config.
87227
87228 2003-11-03  Jim Meyering  <jim@meyering.net>
87229
87230         * modules/userspec (lib_SOURCES): Add userspec.h.
87231         (Include): Add "userspec.h".
87232         Improve description.
87233
87234 2003-11-03  Jim Meyering  <jim@meyering.net>
87235
87236         * lib/userspec.c: Include "userspec.h".
87237         * lib/userspec.h: New file.
87238
87239 2003-11-03  Bruno Haible  <bruno@clisp.org>
87240
87241         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87242
87243 2003-11-03  Bruno Haible  <bruno@clisp.org>
87244
87245         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87246         available, to avoid (extremely rare) race condition.
87247         Suggested by Paul Eggert.
87248
87249 2003-11-02  Karl Berry  <karl@gnu.org>
87250
87251         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87252
87253 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87254
87255         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87256         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87257         (read_filesystem_list): Set and use me_type_malloced.
87258         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87259         whatever the type happens to be), for brevity and consistency.
87260         Check for size calculation overflow on Alphas running OSF/1.
87261
87262 2003-10-31  Jim Meyering  <jim@meyering.net>
87263
87264         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87265
87266         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87267
87268 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87269             Bruno Haible  <bruno@clisp.org>
87270
87271         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87272         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87273
87274 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87275
87276         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87277         netbsd*-gnu*.  Suggested by Robert Millan.
87278
87279 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87280
87281         * modules/group-member: Depend on stdbool.
87282
87283 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87284
87285         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87286
87287 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87288
87289         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87290         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87291         after the 'gnu' in these cases.  This fixes some bugs in the
87292         previous change, and is based on suggestions by Robert Millan.
87293
87294 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87295
87296         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87297         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87298         no longer needed.
87299         * lib/quotearg.c (quotearg_n_options): Use it.
87300         * lib/group-member.c: Include <stdbool.h>.
87301         (free_group_info): Arg is now const *; don't free arg.
87302         (get_group_info): Now returns bool and accepts struct group_info *,
87303         rather than returning a malloc'ed struct group_info *.
87304         All uses changed.  Check for overflow in internal size calculation.
87305
87306         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87307         rather than xmalloc/xrealloc.
87308         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87309         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87310         conformance bug: the old code used a pointer after freeing the
87311         storage that it addressed.
87312         * lib/hash.c (hash_initialize): Simplify the code by using
87313         xalloc_oversized rather than doing it by hand.
87314         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87315         the buffer preserved.  Use free and xmalloc instead.
87316         * lib/quotearg.c (quotearg_n_options): Likewise.
87317         Use a simpler test for size overflow.  Don't use xalloc_oversized
87318         because unsigned int might be wider than size_t (!); this suggests
87319         that we should switch from unsigned int to size_t for slot numbers.
87320
87321 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87322
87323         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87324         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87325         NetBSD kernels.  Requested by Richard Stallman.
87326
87327 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87328
87329         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87330         to allocate the returned structure.  Do not allocate a subarray,
87331         as x2nrealloc will do that.
87332         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87333         instead of xnrealloc.
87334         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87335
87336 2003-10-27  Bruno Haible  <bruno@clisp.org>
87337
87338         * lib/stdbool_.h: Better support for BeOS.
87339
87340 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87341
87342         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87343         now uses inline.
87344
87345 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87346
87347         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87348         callers that want to do their own size-overflow checking.  Include
87349         <stdbool.h>, since xalloc_oversized returns bool.
87350         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87351         to use xalloc_oversized.
87352
87353         Add two functions x2realloc, x2nrealloc, for programs that grow
87354         arrays dynamically by doubling their sizes.
87355         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87356         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87357         New functions.
87358
87359         Port to C99 semantics for 'inline' of external functions.
87360         Bug reported by Bruno Haible.
87361         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87362         with the old contents of xnmalloc.
87363         (xnmalloc, xmalloc): Use it.
87364         (xnrealloc_inline): New static inline function,
87365         with the old contents of xnrealloc.
87366         (xnrealloc, xrealloc): Use it.
87367
87368         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87369         that.
87370
87371 2003-10-26  Karl Berry  <karl@gnu.org>
87372
87373         * config/srclist.txt (COPYING.DOC): no longer available from
87374         /gd/gnuorg; don't know where the ultimate source is.
87375
87376 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87377
87378         Fix several address-calculation bugs in the hash modules,
87379         plus some minor code cleanup.
87380
87381         * lib/hash.h: Include <stdbool.h>, for bool.
87382         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87383         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87384         hash_get_n_entries, hash_get_max_bucket_length,
87385         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87386         hash_rehash): Use size_t rather than unsigned.
87387         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87388         hash_get_n_buckets_used, hash_get_n_entries,
87389         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87390         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87391         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87392         Likewise.
87393         (SIZE_MAX): Define if not defined.
87394         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87395         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87396         hash_print):
87397         Use const * when possible.
87398         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87399         (check_tuning): Fix bug: if tuning parameters were very close to
87400         0 or 1, rounding errors could have caused subscript violations.
87401         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87402         (hash_initialize): Add 'fail:' label
87403         to free table and return NULL, and use it to simplify code.
87404         Use calloc rather than clearing the storage ourself.
87405         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87406         buffer size calculations.
87407         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87408         Include <stddef.h>, for size_t.
87409         * lib/hash-pjw.c (hash_pjw): Likewise.
87410         Switch to method described by Bruno Haible.
87411         Include <limits.h>, for CHAR_BIT.
87412         (SIZE_BITS): New macro.
87413
87414 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87415
87416         * m4/getline.m4 (AM_FUNC_GETLINE):
87417         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87418         hosts.  Problem reported by Derek Robert Price in
87419         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87420         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87421         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87422
87423 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87424
87425         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87426         ceiling the allocation at NMAX bytes rather than silently
87427         discarding input bytes before NMAX is reached.  This makes
87428         a difference only if NMAX exceeds SIZE_MAX / 2.
87429
87430         * lib/obstack.c: Merge from glibc.
87431         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87432         Add libc_hidden_def (_obstack_newchunk).
87433         (_obstack_free) [! defined _LIBC]: Remove.
87434         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87435         a clone of the function body.
87436         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87437         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87438
87439         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87440         glibc.
87441         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87442         arg to memcpy.
87443
87444         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87445         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87446         Don't use lvalue casts, as GCC plans to remove support for them
87447         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87448         was also present in the non-GCC version, indicating that this
87449         code had always been buggy and had never been widely used.
87450         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87451         Use the fast variant of each macro, rather than copying the
87452         definiens of the fast variant; that way, we'll be more likely to
87453         catch future bugs in the fast variants.
87454
87455 2003-10-20  Bruno Haible  <bruno@clisp.org>
87456
87457         * modules/wait-process: New file.
87458         * MODULES.html.sh (func_all_modules): Add wait-process.
87459
87460 2003-10-20  Bruno Haible  <bruno@clisp.org>
87461
87462         * m4/wait-process.m4: New file.
87463
87464 2003-10-20  Bruno Haible  <bruno@clisp.org>
87465
87466         * lib/wait-process.h: New file, from GNU gettext.
87467         * lib/wait-process.c: New file, from GNU gettext.
87468
87469 2003-10-19  Jim Meyering  <jim@meyering.net>
87470
87471         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87472         HPUX 10.20.
87473
87474 2003-10-18  Karl Berry  <karl@gnu.org>
87475
87476         * config/config.guess: update from config.
87477
87478 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87479
87480         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87481         (getgroups): First arg is int, not size_t.
87482         Don't let 'free' mangle errno.
87483
87484 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87485
87486         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87487
87488 2003-10-16  Karl Berry  <karl@gnu.org>
87489
87490         * config/config.{guess,sub}: update from config.
87491
87492 2003-10-16  Jim Meyering  <jim@meyering.net>
87493
87494         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87495         memcpy.
87496
87497 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87498
87499         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87500         (SIZE_MAX): Remove.
87501         (new_exclude, add_exclude_file): Initial size no longer needs to
87502         be a power of 2.
87503         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87504         our own address arithmetic overflow checking.
87505
87506         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87507         (fnmatch): Do not alloca more than 2000 wide characters;
87508         instead, use malloc for large buffers.
87509         Check for address arithmetic overflow, and return -1
87510         with errno set to ENOMEM in that case.
87511         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87512         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87513         instead, return -1.  Check for address arithmetic overflow.
87514
87515 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87516
87517         Handle invalid suffixes and overflow independently, so that
87518         callers can treat them independently as needed.  Fix some bugs in
87519         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87520         suffix for a human-readable blocksize.  The major caller-visible
87521         change is the addition of a new
87522         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87523         that both overflow and suffix chars were found.
87524
87525         * lib/human.c (humblock): Don't check separately for invalid suffix
87526         char; that is xstrtoumax's job (now that its bug is fixed).
87527         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87528         INTMAX_MAX]: New macros.
87529         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87530         TYPE_MAXIMUM): New macros.
87531         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87532         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87533         if overflow occurs, as it's what __strtol does and it's more useful
87534         in practice.
87535         (__xstrtol): If __strtol reports some error other than ERANGE,
87536         reflect it to the caller as LONGINT_INVALID.  If it reports
87537         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87538         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87539         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87540         value.
87541         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87542         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87543         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87544         [defined UINTMAX_MAX]: New macros.
87545
87546 2003-10-14  Bruno Haible  <bruno@clisp.org>
87547
87548         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87549
87550 2003-10-14  Bruno Haible  <bruno@clisp.org>
87551
87552         * m4/sig_atomic_t: New file, from GNU gettext.
87553         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87554
87555 2003-10-14  Bruno Haible  <bruno@clisp.org>
87556
87557         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87558         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87559         Also use volatile where needed.
87560
87561 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87562
87563         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87564         Change maintainer from Bruno Haible to 'all'.
87565
87566 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87567
87568         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87569
87570 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87571
87572         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87573         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87574         and define in terms of the other primitives.
87575         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87576         (SIZE_MAX): Define if not already defined.
87577         (array_size_overflow): New function.
87578         (xalloc_die): Abort instead of exiting if 'error' returns.
87579         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87580         (xmalloc, xrealloc): Use them.
87581         (xcalloc): Check for address arithmetic overflow.
87582         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87583         a bit faster than strcpy.
87584
87585 2003-10-10  Simon Josefsson  <jas@extundo.com>
87586
87587         * modules/argp (Depends-on): Add restrict and strcase.
87588
87589 2003-10-10  Simon Josefsson  <jas@extundo.com>
87590
87591         * m4/argp.m4: Add AC_C_INLINE.
87592
87593 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87594
87595         Merge getpass from libc, plus a few fixes.
87596
87597         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87598         Include <stdbool.h>.
87599         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87600         __fsetlocking to empty.
87601         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87602         do include <bits/libc-lock.h>.
87603         Do not include <fcntl.h>; not needed.
87604         [_LIBC]: Include <wchar.h>.
87605         (NOTCANCEL_MODE): New macro.
87606         (flockfile, funlockfile) [_LIBC]: New macros.
87607         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87608         [!_LIBC]: New macros.
87609         (call_fclose): New function.
87610         (getpass): Use it.  Save tty stream separately; this simplifies the
87611         code and makes it more reliable if stdin happens to equal stdout.
87612         Invoke __fsetlocking on tty.
87613         Handle thread cancellation if needed.
87614         Namespace cleanup (use __tcgetattr, __getline).
87615         Use bool for Booleans.
87616         [USE_IN_LIBIO]: Handle wide streams.
87617         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87618         stream might go where.
87619
87620         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87621         doesn't have to include <stdio.h> before us.
87622         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87623         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87624         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87625         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87626         if not declared, so that we can use getpass.c code from libc without
87627         rewriting it.
87628         (flockfile, ftrylockfile, funlockfile): New macros.
87629
87630 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87631
87632         * modules/getpass: Depend on stdbool.
87633
87634 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87635
87636         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87637
87638 2003-10-07  Karl Berry  <karl@gnu.org>
87639
87640         * config/config.{guess,sub}: update from config.
87641
87642 2003-10-06  Jim Meyering  <jim@meyering.net>
87643             Bruno Haible  <bruno@clisp.org>
87644
87645         This lets translators provide better translations for the
87646         "Written by ..." part of --version output.
87647         * lib/version-etc.h: Include stdarg.h.
87648         (version_etc_copyright): Declare as readonly.
87649         (version_etc): Make this function variadic with a NULL-terminated list
87650         of author name strings.
87651         (version_etc_va): New declaration.
87652         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87653         (version_etc_copyright): Declare as readonly.
87654         (version_etc_va): New function. Provide a different translatable string
87655         for each possible number of authors < 10. Abbreviate when there are 10
87656         authors or more.
87657         (version_etc): Make this function variadic. Call version_etc_va.
87658         Suggestion from Gary V. Vaughan.
87659
87660         * lib/long-options.h (parse_long_options): Change prototype: the
87661         authors string is moved to the end and becomes variadic.
87662         * lib/long-options.c: Include stdarg.h.
87663         (parse_long_options): Make this function variadic, too.
87664         Call version_etc_va, not version_etc.
87665
87666 2003-10-06  Bruno Haible  <bruno@clisp.org>
87667
87668         * modules/version-etc-2: Remove file.
87669         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87670
87671 2003-10-06  Bruno Haible  <bruno@clisp.org>
87672
87673         * modules/fatal-signal: New file.
87674         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87675
87676 2003-10-06  Bruno Haible  <bruno@clisp.org>
87677
87678         * m4/fatal-signal.m4: New file.
87679         * m4/signalblocking.m4: New file, from GNU gettext.
87680
87681 2003-10-06  Bruno Haible  <bruno@clisp.org>
87682
87683         * lib/version-etc-2.h: Remove file.
87684         * lib/version-etc-2.c: Remove file.
87685
87686 2003-10-06  Bruno Haible  <bruno@clisp.org>
87687
87688         * lib/fatal-signal.h: New file, from GNU gettext.
87689         * lib/fatal-signal.c: New file, from GNU gettext.
87690
87691 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87692
87693         * README: Rework advice for preventing empty .o files.
87694         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87695         not <sys/types.h>.
87696
87697 2003-10-04  Karl Berry  <karl@gnu.org>
87698
87699         * lib/argp*: update from libc.
87700
87701 2003-10-04  Karl Berry  <karl@gnu.org>
87702
87703         * config/config.{guess,sub}: update from config.
87704
87705 2003-10-02  Bruno Haible  <bruno@clisp.org>
87706
87707         * modules/lchown (Include): Add lchown.h.
87708         * modules/time_r (Include): Use "..." syntax.
87709         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87710
87711 2003-10-01  Simon Josefsson  <jas@extundo.com>
87712
87713         * MODULES.html.sh (func_all_modules): Move gethostname from section
87714         'based on' to section 'lacking' POSIX:2001.
87715
87716 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87717
87718         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87719         to output mode on the same stream.
87720
87721 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87722
87723         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87724         Fix arg typo in previous patch.
87725
87726 2003-09-28  Jim Meyering  <jim@meyering.net>
87727
87728         * lib/error.c: Correct cpp indentation.
87729
87730 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87731
87732         * modules/free: New file.
87733
87734 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87735
87736         * m4/free.m4: New file.
87737
87738 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87739
87740         * lib/minmax.h (MIN, MAX)
87741         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87742         Omit the special code that used __typeof__, since we worry that
87743         it could be more trouble than it's worth.  See:
87744         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87745         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87746
87747         * lib/free.c: New file.
87748
87749 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87750
87751         Trivial fixes to Makefile.am parts of module listings.
87752         * modules/strstr: Append strstr.h to lib_SOURCES.
87753         * modules/strcase: Likewise, for strcase.h.
87754
87755 2003-09-27  Karl Berry  <karl@gnu.org>
87756
87757         * config/mkinstalldirs: update from automake.
87758
87759 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87760
87761         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87762         (error_tail): Do not loop, reallocating temporary buffer, since
87763         the output cannot contain more wide characters than the input
87764         contains bytes, the size must be big enough already.  This avoids
87765         one potential size overflow calculation.  Check for size overflow
87766         when calculating temporary buffer size.  Free temporary buffer
87767         when done, if it was allocated with malloc; this plugs a memory
87768         leak.  Remove casts from void * to pointers, that are no longer
87769         needed now that we're assuming C89 or better.
87770
87771         Merge error changes from glibc.
87772
87773         * lib/error.c, error.h: Update copyright notice header to match glibc.
87774         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87775         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87776         Disable cancellation while printing error.
87777         * lib/error.h: Prepend __ to parameter names.
87778
87779 2003-09-26  Jim Meyering  <jim@meyering.net>
87780
87781         * lib/error.c (error_tail): Move some declarations
87782         into inner scope where the local variables are used.
87783
87784 2003-09-26  Bruno Haible  <bruno@clisp.org>
87785
87786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87787         stpncpy().
87788         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87789
87790 2003-09-26  Bruno Haible  <bruno@clisp.org>
87791
87792         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87793         (stpncpy): Define as alias for gnu_stpncpy.
87794         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87795
87796 2003-09-25  Simon Josefsson  <jas@extundo.com>
87797
87798         * lib/xgetdomainname.h: New file.
87799         * lib/xgetdomainname.c: New file.
87800
87801 2003-09-25  Simon Josefsson  <jas@extundo.com>
87802             Bruno Haible  <bruno@clisp.org>
87803
87804         * modules/getdomainname: New file.
87805         * modules/xgetdomainname: New file.
87806         * MODULES.html.sh (func_all_modules): Add getdomainname,
87807         xgetdomainname.
87808
87809 2003-09-25  Simon Josefsson  <jas@extundo.com>
87810             Bruno Haible  <bruno@clisp.org>
87811
87812         * m4/getdomainname.m4: New file.
87813
87814 2003-09-25  Simon Josefsson  <jas@extundo.com>
87815             Bruno Haible  <bruno@clisp.org>
87816
87817         * lib/getdomainname.h: New file.
87818         * lib/getdomainname.c: New file.
87819
87820 2003-09-25  Karl Berry  <karl@gnu.org>
87821
87822         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87823
87824 2003-09-25  Karl Berry  <karl@gnu.org>
87825
87826         * config/install-sh: update from automake.
87827
87828 2003-09-25  Bruno Haible  <bruno@clisp.org>
87829
87830         * modules/version-etc-2: New file, from modules/version-etc with
87831         modifications.
87832         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87833
87834 2003-09-25  Bruno Haible  <bruno@clisp.org>
87835
87836         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87837         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87838
87839 2003-09-24  Simon Josefsson  <jas@extundo.com>
87840
87841         * modules/xgethostname: Add xgethostname.h.
87842
87843 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87844
87845         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87846         the buffer associated with the argument.  Bug reported by
87847         Simon Josefsson.
87848
87849 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87850
87851         * README: Document assumptions that 'int' is at least 32 bits
87852         wide, that integer arithmetic is 2's complement without overflow,
87853         that there are no holes in integer values, that adding sizes of
87854         two nonoverlapping objects can't overflow, and that all-bits-zero
87855         yields scalar zero.  Fix spelling and capitalization typos.
87856
87857 2003-09-19  Karl Berry  <karl@gnu.org>
87858
87859         * lib/argp.h: update from libc.
87860
87861 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87862
87863         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87864         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87865         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87866
87867 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87868
87869         * gnulib-tool: Use "test -h", not "test -L", for portability
87870         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87871         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87872         (sed_extract_prog): Issue s commands one-by-one, rather than
87873         using \| in one s command.
87874
87875 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87876
87877         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87878         input error, instead of returning NULL the next time we are called
87879         (and therefore losing track of errno).
87880
87881 2003-09-16  Bruno Haible  <bruno@clisp.org>
87882
87883         * gnulib-tool (func_create_testdir): Warn about duplicated
87884         dependencies.
87885
87886 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87887
87888         * modules/argmatch, modules/fatal, modules/obstack,
87889         modules/xalloc, modules/xgethostname: Sort dependencies by
87890         importance, not alphabetically.
87891
87892 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87893
87894         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87895         fails, so that the caller gets the proper errno.
87896
87897         * lib/readutmp.c (read_utmp): Likewise.
87898         Check for fstat error.  Close stream and free storage
87899         when failing.
87900
87901 2003-09-14  Karl Berry  <karl@gnu.org>
87902
87903         * config/srclist.txt (strdup.c): disable for c89 changes.
87904
87905 2003-09-14  Jim Meyering  <jim@meyering.net>
87906
87907         * lib/getloadavg.c: Correct cpp indentation.
87908         * lib/strdup.c: Likewise.
87909         * lib/vasnprintf.c: Likewise.
87910
87911 2003-09-14  Bruno Haible  <bruno@clisp.org>
87912
87913         * modules/fwriteerror: New file.
87914         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87915
87916 2003-09-14  Bruno Haible  <bruno@clisp.org>
87917
87918         * lib/fwriteerror.h: New file.
87919         * lib/fwriteerror.c: New file.
87920
87921 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87922
87923         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87924         modules/xgethostname, modules/xalloc: Depend on exit.
87925
87926 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87927
87928         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87929
87930         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87931         and AC_MINIX, too, so that their extensions are available.
87932
87933         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87934         This macro has been superseded by gl_BACKUPFILE.
87935
87936         More patches to assume C89 or better.
87937
87938         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87939
87940         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87941         unconditionally.
87942         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87943         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87944         Include <string.h>, <stdlib.h> unconditionally.
87945         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87946         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87947         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87948         headers or for string.h.
87949         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87950         or strtoul.
87951
87952         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87953         headers.
87954         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87955         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87956         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87957         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87958         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87959         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87960         memcpy, memset.
87961         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87962         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87963         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87964         strtol.
87965         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87966         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87968         strtoul.
87969
87970 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87971
87972         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87973         * lib/obstack.c [!defined _LIBC]: Likewise.
87974         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87975         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87976         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87977
87978         More changes to assume C89 or better.
87979
87980         * lib/error.c (error_tail): Assume vprintf.
87981
87982         * lib/argmatch.c (getenv): Remove decl.
87983         * lib/progreloc.c (get_full_program_name): Define via prototype.
87984         * lib/setenv.c (clearenv): Likewise.
87985         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87986         needed.
87987         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87988         (malloc, memcpy): Remove decls.
87989         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87990         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87991         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87992         (memcpy): Remove macro.
87993         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87994         (__P): Remove.  All uses removed.
87995         (PTR): Remove.  All uses changed to void *.
87996         (CHAR_BIT, NULL): Remove.
87997         (spaces, zeros, memset_space, memset_zero)
87998         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87999         Remove.
88000         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88001         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88002         Define with prototype.
88003         Remove now-unnecessary prototype decl.
88004         (extra_args_spec): Assume ANSI C.  All uses changed.
88005         (extra_args_spec_iso): Remove.
88006         (my_strftime, emacs_strftimeu): Define via prototype.
88007         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88008         unconditionally.
88009         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88010         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88011         (strtoul, strtol): Remove decls.
88012         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88013         LONG_MAX): Remove.
88014         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88015         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88016         (LOCALE_PARAM_PROTO): New macro.
88017         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88018         (INTERNAL (strtol), strtol): Define with a prototype.
88019         (PARAMS): Remove.  All uses removed.
88020         * lib/tempname.c: Include <string.h> unconditionally.
88021         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88022         * lib/xgethostname.c (main): Define with a prototype.
88023         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88024         Include <stdlib.h> unconditionally.
88025         (calloc, malloc, realloc, free): Remove decls.
88026         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88027         Include <stdlib.h> unconditionally.  Sort include file names.
88028         (strtod): Remove.
88029         (xstrtod): Define with a prototype.
88030         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88031         (strtol, strtoul): Remove decls.
88032
88033 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88034
88035         More patches to assume C89 or better.
88036         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88037         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88038         string.h, memchr, STDC_HEADERS.
88039
88040 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88041
88042         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88043         Include <stdlib.h>, <string.h> unconditionally.
88044         Remove now-unnecessary cast to char *.
88045         * lib/strnlen.c: Include <string.h> unconditionally.
88046         * lib/yesno.c (yesno): Define with a prototype.
88047
88048 2003-09-11  Bruno Haible  <bruno@clisp.org>
88049
88050         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88051
88052 2003-09-10  Jim Meyering  <jim@meyering.net>
88053
88054         * lib/error.c: Correct indentation of cpp directives.
88055
88056 2003-09-10  Bruno Haible  <bruno@clisp.org>
88057
88058         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88059         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88060         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88061         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88062         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88063         <stdlib.h> and <string.h> checks.
88064         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88065         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88066
88067 2003-09-10  Bruno Haible  <bruno@clisp.org>
88068
88069         * lib/strcspn.c: Include <string.h> unconditionally.
88070         * lib/strpbrk.c: Include <string.h> unconditionally.
88071         * lib/strstr.c: Include <string.h> unconditionally.
88072         * lib/unicodeio.c: Include <string.h> unconditionally.
88073         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88074         * lib/unsetenv.c: Likewise.
88075         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88076         * lib/yesno.c: Include <stdlib.h> unconditionally.
88077         (rpmatch): Add prototype.
88078
88079 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88080
88081         More patches to assume C89 or better.
88082         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88083         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88084         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88085         or for string.h.
88086         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88087         stdlib.h.
88088         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88089         C headers.
88090         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88091         string.h.
88092         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88093         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88094         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88095         or for string.h.
88096         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88097         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88098         C headers.
88099         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88100         memcpy.
88101         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88102         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88103         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88104         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88105         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88106         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88107         string.h, free.
88108         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88109         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88110         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88111         C headers, or for string.h.
88112         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88113         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88114         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88115         headers, memory.h, stdlib.h, string.h, strings.h.
88116         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88117         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88118         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88119         strchr.
88120         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88121         headers, memory.h, string.h.
88122         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88123         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88124         free.
88125         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88126         headers.
88127         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88128         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88129         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88130         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88131         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88132
88133 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88134
88135         More K&R removal.
88136
88137         * lib/acosl.c (main): Use a prototype.
88138         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88139         tanl.c: Likewise.
88140
88141         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88142
88143         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88144         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88145         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88146         with a prototype.
88147         * lib/getopt.c (const): Remove macro.
88148         Include <string.h> unconditionally.
88149         (my_index): Remove; all uses changed to strchr.
88150         (strlen): Remove decl.
88151         (exchange): Remove forward decl; no longer needed.
88152         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88153         Define with prototype.
88154         * lib/getopt1.c (const): Remove macro.
88155         (getopt_long, getopt_long_only, main): Define with prototype.
88156
88157         * lib/getugroups.c: Include <string.h> unconditionally.
88158
88159         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88160         (getusershell, setusershell, endusershell, readname, main):
88161         Define with prototypes.
88162
88163         * lib/group-member.c: Include group-member.h first.
88164         Include <stdlib.h> unconditionally.
88165
88166         * lib/hard-locale.c: Include hard-locale.h first.
88167         Include <stdlib.h>, <string.h> unconditionally.
88168
88169         * lib/hash.c (free, malloc): Remove decls.
88170         Include <stdlib.h> unconditionally.
88171
88172         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88173         (getenv): Do not declare.
88174
88175         * lib/idcache.c: Include <string.h> unconditionally.
88176
88177         * lib/long-options.c: Include long-options.h first, to test interface.
88178         Include <stdlib.h> unconditionally.
88179
88180         * lib/makepath.c: Include makepath.h first, to test interface.
88181         Include <stdlib.h> and <string.h> unconditionally.
88182
88183         * lib/linebuffer.c: Include <stdlib.h>.
88184         (free): Remove decl.
88185
88186         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88187         stddef.h. rpl_malloc returns void *, not char *.
88188         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88189         prototype.
88190
88191         * lib/md5.h: Include <limits.h> unconditionally.
88192         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88193         (__P): Remove; all uses removed.
88194         * lib/md5.c: Include "md5.h" first.
88195         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88196         md5_buffer, md5_process_bytes, md5_process_block):
88197         Define with prototypes.
88198         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88199         * lib/sha.c: Include "sha.h" first.
88200         Include <stdlib.h>, <string.h> unconditionally.
88201
88202         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88203         * lib/memcmp.c (__ptr_t): Likewise.
88204         * lib/memrchr.c (__ptr_t): Likewise.
88205         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88206         Include <string.h> unconditionally.
88207         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88208         * lib/memchr.c: Include <stdlib.h> unconditionally.
88209         * lib/memchr.c (LONG_MAX): Remove.
88210         * lib/memrchr.c (LONG_MAX): Likewise.
88211         * lib/memchr.c (__memchr): Define via a prototype.
88212         * lib/memrchr.c (__memrchr): Likewise.
88213         * lib/memcmp.c (__P): Remove, and remove all uses.
88214         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88215         Remove forward decls; no longer needed.
88216         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88217         Use types required by C89 in prototype.
88218
88219         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88220         * lib/savedir.c: Likewise.
88221         * lib/mkdir.c (free): Remove decl.
88222         * lib/rmdir.c (rmdir): Define with a prototype.
88223         * lib/savedir.c: Include savedir.h first, to test interface.
88224
88225         * lib/mktime.c (STDC_HEADERS): Remove.
88226         Include <stdlib.h>, <string.h> unconditionally.
88227
88228         * lib/modechange.c: Include <stdlib.h> unconditionally.
88229         (malloc): Remove decl.
88230
88231         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88232         (free): Remove decl.
88233
88234         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88235         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88236         (This type really should be intptr_t, but that's a C99ism.)
88237         (_obstack_memcpy): Remove: all uses changed to memcpy.
88238         Include <string.h> unconditionally.
88239         (struct obstack): Assume __STDC__ for types of members
88240         chunkfun, freefun, extra_arg.
88241         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88242         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88243         obstack_begin, obstack_specify_allocation,
88244         obstack_specify_allocation_with_arg, obstack_chunkfun,
88245         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88246         Remove unprototyped decls and the macros that use them.
88247         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88248         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88249         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88250         (defined __STDC__ && __STDC__)]:
88251         Remove nonprototyped code.
88252         Include <stdlib.h> unconditionally.
88253         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88254         _obstack_allocated_p, _obstack_free, obstack_free,
88255         _obstack_memory_used, print_and_abort):
88256         Define using prototypes.
88257         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88258         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88259         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88260         obstack_next_free, obstack_object_size, obstack_room) [0]:
88261         Remove unused, unprototyped code.
88262
88263         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88264
88265         * lib/physmem.c (physmem_total, physmem_available, main): Define
88266         with prototypes.
88267
88268         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88269         (main): Define with a prototype.
88270
88271         * lib/posixver.c (getenv): Remove decl.
88272
88273         * lib/putenv.c (malloc): Returns void *, not char *.
88274         Include <string.h> unconditionally.
88275         (strchr, memcpy, NULL): Do not define.
88276
88277         * lib/readtokens.c: Include readtokens.h first, to test interface.
88278         Include <stdlib.h>, <string.h> unconditionally.
88279         (init_tokenbuffer): Define with a prototype.
88280
88281         * lib/regex.c (PARAMS): Remove.  All uses removed.
88282         All uses of _RE_ARGS removed, too.
88283         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88284         unconditionally.
88285         (bzero): Assume memset exists.
88286         (memcmp, memcpy, NULL): Remove.
88287         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88288         char, or assignments to local vars of type signed char.
88289         (init_syntax_once, PREFIX(extract_number_and_incr),
88290         PREFIX(print_partial_compiled_pattern),
88291         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88292         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88293         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88294         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88295         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88296         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88297         wcs_compile_range, byte_compile_range, truncate_wchar,
88298         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88299         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88300         count_mbs_length, wcs_re_match_2_internal,
88301         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88302         PREFIX(alt_match_null_string_p),
88303         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88304         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88305         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88306         now-unnecessary declaration, if any.
88307         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88308         regcomp, regexec):
88309         Remove now-unnecessary casts among pointer types.
88310         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88311
88312         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88313         (free): Remove decl.
88314
88315         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88316
88317         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88318         (free): Remove decl.
88319
88320         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88321         * lib/xgetcwd.c: Likewise.
88322
88323         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88324         (free): Remove decl.
88325
88326         * lib/strchrnul.c (strchrnul): Define with a prototype.
88327         Fix bug: c_in was not converted to char before searching.
88328
88329         The following changes are not K&R related:
88330
88331         * lib/group-member.h: Include <sys/types.h>, so that this file is
88332         self-contained.
88333         * lib/makepath.h: Likewise.
88334
88335         * lib/getusershell.c (readname, default_index, line_size, readname):
88336         Use size_t, not int, for sizes.
88337         (readname): If the size overflows, report an error instead of
88338         looping forever.
88339
88340 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88341
88342         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88343         libc.
88344
88345 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88346
88347         * README: New section: portability guidelines.
88348
88349 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88350
88351         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88352         C89 spec.
88353
88354 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88355
88356         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88357
88358 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88359
88360         Assume C89 or better; remove K&R cruft.
88361         A few of these changes were first proposed by Derek Robert Price
88362         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88363
88364         * lib/addext.c: Include <string.h> unconditionally.
88365         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88366         Don't declare getenv or malloc.
88367
88368         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88369         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88370         (NULL): Remove.
88371         (find_stack_direction, alloca): Use prototypes.
88372
88373         * lib/atexit.c (atexit): Define using a prototype.
88374
88375         * lib/basename.c, dirname.c, stripslash.c:
88376         Include <string.h> unconditionally.
88377
88378         * lib/bcopy.c: Include <stddef.h>.
88379         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88380
88381         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88382
88383         * lib/error.h (error, error_at_line, error_print_progname)
88384         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88385         * lib/error.c: Include error.h first, to check interface.
88386         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88387         (VA_START): Remove; all uses changeed to va_start.
88388         (exit, strerror): Remove decls.
88389         (error_print_progname): Prototype uncondionally.
88390         Don't include <errno.h>; no longer needed.
88391         (private_strerror): Remove.
88392         (error_tail): Always define.
88393         (error, error_at_line): Assume C89 or better; always use prototypes.
88394         * lib/fatal.c: Include "fatal.h" first, to test interface.
88395         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88396         (VA_START): Remove; all uses changed to va_start.
88397         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88398         this case.
88399         (exit): Remove decl.
88400         (fatal): Prototype unconditionally.  Assume va_start works.
88401         Abort at end, to pacify gcc.
88402
88403         * lib/euidaccess.c (main): Define with a prototype.
88404
88405         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88406
88407         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88408
88409         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88410         prototypes.
88411         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88412         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88413         (getenv): Remove decl.
88414         (fnmatch): Define using a prototype.
88415         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88416         (FCT): Define using a prototype.
88417
88418         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88419
88420         * lib/gethostname.c: Include <stddef.h>.
88421         (gethostname): Define with prototype.  Length is size_t, not int.
88422
88423 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88424
88425         Assume C89 or better; remove K&R cruft.
88426         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88427         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88428         string.h, getenv, malloc.
88429         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88430         headers.
88431         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88432         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88433         do not check for strerror.
88434         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88435         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88436         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88437         do not check for doprnt or vprintf.
88438         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88439         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88440
88441 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88442
88443         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88444         getversion.c should have been removed then, but was accidentally
88445         preserved.
88446
88447         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88448         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88449
88450 2003-09-08  Karl Berry  <karl@gnu.org>
88451
88452         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88453                 config, forget about prep.
88454
88455         * config/depcomp, missing: update from automake.
88456
88457 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88458
88459         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88460         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88461
88462 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88463
88464         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88465         copy_tm_result.  Bug reported by Simon Josefsson in
88466         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88467
88468 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88469
88470         * m4/time_r.m4: New file.
88471         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88472         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88473         is. Check for timegm declaration.
88474         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88475         Do not check for gmtime_r.
88476         Replace mktime if __mktime_internal does not exist and if mktime
88477         hasn't been replaced already.
88478
88479 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88480
88481         * lib/time_r.c, lib/time_r.h: New files.
88482
88483         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88484         __localtime_r.
88485         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88486         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88487
88488         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88489         __gmtime_r.
88490         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88491         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88492         Include <time_r.h>.
88493
88494         * lib/timegm.c: Switch to glibc implementation, with the following
88495         changes:
88496         [defined HAVE_CONFIG_H]: Include <config.h>.
88497         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88498         (__mktime_internal) [!defined _LIBC]: New decl.
88499         (__gmtime_r) [!defined _LIBC]: New macro and function.
88500         (timegm): Use a prototype, since gnulib assumes C89.
88501         Do not bother declaring tmp to be const, as it's not really usefu.
88502         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88503         (timegm): Declare only if HAVE_DECL_TIMEGM.
88504
88505 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88506
88507         * MODULES.html.sh (func_all_modules): Add time_r.
88508         * modules/time_r: New file.
88509         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88510         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88511
88512 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88513
88514         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88515         Bug reported by Lute Kamstra in
88516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88517
88518         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88519         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88520         course with correspondingly smaller numbers for tomorrow and
88521         yesterday.  From Tadayoshi Funaba.  Originally installed into
88522         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88523         coreutils merge?).
88524
88525 2003-08-31  Simon Josefsson  <jas@extundo.com>
88526
88527         * modules/timegm: New file.
88528         * MODULES.html.sh (func_all_modules): Add timegm.
88529
88530 2003-08-31  Simon Josefsson  <jas@extundo.com>
88531
88532         * m4/timegm.m4: New file.
88533
88534 2003-08-31  Simon Josefsson  <jas@extundo.com>
88535
88536         * lib/timegm.h: New file.
88537         * lib/timegm.c: New file.  Based on
88538         wget-1.8.2/src/http.c:mktime_from_utc.
88539
88540 2003-08-31  Karl Berry  <karl@gnu.org>
88541
88542         * lib/argp.h: update from libc.
88543
88544 2003-08-28  Bruno Haible  <bruno@clisp.org>
88545
88546         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88547         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88548         followed by '#define fnmatch fnmatch_posix' gives an error.
88549
88550 2003-08-28  Bruno Haible  <bruno@clisp.org>
88551
88552         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88553         warning on QNX, which defines O_BINARY to 000000.
88554
88555 2003-08-27  Jim Meyering  <jim@meyering.net>
88556
88557         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88558         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88559         would fail after 32.  Reported by Danny Levinson.  Details here:
88560         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88561
88562 2003-08-24  Bruno Haible  <bruno@clisp.org>
88563
88564         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88565         MSVC7 <stdio.h> is included later.
88566
88567 2003-08-22  Simon Josefsson  <jas@extundo.com>
88568
88569         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88570
88571 2003-08-20  Karl Berry  <karl@gnu.org>
88572
88573         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88574
88575 2003-08-20  Bruno Haible  <bruno@clisp.org>
88576
88577         * modules/progname: New file.
88578         * MODULES.html.sh (func_all_modules): Add progname.
88579
88580 2003-08-20  Bruno Haible  <bruno@clisp.org>
88581
88582         * lib/progname.h: New file, from GNU gettext.
88583         * lib/progname.c: New file, from GNU gettext.
88584         * lib/progreloc.c: New file, from GNU gettext.
88585
88586 2003-08-19  Jim Meyering  <jim@meyering.net>
88587
88588         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88589         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88590
88591 2003-08-19  Bruno Haible  <bruno@clisp.org>
88592
88593         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88594         more.
88595
88596 2003-08-19  Bruno Haible  <bruno@clisp.org>
88597
88598         * lib/xstrdup.c: Assume <string.h> exists.
88599
88600 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88601
88602         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88603         in makefile rules.
88604
88605 2003-08-18  Jim Meyering  <jim@meyering.net>
88606
88607         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88608         * m4/lib-ld.m4: Likewise.
88609
88610 2003-08-18  Jim Meyering  <jim@meyering.net>
88611
88612         * lib/setenv.h: Indent nested cpp directive.
88613         * lib/vasnprintf.c: Remove trailing blanks.
88614
88615 2003-08-17  Simon Josefsson  <jas@extundo.com>
88616
88617         * modules/xstrndup: New file.
88618         * MODULES.html.sh (func_all_modules): Add xstrndup.
88619
88620 2003-08-17  Simon Josefsson  <jas@extundo.com>
88621
88622         * modules/argp: Fix autoconf macro name. Add more dependencies.
88623
88624 2003-08-17  Simon Josefsson  <jas@extundo.com>
88625
88626         * m4/xstrndup.m4: New file.
88627
88628 2003-08-17  Simon Josefsson  <jas@extundo.com>
88629
88630         * m4/argp.m4: New file.
88631
88632 2003-08-17  Simon Josefsson  <jas@extundo.com>
88633             Bruno Haible  <bruno@clisp.org>
88634
88635         * lib/xstrndup.h: New file.
88636         * lib/xstrndup.c: New file.
88637
88638 2003-08-17  Bruno Haible  <bruno@clisp.org>
88639
88640         * modules/strndup (Files, Include): Add lib/strndup.h.
88641
88642 2003-08-17  Bruno Haible  <bruno@clisp.org>
88643
88644         * modules/euidaccess (Files): Add lib/euidaccess.h.
88645
88646 2003-08-17  Bruno Haible  <bruno@clisp.org>
88647
88648         * lib/strndup.h: New file.
88649
88650 2003-08-17  Bruno Haible  <bruno@clisp.org>
88651
88652         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88653         like AC_GNU_SOURCE.
88654         * modules/extensions (configure.ac): Comment out the invocation of
88655         gl_USE_SYSTEM_EXTENSIONS.
88656
88657 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88658
88659         Merges from coreutils, etc.
88660         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88661         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88662         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88663         fixing a typo.
88664         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88665         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88666
88667 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88668
88669         Document merge from coreutils.
88670         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88671         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88672         * modules/utime: Add m4/utimes-null.m4.
88673
88674 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88675
88676         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88677         space, undoing this 2003-08-12 change:
88678         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88679
88680 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88681
88682         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88683         strtoul.c from libc, undoing this 2003-08-12 change:
88684         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88685
88686 2003-08-16  Jim Meyering  <jim@meyering.net>
88687
88688         Merges from coreutils.
88689         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88690         prefix.  Adjust cache variables similarly.  Create 500 rather than
88691         just 300 files, to exercise bug on Darwin6.5, too.
88692         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88693         $missing_dir.
88694         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88695         AM_SYS_POSIX_TERMIOS.
88696         Reported by mkc@mathdogs.com.
88697         Also change use of $am_cv_sys_posix_termios
88698         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88699         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88700         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88701         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88702         in /proc/mounts until it finds one with matching device number.  This
88703         is unnecessary when the FILE argument *is* a mount point.  No stat call
88704         is necessary in that case.  So, disable the statvfs-testing code on
88705         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88706         as RedHat bug# 84846.
88707         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88708         to 1MB, so as not to render systems with no stack size limit (e.g.,
88709         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88710         Include <unistd.h>.  On some systems,
88711         it is required for the definition of _SC_PAGESIZE.
88712
88713 2003-08-16  Jim Meyering  <jim@meyering.net>
88714
88715         Merge from coreutils.
88716         * lib/xstrtoimax.c: #else #if -> #elif.
88717         * lib/xstrtoumax.c: Likewise.
88718
88719 2003-08-16  Jim Meyering  <jim@meyering.net>
88720
88721         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88722         * m4/utimes.m4: Removed.
88723         * m4/utimes-null.m4: Renamed from utimes.m4.
88724
88725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88726         to 1MB, so as not to render systems with no stack size limit (e.g.,
88727         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88728         Include <unistd.h>.  On some systems,
88729         it is required for the definition of _SC_PAGESIZE.
88730
88731 2003-08-16  Jim Meyering  <jim@meyering.net>
88732         and Paul Eggert  <eggert@cs.ucla.edu>
88733
88734         Merges from coreutils, etc.
88735
88736         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88737         using the latest version from cvs.  This avoids problems with #line
88738         directives using a vendor (Sun) compiler.
88739         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88740         Don't set GETGROUPS_LIB here; now it's
88741         done via getgroups.m4's wrapper function.
88742         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88743         rather than just in sh-util/configure.in, so that the
88744         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88745         same.
88746         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88747         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88748         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88749         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88750         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88751         Remove code that is now done by the newly-required macros.
88752         Append $(EXEEXT) to DF_PROG.
88753         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88754         Do not invoke or require the following here,
88755         since prereq.m4 or some gnulib .m4 now does this for us:
88756         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88757         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88758         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88759         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88760         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88761         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88762         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88763         AC_FUNC_OBSTACK.
88764         Do not replace the following functions, as this is now the job
88765         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88766         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88767         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88768         atexit getpass, strdup, getpagesize.
88769         Replace 'raise'.
88770         Do not check for the following functions, as this is now the job
88771         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88772         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88773         setregid.
88774         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88775         Check for sys/sysctl.h.
88776         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88777         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88778         of checking for ssize_t ourselves.
88779
88780         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88781         Require every macro that gnulib/modules/* suggests for us.
88782         (jm_PREREQ_ADDEXT): New macro.
88783         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88784         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88785
88786         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88787         (gl_PHYSMEM): Use it.
88788         Also check for `table' function.
88789         Check for new headers and functions.
88790         Add check for sys/sysmp.h.
88791         With suggestions from Kaveh Ghazi.
88792         Ignore headers that are present but cannot be compiled.  This
88793         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88794         C 5.4.
88795
88796 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88797
88798         Document merge from coreutils.
88799         * modules/userspec: Depend on posixver.
88800         * modules/strftime: Depend on tzset.
88801
88802 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88803
88804         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88805         rather than tab, after '#' in shell-script copyright notices.
88806         Suggested by Bruno Haible.
88807
88808 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88809
88810         * config/srclist-update: Use three spaces, rather than tab, after '#'
88811         in shell-script copyright notices.  Suggested by Bruno Haible.
88812         Remove unnecessary parenthesization in regular expression.
88813
88814 2003-08-15  Jim Meyering  <jim@meyering.net>
88815
88816         Merge from coreutils.
88817         * lib/xgethostname.c: Include <stdlib.h>.
88818         (xghostname): Don't exit for anything other than memory-related
88819         failure; just return NULL.
88820         * lib/userspec.c: Include "posixver.h".
88821         (parse_user_spec): Accept `.' as a separator only
88822         in pre-POSIX-200112 mode.
88823         * lib/strtoimax.c: Use #elif rather than #else #if.
88824         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88825         Remove function, now that we can rely on a working tzset function.
88826         [!_LIBC]: Ensure that the required autoconf test has been run.
88827         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88828         Use underlying_strftime for %r.
88829         * lib/sha.c: Merge in some clean-up and optimization changes from
88830         glibc.
88831         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88832         Ensure that it is a multiple of 64.
88833         Rearrange loop exit tests so as to avoid performing an
88834         additional fread after encountering an error or EOF.
88835         * lib/realloc.c: Update copyright date.
88836
88837 2003-08-15  Jim Meyering  <jim@meyering.net>
88838         and Paul Eggert  <eggert@twinsun.com>
88839
88840         Merge from coreutils.
88841         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88842         member but strut utmpx does not.  Needed for AIX 4.3.3.
88843         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88844
88845 2003-08-15  Jim Meyering  <jim@meyering.net>
88846         and Paul Eggert  <eggert@cs.ucla.edu>
88847
88848         Merges from coreutils, etc.
88849         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88850         Require gl_FUNC_TZSET_CLOBBER.
88851         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88852         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88853         members.
88854
88855 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88856
88857         Help the merge from coreutils.
88858         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88859         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88860         * m4/tzset.m4: Use it too.
88861
88862 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88863
88864         * modules/tzset: New file.
88865
88866 2003-08-14  Jim Meyering  <jim@meyering.net>
88867
88868         Merges from coreutils.
88869         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88870         variable names, rather than @FNMATCH_H@.
88871         * modules/alloca: Likewise for $(ALLOCA_H).
88872
88873         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88874         the three copies of the literal target, `fnmatch.h'.
88875         * modules/alloca (alloca.h): Likewise.
88876
88877 2003-08-14  Jim Meyering  <jim@meyering.net>
88878
88879         Merge from coreutils.
88880         * m4/tzset.m4: New file.
88881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88882         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88883         otherwise, AIX 5.1 systems would end up using the latter.
88884         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88885         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88886         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88887         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88888
88889 2003-08-14  Jim Meyering  <jim@meyering.net>
88890
88891         Merge from coreutils.
88892         * lib/obstack.h: Whitespace changes.
88893         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88894         and xcalloc return values.
88895         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88896         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88897         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88898         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88899         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88900         error from mntctl.
88901         Use mntctl's return value to drive the entry-processing loop, since
88902         we can't rely on the value of the vmt_length member in the last
88903         entry.  On some systems doing so could result in exhausting
88904         virtual memory.  Based in part on a patch from Mike Jetzer.
88905
88906 2003-08-14  Jim Meyering  <jim@meyering.net>
88907         and Paul Eggert  <eggert@twinsun.com>
88908
88909         Merges from coreutils, plus other fixes.
88910         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88911         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88912         for credits and details.  Thanks to Kaveh Ghazi for helping
88913         to keep these files in sync.
88914         (ARRAY_SIZE): Define it.
88915         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88916         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88917         (memcasecmp): Don't assume size_t fits in unsigned int.
88918         Remove casts and duplicate code.
88919         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88920         (memcpy): Remove definition.
88921         Merge in some clean-up and optimization changes from glibc.
88922         [BLOCKSIZE]: Move definition to top of file.
88923         Ensure that it is a multiple of 64.
88924         Rearrange loop exit tests so as to avoid performing an
88925         additional fread after encountering an error or EOF.
88926         * lib/md5.h (md5_uintptr): Define.
88927         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88928         return to the initial working directory.  Preserve errno
88929         for caller.
88930         * lib/idcache.c: Include "xalloc.h".
88931         (xmalloc, xrealloc): Remove decls.
88932         (getuser): Remove casts no longer required in C89.
88933         * lib/human.c: Include stdio.h, for sprintf.
88934         * lib/group-member.c: Include "xalloc.h".
88935         (xmalloc, xrealloc): Remove decls.
88936         (get_group_info): Remove casts no longer required in C89.
88937         * lib/getusershell.c (readname): Remove casts no longer required in
88938         C89.
88939         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88940         * lib/getline.c: Whitespace fix, from coreutils.
88941
88942 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88943
88944         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88945         Check for isascii.
88946
88947         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88948         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88949         Undo previous (whitespace-only) change.
88950
88951 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88952
88953         * lib/exclude.c: Include <ctype.h>
88954         (IN_CTYPE_DOMAIN): New macro.
88955         (is_space): New fn.
88956         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88957         and empty lines.
88958
88959         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88960         Undo previous (whitespace-only) change.
88961
88962 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88963
88964         * config/srclist-update: Change update back to the old behavior,
88965         leaving whitespace alone.  Use one 'sed' command rather than a
88966         pipeline.
88967         (fixlicense): Now a variable, not a function.
88968         (remove_trailing_blanks): Remove.
88969         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88970         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88971         Undo previous (whitespace-only) change.
88972
88973 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88974
88975         Merge from coreutils.
88976         * modules/euidaccess: Add lib_SOURCES, include for new
88977         file euidaccess.h
88978
88979 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88980
88981         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88982         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88983         Normalize leading white space and remove trailing white space.
88984
88985         Merge from coreutils
88986         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88987
88988         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88989         0.12.1.  These files are now being upgraded automatically by
88990         ../config/srclist-update.
88991
88992 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88993
88994         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88995         Normalize leading white space and remove trailing white space.
88996         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88997         notice, as per ../config/srclist-update.
88998
88999         Merge from coreutils.
89000         * lib/euidaccess.h: New file.
89001         * lib/euidaccess.c: Include it.
89002         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89003         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89004         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89005
89006 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89007
89008         * config/srclist-update: Add copyright notice.
89009         (remove_id_lines, remove_trailing_blanks): New constants.
89010         (fixfile): Use them to normalize spacing a bit in copied files.
89011         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89012         Normalize leading white space and remove trailing white space.
89013
89014         * config/texinfo.tex: Sync with texinfo.
89015
89016         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89017         strtoul.c from libc, to merge coreutils whitespace changes.
89018
89019         * config/srclist.txt: Get the following m4 files from gettext:
89020         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89021         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89022         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89023         wint_t.m4.
89024
89025 2003-08-12  Karl Berry  <karl@gnu.org>
89026
89027         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89028         been made.
89029
89030 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89031
89032         * modules/gnu-source, m4/gnu-source.m4:
89033         Remove; we're assuming Autoconf 2.54 or later now.
89034         Suggested by Bruno Haible.
89035         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89036
89037 2003-08-11  Bruno Haible  <bruno@clisp.org>
89038
89039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89040
89041 2003-08-11  Bruno Haible  <bruno@clisp.org>
89042
89043         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89044         (vasnprintf): Use it instead of wcslen.
89045
89046 2003-08-11  Bruno Haible  <bruno@clisp.org>
89047
89048         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89049         value to ensure that _Bool promotes to int. Use #define for _Bool when
89050         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89051
89052 2003-08-10  Karl Berry  <karl@gnu.org>
89053
89054         * lib/regex.h: update from libc (whitespace fix).
89055
89056 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89057
89058         Merge some files from coreutils.  These changes were
89059         originally made by Jim Meyering.
89060         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89061         many older Unixes require this.
89062         * lib/alloca.c (alloca): Remove cast to argument of free;
89063         no longer needed in C89.
89064         * lib/alloca_.h, regex.h: Fix white space to match
89065         what GNU indent does.
89066
89067 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89068
89069         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89070         apparently Emacs's Unicode mode got confused before my 2003-08-05
89071         checkin.
89072
89073 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89074
89075         * m4/extensions.m4: New file.
89076         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89077         Require gl_USE_SYSTEM_EXTENSIONS.
89078         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89079         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89080
89081 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89082
89083         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89084         * modules/extensions, modules/gnu-source: New files.
89085         * modules/timespec, modules/unlocked-io: Depend on extensions.
89086
89087 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89088
89089         * modules/restrict: New file.
89090         * MODULES.html.sh (func_all_modules): Add restrict.
89091         * modules/regex: Depend on restrict.
89092
89093 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89094
89095         * m4/restrict.m4: New file.
89096         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89097
89098 2003-08-07  Bruno Haible  <bruno@clisp.org>
89099
89100         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89101         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89102
89103 2003-08-07  Bruno Haible  <bruno@clisp.org>
89104
89105         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89106         makes the module 'getndelim2' compatible with the module 'getline'.
89107
89108 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89109
89110         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89111         byte with "\201" to avoid glitches when editing that source file
89112         with multi-gnome-terminal.
89113
89114 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89115
89116         * lib/bumpalloc.h: Remove.
89117
89118 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89119
89120         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89121         * modules/bumpalloc: Remove.
89122
89123 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89124
89125         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89126         GNU coding style.
89127
89128         Merge from coreutils.
89129         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89130         1. From glibc.
89131         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89132         from Karl Berry, implemented by Jim Meyering.
89133         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89134         from Dmitry V. Levin.
89135         Remove anachronistic cast of xrealloc.
89136         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89137         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89138         type. Otherwise, it wouldn't compile with at least /bin/cc on
89139         ymp-cray-unicos9.0.2.X.
89140         Combine two mostly-identical uses of alloca into one.
89141         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89142
89143 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89144
89145         [From Emacs.]
89146
89147         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89148         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89149         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89150         obsolete NLIST_NAME_UNION.
89151         [__GNU__]: Undef BSD and FSCALE.
89152         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89153
89154 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89155
89156         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89157         an enum type, so that it's guaranteed to promote to int.  See:
89158         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89159
89160 2003-08-03  Karl Berry  <karl@gnu.org>
89161
89162         * config/depcomp: update from automake.
89163
89164 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89165
89166         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89167         (strerror): Don't assume that a printable int fits in 14 bytes.
89168
89169 2003-07-31  Bruno Haible  <bruno@clisp.org>
89170
89171         * modules/getpass-gnu: New file.
89172         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89173
89174 2003-07-31  Bruno Haible  <bruno@clisp.org>
89175
89176         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89177
89178 2003-07-24  Karl Berry  <karl@gnu.org>
89179
89180         * config/missing: update from automake.
89181
89182 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89183             Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89186         * lib/getline.c (getline, getdelim): Likewise.
89187         Remove _GNU_SOURCE define; now it's defined in config.h through
89188         m4/getline.m4.
89189
89190 2003-07-23  Karl Berry  <karl@gnu.org>
89191
89192         * config/config.sub: update from prep.
89193
89194 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89195
89196         * modules/xalloc (Depends-on): Add exitfail.
89197         * modules/xmemcoll: Likewise.
89198
89199 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89200
89201         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89202         over-parenthesization in macros.
89203
89204         Sync with coreutils.
89205
89206         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89207         required by C99.
89208
89209         Use `exit_failure' for xalloc and xmemcoll instead of their own
89210         private exit-failure variables.
89211         * lib/xalloc.h (xalloc_exit_failure): Remove.
89212         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89213         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89214         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89215         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89216         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89217
89218 2003-07-20  Jim Meyering  <jim@meyering.net>
89219
89220         * modules/closeout (Depends-on): Add exitfail.
89221         Suggestion from Bruno Haible.
89222
89223 2003-07-19  Karl Berry  <karl@gnu.org>
89224
89225         * config/config.sub: update from prep.
89226
89227 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89228
89229         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89230         Remove.
89231         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89232         to test that it can stand by itself.  Include "exitfail.h".
89233         Clients should set exit_failure instead.
89234         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89235
89236 2003-07-18  Bruno Haible  <bruno@clisp.org>
89237
89238         * modules/getndelim2: New file.
89239         * modules/getline: Share files with module getndelim2.
89240         * modules/getnline: Depend on getndelim2 instead of sharing files with
89241         it. Add getnline.c to lib_SOURCES.
89242         * MODULES.html.sh (func_all_modules): Add getndelim2.
89243
89244 2003-07-18  Bruno Haible  <bruno@clisp.org>
89245
89246         * m4/getndelim2.m4: New file.
89247         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89248         invoke gl_PREREQ_GETNDELIM2.
89249         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89250         gl_PREREQ_GETNDELIM2.
89251         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89252         gl_GETNDELIM2.
89253
89254 2003-07-18  Bruno Haible  <bruno@clisp.org>
89255
89256         * lib/getndelim2.h: New file.
89257         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89258         getndelim2.h.
89259         (getndelim2): Make non-static. Change return type to ssize_t.
89260         * lib/getline.h: Change argument names.
89261         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89262         * lib/getnline.c: Include getndelim2.h.
89263
89264 2003-07-18  Andreas Schwab  <schwab@suse.de>
89265
89266         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89267
89268 2003-07-17  Karl Berry  <karl@gnu.org>
89269
89270         * config/config.sub: update from prep.
89271
89272 2003-07-17  Bruno Haible  <bruno@clisp.org>
89273
89274         * modules/getnline: New file.
89275         * modules/getline: Add lib/getndelim2.c to source file list.
89276         * MODULES.html.sh (func_all_modules): Add getnline.
89277
89278 2003-07-17  Bruno Haible  <bruno@clisp.org>
89279
89280         * m4/getnline.m4: New file.
89281
89282 2003-07-17  Bruno Haible  <bruno@clisp.org>
89283
89284         * m4/Makefile.am.in: Remove file.
89285         * m4/Makefile.am: Remove file.
89286         * m4/Makefile.in: Remove file.
89287
89288 2003-07-17  Bruno Haible  <bruno@clisp.org>
89289
89290         * lib/getnline.h: New file.
89291         * lib/getnline.c: New file.
89292         * lib/getndelim2.c: New file, extracted from getline.c.
89293         (getndelim2): Renamed from getdelim2, with added nmax argument.
89294         * lib/getline.c: Include getndelim2.c.
89295         (getdelim2): Moved out to getndelim2.c.
89296         (getline, getdelim): Update.
89297
89298 2003-07-17  Bruno Haible  <bruno@clisp.org>
89299
89300         * lib/Makefile.am: Remove file.
89301         * lib/Makefile.in: Remove file.
89302
89303 2003-07-17  Bruno Haible  <bruno@clisp.org>
89304
89305         * configure.in: Remove file.
89306         * Makefile.in: Remove file.
89307
89308 2003-07-17  Bruno Haible  <bruno@clisp.org>
89309
89310         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89311
89312 2003-07-16  Karl Berry  <karl@gnu.org>
89313
89314         * config/srclist-update: was running fixlicense twice, which caused
89315                 texinfo.tex to be nullified for some reason.  Simplify,
89316                 $gplsrc is no longer needed as far as I can see?
89317
89318 2003-07-16  Jim Meyering  <jim@meyering.net>
89319
89320         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89321
89322 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89323
89324         * config/srclist.txt: Get the following files from gettext-runtime/intl
89325         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89326         ref-del.sin.  From Bruno Haible.
89327         * config/srclist-update (fixfile): Change grep pattern again, since the
89328         previous fix didn't work (there was another trailing $).  Use
89329         '[$]' to escape the $s.
89330
89331 2003-07-15  Karl Berry  <karl@gnu.org>
89332
89333         * lib/vasnprintf.c: update from gettext.
89334
89335 2003-07-15  Karl Berry  <karl@gnu.org>
89336
89337         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89338         gets expanded when surrounded by '$'.
89339
89340 2003-07-15  Jim Meyering  <jim@meyering.net>
89341
89342         * modules/save-cwd: Don't depend on error.  From Derek Price.
89343
89344 2003-07-15  Jim Meyering  <jim@meyering.net>
89345
89346         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89347
89348 2003-07-14  Simon Josefsson  <jas@extundo.com>
89349
89350         * modules/mempcpy: New file.
89351         * MODULES.html.sh (func_all_modules): Add mempcpy.
89352
89353 2003-07-14  Simon Josefsson  <jas@extundo.com>
89354
89355         * m4/mempcpy.m4: New file.
89356
89357 2003-07-14  Simon Josefsson  <jas@extundo.com>
89358
89359         * lib/mempcpy.h: New file.
89360         * lib/mempcpy.c: New file.
89361
89362 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89363
89364         * modules/getdate, modules/posixtm: Depend on mktime.
89365
89366 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89367
89368         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89369         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89370         unicodeio.c, unicodeio.h, unlocked-io.h:
89371         Switch from LGPL to GPL.
89372
89373 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89374
89375         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89376         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89377         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89378         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89379         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89380         updated automatically by ../config/srclist-update.  This changes
89381         their license from LPGL to GPL.
89382
89383 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89384
89385         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89386         assumed to refer to the root of the most recent stable gettext version.
89387         * config/srclistvars.sh: Add defaults for eggert.
89388         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89389         Match "This program" as well as "The program".  This is needed
89390         for gettext.
89391
89392 2003-07-14  Jim Meyering  <jim@meyering.net>
89393
89394         Don't emit diagnostics.  Let callers do that.
89395         * lib/save-cwd.c: Don't include "error.h".
89396         (save_cwd): Don't call error.  Ensure that errno is valid
89397         when returning nonzero.
89398
89399         * lib/save-cwd.h (restore_cwd): Update prototype.
89400         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89401         Simplify.  Don't call error upon failure.  Let callers do that.
89402         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89403         when auditing is enabled.  But don't bother updating the #if.
89404
89405 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89406
89407         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89408         it breaks C++ compilation.
89409         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89410
89411 2003-07-10  Simon Josefsson  <jas@extundo.com>
89412
89413         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89414
89415 2003-07-10  Jim Meyering  <jim@meyering.net>
89416
89417         * m4/clock_time.m4: Remove trailing blank.
89418         * m4/intmax_t.m4: Likewise.
89419
89420 2003-07-10  Jim Meyering  <jim@meyering.net>
89421
89422         * lib/vasnprintf.c: Remove trailing blanks.
89423         Make cpp indentation consistent.
89424
89425 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89426
89427         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89428         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89429         Switch from LGPL to GPL.
89430
89431 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89432
89433         * config/srclist.txt: Sort sublists.  Add
89434         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89435         that differ from gnulib for one reason or another; we'd like this list
89436         to be smaller but for now let's document what we have.
89437
89438 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89439
89440         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89441         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89442         and sweeter "eval x=$x".
89443         * config/srclist.txt: Get lib/argp* from glibc.
89444
89445 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89446
89447         * lib/mktime.c: Fix some boundary cases and remove need for floating
89448         point.
89449
89450         Issue a compile-time diagnostic if time_t is floating point, or if
89451         two's complement arithmetic is not in effect, or if arithmetic
89452         right shift does not propagate the sign.  These assumptions were
89453         all in the original code but they weren't checked.
89454
89455         (TIME_T_MIDPOINT, verify): New macros.
89456         (__isleap): Remove; it has integer overflow problems.
89457         (leapyear): New function, without those problems.
89458         (ydhms_tm_diff): Remove; splitting into two parts.
89459         (ydhms_diff): New function, containing the arithmetic part of
89460         the old ydhms_tm_diff function.  Issue a compile-time
89461         diagnostic if we are not using C99 integer division.
89462         Avoid casts when possible.
89463         (guess_time_tm): New function, containing the checking part of
89464         the old ydhms_tm_diff function.  Return the new value, rather than
89465         the difference between it and the old.  Accept a new argument T
89466         so that *T specifies the old value.  Check for overflow in the result.
89467
89468         (__mktime_internal): Use a time_t offset, not a long int offset.
89469         This undoes the 2003-06-04 change, which is no longer needed now
89470         that we have better overflow checking.
89471         (localtime_offset): Likewise.
89472
89473         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89474         and long are 64-bit but int is only 32-bit.
89475         (ydhms_diff): Use long int to store year1 and yday1.
89476         Issue a compile-time diagnostic if long int is not wide enough.
89477
89478         (__mktime_internal): Use long int to store adjusted year and yday.
89479         Use plain C rather than preprocessor commands, if that doesn't
89480         affect efficiency.
89481         Check for overflow (and try to repair) after each probe
89482         rather than checking only at the very end.  This avoids some bugs
89483         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89484         does not equal GMT offset at maximum time).
89485         Use integer to check for overflow rather than floating point; this
89486         is more portable to non-IEEE hosts, and is a tad faster.
89487         When we detect that we are oscillating between two values,
89488         don't check whether tm_isdst has the requested value, since
89489         we already know the answer.  When tm_isdst has the wrong value,
89490         use a different heuristic to find the right one, based on the
89491         extreme values actually observed in practice in tz2003a,
89492         rather than the (overly optimistic) "previous 3 calendar quarters".
89493
89494         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89495         "T const" to accommodate glibc style.
89496         (check_result): Use less-confusing report format.  "long" -> "long int.
89497         (main): Likewise.
89498         Don't loop if the iteration overflows time_t.
89499         Allow a negative step in the iteration.
89500
89501 2003-07-06  Karl Berry  <karl@gnu.org>
89502
89503         * config/depcomp: update from automake.
89504         * config/config.sub: update from prep.
89505
89506 2003-07-03  Karl Berry  <karl@gnu.org>
89507
89508         * config/config.guess: update from prep.
89509
89510 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89511
89512         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89513         xreadlink.c now includes it unconditionally.
89514
89515 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89516
89517         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89518         having it depend on HAVE_SYS_TYPES_H.
89519
89520 2003-07-01  Bruno Haible  <bruno@clisp.org>
89521
89522         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89523         <sys/types.h> should be sufficient.
89524         Reported by Paul Eggert.
89525
89526 2003-06-26  Karl Berry  <karl@gnu.org>
89527
89528         * config/depcomp: update from automake.
89529
89530 2003-06-26  Bruno Haible  <bruno@clisp.org>
89531
89532         * modules/human: Depend on module stdbool.
89533
89534 2003-06-25  Bruno Haible  <bruno@clisp.org>
89535
89536         * modules/readlink: New file.
89537         * modules/xreadlink: Depend on it.
89538         * MODULES.html.sh (func_all_modules): Add readlink.
89539
89540 2003-06-25  Bruno Haible  <bruno@clisp.org>
89541
89542         * m4/readlink.m4: New file.
89543
89544 2003-06-25  Bruno Haible  <bruno@clisp.org>
89545
89546         * lib/readlink.c: New file.
89547
89548 2003-06-22  Karl Berry  <karl@gnu.org>
89549
89550         * config/srclist.txt: update mkinstalldirs from automake.
89551         * config/mkinstalldirs: update.
89552
89553 2003-06-22  Bruno Haible  <bruno@clisp.org>
89554
89555         Portability to mingw32.
89556         * m4/ssize_t.m4: New file, from GNU gettext.
89557         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89558         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89559
89560 2003-06-22  Bruno Haible  <bruno@clisp.org>
89561
89562         * modules/safe-read: Add m4/ssize_t.m4.
89563         * modules/xreadlink: Add m4/ssize_t.m4.
89564
89565 2003-06-20  Bruno Haible  <bruno@clisp.org>
89566
89567         Assume C89, so PARAMS isn't needed.
89568         * lib/unicodeio.h (PARAMS): Remove.
89569         * lib/unicodeio.c: Don't use PARAMS.
89570
89571 2003-06-18  Karl Berry  <karl@gnu.org>
89572
89573         * config/config.{guess,sub}: update from prep.
89574
89575 2003-06-18  Jim Meyering  <jim@meyering.net>
89576
89577         Merge changes from coreutils.
89578         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89579         Remove explicit declarations of xmalloc and realloc.
89580         Include xalloc.h.
89581         (read_utmp): Remove anachronistic cast of xmalloc.
89582
89583 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89584
89585         Assume C89, so PARAMS isn't needed.
89586         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89587         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89588         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89589         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89590         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89591         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89592         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89593         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89594         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89595         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89596         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89597         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89598         no longer needed. Anyway, config.h should always be included before any
89599         other file.
89600
89601 2003-06-11  Simon Josefsson  <jas@extundo.com>
89602
89603         * modules/sysexits: New file.
89604         * MODULES.html.sh (func_all_modules): Add sysexits.
89605
89606 2003-06-11  Simon Josefsson  <jas@extundo.com>
89607
89608         * lib/sysexit_.h: New file.
89609
89610 2003-06-11  Derek Price  <derek@ximbiot.com>
89611
89612         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89613         necessary.
89614
89615 2003-06-11  Bruno Haible  <bruno@clisp.org>
89616
89617         * m4/sysexits.m4: New file.
89618
89619 2003-06-10  Simon Josefsson  <jas@extundo.com>
89620
89621         * lib/argp.h: New file, from glibc.
89622         * lib/argp-ba.c: New file, from glibc.
89623         * lib/argp-eexst.c: New file, from glibc.
89624         * lib/argp-fmtstream.c: New file, from glibc.
89625         * lib/argp-fmtstream.h: New file, from glibc.
89626         * lib/argp-fs-xinl.c: New file, from glibc.
89627         * lib/argp-help.c: New file, from glibc.
89628         * lib/argp-namefrob.h: New file, from glibc.
89629         * lib/argp-parse.c: New file, from glibc.
89630         * lib/argp-pv.c: New file, from glibc.
89631         * lib/argp-pvh.c: New file, from glibc.
89632         * lib/argp-xinl.c: New file, from glibc.
89633
89634 2003-06-10  Simon Josefsson  <jas@extundo.com>
89635
89636         * modules/strchrnul: New file.
89637
89638 2003-06-10  Simon Josefsson  <jas@extundo.com>
89639
89640         * modules/argp: New file.
89641
89642 2003-06-10  Simon Josefsson  <jas@extundo.com>
89643
89644         * m4/strchrnul.m4: New file.
89645
89646 2003-06-10  Simon Josefsson  <jas@extundo.com>
89647
89648         * lib/strchrnul.h: New file.
89649         * lib/strchrnul.c: New file.
89650
89651 2003-06-10  Bruno Haible  <bruno@clisp.org>
89652
89653         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89654
89655 2003-06-07  Karl Berry  <karl@gnu.org>
89656
89657         * config/config.{guess,sub}: update from prep.
89658
89659 2003-06-07  Jim Meyering  <jim@meyering.net>
89660
89661         * modules/strtod: Use $(...) notation, not @...@ for
89662         AC_REPLACE'd variables.
89663         * modules/localcharset: Likewise.
89664
89665 2003-06-07  Jim Meyering  <jim@meyering.net>
89666
89667         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89668         in place of my name in the copyright comment.
89669         Remove definition and uses of __P.
89670
89671         From coreutils.
89672         * lib/stat.c: Don't declare xmalloc explicitly.
89673         Instead, include "xalloc.h".
89674         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89675         xrealloc, and xcalloc return values.
89676         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89677         Improve comment.
89678         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89679
89680 2003-06-07  Bruno Haible  <bruno@clisp.org>
89681
89682         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89683         avoid AC_CONFIG_LINKS.
89684         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89685         fnmatch.h, to avoid AC_CONFIG_LINKS.
89686         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89687
89688 2003-06-07  Bruno Haible  <bruno@clisp.org>
89689
89690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89691         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89692         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89693         directory.
89694         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89695         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89696         directory.
89697
89698 2003-06-06  Jim Meyering  <jim@meyering.net>
89699
89700         Merge from coreutils.
89701         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89702         Consolidate declarations and initializations of *_base* locals.
89703
89704         Merge from coreutils.
89705         This avoids a core dump on systems without GNU putenv,
89706         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89707         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89708         (unsetenv): New static function, from GNU libc.
89709         (rpl_putenv): Use it.
89710
89711         * lib/modechange.c: Remove trailing blanks.
89712
89713         Merge from coreutils.
89714         * lib/fsusage.c: Remove declaration of statfs.
89715         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89716
89717         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89718
89719 2003-06-06  Jim Meyering  <jim@meyering.net>
89720
89721         * lib/stdbool_.h: Renamed from stdbool.h.in.
89722
89723 2003-06-06  Jim Meyering  <jim@meyering.net>
89724             Bruno Haible  <bruno@clisp.org>
89725
89726         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89727         Adjust Makefile.am snippet not to redirect directly to target.
89728         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89729
89730 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89731
89732         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89733         mismatch, look in future quarters as well as past.  This fixes a
89734         bug when processing fall-backwards gaps immediately after a long
89735         period of daylight-saving time.
89736
89737         * lib/mktime.c: Assume freestanding C89 or better.
89738         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89739         (__P): Remove; not used.
89740         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89741         (mktime, not_equal_tm, print_tm, check_result,
89742         main): Use prototypes.  Use const * where appropriate.
89743         (main): Fix typo in testing code that uncovered by above changes.
89744         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89745
89746 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89747
89748         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89749         locale.h, localeconv.  This merges changes from coreutils.
89750
89751         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89752         It can be removed after the next Autoconf is released.
89753         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89754         needed.
89755
89756 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89757
89758         * lib/mktime.c: Fix Debian bug 177940
89759         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89760         (localtime_offset): Now long int, not time_t, because we want it
89761         to be guaranteed to be signed.  All uses changed.
89762         (__mktime_internal): If overflow would occur when adding offset,
89763         don't add it.
89764
89765         Merge 'human' changes from coreutils.  Rewrite to support
89766         locale-specific notations like thousands separators.
89767         * lib/human.c: Simplify authorship notice.
89768         Include human.h immediately after config.h.
89769         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89770         <limits.h>: Do not include, since human.h does.
89771         (SIZE_MAX, UINTMAX_MAX): New macros.
89772         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89773         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89774         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89775         (power_letter): Renamed from suffixes.
89776         (generate_suffix_backwards): Remove.
89777         (adjust_value): Now takes int style (because of human.h changes)
89778         and long double value (for greater precision on some platforms).
89779         (group_number): New function.
89780         (human_readable): Use it.  Use integer options, not enum.
89781         Put the options before the sizes in the arg list.
89782         Support all the new options.
89783         The old human_readable function has been removed;
89784         use inttostr.h instead.
89785         (human_readable, default_block_size, humblock):
89786         Use uintmax_t, not int, for block sizes.
89787         (human_readable_inexact, block_size_types): Remove.
89788         (block_size_opts): New constant.
89789         (human_options): Renamed from human_block_size, with new signature
89790         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89791         * lib/human.h: Add copyright and authorship notice.
89792         Include <limits.h> and <stdbool.h> unconditionally.
89793         (PARAMS): Remove.  All uses removed.
89794         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89795         (enum human_inexact_style): Remove tag; now a nameless enum.
89796         (human_floor, human_ceiling, human_round_to_even): Now have
89797         values 2, 0, 1 rather than -1, 1, 0.
89798         (human_group_digits, human_suppress_point_zero, human_autoscale,
89799         human_base_1024, human_SI, human_B): New constants.
89800         (human_readable_inexact, human_block_size): Remove.
89801         (human_readable): Size args are now uintmax_t, not int.
89802         (human_options): New decl.
89803
89804         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89805         unnecessary now that we assume C89 or better.  This change
89806         imported from coreutils.
89807
89808         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89809         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89810         in the 2003-05-30 sync from glibc.
89811
89812         .h files should stand alone, but we shouldn't include <sys/types.h>
89813         if we can get away with just <stddef.h>.
89814
89815         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89816         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89817         rather than <sys/types.h>, as we merely need size_t.
89818         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89819         to get size_t.
89820         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89821         Include <stdio.h>, to get FILE.
89822         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89823         memcasecmp.h has included <stddef.h> and all we need is size_t.
89824         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89825         our interface, instead of including <sys/types.h>
89826
89827 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89828
89829         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89830         now, as glibc mktime is buggy on non-glibc systems.
89831
89832 2003-06-03  Karl Berry  <karl@gnu.org>
89833
89834         * config/config.sub: update from prep.
89835
89836 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89837
89838         [from coreutils]
89839         Fix some minor time-related bugs with POSIX time arguments.
89840         Some valid time stamps were being rejected (notably -1, and
89841         time stamps before 1900 on 64-bit hosts).  And some invalid
89842         time stamps were being accepted, e.g. September 31.
89843
89844         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89845         that we can return (time_t) -1 successfully.
89846         * lib/posixtm.c: Likewise.
89847         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89848         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89849         (t): Remove static var.
89850         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89851         of static var.  All uses changed.
89852         (year): Do not reject years before 1900; they can occur with
89853         64-bit time_t.
89854         (posix_time_parse): Do not check for out-of-range components;
89855         that is now the caller's responsibility, since our checks were
89856         only approximations.
89857         (posixtime): Use mktime to check for out-of-range components,
89858         since it knows them exactly.
89859         If mktime returns (time_t) -1, check whether an error actually occurred
89860         by invoking localtime on -1.
89861         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89862         posixtime failures better.
89863         Improve the test data (in comments only).
89864
89865 2003-06-02  Karl Berry  <karl@gnu.org>
89866
89867         * config/mkinstalldirs (version): new variable.
89868         (--version): new option.
89869         (usage): improve message.
89870
89871 2003-05-30  Karl Berry  <karl@gnu.org>
89872
89873         * lib/mktime.c: update from libc.
89874
89875 2003-05-30  Bruno Haible  <bruno@clisp.org>
89876
89877         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89878         * config/config.rpath: Upgrade to gettext-0.12.1.
89879
89880 2003-05-30  Bruno Haible  <bruno@clisp.org>
89881
89882         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89883         * m4/nls.m4: New file, from gettext-0.12.1.
89884         * m4/po.m4: New file, from gettext-0.12.1.
89885         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89886
89887 2003-05-30  Bruno Haible  <bruno@clisp.org>
89888
89889         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89890         * lib/localcharset.h: Likewise.
89891         * lib/localcharset.c: Likewise.
89892
89893 2003-05-29  Karl Berry  <karl@gnu.org>
89894
89895         * config/config.rpath: update from gettext.
89896
89897 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89898
89899         Assume the headers required for C89 freestanding compilers.
89900         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89901         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89902         * m4/human.m4 (gl_HUMAN): Likewise.
89903         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89904         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89905         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89906         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89907         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89908         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89909
89910 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89911
89912         Assume the headers required for C89 freestanding compilers.
89913         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89914         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89915         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89916         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89917         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89918         define, since <limits.h> is guaranteed to do that.
89919         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89920         * lib/exclude.c: Include <stdbool.h> unconditionally.
89921         * lib/tempname.c: Include <stddef.h> unconditionally.
89922         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89923         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89924         <stddef.h> does that.
89925         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89926         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89927         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89928         needed.
89929         * lib/xstrtol.c: Likewise.
89930         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89931         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89932
89933         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89934         warnings on some platforms.
89935
89936         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89937         arbitrarily.
89938
89939 2003-05-26  Jim Meyering  <jim@meyering.net>
89940
89941         Merge in a change from coreutils:
89942         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89943         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89944         that condition, rather than `-1' which is slightly misleading.
89945         Change the name of the cache variable to have the gl_ prefix.
89946         Prompted by a patch from Richard Dawe for DJGPP.
89947
89948 2003-05-24  Karl Berry  <karl@gnu.org>
89949
89950         * config/config.guess: update from prep.
89951
89952 2003-05-22  Karl Berry  <karl@gnu.org>
89953
89954         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89955
89956 2003-05-20  Karl Berry  <karl@gnu.org>
89957
89958         * config/config.guess: update from prep.
89959
89960 2003-05-18  Karl Berry  <karl@gnu.org>
89961
89962         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89963         might actually be set by the user.
89964
89965         * config/depcomp, install-sh, mdate-sh: update from automake.
89966
89967 2003-05-17  Bruno Haible  <bruno@clisp.org>
89968
89969         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89970         invalid expansion for AC_EGREP_CPP.
89971         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89972         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89973         Suggested by Akim Demaille <akim@epita.fr> in
89974         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89975
89976 2003-05-12  Jim Meyering  <jim@meyering.net>
89977
89978         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89979         the space-padded-by-default conversion specifiers, %e, %k, %l.
89980
89981 2003-05-12  Bruno Haible  <bruno@clisp.org>
89982
89983         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89984         the string is longer than 4 KB.
89985
89986 2003-05-11  Karl Berry  <karl@gnu.org>
89987
89988         * config/config.{guess,sub}: update from prep.
89989
89990 2003-05-09  Bruno Haible  <bruno@clisp.org>
89991
89992         * modules/error: Add m4/strerror_r.m4 to file list.
89993
89994 2003-05-03  Bruno Haible  <bruno@clisp.org>
89995
89996         Upgrade to Unicode-4.0.
89997         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89998         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89999         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90000         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90001         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90002         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90003         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90004         Change width of U+E0100..U+E01EF from 1 to 0.
90005
90006 2003-04-25  Jim Meyering  <jim@meyering.net>
90007
90008         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90009         of type size_t, not int.
90010
90011 2003-04-25  Bruno Haible  <bruno@clisp.org>
90012
90013         * lib/copy-file.c: Include <stddef.h>, for size_t.
90014
90015 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90016
90017         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90018         code which expansion is under static control.  Patch imported from
90019         Akim Demaille's patch to Bison; see
90020         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90021
90022 2003-04-14  Bruno Haible  <bruno@clisp.org>
90023
90024         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90025
90026 2003-04-11  Jim Meyering  <jim@meyering.net>
90027
90028         Merge changes from Coreutils.
90029
90030         2003-03-22  Jim Meyering  <jim@meyering.net>
90031
90032         * lib/strftime.c (widen): Cast alloca return value to proper type.
90033
90034         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90035
90036         From GNU libc.
90037         * lib/strftime.c (my_strftime): Handle very large width
90038         specifications for numeric values correctly.  Improve checks for
90039         overflow.
90040
90041         2003-01-19  Jim Meyering  <jim@meyering.net>
90042
90043         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90044         definitions.
90045         (nl_get_alt_digit) [! defined my_strftime]: Define.
90046         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90047         _nl_get_alt_digit and _nl_get_walt_digit.
90048
90049         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90050         libc. These changes have no effect outside of _LIBC.
90051
90052 2003-04-10  Bruno Haible  <bruno@clisp.org>
90053
90054         * modules/findprog: New file.
90055         * MODULES.html.sh (func_all_modules): Add it.
90056
90057 2003-04-10  Bruno Haible  <bruno@clisp.org>
90058
90059         * m4/findprog.m4: New file.
90060         * m4/eaccess.m4: New file.
90061
90062 2003-04-10  Bruno Haible  <bruno@clisp.org>
90063
90064         * lib/findprog.h: New file, from GNU gettext.
90065         * lib/findprog.c: New file, from GNU gettext.
90066
90067 2003-04-05  Jim Meyering  <jim@meyering.net>
90068
90069         Merge changes from Coreutils.
90070
90071         * lib/exclude.h (PARAMS): Remove definition and uses.
90072         * lib/exclude.c: Remove uses of `PARAMS'.
90073
90074         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90075         Add test-cases for DOS filenames. Declare program_name.
90076         (main): Set up program_name.  Patch by Rich Dawe.
90077
90078         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90079         error from mntctl.
90080         Use mntctl's return value to drive the entry-processing loop, since
90081         we can't rely on the value of the vmt_length member in the last
90082         entry.  On some systems doing so could result in exhausting
90083         virtual memory.  Based in part on a patch from Mike Jetzer.
90084
90085 2003-04-04  Bruno Haible  <bruno@clisp.org>
90086
90087         * modules/linebreak: New file.
90088         * MODULES.html.sh (func_all_modules): Add it.
90089
90090 2003-04-04  Bruno Haible  <bruno@clisp.org>
90091
90092         * m4/linebreak.m4: New file.
90093
90094 2003-04-04  Bruno Haible  <bruno@clisp.org>
90095
90096         * lib/linebreak.h: New file, from GNU gettext.
90097         * lib/linebreak.c: New file, from GNU gettext with slight
90098         modifications.
90099         * lib/lbrkprop.h: New file, from GNU gettext.
90100
90101 2003-04-03  Bruno Haible  <bruno@clisp.org>
90102
90103         * modules/utf8-ucs4: New file.
90104         * modules/utf16-ucs4: New file.
90105         * modules/ucs4-utf8: New file.
90106         * modules/ucs4-utf16: New file.
90107         * MODULES.html.sh (func_all_modules): Add them.
90108
90109 2003-04-03  Bruno Haible  <bruno@clisp.org>
90110
90111         * m4/utf-ucs4.m4: New file.
90112         * m4/ucs4-utf.m4: New file.
90113
90114 2003-04-03  Bruno Haible  <bruno@clisp.org>
90115
90116         * lib/utf8-ucs4.h: New file, from GNU gettext.
90117         * lib/utf16-ucs4.h: New file, from GNU gettext.
90118         * lib/ucs4-utf8.h: New file, from GNU gettext.
90119         * lib/ucs4-utf16.h: New file, from GNU gettext.
90120
90121 2003-04-02  Bruno Haible  <bruno@clisp.org>
90122
90123         * modules/binary-io: New file.
90124         * MODULES.html.sh (func_all_modules): Add it.
90125
90126 2003-04-02  Bruno Haible  <bruno@clisp.org>
90127
90128         * lib/binary-io.h: New file, from GNU gettext.
90129
90130 2003-04-01  Bruno Haible  <bruno@clisp.org>
90131
90132         * modules/pathname: New file.
90133         * MODULES.html.sh (func_all_modules): Add it.
90134
90135 2003-04-01  Bruno Haible  <bruno@clisp.org>
90136
90137         * lib/pathname.h: New file, from GNU gettext.
90138         * lib/concatpath.c: New file, from GNU gettext.
90139
90140 2003-03-30  Bruno Haible  <bruno@clisp.org>
90141
90142         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90143
90144 2003-03-30  Bruno Haible  <bruno@clisp.org>
90145
90146         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90147         function chown() doesn't exist.
90148
90149 2003-03-28  Bruno Haible  <bruno@clisp.org>
90150
90151         * modules/copy-file: New file.
90152         * MODULES.html.sh (func_all_modules): Add it.
90153
90154 2003-03-28  Bruno Haible  <bruno@clisp.org>
90155
90156         * m4/copy-file.m4: New file.
90157
90158 2003-03-28  Bruno Haible  <bruno@clisp.org>
90159
90160         * lib/copy-file.h: New file, from GNU gettext.
90161         * lib/copy-file.c: New file, from GNU gettext.
90162
90163 2003-03-18  Jim Meyering  <jim@meyering.net>
90164
90165         * lib/quote.c (quote_n): Fix typo in comment.
90166
90167 2003-03-18  Bruno Haible  <bruno@clisp.org>
90168
90169         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90170         checking.
90171         * m4/onceonly_2_57.m4: Likewise.
90172
90173 2003-03-17  Bruno Haible  <bruno@clisp.org>
90174
90175         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90176         (m4_quote): Remove macro.
90177         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90178
90179 2003-03-14  Jim Meyering  <jim@meyering.net>
90180
90181         Merge changes from Coreutils.
90182         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90183         to be const, in order to avoid warnings.
90184         (obstack_room): Likewise.
90185         (obstack_empty_p): Likewise.
90186
90187 2003-03-14  Bruno Haible  <bruno@clisp.org>
90188
90189         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90190         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90191
90192 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90193
90194         Merge changes from Bison.
90195         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90196         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90197         when compiling Bison 1.875's `bitset bset = obstack_alloc
90198         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90199         * lib/hash.c: Include <stdbool.h> unconditionally.
90200
90201 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90202
90203         * m4/onceonly.m4 (m4_quote): New macro.
90204         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90205         Quote AC_FOREACH variable-expansions properly.
90206
90207 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90208
90209         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90210
90211 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90212
90213         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90214         Reported by Bruce Becker; see:
90215         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90216
90217 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90218             Bruno Haible  <bruno@clisp.org>
90219
90220         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90221         Reported by John Hughes, see
90222         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90223
90224 2003-02-20  Bruno Haible  <bruno@clisp.org>
90225
90226         * MODULES.html.sh (func_all_modules): Add poll.
90227
90228 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90229
90230         * modules/poll: New file.
90231
90232 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90233
90234         * lib/poll_.h: New file.
90235         * lib/poll.c: New file.
90236
90237 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90238
90239         * m4/poll.m4: New file.
90240
90241 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90242
90243         * modules/mathl: New file.
90244
90245 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90246
90247         * lib/mathl.h: New file.
90248         * lib/acosl.c: New file.
90249         * lib/asinl.c: New file.
90250         * lib/atanl.c: New file.
90251         * lib/ceill.c: New file.
90252         * lib/cosl.c: New file.
90253         * lib/expl.c: New file.
90254         * lib/floorl.c: New file.
90255         * lib/frexpl.c: New file.
90256         * lib/ldexpl.c: New file.
90257         * lib/logl.c: New file.
90258         * lib/sincosl.c: New file.
90259         * lib/sinl.c: New file.
90260         * lib/sqrtl.c: New file.
90261         * lib/tanl.c: New file.
90262         * lib/trigl.c: New file.
90263         * lib/trigl.h: New file.
90264
90265 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90266
90267         * m4/mathl.m4: New file.
90268
90269 2003-02-18  Bruno Haible  <bruno@clisp.org>
90270
90271         * MODULES.html.sh (func_all_modules): Add mathl.
90272
90273 2003-02-17  Bruno Haible  <bruno@clisp.org>
90274
90275         * modules/mkdtemp: New module.
90276         * MODULES.html.sh (func_all_modules): Add it.
90277
90278 2003-02-17  Bruno Haible  <bruno@clisp.org>
90279
90280         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90281
90282 2003-02-17  Bruno Haible  <bruno@clisp.org>
90283
90284         * lib/mkdtemp.h: New file, from GNU gettext.
90285         * lib/mkdtemp.c: New file, from GNU gettext.
90286
90287 2003-02-02  Jim Meyering  <jim@meyering.net>
90288
90289         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90290         e.g. glibc-2.2.93.
90291
90292 2003-01-31  Bruno Haible  <bruno@clisp.org>
90293
90294         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90295         'rpl_rename'.
90296         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90297         'rpl_strnlen'.
90298         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90299         'rpl_strtod'.
90300         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90301         'rpl_utime'.
90302
90303 2003-01-31  Bruno Haible  <bruno@clisp.org>
90304
90305         * lib/rename.c: #undef rename before defining rpl_rename.
90306         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90307
90308 2003-01-30  Bruno Haible  <bruno@clisp.org>
90309
90310         * modules/vasnprintf, modules/vasprintf: New modules.
90311         * MODULES.html.sh (func_all_modules): Add them.
90312
90313 2003-01-30  Bruno Haible  <bruno@clisp.org>
90314
90315         * m4/signed.m4: New file, from GNU gettext.
90316         * m4/longdouble.m4: New file, from GNU gettext.
90317         * m4/wchar_t.m4: New file, from GNU gettext.
90318         * m4/wint_t.m4: New file, from GNU gettext.
90319         * m4/vasnprintf.m4: New file.
90320         * m4/vasprintf.m4: New file.
90321
90322 2003-01-30  Bruno Haible  <bruno@clisp.org>
90323
90324         * lib/printf-args.h: New file, from GNU gettext.
90325         * lib/printf-args.c: New file, from GNU gettext.
90326         * lib/printf-parse.h: New file, from GNU gettext.
90327         * lib/printf-parse.c: New file, from GNU gettext.
90328         * lib/vasnprintf.h: New file, from GNU gettext.
90329         * lib/vasnprintf.c: New file, from GNU gettext.
90330         * lib/asnprintf.c: New file, from GNU gettext.
90331         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90332         * lib/vasprintf.c: New file, from GNU gettext.
90333         * lib/asprintf.c: New file, from GNU gettext.
90334
90335 2003-01-29  Bruno Haible  <bruno@clisp.org>
90336
90337         * modules/stpncpy: New module.
90338         * MODULES.html.sh (func_all_modules): Add it.
90339
90340 2003-01-29  Bruno Haible  <bruno@clisp.org>
90341
90342         * m4/stpncpy.m4: New file.
90343
90344 2003-01-29  Bruno Haible  <bruno@clisp.org>
90345
90346         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90347         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90348
90349 2003-01-28  Bruno Haible  <bruno@clisp.org>
90350
90351         * modules/c-ctype: New module.
90352         * MODULES.html.sh (func_all_modules): Add it.
90353
90354 2003-01-28  Bruno Haible  <bruno@clisp.org>
90355
90356         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90357         Paul Eggert.
90358         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90359         Paul Eggert.
90360
90361 2003-01-27  Bruno Haible  <bruno@clisp.org>
90362
90363         * modules/xsetenv: New module.
90364         * MODULES.html.sh (func_all_modules): Add it.
90365
90366 2003-01-27  Bruno Haible  <bruno@clisp.org>
90367
90368         * lib/xsetenv.h: New file, from GNU gettext.
90369         * lib/xsetenv.c: New file, from GNU gettext.
90370
90371 2003-01-23  Jim Meyering  <jim@meyering.net>
90372
90373         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90374         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90375
90376 2003-01-23  Bruno Haible  <bruno@clisp.org>
90377
90378         * modules/minmax: New module.
90379         * MODULES.html.sh (func_all_modules): Add it.
90380
90381 2003-01-23  Bruno Haible  <bruno@clisp.org>
90382
90383         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90384         Eggert.
90385
90386 2003-01-22  Bruno Haible  <bruno@clisp.org>
90387
90388         * modules/exit: New module.
90389         * MODULES.html.sh (func_all_modules): Add it.
90390
90391 2003-01-22  Bruno Haible  <bruno@clisp.org>
90392
90393         * lib/exit.h: New file, from GNU gettext.
90394
90395 2003-01-19  Bruno Haible  <bruno@clisp.org>
90396
90397         * gnulib-tool: Recognize option --extract-maintainer.
90398         (func_get_maintainer): New function.
90399         * modules/*: Add Maintainer entry.
90400
90401 2003-01-16  Jim Meyering  <jim@meyering.net>
90402
90403         * m4/regex.m4: The `regex' struct is both input and output.
90404         Initialize it before each use.  Patch by Tim Waugh.
90405
90406 2003-01-16  Bruno Haible  <bruno@clisp.org>
90407
90408         * MODULES.html.sh: Add a table of contents. Add the module name as
90409         leftmost column. Add hyperlinks.
90410
90411 2003-01-15  Bruno Haible  <bruno@clisp.org>
90412
90413         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90414
90415 2003-01-15  Bruno Haible  <bruno@clisp.org>
90416
90417         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90418         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90419         suffix.
90420
90421 2003-01-15  Bruno Haible  <bruno@clisp.org>
90422
90423         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90424
90425 2003-01-15  Bruno Haible  <bruno@clisp.org>
90426
90427         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90428         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90429
90430 2003-01-14  Jim Meyering  <jim@meyering.net>
90431
90432         * lib/same.c (same_name): Tweak a comment.
90433
90434 2003-01-14  Bruno Haible  <bruno@clisp.org>
90435
90436         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90437         when a string comparison is sufficient.
90438
90439 2003-01-14  Bruno Haible  <bruno@clisp.org>
90440
90441         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90442         'unsigned int'.
90443
90444 2003-01-14  Bruno Haible  <bruno@clisp.org>
90445
90446         * lib/hash-pjw.c: Add comment about low quality of this function.
90447
90448 2003-01-13  Bruno Haible  <bruno@clisp.org>
90449
90450         * modules/stpcpy: Distribute lib/stpcpy.h.
90451         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90452
90453 2003-01-13  Bruno Haible  <bruno@clisp.org>
90454
90455         * modules/*: Add a description.
90456         * modules/strpbrk: Fix Makefile.am snippet.
90457         * modules/strtoimax: Fix dependencies.
90458         * modules/strtoumax: Likewise.
90459
90460 2003-01-13  Bruno Haible  <bruno@clisp.org>
90461
90462         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90463         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90464         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90465
90466 2003-01-13  Bruno Haible  <bruno@clisp.org>
90467
90468         * gnulib-tool (func_create_testdir): Store config/* files in the main
90469         directory.
90470         * config.rpath: Move to ...
90471         * config/config.rpath: ... here.
90472         * modules/gettext: Contains config/config.rpath, not config.rpath.
90473         * modules/iconv: Likewise.
90474
90475 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90476
90477         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90478         to avoid collisions with libcurses and libreadline.
90479
90480         * m4/getstr.m4: Remove.
90481         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90482
90483 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90484
90485         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90486         to avoid collisions with libcurses and libreadline.
90487
90488         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90489         * lib/getstr.h, getstr.c: Remove.
90490         * lib/getline.c: Include "getline.h", to check interface.
90491         Move body of old getstr.c here: this defines MIN_CHUNK and
90492         declares getdelim2, which is renamed from getstr.
90493         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90494
90495         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90496         All uses changed.
90497         * lib/linebuffer.h: Likewise.
90498         (readline): Remove backward-compatibility macro.
90499
90500 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90501
90502         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90503         to avoid collisions with libcurses and libreadline.
90504         * getstr: Remove.
90505         * MODULES.html.sh: Remove getstr.
90506         * modules/getline: Depend on unlocked-io, not getstr.
90507
90508 2003-01-12  Jim Meyering  <jim@meyering.net>
90509
90510         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90511
90512 2003-01-10  Bruno Haible  <bruno@clisp.org>
90513
90514         * modules/alloca: Change Makefile.am requirements. Simplify Include
90515         requirements. Add lib/alloca_.h to file list.
90516
90517 2003-01-10  Bruno Haible  <bruno@clisp.org>
90518
90519         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90520
90521 2003-01-10  Bruno Haible  <bruno@clisp.org>
90522
90523         * lib/alloca_.h: New file.
90524         * lib/getdate.y: Unconditionally include alloca.h.
90525         * lib/makepath.c: Likewise.
90526         * lib/setenv.c: Likewise.
90527         * lib/userspec.c: Likewise.
90528
90529 2003-01-09  Karl Berry  <karl@gnu.org>
90530
90531         * MODULES.html.sh: include `dirname $0` in PATH, to find
90532         gnulib-tool.
90533
90534 2003-01-09  Bruno Haible  <bruno@clisp.org>
90535
90536         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90537         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90538
90539 2003-01-09  Bruno Haible  <bruno@clisp.org>
90540
90541         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90542
90543 2003-01-09  Bruno Haible  <bruno@clisp.org>
90544
90545         * lib/stdbool.h.in: New file.
90546
90547 2003-01-09  Bruno Haible  <bruno@clisp.org>
90548
90549         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90550         * MODULES.html.sh: Likewise.
90551
90552 2003-01-08  Jim Meyering  <jim@meyering.net>
90553
90554         * lib/full-write.c: Undefine and define-away `const' after inclusion
90555         of errno.h, not before.  Suggestion from Bruno Haible.
90556
90557 2003-01-08  Bruno Haible  <bruno@clisp.org>
90558
90559         * modules/full-read: Depend on full-write.
90560
90561 2003-01-08  Bruno Haible  <bruno@clisp.org>
90562
90563         * lib/safe-read.c: Include specification header first, to ensure its
90564         selfcontainedness.
90565         * lib/full-write.c: Likewise.
90566
90567 2003-01-07  Jim Meyering  <jim@meyering.net>
90568
90569         * lib/full-write.c: Rework so that it may serve to define full_read,
90570         too.
90571         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90572
90573 2003-01-07  Bruno Haible  <bruno@clisp.org>
90574
90575         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90576         <inttypes.h>.
90577         * lib/xstrtol.h: Likewise.
90578         * lib/xstrtoimax.c: Likewise.
90579         * lib/xstrtoumax.c: Likewise.
90580         * lib/human.h: Likewise.
90581
90582         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90583         on systems that have <inttypes.h> but not <stdint.h>.
90584
90585 2003-01-07  Bruno Haible  <bruno@clisp.org>
90586
90587         * MODULES.html.sh: Add copyright notice.
90588         (missed_files): Omit CVS directory entries.
90589         (func_module): Make it work with sed-3.02.
90590         * MODULES.txt: Remove file.
90591
90592 2003-01-06  Jim Meyering  <jim@meyering.net>
90593
90594         * lib/version-etc.c: Update year in translatable copyright string.
90595
90596 2003-01-03  Karl Berry  <karl@gnu.org>
90597
90598         * config/config.{guess,sub}: update from prep.
90599
90600 2003-01-02  Karl Berry  <karl@gnu.org>
90601
90602         * doc/COPYING.DOC: belatedly updated to 1.2.
90603
90604 2003-01-01  Karl Berry  <karl@gnu.org>
90605
90606         * gnulib-tool (func_verify_module): report module name $module in
90607         error message, not $1.
90608         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90609         be created, only if it doesn't exist.
90610         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90611
90612 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90613
90614         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90615
90616 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90617
90618         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90619         memcmp if strcoll doesn't work.
90620
90621 2002-12-31  Bruno Haible  <bruno@clisp.org>
90622
90623         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90624         nonempty.
90625
90626 2002-12-31  Bruno Haible  <bruno@clisp.org>
90627
90628         * lib/memcoll.c (STRCOLL): New macro.
90629         (memcoll): Use it.
90630
90631 2002-12-31  Bruno Haible  <bruno@clisp.org>
90632
90633         * lib/localcharset.h: New file.
90634         * lib/localcharset.c: Include it.
90635         * lib/unicodeio.c: Likewise.
90636
90637 2002-12-31  Bruno Haible  <bruno@clisp.org>
90638
90639         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90640         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90641
90642 2002-12-31  Bruno Haible  <bruno@clisp.org>
90643
90644         * lib/getline.h: Include <stddef.h>, for size_t.
90645
90646         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90647         * lib/unicodeio.c: Don't include <stddef.h>.
90648
90649 2002-12-31  Bruno Haible  <bruno@clisp.org>
90650
90651         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90652         HAVE_TM_ZONE.
90653
90654 2002-12-24  Karl Berry  <karl@gnu.org>
90655
90656         * config/config.guess: update from prep.
90657
90658 2002-12-24  Bruno Haible  <bruno@clisp.org>
90659
90660         General infrasructure.
90661         * m4/README: Rewritten.
90662         * m4/onceonly.m4: New file.
90663         * m4/onceonly_2_57.m4: New file.
90664
90665         Module atexit.
90666         * m4/atexit.m4: New file.
90667
90668         Module strtod.
90669         * m4/strtod.m4: New file.
90670
90671         Module strtol.
90672         * m4/strtol.m4: New file.
90673
90674         Module strtoul.
90675         * m4/strtoul.m4: New file.
90676
90677         Module memchr.
90678         * m4/memchr.m4: New file.
90679
90680         Module memcmp.
90681         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90682         (jm_FUNC_MEMCMP): Invoke it.
90683
90684         Module memcpy.
90685         * m4/memcpy.m4: New file.
90686
90687         Module memmove.
90688         * m4/memmove.m4: New file.
90689
90690         Module memset.
90691         * m4/memset.m4: New file.
90692
90693         Module strcspn.
90694         * m4/strcspn.m4: New file.
90695
90696         Module strpbrk.
90697         * m4/strpbrk.m4: New file.
90698
90699         Module strstr.
90700         * m4/strstr.m4: New file.
90701
90702         Module strerror.
90703         * m4/strerror.m4: New file.
90704
90705         Module mktime.
90706         * m4/mktime.m4: Renamed from jm-mktime.m4.
90707         (gl_PREREQ_MKTIME): New macro.
90708         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90709
90710         Module malloc.
90711         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90712         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90713         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90714
90715         Module realloc.
90716         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90717         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90718         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90719
90720         Module strftime.
90721         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90722         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90723         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90724         gl_TM_GMTOFF.
90725         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90726
90727         Module xalloc.
90728         * m4/xalloc.m4: New file.
90729
90730         Module alloca.
90731         * m4/alloca.m4: New file.
90732
90733         Module putenv.
90734         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90735         (jm_FUNC_PUTENV): Invoke it.
90736
90737         Module setenv.
90738         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90739         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90740         when invoked twice.
90741         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90742         gt_FUNC_SETENV.
90743
90744         Module memrchr.
90745         * m4/memrchr.m4: New file.
90746
90747         Module stpcpy.
90748         * m4/stpcpy.m4: New file.
90749
90750         Module strcase.
90751         * m4/strcase.m4: New file.
90752
90753         Module strdup.
90754         * m4/strdup.m4: New file.
90755
90756         Module strnlen.
90757         * m4/strnlen.m4: New file.
90758
90759         Module strndup.
90760         * m4/strndup.m4: New file.
90761
90762         Module xstrtod.
90763         * m4/xstrtod.m4: New file.
90764
90765         Module xstrtol.
90766         * m4/xstrtol.m4: New file.
90767
90768         Module getdate.
90769         * m4/getdate.m4: New file.
90770
90771         Module unlocked-io.
90772         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90773         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90774         * m4/jm-glibc-io.m4n: Remove file.
90775
90776         Module long-options.
90777         * m4/long-options.m4: New file.
90778
90779         Module md5.
90780         * m4/md5.m4: New file.
90781
90782         Module sha.
90783         * m4/sha.m4: New file.
90784
90785         Module getstr.
90786         * m4/getstr.m4: New file.
90787
90788         Module getline.
90789         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90790         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90791         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90792         simply getline. Infoke gl_PREREQ_GETLINE.
90793
90794         Module obstack.
90795         * m4/obstack.m4: New file.
90796
90797         Module hash.
90798         * m4/hash.m4: New file.
90799
90800         Module readtokens.
90801         * m4/readtokens.m4: New file.
90802
90803         Module strverscmp.
90804         * m4/strverscmp.m4: New file.
90805
90806         Module stdbool.
90807         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90808         OSF/1.
90809
90810         Module strtoll.
90811         * m4/strtoll.m4: New file.
90812
90813         Module strtoull.
90814         * m4/strtoull.m4: New file.
90815
90816         Module strtoimax.
90817         * m4/strtoimax.m4: New file.
90818
90819         Module strtoumax.
90820         * m4/strtoumax.m4: New file.
90821
90822         Module xstrtoimax.
90823         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90824         jm_AC_PREREQ_XSTRTOIMAX.
90825         Moved the strtol prerequisites to strtol.m4.
90826         Moved the strtoll prerequisites to strtoll.m4.
90827         Moved the strtoimax prerequisites to strtoimax.m4.
90828
90829         Module xstrtoumax.
90830         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90831         jm_AC_PREREQ_XSTRTOUMAX.
90832         Moved the strtoul prerequisites to strtoul.m4.
90833         Moved the strtoull prerequisites to strtoull.m4.
90834         Moved the strtoumax prerequisites to strtoumax.m4.
90835
90836         Module chown.
90837         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90838         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90839
90840         Module dup2.
90841         * m4/dup2.m4: New file.
90842
90843         Module ftruncate.
90844         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90845         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90846
90847         Module getgroups.
90848         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90849         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90850
90851         Module gettimeofday.
90852         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90853         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90854         gl_PREREQ_GETTIMEOFDAY.
90855
90856         Module mkdir.
90857         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90858         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90859
90860         Module mkstemp.
90861         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90862         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90863         jm_AC_TYPE_UINTMAX_T.
90864         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90865
90866         Module stat.
90867         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90868         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90869
90870         Module lstat.
90871         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90872         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90873
90874         Module timespec.
90875         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90876         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90877         * m4/st_mtim.m4: Indentation.
90878
90879         Module nanosleep.
90880         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90881         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90882         gl_PREREQ_NANOSLEEP.
90883
90884         Module regex.
90885         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90886         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90887         (gl_REGEX): New macro.
90888
90889         Module rename.
90890         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90891         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90892
90893         Module rmdir.
90894         * m4/rmdir.m4: New file.
90895
90896         Module utime.
90897         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90898         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90899         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90900
90901         Module dirname.
90902         * m4/dirname.m4: New file.
90903
90904         Module getopt.
90905         * m4/getopt.m4: New file.
90906
90907         Module unistd-safer.
90908         * m4/unistd-safer.m4: New file.
90909
90910         Module fnmatch.
90911         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90912         declaration.
90913         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90914         (gl_FUNC_FNMATCH_POSIX): New macro.
90915         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90916         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90917         simply fnmatch.
90918
90919         Module exclude.
90920         * m4/exclude.m4: New file.
90921
90922         Module human.
90923         * m4/human.m4: New file.
90924
90925         Module acl.
90926         * m4/acl.m4: Nop.
90927
90928         Module backupfile.
90929         * m4/backupfile.m4: New file.
90930         * m4/d-ino.m4: Indentation.
90931
90932         Module fsusage.
90933         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90934         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90935         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90936
90937         Module dirfd.
90938         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90939         requirements.
90940
90941         Module euidaccess.
90942         * m4/euidaccess.m4: New file.
90943
90944         Module file-type.
90945         * m4/file-type.m4: New file.
90946
90947         Module fileblocks.
90948         * m4/fileblocks.m4: New file.
90949
90950         Module filemode.
90951         * m4/filemode.m4: New file.
90952
90953         Module isdir.
90954         * m4/isdir.m4: New file.
90955
90956         Module lchown.
90957         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90958         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90959
90960         Module makepath.
90961         * m4/makepath.m4: New file.
90962
90963         Module modechange.
90964         * m4/modechange.m4: New file.
90965
90966         Module mountlist.
90967         * m4/mountlist.m4: New file.
90968         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90969         Indentation.
90970
90971         Module path-concat.
90972         * m4/path-concat.m4: New file.
90973
90974         Module pathmax.
90975         * m4/pathmax.m4: New file.
90976
90977         Module same.
90978         * m4/same.m4: New file.
90979
90980         Module save-cwd.
90981         * m4/save-cwd.m4: New file.
90982
90983         Module savedir.
90984         * m4/savedir.m4: New file.
90985
90986         Module xgetcwd.
90987         * m4/xgetcwd.m4: New file.
90988         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90989
90990         Module xreadlink.
90991         * m4/xreadlink.m4: New file.
90992
90993         Module safe-read.
90994         * m4/safe-read.m4: New file.
90995
90996         Module safe-write.
90997         * m4/safe-write.m4: New file.
90998
90999         Module closeout.
91000         * m4/closeout.m4: New file.
91001
91002         Module stdio-safer.
91003         * m4/stdio-safer.m4: New file.
91004
91005         Module getpass.
91006         * m4/getpass.m4: New file.
91007
91008         Module getugroups.
91009         * m4/getugroups.m4: New file.
91010
91011         Module group-member.
91012         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91013         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91014
91015         Module idcache.
91016         * m4/idcache.m4: New file.
91017
91018         Module userspec.
91019         * m4/userspec.m4: New file.
91020
91021         Module gettime.
91022         * m4/clock_time.m4: New file.
91023         * m4/gettime.m4: New file.
91024
91025         Module settime.
91026         * m4/settime.m4: New file.
91027
91028         Module posixtm.
91029         * m4/posixtm.m4: New file.
91030
91031         Module gethostname.
91032         * m4/gethostname.m4: New file.
91033
91034         Module canon-host.
91035         * m4/canon-host.m4: New file.
91036
91037         Module gettext.
91038         * m4/codeset.m4: New file, from gettext-0.11.5.
91039         * m4/gettext.m4: New file, from gettext-0.11.5.
91040         * m4/glibc21.m4: New file, from gettext-0.11.5.
91041         * m4/iconv.m4: New file, from gettext-0.11.5.
91042         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91043         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91044         * m4/inttypes.m4: New file, from gettext-0.11.5.
91045         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91046         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91047         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91048         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91049         * m4/lib-link.m4: New file, from gettext-0.11.5.
91050         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91051         * m4/progtest.m4: New file, from gettext-0.11.5.
91052         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91053         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91054         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91055
91056         Module localcharset.
91057         * m4/localcharset.m4: New file.
91058
91059         Module hard-locale.
91060         * m4/hard-locale.m4: New file.
91061
91062         Module mbswidth.
91063         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91064         onceonly macros.
91065         * m4/mbrtowc.m4: Add comment.
91066
91067         Module memcasecmp.
91068         * m4/memcasecmp.m4: New file.
91069
91070         Module memcoll.
91071         * m4/memcoll.m4: New file.
91072
91073         Module unicodeio.
91074         * m4/unicodeio.m4: New file.
91075
91076         Module rpmatch.
91077         * m4/rpmatch.m4: New file.
91078
91079         Module yesno.
91080         * m4/yesno.m4: New file.
91081
91082         Module exitfail.
91083         * m4/exitfail.m4: New file.
91084
91085         Module c-stack.
91086         * m4/c-stack.m4 (gl_C_STACK): New macro.
91087         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91088
91089         Module error.
91090         * m4/error.m4 (gl_ERROR): New macro.
91091         (jm_PREREQ_ERROR): Use onceonly macros.
91092
91093         Module fatal.
91094         * m4/fatal.m4: New file.
91095
91096         Module getloadavg.
91097         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91098         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91099
91100         Module getpagesize.
91101         * m4/getpagesize.m4: New file.
91102
91103         Module getusershell.
91104         * m4/getusershell.m4: New file.
91105
91106         Module physmem.
91107         * m4/physmem.m4: New file.
91108
91109         Module posixver.
91110         * m4/posixver.m4: New file.
91111
91112         Module quotearg.
91113         * m4/quotearg.m4: New file.
91114
91115         Module quote.
91116         * m4/quote.m4: New file.
91117
91118         Module readutmp.
91119         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91120
91121         Module sig2str.
91122         * m4/sig2str.m4: New file.
91123
91124         Other.
91125         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91126         ulonglong.m4.
91127         * m4/intmax_t.m4: New file.
91128         * m4/d-type.m4: Indentation.
91129         * m4/jm-macros.m4: Update.
91130         * m4/prereq.m4 (jm_PREREQ): Update.
91131         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91132         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91133         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91134         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91135         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91136         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91137         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91138         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91139         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91140         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91141         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91142         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91143         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91144         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91145         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91146         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91147         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91148         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91149         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91150
91151 2002-12-24  Bruno Haible  <bruno@clisp.org>
91152
91153         * MODULES.txt: Update according to m4/ changes.
91154
91155         Module gettext.
91156         * config.rpath: New file, from gettext-0.11.5.
91157
91158         * modules/*: New module descriptions.
91159         * gnulib-tool: New file.
91160         * MODULES.html.sh: New file.
91161
91162 2002-12-21  Karl Berry  <karl@gnu.org>
91163
91164         * doc/fdl.texi: update to version 1.2.
91165
91166 2002-12-19  Karl Berry  <karl@gnu.org>
91167
91168         * config/config.guess: update from prep.
91169
91170 2002-12-18  Bruno Haible  <bruno@clisp.org>
91171
91172         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91173         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91174
91175 2002-12-17  Bruno Haible  <bruno@clisp.org>
91176
91177         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91178         stdlib.h, string.h.
91179
91180 2002-12-17  Bruno Haible  <bruno@clisp.org>
91181
91182         * lib/canon-host.c (strdup): Remove unused declaration.
91183
91184         * lib/fsusage.c: Include full_read.h.
91185         (get_fs_usage): Use full_read instead of safe_read.
91186
91187         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91188
91189 2002-12-12  Karl Berry  <karl@gnu.org>
91190
91191         * config/config.guess: update from prep.
91192
91193 2002-12-11  Bruno Haible  <bruno@clisp.org>
91194
91195         * m4/setenv.m4: New file, from gettext-0.11.5.
91196
91197 2002-12-11  Bruno Haible  <bruno@clisp.org>
91198
91199         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91200         not unsetenv().
91201         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91202         modifications:
91203
91204         2002-12-11  Bruno Haible  <bruno@clisp.org>
91205
91206                 * setenv.c (alloca): Fall back to malloc.
91207                 (freea): New macro.
91208                 (setenv): Use freea() to free memory allocated with alloca().
91209
91210         2002-11-13  Bruno Haible  <bruno@clisp.org>
91211
91212                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91213                 function declarations.
91214                 * unsetenv.c (unsetenv): Likewise.
91215
91216         2002-03-04  Bruno Haible  <bruno@clisp.org>
91217
91218                 Portability to AIX 4.3.3.
91219                 * unsetenv.c: New file, extracted from setenv.c.
91220                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91221
91222         2001-12-20  Bruno Haible  <bruno@clisp.org>
91223
91224                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91225                 use malloc instead. For SunOS 4.
91226
91227         2001-12-11  Bruno Haible  <bruno@clisp.org>
91228
91229                 * setenv.c: Declare alloca.
91230                 (compar_fn_t): New typedef.
91231                 (KNOWN_VALUE, STORE_VALUE): Use it.
91232
91233         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91234         setenv.h.
91235
91236 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91237
91238         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91239         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91240         Choose values that are less likely to collide with system fnmatch
91241         options.
91242         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91243         defined (e.g., a pure POSIX system).
91244         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91245         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91246
91247 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91248
91249         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91250         a pain in practice to deal with generated m4 files.  This change
91251         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91252
91253         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91254         and jm-glibc-io.m4, as they are no longer a special case.
91255         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91256         kludge and the auto-generation stuff.  Check only whether the
91257         functions are declared, not whether they exist, since older hosts
91258         that don't declare the functions can't use the optimization anyway.
91259
91260 2002-12-06  Jim Meyering  <jim@meyering.net>
91261
91262         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91263
91264         Merge in changes from libc's misc/error.c, in preparation
91265         for the merge of gnulib's changes back into libc.
91266
91267         * lib/error.c (_): Define only if not already defined.
91268         Move definition to follow all #include directives.
91269         Include unlocked-io.h only if !_LIBC.
91270         [_LIBC]: Include <libio/libioP.h>.
91271         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91272         (fflush): Tweak definition to use INTUSE.
91273         (putc): Define.
91274
91275 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91276
91277         * lib/alloca.c [defined emacs]: Include "lisp.h".
91278         (xalloc_die) [defined emacs]: New macro.
91279         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91280         [! defined emacs]: Include <xalloc.h>.
91281         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91282         (pointer): Typedef to POINTER_TYPE *.
91283         (malloc): Remove decl; we now always use xmalloc.
91284         (alloca): Use old-style definition, since Emacs needs this.
91285         Check for arithmetic overflow when computing combined size.
91286
91287 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91288
91289         Do not generate unlocked-io.h automatically, since it's easier to
91290         maintain it by hand.
91291
91292         * lib/unlocked-io.h: New file, from GNU diffutils,
91293         but with proper copyright notice and attribution.
91294         * lib/gen-uio: Remove.
91295         * lib/Makefile.am: Add copyright notice.
91296         (libfetish_a_SOURCES): Add unlocked-io.h.
91297         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91298         (DISTCLEANFILES, io_functions): Remove macros.
91299         (EXTRA_DIST): Remove gen_uio.
91300         (unlocked-io.h): Remove rule.
91301
91302 2002-12-04  Jim Meyering  <jim@meyering.net>
91303
91304         Reflect the fact that stat.c and lstat.c are no longer generated.
91305         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91306         (DISTCLEANFILES): Likewise.
91307         (EXTRA_DIST): Likewise.
91308         (all_local): Don't depend on stat.c or lstat.c.
91309         (stat.c, lstat.c): Remove rules.
91310         (EXTRA_DIST): Remove xstat.in.
91311
91312         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91313         * lib/stat.c: New file.  Contents mostly from xstat.in.
91314         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91315         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91316
91317         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91318         too.
91319         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91320
91321 2002-12-03  Jim Meyering  <jim@meyering.net>
91322
91323         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91324         but not semantics, to minimize the differences between these two files.
91325         (safe_read): Change comment to mention SAFE_READ_ERROR.
91326
91327         * lib/safe-read.c (IS_EINTR): Define.
91328         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91329
91330 2002-12-02  Jim Meyering  <jim@meyering.net>
91331
91332         * lib/safe-read.c (EINTR): Define.
91333         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91334         (INT_MAX): Provide fallback.
91335         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91336
91337         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91338
91339 2002-12-02  Bruno Haible  <bruno@clisp.org>
91340
91341         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91342         Define, taken from safe-read.c.
91343         (INT_MAX): Provide fallback.
91344         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91345         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91346
91347         * lib/safe-read.c (EINTR): Remove definition.
91348         (safe_read): Don't use EINTR if it is absent.
91349
91350 2002-12-01  Jim Meyering  <jim@meyering.net>
91351
91352         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91353         zero.
91354         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91355
91356 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91357
91358         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91359         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91360         with `if (! (value < limit)) abort ();', for readability.
91361
91362 2002-11-26  Karl Berry  <karl@gnu.org>
91363
91364         * lib/strdup.c: copy from libc again, with jim's ok.
91365         * lib/.cppi-disable: re-add strdup.c
91366
91367 2002-11-25  Karl Berry  <karl@gnu.org>
91368
91369         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91370         instead of "strtol.c".
91371
91372 2002-11-25  Karl Berry  <karl@gnu.org>
91373
91374         * config/install-sh: update from automake for variable quoting, $0 in
91375         error msgs, etc.
91376
91377         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91378         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91379         entry.
91380
91381 2002-11-25  Jim Meyering  <jim@meyering.net>
91382
91383         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91384
91385 2002-11-24  Karl Berry  <karl@gnu.org>
91386
91387         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91388         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91389
91390 2002-11-24  Jim Meyering  <jim@meyering.net>
91391
91392         Update from coreutils:
91393
91394         * lib/mktime.c: Merge in changes from libc.
91395
91396         Avoid a link-time failure on some Linux systems.
91397         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91398         (otherwise).
91399         (__mon_yday): Declare with the STATIC attribute.
91400         (__mktime_internal): Likewise.
91401         Based on a report from Greg Schafer.
91402
91403 2002-11-23  Jim Meyering  <jim@meyering.net>
91404
91405         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91406         Use `unsigned', not `int', as type of index.
91407
91408         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91409
91410         * lib/fsusage.c: Remove unneeded parentheses around operands of
91411         `defined'.
91412
91413 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91414
91415         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91416         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91417         so that we can be included first.
91418         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91419         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91420         No need to include stddef.h or sys/types.h any more.
91421         Surround local include files with "", not "<>".
91422         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91423         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91424         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91425         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91426         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91427         (ISPRINT): Remove; no longer needed now that we assume C89.
91428
91429         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91430         Preserve errno.
91431
91432         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91433         quotearg_char): Use SIZE_MAX rather than
91434         (size_t) -1 when we are talking about "infinity".
91435
91436         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91437
91438 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91439
91440         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91441         hint that one should use `if (! x) abort ();' rather than `assert
91442         (x);', and anyway it's one less thing to worry about configuring.
91443         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91444         hash_rehash, hash_insert): Use abort rather than assert.
91445
91446 2002-11-22  Bruno Haible  <bruno@clisp.org>
91447
91448         * lib/safe-read.h: Assume C89. Add comments.
91449         (safe_read): Change return type to size_t.
91450         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91451         byte counts > SSIZE_MAX correctly.
91452         * lib/safe-write.h: New file.
91453         * lib/safe-write.c: New file.
91454         * lib/full-read.h: New file.
91455         * lib/full-read.c: New file.
91456         * lib/full-write.h: Assume C89. Add comments.
91457         * lib/full-write.c: Include safe-write.h.
91458         (full_write): Rewritten to use safe_write.
91459         Suggested by Jim Meyering and Paul Eggert.
91460
91461 2002-11-21  Jim Meyering  <jim@meyering.net>
91462
91463         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91464
91465         Merge in changes from the coreutils.
91466
91467         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91468         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91469         <stdint.h>.
91470         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91471         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91472         int.  Work more efficiently if X is the same width as uintmax_t.
91473         Do not compare X to -1, to avoid bogus compiler warning.
91474         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91475         Don't assume that f_frsize and f_bsize are the same type.
91476
91477         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91478         warning on FreeBSD.
91479
91480         * lib/makepath.c (make_path): Restore umask *before* creating the final
91481         component.
91482         (make_path): Minor reformatting.
91483
91484         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91485         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91486         HAVE_MALLOC/HAVE_REALLOC.
91487
91488         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91489         dummy ones.  At least on GNU/Linux systems, `auto' means something
91490         else.
91491         From Michael Stone.
91492
91493 2002-11-21  Bruno Haible  <bruno@clisp.org>
91494
91495         Remove case insensitive option matching.
91496         * lib/argmatch.h (argcasematch): Remove declaration.
91497         (ARGCASEMATCH): Remove macro.
91498         (__xargmatch_internal): Remove case_sensitive argument.
91499         (XARGMATCH): Update.
91500         (XARGCASEMATCH): Remove macro.
91501         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91502         case_sensitive argument.
91503         (argcasematch): Remove function.
91504         (__xargmatch_internal): Remove case_sensitive argument.
91505         (main): Use XARGMATCH instead of XARGCASEMATCH.
91506
91507         * lib/xmalloc.c: Change compile-time error message. Add comment about
91508         required autoconf version.
91509
91510 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91511
91512         Merge argmatch cleanups from Bison.  Assume C89.
91513
91514         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91515         Include stdlib.h, for EXIT_FAILURE.
91516         Always include <string.h>, since we assume C89.
91517         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91518         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91519         Include <stddef.h> instead, since it's all we need for size_t.
91520         (PARAMS): Remove.  All uses removed.
91521         (ARRAY_CARDINALITY): Do not bother to #undef.
91522         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91523         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91524         Remove unnecessary parentheses.
91525         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91526         Insert necessary parentheses.
91527         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91528         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91529
91530 2002-11-19  Bruno Haible  <bruno@clisp.org>
91531
91532         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91533         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91534
91535         * lib/mbswidth.h (PARAMS): Remove macro.
91536         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91537         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91538
91539         * lib/gcd.h (PARAMS): Remove macro.
91540         (gcd): Use ANSI C function declarations.
91541         * lib/gcd.c (gcd): Likewise.
91542
91543 2002-11-15  Bruno Haible  <bruno@clisp.org>
91544
91545         * lib/strcspn.c: Include <stddef.h>.
91546         (strcspn): Use ANSI C function declaration. Change return type to
91547         size_t. Use NULL.
91548         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91549         (strpbrk): Use NULL.
91550         * lib/strpbrk.h (PARAMS): Remove macro.
91551         (strpbrk): Use ANSI C function declaration.
91552         * lib/strstr.c: Don't include <sys/types.h>.
91553         * lib/strstr.h (PARAMS): Remove macro.
91554         (strstr): Use ANSI C function declarations.
91555
91556 2002-11-14  Karl Berry  <karl@gnu.org>
91557
91558         * config/mkinstalldirs: `do' on separate line, instead of
91559         `for var; do'.
91560
91561 2002-11-06  Bruno Haible  <bruno@clisp.org>
91562
91563         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91564         * lib/gcd.c (gcd): Likewise.
91565
91566 2002-11-05  Bruno Haible  <bruno@clisp.org>
91567
91568         * lib/gcd.h: New file, from gettext-0.11.5.
91569         * lib/gcd.c: New file, from gettext-0.11.5.
91570
91571 2002-11-05  Bruno Haible  <bruno@clisp.org>
91572
91573         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91574         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91575         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91576         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91577
91578         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91579         <libintl.h>.
91580         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91581         <libintl.h>.
91582
91583         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91584         * lib/human.c: Include gettext.h instead of <libintl.h>.
91585         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91586         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91587         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91588         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91589         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91590         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91591         (textdomain): Remove definition.
91592         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91593
91594         * lib/long-options.c: Remove include of <libintl.h> and definition of
91595         _.
91596         * lib/same.c: Remove include of <libintl.h> and definition of _.
91597
91598 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91599
91600         * lib/config.charset: A few additions for Solaris.
91601
91602 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91603
91604         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91605         * lib/localcharset.c (locale_charset): Declare as extern "C".
91606
91607 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91608
91609         * lib/config.charset: msdos in uk_UA uses CP1125.
91610
91611 2002-11-04  Bruno Haible  <bruno@clisp.org>
91612
91613         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91614         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91615         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91616         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91617         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91618
91619 2002-11-04  Bruno Haible  <bruno@clisp.org>
91620
91621         * lib/localcharset.c (locale_charset): Don't return an empty string.
91622
91623 2002-11-04  Bruno Haible  <bruno@clisp.org>
91624
91625         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91626         aliases.
91627
91628 2002-11-04  Bruno Haible  <bruno@clisp.org>
91629
91630         * lib/config.charset: Update for newest glibc. Add canonical names
91631         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91632
91633 2002-11-04  Bruno Haible  <bruno@clisp.org>
91634
91635         * lib/config.charset: Add support for NetBSD.
91636
91637 2002-11-04  Bruno Haible  <bruno@clisp.org>
91638
91639         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91640
91641 2002-11-01  Bruno Haible  <bruno@clisp.org>
91642
91643         * configure.in: Add AC_CONFIG_AUX_DIR call.
91644         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91645         test/Makefile.
91646         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91647
91648 2002-09-28  Karl Berry  <karl@gnu.org>
91649
91650         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91651         installed automake until the next release, since changes have been
91652         made.
91653
91654 2002-09-25  Karl Berry  <karl@gnu.org>
91655
91656         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91657         * lib/getopt*: copy from libc/posix.
91658         * lib/gettext.h: copy from gettext.
91659         * lib/.cppi-disable: add strdup.c, gettext.h.
91660
91661 2002-09-25  Karl Berry  <karl@gnu.org>
91662
91663         * config/srclist.txt: enable gettext.h check.
91664         * config/config.{guess,sub}: update from prep.
91665         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91666                 from automake 1.6.3.
91667         See srclist*.
91668
91669 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91670
91671         * regex.c (PATFETCH): Remove the translating fetch.
91672         (PATFETCH_RAW): Rename to PATFETCH.
91673         (set_image_of_range): New fun.
91674         (SET_RANGE_TABLE_WORK_AREA): Use it.
91675         (regex_compile): Don't translate the pattern chars so eagerly.
91676         Only do it when inserting an `exactn' bytecode or when handling
91677         a char-range.
91678         (mutually_exclusive_p): Avoid empty statement.
91679
91680 2002-07-06  Jim Meyering  <meyering@lucent.com>
91681
91682         * m4/README: Don't mention Makefile.am.in.
91683         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91684
91685 2002-07-01  Jim Meyering  <meyering@lucent.com>
91686
91687         * lib/c-stack.c: Include sys/time.h.
91688         From Volker Borchert.
91689
91690 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91691
91692         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91693
91694 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91695
91696         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91697         New macro.  Use it uniformly instead of
91698         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91699         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91700         reported by Vin Shelton.
91701
91702 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91703
91704         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91705         Do not assume SA_SIGINFO behavior.
91706         Bug reported by Jim Meyering on NetBSD 1.5.2.
91707
91708 2002-06-22  Jim Meyering  <meyering@lucent.com>
91709
91710         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91712
91713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91714         now that configure.ac uses AC_GNU_SOURCE.
91715         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91716         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91717
91718         Update to latest tools.  Suggestions from Paul Eggert.
91719         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91720         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91721         * m4/fnmatch.m4: Likewise.
91722         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91723         to AC_HEADER_STDBOOL
91724
91725 2002-06-22  Jim Meyering  <meyering@lucent.com>
91726
91727         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91728         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91729
91730 2002-06-22  Jim Meyering  <meyering@lucent.com>
91731
91732         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91733
91734         * lib/exitfail.c, exitfail.h: Likewise.
91735         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91736
91737         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91738         of fnmatch.h.
91739         (EXTRA_DIST): Add fnmatch_loop.c.
91740         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91741
91742         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91743         * lib/fnmatch.c: Update from diffutils-2.8.2.
91744         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91745         * lib/fnmatch.h: Remove file.
91746
91747 2002-06-21  Jim Meyering  <meyering@lucent.com>
91748
91749         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91750         * m4/mbrtowc.m4: Likewise.
91751
91752         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91753         * m4/mbswidth.m4: Reflect name change:
91754         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91755         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91756
91757         * m4/lib-link.m4: Update from gettext-0.11.2.
91758         * m4/gettext.m4: Likewise.
91759
91760         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91761         From Alfred M. Szmidt.
91762
91763 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91764
91765         * lib/file-type.h: Report an error if neither S_ISREG nor
91766         S_IFREG is defined, instead of using a test specific to glibc
91767         2.2.  This should be safe, since POSIX requires S_ISREG and
91768         Unix Version 7 had S_IFREG.  We don't need to check for
91769         <sys/types.h> since we don't use any symbols that it defines.
91770
91771 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91772
91773         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91774         $@-t, so that each temporary file name is unique and valid in the first
91775         8 characters, for operation under DOS.
91776
91777 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91778
91779         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91780
91781 2002-06-15  Jim Meyering  <meyering@lucent.com>
91782
91783         Work even with DJGPP 2.03, which lacks support for symlinks.
91784         From Richard Dawe.
91785         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91786         is defined.
91787         * lib/lchown.c (S_ISLNK): Likewise.
91788
91789 2002-06-15  Jim Meyering  <meyering@lucent.com>
91790
91791         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91792         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91793         have been included before this file.
91794
91795 2002-06-14  Jim Meyering  <meyering@lucent.com>
91796
91797         * lib/file-type.h: Use the version from diffutils-2.8.2.
91798         * lib/file-type.c: Likewise.
91799
91800 2002-06-07  Jim Meyering  <meyering@lucent.com>
91801
91802         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91803         They're needed at least for NetBSD 1.5.2.
91804         ($statxfs_includes): Include those same headers.
91805         ($statxfs_includes): Include sys/vfs.h if available.
91806         ($statxfs_includes): Likewise for sys/statvfs.h.
91807         Check for the following members in both structs statfs and statvfs:
91808         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91809
91810 2002-06-01  Jim Meyering  <meyering@lucent.com>
91811
91812         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91813         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91814
91815 2002-05-28  Jim Meyering  <meyering@lucent.com>
91816
91817         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91818         Reported by Volker Borchert.
91819
91820 2002-05-27  Jim Meyering  <meyering@lucent.com>
91821
91822         Fix a problem seen only on nonconforming systems whereby ls.c's
91823         use of localtime, and then of gettimeofday would cause trouble:
91824         the localtime call used to initialize rpl_gettimeofday's save
91825         mechanism would clobber ls's current local time information so
91826         that in any long listing the first file would always be listed
91827         with date 1970-01-01.  Analysis by Volker Borchert.
91828
91829         * lib/gettimeofday.c (localtime): Undefine.
91830         (rpl_localtime): New function.
91831
91832 2002-05-27  Jim Meyering  <meyering@lucent.com>
91833
91834         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91835         localtime.
91836
91837         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91838         use the replacement function; it wouldn't resolve at link time.
91839         Reported by Volker Borchert.
91840
91841 2002-05-22  Jim Meyering  <meyering@lucent.com>
91842
91843         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91844         file-type.h.
91845         * lib/file-type.h: New file.
91846         * lib/file-type.c (file_type): New file/function.  Extracted from
91847         diffutils.
91848
91849 2002-04-30  Jim Meyering  <meyering@lucent.com>
91850
91851         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91852
91853 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91854
91855         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91856
91857 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91858
91859         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91860         Do not check for alloca.h (no longer used) or stdbool.h (was never
91861         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91862
91863 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91864
91865         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91866
91867 2002-04-29  Jim Meyering  <meyering@lucent.com>
91868
91869         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91870         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91871         Use AC_FUNC_STRNLEN here instead.
91872
91873         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91874         With autoconf-2.53a, it's part of AC_PROG_CC.
91875
91876 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91877
91878         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91879         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91880
91881 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91882
91883         * lib/sig2str.h, lib/sig2str.c: New files.
91884         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91885
91886 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91887
91888         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91889         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91890         of 127, since 64 is the largest conceivable number for ancient
91891         nonstandard hosts.
91892         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91893
91894 2002-04-28  Jim Meyering  <meyering@lucent.com>
91895
91896         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91897
91898 2002-04-24  Jim Meyering  <meyering@lucent.com>
91899
91900         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91901         (jm_PREREQ): Use it.
91902
91903         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91904         mach/mach.h fcntl.h.
91905         Check for this function: setlocale.
91906
91907 2002-04-24  Jim Meyering  <meyering@lucent.com>
91908
91909         * lib/gettext.h: New file, from Gettext.
91910         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91911         (libfetish_a_SOURCES): Add gettext.h.
91912
91913 2002-04-16  Jim Meyering  <meyering@lucent.com>
91914
91915         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91916         ut_pid, ut_id, ut_exit.
91917
91918 2002-04-16  Jim Meyering  <meyering@lucent.com>
91919
91920         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91921         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91922         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91923
91924 2002-04-12  Jim Meyering  <meyering@lucent.com>
91925
91926         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91927         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91928         existence of the getmntinfo function.  Needed for Darwin 5.3.
91929
91930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91931         This is necessary at least on Darwin 5.3.
91932
91933         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91934         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91935         strnlen.o in the library, and that makes some versions of ranlib
91936         object.
91937
91938 2002-04-12  Jim Meyering  <meyering@lucent.com>
91939
91940         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91941
91942 2002-04-09  Jim Meyering  <meyering@lucent.com>
91943
91944         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91945         to be more precise.  Rather than saying we're checking whether the
91946         function `works', say what we're testing.
91947         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91948         Reported by Bruno Haible.
91949
91950 2002-03-10  Jim Meyering  <meyering@lucent.com>
91951
91952         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91953         Suggestion from Santiago Vila.
91954
91955 2002-03-08  Jim Meyering  <meyering@lucent.com>
91956
91957         * lib/rename.c: Mention that this wrapper is needed also on
91958         mips-dec-ultrix4.4 systems.
91959
91960 2002-03-02  Jim Meyering  <meyering@lucent.com>
91961
91962         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91963         not HAVE_CLOCK_SETTIME.
91964
91965 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91966
91967         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91968         Check for clock_settime.
91969
91970 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91971
91972         * lib/nanosleep.h: Rename to....
91973         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91974
91975         * lib/gettime.c: New file.
91976         * lib/settime.c: New file.
91977         * lib/stime.c: Remove.
91978
91979         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91980         timespec.h.  Remove nanosleep.h.
91981
91982 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91983
91984         * m4/acl.m4: New file.
91985         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91986         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91987
91988 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91989
91990         * lib/acl.c, lib/acl.h: New files.
91991         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91992
91993 2002-02-24  Jim Meyering  <meyering@lucent.com>
91994
91995         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91996         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91997         cause trouble.  Reported by Nelson Beebe.
91998
91999 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92000
92001         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92002         compilers that don't know that xalloc_die never returns.
92003
92004 2002-02-20  Jim Meyering  <meyering@lucent.com>
92005
92006         * lib/getdate.c: Regenerate using bison-1.33.
92007
92008 2002-02-17  Jim Meyering  <meyering@lucent.com>
92009
92010         * config/config.guess (main): Don't use `head -1'; it's no longer
92011         portable. Use `sed 1q' instead.
92012
92013 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92014
92015         * m4/codeset.m4: Upgrade to gettext-0.11.
92016         * m4/gettext.m4: Upgrade to gettext-0.11.
92017         * m4/glibc21.m4: Upgrade to gettext-0.11.
92018         * m4/iconv.m4: Upgrade to gettext-0.11.
92019         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92020         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92021         * m4/lib-ld.m4: New file, from gettext-0.11.
92022         * m4/lib-link.m4: New file, from gettext-0.11.
92023         * m4/lib-prefix.m4: New file, from gettext-0.11.
92024         * m4/progtest.m4: Upgrade to gettext-0.11.
92025
92026 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92027
92028         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92029         (jm_PREREQ): Use it.
92030
92031 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92032
92033         * lib/posixver.c, lib/posixver.h: New files.
92034         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92035
92036 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92037             Bruno Haible  <bruno@clisp.org>
92038
92039         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92040         (fwrite_success_callback): New declaration.
92041         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92042         print_unicode_char. Call failure callback instead of error.
92043         (fwrite_success_callback): New function.
92044         (exit_failure_callback): New function.
92045         (fallback_failure_callback): New function.
92046         (print_unicode_char): Call unicode_to_mb.
92047
92048 2002-01-26  Jim Meyering  <meyering@lucent.com>
92049
92050         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92051         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92052
92053 2002-01-26  Jim Meyering  <meyering@lucent.com>
92054
92055         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92056
92057 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92058
92059         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92060
92061 2002-01-22  Jim Meyering  <meyering@lucent.com>
92062
92063         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92064         Otherwise, some versions of automake would omit the rule that makes
92065         Makefile from Makefile.in.
92066
92067 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92068
92069         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92070         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92071         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92072         (memcoll): Set errno to zero if there is no error.
92073
92074         * lib/quotearg.c (quotearg_buffer_restyled):
92075         Fix bug with quoting buffers containing NUL when backslashing escapes.
92076         This bug was exposed by the other changes in this patch.
92077         (quotearg_n_options): New arg ARGSIZE.
92078         All callers changed.
92079         (quoting_options_from_style): New function.
92080         (quotearg_n_style): Use it.
92081         (quotearg_n_style_mem): New function.
92082
92083         * lib/quotearg.h (quotearg_n_style_mem): New function.
92084
92085 2002-01-19  Jim Meyering  <meyering@lucent.com>
92086
92087         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92088         Remove useless quotes: DF_PROG="df".
92089         * m4/strnlen.m4: New file.
92090
92091 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92092
92093         * lib/backupfile.c (ISDIGIT): Comment fix.
92094         * lib/getdate.y (ISDIGIT): Likewise.
92095         * lib/posixtm.c (ISDIGIT, year): Likewise.
92096         * lib/strverscmp.c (ISDIGIT): Likewise.
92097         * lib/userspec.c (ISDIGIT): Likewise.
92098
92099 2002-01-16  Jim Meyering  <meyering@lucent.com>
92100
92101         * lib/getdate.y: Add three semicolons, each just before a closing
92102         brace. Bison (as of version 1.31) no longer papers over that mistake.
92103
92104 2002-01-05  Jim Meyering  <meyering@lucent.com>
92105
92106         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92107
92108 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92109
92110         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92111         not silently exit merely because the output buffer happens to
92112         have nothing pending.
92113
92114 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92115
92116         See the big note in ../ChangeLog.
92117         * lib/human.c (suffixes): Prefer K to k for 1024.
92118         (generate_suffix_backwards): New function.
92119         (human_readable_inexact): Use it.
92120         * lib/xstrtol.c (__xstrtol): If there is no number but there
92121         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92122         Accept 'K' as well as 'k'.
92123
92124 2001-12-15  Jim Meyering  <meyering@lucent.com>
92125
92126         * lib/regex.h (__restrict_arr): Update from libc.
92127
92128         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92129         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92130         (STREQ): Define.
92131
92132 2001-12-14  Jim Meyering  <meyering@lucent.com>
92133
92134         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92135         Suggestion from Bruno Haible.
92136
92137 2001-12-10  Jim Meyering  <meyering@lucent.com>
92138
92139         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92140         xrealloc, Instead, include "xalloc.h".
92141         (initbuffer): Don't cast xmalloc return value to char*.
92142         (readline): Reword comment.
92143         Don't cast xrealloc return value to char*
92144         Return NULL, not 0.
92145
92146 2001-12-09  Jim Meyering  <meyering@lucent.com>
92147
92148         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92149         about `signed and unsigned type in conditional expression'.
92150         * lib/posixtm.c (posix_time_parse): Likewise.
92151
92152         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92153
92154         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92155         to avoid a pedantic warning.
92156
92157         * lib/getstr.c: Don't include assert.h.
92158         (getstr): Remove warning-evoking assertions.
92159         Return -1 if offset parameter is out of bounds.
92160         Change the type of a local from int to size_t.
92161
92162         * lib/strftime.c (my_strftime_localtime_r): Include this function
92163         definition in the `#if ! HAVE_TM_GMTOFF' block.
92164
92165         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92166         Include xalloc.h instead.
92167
92168 2001-12-02  Jim Meyering  <meyering@lucent.com>
92169
92170         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92171         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92172         included.
92173
92174         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92175         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92176
92177 2001-11-30  Akim Demaille  <akim@epita.fr>
92178
92179         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92180         before being defined.
92181
92182 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92183
92184         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92185         First arg is int, not unsigned.
92186         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92187         (SIZE_MAX, UINT_MAX): New macros.
92188         (quotearg_n_options): Abort if N is negative.
92189         Avoid overflow check on hosts where size_t is 64 bits and int
92190         is 32 bits, as overflow is impossible there.
92191         Fix off-by-one typo that caused unnecessary reallocation.
92192
92193 2001-11-27  Jim Meyering  <meyering@lucent.com>
92194
92195         * lib/tempname.c: Merge with version from libc.
92196         * lib/regex.c: Likewise.
92197
92198         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92199         systems for which STDC_HEADERS is 0, it was not included, resulting in
92200         a warning about an integer-to-pointer conversion problem with getenv.
92201         Reported by Volker Borchert.
92202
92203 2001-11-26  Jim Meyering  <meyering@lucent.com>
92204
92205         * lib/gtod.h: Remove file.
92206         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92207         * lib/gettimeofday.c: Don't include gtod.h.
92208         (GTOD_init): Remove function.
92209         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92210         Suggestion from Volker Borchert.
92211
92212 2001-11-23  Jim Meyering  <meyering@lucent.com>
92213
92214         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92215         it.
92216         * lib/hash.c (struct hash_table): Define it here instead.
92217
92218 2001-11-22  Jim Meyering  <meyering@lucent.com>
92219
92220         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92221
92222 2001-11-20  Jim Meyering  <meyering@lucent.com>
92223
92224         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92225         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92226
92227 2001-11-19  Jim Meyering  <meyering@lucent.com>
92228
92229         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92230         directory.  Use "conftestXXXXXX" as the template.
92231         Suggestion from Paul Eggert.
92232
92233         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92234         immediately, so the test doesn't mistakenly hit the max-open-files
92235         limit.
92236
92237 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92238
92239         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92240         (TEMPORARIES): New macro.
92241         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92242         removes an artificial limitation (e.g. HP-UX 10.20, where
92243         TMP_MAX is 17576).
92244
92245 2001-11-18  Jim Meyering  <meyering@lucent.com>
92246
92247         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92248
92249 2001-11-18  Jim Meyering  <meyering@lucent.com>
92250
92251         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92252         on SunOS 4.
92253
92254         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92255         files will be created before anything else.
92256
92257 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92258
92259         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92260         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92261
92262 2001-11-17  Jim Meyering  <meyering@lucent.com>
92263
92264         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92265         Prompted by a report from Bob Proulx.
92266
92267         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92268         Instead, require UTILS_FUNC_MKSTEMP.
92269
92270 2001-11-17  Jim Meyering  <meyering@lucent.com>
92271
92272         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92273         Now, that's done as part of AC_FUNC_STRTOD.
92274
92275 2001-11-17  Jim Meyering  <meyering@lucent.com>
92276
92277         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92278         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92279         rather than group writable.  Patch by Juan F. Codagnone.
92280
92281         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92282         xrealloc, Instead, include "xalloc.h".
92283
92284         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92285         Remove explicit declarations of xmalloc, xrealloc,
92286         and xstrdup.  Instead, include "xalloc.h".
92287
92288         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92289         unlocked-io.h.
92290         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92291         Likewise.
92292         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92293
92294         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92295         Reported by Padraig Brady.
92296
92297         * lib/mkstemp.c: #undef mkstemp.
92298         Include config.h.
92299         (rpl_mkstemp): Rename from mkstemp.
92300         Protoize.
92301
92302 2001-11-16  Jim Meyering  <meyering@lucent.com>
92303
92304         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92305         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92306         determine the amount of total physical memory, use pstat_getstatic.
92307         HPUX-11 doesn't define _SC_PHYS_PAGES.
92308         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92309         If sysconf couldn't be used to determine the amount of available
92310         physical memory, use both pstat_getstatic and pstat_getdynamic.
92311         Based on a patch from Bob Proulx.
92312
92313 2001-11-10  Jim Meyering  <meyering@lucent.com>
92314
92315         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92316         (jm_PREREQ): Use it.
92317
92318 2001-11-09  Jim Meyering  <meyering@lucent.com>
92319
92320         * m4/jm-macros.m4: Require autoconf-2.52f.
92321         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92322         Use these AC_-prefixed names, not the AM_-prefixed ones.
92323
92324         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92325
92326 2001-11-05  Jim Meyering  <meyering@lucent.com>
92327
92328         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92329
92330 2001-11-04  Jim Meyering  <meyering@lucent.com>
92331
92332         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92333         $DEFS.
92334
92335 2001-11-03  Jim Meyering  <meyering@lucent.com>
92336
92337         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92338         of AC_DEFUN.
92339
92340         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92341         know the name of the variable in the macro definition.
92342
92343 2001-11-03  Jim Meyering  <meyering@lucent.com>
92344
92345         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92346         in argmatch_to_argument call.
92347
92348         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92349         argument.
92350
92351         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92352         e.g., a fault due to an attempt to free a NULL pointer.
92353
92354 2001-11-01  Jim Meyering  <meyering@lucent.com>
92355
92356         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92357         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92358
92359 2001-11-01  Jim Meyering  <meyering@lucent.com>
92360
92361         * lib/dirfd.c, lib/dirfd.h: New files.
92362         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92363
92364         * lib/hash.c (hash_print) [TESTING]: Clean up.
92365
92366 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92367
92368         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92369         to avoid a warning if -Wall.
92370
92371 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92372
92373         * README: New file
92374         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92375         (per RMS's instructions, this is now the canonical source)
92376         * lgpl/, gpl/: New directories.
92377
92378 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92379
92380         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92381
92382 2001-10-21  Jim Meyering  <meyering@lucent.com>
92383
92384         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92385         this code would end up calling gettext even in packages built
92386         with --disable-nls.
92387         * lib/getopt.c (_): Likewise.
92388         * lib/regex.c (_): Likewise.
92389
92390 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92391
92392         * m4/error.m4 (jm_PREREQ_ERROR):
92393         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92394         AC_FUNC_STRERROR_R does that.
92395         Check for strerror declaration.
92396
92397         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92398         are supposed to have them these days.
92399         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92400         Merge changes from latest Autoconf CVS.
92401         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92402         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92403         POSIX decided to standardize on the int flavor of strerror_r.
92404
92405 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92406
92407         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92408         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92409         Use strerror_r that is only a macro, even if it is not a function.
92410         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92411         (private_strerror): Use prototypes, not old-style function definition.
92412         (print_errno_message): New function.
92413         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92414         char*-flavored one.
92415         (error_tail, error, error_at_line): Use it.
92416
92417 2001-10-11  Jim Meyering  <meyering@lucent.com>
92418
92419         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92420         and quote_n (1, ... to avoid clobbering a buffer.
92421
92422 2001-10-05  Jim Meyering  <meyering@lucent.com>
92423
92424         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92425         hash-pjw.h.
92426         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92427         * lib/hash-pjw.h: New file.
92428
92429 2001-09-30  Jim Meyering  <meyering@lucent.com>
92430
92431         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92432         `struct fsstat' has the `f_fstypename' member.
92433         Use that to define FS_TYPE, which is now used to make
92434         the getfsstat link test tighter.
92435
92436 2001-09-30  Jim Meyering  <meyering@lucent.com>
92437
92438         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92439         Include <sys/ucred.h>, for Apple Darwin.
92440         Include sys/mount.h and sys/fs_types.h only if available.
92441         (FS_TYPE): Define.
92442         (read_filesystem_list): Use FS_TYPE.
92443
92444 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92445
92446         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92447         a boolean context.
92448
92449 2001-09-29  Jim Meyering  <meyering@lucent.com>
92450
92451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92452         [one-argument getmntent function]): Include stdio.h before mntent.h.
92453         SunOS 4.1.x needs it for the declaration of `FILE'.
92454         Patch by Volker Borchert.
92455
92456         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92457         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92458         sys/fs_types.h, and make the link-test for getfsstat guard #include
92459         directives with appropriate #if HAVE_*_H tests so that we can
92460         detect getfsstat on Apple Darwin1.3.7 systems.
92461         Reported by Nelson Beebe.
92462         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92463
92464 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92465
92466         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92467         #defines strtoimax.  Also treat the other strto* functions
92468         like strtoimax.
92469
92470         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92471         Check for strtoul and strtoumax,
92472         as those declarations are made even in the signed case.
92473         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92474         Likewise, for strtol and strtoimax.
92475
92476 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92477
92478         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92479         #defines strtoimax.  Also treat the other strto* functions
92480         like strtoimax.
92481
92482         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92483         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92484         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92485
92486 2001-09-26  Jim Meyering  <meyering@lucent.com>
92487
92488         Most macros in unlocked-io.h had the wrong number of arguments.
92489         * lib/gen-uio: New script.
92490         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92491         * lib/unlocked-io.hin: Remove file.
92492         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92493         rather than trying to embed it here.
92494         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92495         Reported by Padraig Brady.
92496
92497 2001-09-25  Volker Borchert  <bt@teknon.de>
92498
92499         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92500         `result'.
92501
92502 2001-09-24  Jim Meyering  <meyering@lucent.com>
92503
92504         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92505
92506 2001-09-23  Jim Meyering  <meyering@lucent.com>
92507
92508         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92509         instead of the mere test for existence of mntent.h.  The latter
92510         would get a false-positive on AIX 3.4 systems.
92511         In the outer getmntent if-block, don't die if neither of the getmntent
92512         tests succeeds.  Instead, just fall through and continue with the
92513         remaining tests.
92514
92515 2001-09-23  Jim Meyering  <meyering@lucent.com>
92516
92517         * lib/mountlist.c: Remove useless parentheses in #if directives.
92518         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92519         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92520
92521 2001-09-22  Jim Meyering  <meyering@lucent.com>
92522
92523         * m4/gettext.m4: New file.  From gettext.
92524         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92525         * m4/progtest.m4: Likewise
92526         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92527         * m4/glibc21.m4: Likewise.
92528
92529         * m4/libintl.m4: Remove.  No longer used.
92530
92531 2001-09-22  Jim Meyering  <meyering@lucent.com>
92532
92533         * lib/localcharset.c: Update from latest gettext.
92534         * lib/config.charset: Likewise.
92535
92536 2001-09-20  Jim Meyering  <meyering@lucent.com>
92537
92538         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92539         strtoimax.
92540         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92541         strtoumax.
92542
92543 2001-09-20  Jim Meyering  <meyering@lucent.com>
92544
92545         * lib/xstrtol.c (strtoimax): Guard declaration with
92546         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92547         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92548         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92549         (strtoumax): Likewise, for completeness (it wasn't necessary).
92550
92551 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92552
92553         * lib/strtoimax.c (HAVE_LONG_LONG):
92554         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92555         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92556         to work around bug in IBM C compiler.
92557
92558 2001-09-17  Jim Meyering  <meyering@lucent.com>
92559
92560         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92561         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92562         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92563         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92564         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92565         whenever the right hand side need not be expanded by the shell.
92566
92567 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92568
92569         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92570         library.  It's not correct, as some older glibcs are buggy.
92571         fnmatch wasn't fixed until glibc 2.2.
92572
92573         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92574         special shell magic here.
92575
92576 2001-09-16  Jim Meyering  <meyering@lucent.com>
92577
92578         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92579         * m4/jm-macros.m4: Require it.
92580
92581 2001-09-16  Jim Meyering  <meyering@lucent.com>
92582
92583         * lib/mkdir.c: New file.
92584
92585 2001-09-15  Jim Meyering  <meyering@lucent.com>
92586
92587         * m4/jm-macros.m4: Check for help2man.
92588
92589 2001-09-11  Jim Meyering  <meyering@lucent.com>
92590
92591         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92592         The body, by Paul Eggert, was moved here from configure.in.
92593         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92594
92595 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92596
92597         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92598         (jm_PREREQ): Use it.
92599
92600 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92601
92602         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92603         Use ssize_t, not int, to store result of readlink.
92604         Check for ssize_t overflow as well as size_t overflow,
92605         as POSIX says the result of readlink is implementation-defined
92606         when ssize_t overflows.
92607         Remove unnecessary cast to char*.
92608         Use free+malloc instead of realloc, as the storage doesn't need
92609         to be preserved and it's clearer and can be more efficient that way.
92610         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92611         * lib/xreadlink.h (xreadlink): Update prototype.
92612
92613 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92614
92615         * lib/xgetcwd.c: Revert some of the previous change; intead,
92616         fix the HAVE_GETCWD_NULL code to behave more like the
92617         !HAVE_GETCWD_NULL code used to.
92618
92619         Include "xalloc.h".
92620         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92621         invoke xalloc_die.
92622
92623 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92624
92625         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92626         sys/param.h, as pathmax.h includes them.
92627
92628 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92629
92630         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92631         (jm_PREREQ_XGETCWD): New macro.
92632
92633         * m4/getcwd.m4: New file.
92634
92635 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92636
92637         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92638         like the HAVE_GETCWD_NULL code.
92639         Include pathmax.h if not HAVE_GETCWD.
92640         Do not include xalloc.h.
92641         (INITIAL_BUFFER_SIZE): New symbol.
92642         Do not use xmalloc / xrealloc, since the caller is responsible for
92643         handling errors.  Preserve errno around `free' during failure.
92644         Do not overrun buffer when using getwd.
92645
92646 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92647
92648         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92649         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92650         getcwd (NULL, 0).
92651
92652 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92653
92654         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92655         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92656         spotted by Jim Meyering.
92657
92658 2001-09-03  Jim Meyering  <meyering@lucent.com>
92659
92660         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92661         failure.
92662
92663 2001-09-02  Jim Meyering  <meyering@lucent.com>
92664
92665         * lib/error.c: Update from GNU libc.
92666
92667 2001-09-01  Jim Meyering  <meyering@lucent.com>
92668
92669         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92670         Used by df.
92671
92672 2001-09-01  Jim Meyering  <meyering@lucent.com>
92673
92674         * lib/xreadlink.c: New file.
92675         * lib/xreadlink.h: New file.
92676         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92677         xreadlink.h.
92678
92679         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92680         doesn't conflict with sparc Solaris 7's definition in
92681         /usr/include/sys/int_types.h.
92682
92683         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92684         files.
92685         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92686         and strncasecmp as r-values.  Unixware didn't have declarations.
92687
92688 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92689
92690         * lib/xstrtol.h: Add copyright notice.
92691         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92692         LONGINT_INVALID_SUFFIX_CHAR.
92693
92694 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92695
92696         * lib/xstrtol.c (strtoimax): New decl.
92697
92698 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92699
92700         * lib/xgetcwd.c: Don't include pathmax.h.
92701         Include stdlib.h and unistd.h if available.
92702         Include xalloc.h.
92703         (xmalloc, xstrdup, free): Remove decls.
92704         (xgetcwd): Don't assume sizes fit in unsigned.
92705         Check for overflow when computing sizes.
92706         Simplify reallocation code.
92707
92708 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92709
92710         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92711         a directory's st_size can have an arbitrary value, so the old
92712         usage could waste an arbitrary amount of memory.  All uses
92713         changed.
92714         * lib/savedir.h: Update prototype.
92715
92716 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92717
92718         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92719
92720         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92721         old strtoimax.c.
92722
92723         Also, make the following further changes to make this file's
92724         configuration more similar to that of strtol.c:
92725         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92726         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92727         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92728         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92729         changed to signed values.
92730
92731         And make the following changes as well:
92732         Fix copyright notice, as 1999 was missing.
92733         (verify): New macro.
92734         (strtoimax): Check sizes at compile-time, not run-time.
92735         Prefer strtol to strtoll if both work.
92736         (main): Remove; it was not that useful and was a pain to maintain.
92737
92738         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92739
92740 2001-08-31  Jim Meyering  <meyering@lucent.com>
92741
92742         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92743         Use an initial, malloc'd, buffer of length 128 rather than
92744         a statically allocated one of length 1024.
92745
92746 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92747
92748         Simplify code, partly by assuming autoconf 2.52 semantics.
92749
92750         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92751
92752         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92753         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92754         All uses removed.
92755         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92756         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92757         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92758         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92759         jm_AC_HEADER_INTTYPES_H.
92760         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92761
92762         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92763
92764         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92765         Quote first arg of AC_DEFUN.
92766         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92767         since they are needed to parse the include file even if we need
92768         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92770         but with opposite signedness.
92771
92772 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92773
92774         Merge 'exclude' changes from tar 1.13.22.
92775         This fixes one or two unlikely storage allocation overflow bugs,
92776         but doesn't change user-visible behavior otherwise.
92777
92778 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92779
92780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92781         (jm_PREREQ_EXCLUDE): New macro.
92782
92783 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92784
92785         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92786         tm to be declared.
92787
92788 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92789
92790         * lib/hash.c: Remove '2001' from copyright notice.
92791
92792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92793
92794         * lib/full-write.h: New file.
92795         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92796         * lib/full-write.c: Correct credits, as cccp.c no longer
92797         exists and anyway it was so heavily changed from the old cccp
92798         code as to be unrecognizable.  Include full-write.h.
92799         (full_write): Return size_t, with short writes meaning failure.
92800         All callers changed.  This fixes a bug with large buffers
92801         on 64-bit hosts.
92802         * lib/utime.c: Include full-write.h.
92803
92804 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92805
92806         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92807         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92808         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92809         Include if available.
92810         (<xalloc.h>): Include
92811         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92812         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92813         collide with FNM macros.
92814         (struct patopts): New struct.
92815         (struct exclude): Use it, as exclude patterns now come with options.
92816         (new_exclude): Support above changes.
92817         (new_exclude, add_exclude_file):
92818         Initial size must now be a power of two to simplify overflow checking.
92819         (free_exclude, fnmatch_no_wildcards): New function.
92820         (excluded_filename): No longer requires options arg, as the options
92821         are determined by add_exclude.  Now returns bool, not int.
92822         (excluded_filename, add_exclude):
92823         Add support for the fancy new exclusion options.
92824         (add_exclude, add_exclude_file): Now takes int options arg.
92825         Check for arithmetic overflow when computing sizes.
92826         (add_exclude_file): xrealloc might modify errno, so don't
92827         realloc until after errno might be used.
92828
92829         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92830         New macros.
92831         (free_exclude): New decl.
92832         (add_exclude, add_exclude_file): Now takes int options arg.
92833         (excluded_filename): No longer requires options arg, as the options
92834         are determined by add_exclude.  Now returns bool, not int.
92835
92836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92837
92838         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92839
92840 2001-08-27  Jim Meyering  <meyering@lucent.com>
92841
92842         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92843
92844         * lib/version-etc.c (N_): Remove definition.
92845         Revert most of last change.
92846         Instead, simply don't mark the `Copyright...' string for translation.
92847         Based on advice from Paul Eggert.
92848
92849         * lib/strtoxmax.c: Tweak comment.
92850
92851 2001-08-26  Jim Meyering  <meyering@lucent.com>
92852
92853         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92854
92855         * m4/xstrtoimax.m4: New file.
92856         * m4/xstrtoumax.m4: Add comments explaining why we
92857         AC_REPLACE_FUNCS(strtol).
92858
92859 2001-08-26  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92862         of copyright with `%s' so translators don't get an untranslated
92863         message in 2002.
92864         (COPYRIGHT_YEAR): Define.
92865         (version_etc): Use fprintf rather than fputs.
92866         Suggestion from Ulrich Drepper.
92867
92868         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92869
92870         * lib/strtoll.c: New file, from GNU libc.
92871         * lib/xstrtoimax.c: New file.
92872
92873         * lib/xstrtol.h: Add xstrtoimax.
92874         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92875         * lib/strtoimax.c: New file.  Likewise, but first define
92876         STRTOUXMAX_SIGNED.
92877
92878         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92879         ...
92880         * lib/strtoxmax.c: ... then renamed to this.
92881
92882 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92883
92884         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92885         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92886         (jm_AC_TYPE_INTMAX_T): New macro.
92887         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92888
92889         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92890
92891         * m4/longlong.m4: Renamed from ulonglong.m4.
92892         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92893         * m4/uintmax_t.m4: Removed.
92894
92895 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92896
92897         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92898         Port to Solaris 8, where 'sed' requires a space after the 'r'
92899         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92900         Redirect output to $tmp just once.
92901
92902 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92903
92904         * lib/addext.c (<errno.h>): Include.
92905         (errno): Declare if not defined.
92906         (addext): Work correctly when pathconf returns -1 and leaves
92907         errno alone because there is no limit.  Also, work even if
92908         pathconf returns a value greater than SIZE_MAX.
92909
92910 2001-08-12  Jim Meyering  <meyering@lucent.com>
92911
92912         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92913         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92914         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92915         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92916         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92917         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92918         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92919         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92920         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92921         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92922         utime.m4, utimes.m4, xstrtoumax.m4:
92923         Quote the first argument in each use of AC_DEFUN.
92924
92925 2001-08-12  Jim Meyering  <meyering@lucent.com>
92926
92927         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92928         Simply `return getcwd (NULL, 0);'.
92929         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92930         Use 1300 as initial value for length, not PATH_MAX.
92931
92932         * lib/pathmax.h: Clean up cpp syntax.
92933
92934 2001-08-12  Jim Meyering  <meyering@lucent.com>
92935
92936         * lib/gettimeofday.c: New file.
92937         * lib/gtod.h: New file.
92938         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92939
92940 2001-08-05  Jim Meyering  <meyering@lucent.com>
92941
92942         * m4/jm-macros.m4: Require autoconf-2.52.
92943
92944 2001-08-04  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92947         stmt, to get in sync with glibc.
92948
92949 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92950
92951         The following changes are from gettext 0.10.39 as maintained by
92952         Bruno Haible.
92953
92954         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92955         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92956         with inverted sense.  All uses changed.
92957
92958         * lib/mbswidth.c: Don't include <limits.h>.
92959         Include <stdlib.h> and <string.h> unconditionally.
92960         (iswcntrl, mbsinit, ISCNTRL): New macros.
92961         (mbsnwidth): Use K&R style function declarations.
92962         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92963         can optimize it when MB_CUR_MAX == 1.
92964         The width of control characters is zero, not 1.
92965
92966 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92967
92968         The following changes are from gettext 0.10.39 as maintained by
92969         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92970
92971         * m4/codeset.m4: Upgrade to serial AM1.
92972         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92973         all uses changed.  Quote first arg of AC_DEFUN.
92974         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92975
92976         * m4/iconv.m4: Upgrade to serial AM2.
92977         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92978         Add --with-libconv-prefix.
92979         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92980         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92981         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92982         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92983         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92984
92985         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92986         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92987         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92988         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92989         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92990         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92991         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92992         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92993         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92994
92995         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92996         string.h any more.
92997
92998         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92999         not the default value.
93000
93001         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93002         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93003         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93004         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93005         Also check for iswcntrl, used for wcwidth fallback.
93006         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93007         to Autoconf 2.13.
93008
93009 2001-08-03  Jim Meyering  <meyering@lucent.com>
93010
93011         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93012         as it was in the original.  Reported by Paul Eggert.
93013
93014 2001-07-16  Jim Meyering  <meyering@lucent.com>
93015
93016         * m4/gettimeofday.m4: New file.
93017         Prompted by a report from Bernhard Baehr.
93018
93019 2001-07-15  Jim Meyering  <meyering@lucent.com>
93020
93021         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93022         stuff. Now it's in ../Makefile.cfg.
93023
93024 2001-07-15  Jim Meyering  <meyering@lucent.com>
93025
93026         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93027         (BUILT_SOURCES): Add unlocked-io.h.
93028         (io_functions): Define.
93029         (unlocked-io.h): New rule.
93030         (DISTCLEANFILES): Add unlocked-io.h.
93031         (all-local): Depend on unlocked-io.h, to ensure it is created.
93032
93033         * lib/unlocked-io.hin: New file
93034
93035         * lib/regex.c: Update from glibc.
93036
93037 2001-07-05  Jim Meyering  <meyering@lucent.com>
93038
93039         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93040         recommendation.
93041         (libfetish_a_SOURCES): Put all .h files here instead.
93042         Remove a thus-exposed (better checks in automake) duplicate and
93043         two unnecessary .h files.
93044
93045 2001-07-04  Jim Meyering  <meyering@lucent.com>
93046
93047         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93048         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93049         distcheck failure.
93050
93051 2001-07-02  Jim Meyering  <meyering@lucent.com>
93052
93053         The following changes were prompted by suggestions from Bruno Haible.
93054
93055         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93056         is now generated.
93057         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93058         definition of EXTRA_DIST.
93059         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93060         ensure that the generated file is created/updated whenever the list
93061         of $(unlocked_functions) is changed.
93062         (jm-glibc-io.m4): New rule.
93063         (unlocked-io.h): New rule -- currently unused.
93064
93065 2001-06-24  Jim Meyering  <meyering@lucent.com>
93066
93067         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93068         unmatched right bracket, rather than kludging it with an extra,
93069         falsely-matching quote in a comment.  Patch by Akim Demaille.
93070
93071 2001-06-11  Jim Meyering  <meyering@lucent.com>
93072
93073         * lib/regex.c: Update from GNU libc.
93074
93075 2001-05-27  Jim Meyering  <meyering@lucent.com>
93076
93077         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93078         Check for ut_type in struct utmp.
93079
93080 2001-05-27  Jim Meyering  <meyering@lucent.com>
93081
93082         * lib/readutmp.h (UT_TYPE): Define.
93083
93084 2001-05-24  Jim Meyering  <meyering@lucent.com>
93085
93086         * lib/argmatch.c: Include "quote.h".
93087         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93088         quote function.  Reported by Göran Uddeborg.
93089
93090 2001-05-22  Jim Meyering  <meyering@lucent.com>
93091
93092         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93093         now that we use the package-supplied version unconditionally.
93094         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93095
93096 2001-05-21  Jim Meyering  <meyering@lucent.com>
93097
93098         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93099         shell syntax errors.
93100
93101 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93102
93103         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93104
93105 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93106
93107         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93108         Don't bother to check library strftime, since
93109         we'll be using our own my_strftime function anyway.
93110         Define my_strftime instead of strftime.
93111
93112 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93113
93114         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93115         which is not yet declared.
93116
93117 2001-05-15  Jim Meyering  <meyering@lucent.com>
93118
93119         * m4/regex.m4: Use proper quoting so brackets appear in the test
93120         program.
93121         Reported by, and with help from, Bruno Haible.
93122
93123 2001-05-13  Jim Meyering  <meyering@lucent.com>
93124
93125         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93126         undefined.
93127
93128 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93129
93130         dirname code cleanup.  base_name now behaves more compatibly
93131         with POSIX basename when given file names that have trailing
93132         slashes, and similarly for dir_name.  Add new primitives
93133         base_len and dir_len.  Put the directory-name-related decls
93134         into dirname.h.
93135
93136         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93137         * lib/backupfile.c (base_name): Likewise.
93138         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93139         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93140         * lib/makepath.c (strip_trailing_slashes): Likewise.
93141         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93142         ISSLASH): Likewise.
93143         * lib/rename.c (strip_trailing_slashes): Likewise.
93144         * lib/same.c (base_name): Likewise.
93145         * lib/stripslash.c (ISSLASH): Likewise.
93146
93147         * lib/addext.c: Include <dirname.h> after size_t is defined.
93148         * lib/backupfile.c: Likewise.
93149
93150         * lib/addext.c (addext): Use base_len to trim redundant
93151         trailing slashes instead of doing it ourselves.
93152         But do not trim the last slash if it is not redundant.
93153
93154         * lib/backupfile.c (find_backup_file_name,
93155         max_backup_version): Use base_len instead of rolling it ourselves.
93156         Handle the case of "" and (on DOS) "C:" correctly.
93157
93158         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93159         needed. Include <string.h>, <dirname.h>.
93160         (base_name): Allow file names ending in slashes, other than names
93161         that are all slashes.  In this case, return the basename followed
93162         by the slashes.  This is more general, and can be used in places
93163         where the original base_name purposely had an assertion failure.
93164         (base_len): New function.
93165
93166         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93167         Do not include <assert.h>; no longer needed.
93168         Include xalloc.h.
93169         (memrchr): Remove decl.
93170         (dir_name_r): Remove.
93171         (dir_len): Renamed from dirlen.  All callers changed.
93172         Rewrite in terms of base_name, for simplicity and consistency.
93173         (dir_name): Never return NULL.  All callers changed.
93174         Do not include <stdlib.h> in test program; no longer needed.
93175         return 0; is fine for test program.
93176
93177         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93178         New macros.
93179         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93180
93181         * lib/path-concat.c (path_concat): Use base_len to compute
93182         base length, not strlen; this means we cannot rely on memcpy
93183         to null-terminate.
93184
93185         * lib/same.c (STREQ): Remove.
93186         (same_name): Handle the case where the basename ends in trailing '/'.
93187
93188         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93189         a slash was stripped.  Do not strip the last slash after a
93190         file system prefix.
93191
93192 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93193
93194         * lib/Makefile.am (libfetish_a_SOURCES):
93195         Add strftime.c, since we now compile it on all hosts.
93196
93197         * lib/strftime.c (my_strftime):
93198         Define to nstrftime if emacs, but only if my_strftime is not defined.
93199         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93200         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93201         Add one more extra argument: a nanoseconds value.
93202         All uses changed.
93203         (ns): New macro.
93204         (my_strftime function): Add %N format.
93205         (emacs_strftimeu): Renamed from emacs_strftime,
93206         with extra ut argument.
93207
93208 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93209
93210         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93211
93212 2001-04-21  Jim Meyering  <meyering@lucent.com>
93213
93214         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93215         doesn't interfere.
93216
93217 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93218
93219         * m4/ftruncate.m4: Check for chsize.
93220         Link with ftruncate.o unconditionally if ftruncate is missing.
93221         This was required when cross-compiling to i586-mingw32msvc.
93222
93223 2001-04-08  Jim Meyering  <meyering@lucent.com>
93224
93225         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93226         recomputed; that's necessary when the offset spans a DST transition.
93227         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93228
93229 2001-04-02  Jim Meyering  <meyering@lucent.com>
93230
93231         * lib/regex.h, regex.c: Update from GNU libc.
93232
93233 2001-03-24  Jim Meyering  <meyering@lucent.com>
93234
93235         * m4/jm-macros.m4: Require autoconf-2.49d.
93236
93237 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93238
93239         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93240
93241 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93242
93243         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93244
93245 2001-03-17  Jim Meyering  <meyering@lucent.com>
93246
93247         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93248         now that the version in autoconf is equivalent.
93249         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93250
93251         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93252         Suggestion from Akim Demaille.
93253
93254         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93255         (jm_PREREQ_TEMPNAME): New function.
93256
93257 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93258
93259         * lib/tempname.c (uint64_t): Define to uintmax_t if
93260         not defined, and if UINT64_MAX is not defined.
93261         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93262         Reported by John David Anglin.
93263
93264 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93265
93266         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93267         resolve alias if codeset is empty.
93268         * lib/config.charset (BeOS): Use wildcard syntax.
93269
93270 2001-03-13  Jim Meyering  <meyering@lucent.com>
93271
93272         * lib/path-concat.c (path_concat)
93273         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93274         concatenating e.g., `C:' and `foo'.
93275         From Bruno Haible.
93276
93277 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93278
93279         * lib/localcharset.c (locale_charset): Don't use
93280         setlocale(LC_CTYPE,NULL). Don't return NULL.
93281         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93282
93283 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93284
93285         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93286         support for DOS/DJGPP.
93287
93288 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93289
93290         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93291         lacks mkstemp.  Compile our own tempname.c if we compile our own
93292         mkstemp.c, as mkstemp relies on tempname.
93293
93294 2001-03-01  Jim Meyering  <meyering@lucent.com>
93295
93296         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93297         AH_VERBATIM really does output its argument verbatim.
93298
93299 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93300
93301         * lib/Makefile.am (libfetish_a_SOURCES):
93302         Add dup-safer.c, fopen-safer.c.
93303         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93304
93305         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93306         * lib/unistd-safer.h: New files.
93307
93308 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93309
93310         The mkstemp replacement is taken from glibc 2.2.2, with some
93311         portability fixes for use outside glibc, as follows:
93312
93313         * lib/tempname.c (struct_stat64): New macro.
93314         (direxists, __gen_tempname): Use it.
93315         This avoids a portability problem with Solaris 8.
93316
93317         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93318         (<stddef.h>, <stdint.h>, <string.h>):
93319         Include only if STDC_HEADERS || _LIBC.
93320         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93321         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93322         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93323         (__set_errno): Define this macro if <errno.h> doesn't.
93324         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93325         Define these macros if <stdio.h> doesn't.
93326         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93327         Define these macros if <sys/stat.h>
93328         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93329         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93330         __xstat64): Define if not _LIBC.
93331         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93332         (__gen_tempname): Invoke gettimeofday only if
93333         HAVE_GETTIMEOFDAY || _LIBC;
93334         otherwise, fall back on plain "time".
93335         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93336
93337         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93338
93339         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93340
93341 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93342
93343         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93344
93345 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93346
93347         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93348         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93349         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93350         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93351
93352 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93353
93354         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93355         Remove workaround macros for hosts that have mbrtowc but not
93356         mbstate_t, as we now insist on proper declarations for both
93357         before using mbrtowc.
93358
93359 2001-02-17  Jim Meyering  <meyering@lucent.com>
93360
93361         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93362         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93363         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93364         UnixWare 7.1.1.
93365
93366         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93367         rather than AC_CACHE_VAL.
93368
93369 2001-02-17  Jim Meyering  <meyering@lucent.com>
93370
93371         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93372         around included file name.
93373
93374         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93375
93376         * lib/strftime.c: Update from GNU libc (the only changes were to
93377         comments).
93378
93379 2001-02-17  Jim Meyering  <meyering@lucent.com>
93380
93381         * lib/regex.c: Update from libc.
93382
93383 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93384
93385         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93386         clash.
93387
93388 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93389
93390         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93391         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93392         Reported by Mark Hounschell via Paul Eggert.
93393
93394 2001-02-07  Jim Meyering  <meyering@lucent.com>
93395
93396         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93397
93398 2001-02-05  Jim Meyering  <meyering@lucent.com>
93399
93400         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93401         it includes the patch required for `large file' support with at least
93402         HP-UX's 10.20 /bin/cc.
93403
93404 2001-02-03  Jim Meyering  <meyering@lucent.com>
93405
93406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93407         AS_IF, now that it works once again (mysteriously).
93408         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93409
93410 2001-01-30  Jim Meyering  <meyering@lucent.com>
93411
93412         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93413         * m4/chown.m4: Rename conftestchown to conftest.chown.
93414         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93415         s/conftestdir2/conftest.d2/.
93416         * m4/utimes.m4: s/conftestdata/conftest.data/
93417         Inspired by Pavel Roskin's change in autoconf.
93418
93419 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93420
93421         * lib/config.charset: Update for FreeBSD 4.2.
93422
93423 2001-01-27  Jim Meyering  <meyering@lucent.com>
93424
93425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93426         a use of AS_IF.
93427         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93428
93429 2001-01-26  Jim Meyering  <meyering@lucent.com>
93430
93431         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93432         quotearg.c includes it.
93433
93434 2001-01-26  Jim Meyering  <meyering@lucent.com>
93435
93436         * lib/quotearg.c: Include stddef.h.
93437         * lib/quote.c: Include stddef.h.
93438         Reported by Axel Kittenberger.
93439
93440         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93441         line in double quotes so that it evokes a better diagnostic.
93442         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93443         Reported by Axel Kittenberger.
93444
93445 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93446
93447         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93448         as if it was a `charset'.
93449
93450 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93451
93452         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93453         has const.
93454
93455 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93456
93457         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93458         to avoid a warning.  Add back 'const' to inptr.
93459
93460 2001-01-20  Jim Meyering  <meyering@lucent.com>
93461
93462         Be sure that headers are checked before used in code compiled
93463         for the type checks.
93464         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93465         In place of that, invoke jm_CHECK_ALL_TYPES.
93466         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93467         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93468         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93469         The check for ssize_t was mistakenly run before the test for unistd.h.
93470
93471         The configure-time check for stdbool.h was missing.
93472         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93473         (jm_PREREQ_HASH): New function.
93474
93475 2001-01-17  Jim Meyering  <meyering@lucent.com>
93476
93477         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93478         for autoconf-2.49c.
93479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93480
93481 2001-01-16  Jim Meyering  <meyering@lucent.com>
93482
93483         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93484         From Bruno Haible.
93485
93486 2001-01-14  Jim Meyering  <meyering@lucent.com>
93487
93488         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93489         foo and bar.  Create conftestdir/ in the script, not in the C code.
93490         Remove directories in the script, not in the C code.
93491         Remove conftestdir{,2} before trying to create the directory.
93492         Make the entire configure script fail if the mkdir fails.
93493
93494 2001-01-14  Jim Meyering  <meyering@lucent.com>
93495
93496         * lib/rename.c: New file.  From Volker Borchert.
93497         Include stdlib.h, string.h or strings.h, and xalloc.h.
93498         Use strip_trailing_slashes rather than open-coding it.
93499
93500 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93501
93502         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93503
93504 2001-01-03  Jim Meyering  <meyering@lucent.com>
93505
93506         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93507         of local `inptr' to avoid warning with some system declarations of
93508         iconv.
93509
93510 2001-01-02  Volker Borchert  <bt@teknon.de>
93511
93512         * m4/rename.m4: New file.
93513         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93514
93515 2001-01-01  Jim Meyering  <meyering@lucent.com>
93516
93517         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93518         even on systems with utmpx.h.  It's necessary for the declaration of
93519         utmp's ut_user member.  Reported by Andreas Jaeger.
93520
93521         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93522         available. They are required for the declarations of getgrgid and
93523         getpwuid resp.
93524         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93525         Reported by Andreas Jaeger.
93526
93527 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93528
93529         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93530         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93531         so `make install' also works in VPATH builds.
93532
93533 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93534
93535         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93536         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93537         can be used in subdirectories.
93538
93539 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93540
93541         * lib/modechange.c: Do not assume that mode_t uses the
93542         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93543         the other-execute bit of FOO even if S_IXOTH != 1.
93544
93545         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93546         WOTH, XOTH, ALLM): New macros.
93547         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93548          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93549         Use them.
93550         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93551         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93552         (mode_compile):
93553         No need to use uintmax_t; unsigned long is long enough.
93554         Don't bother to get suffix since we don't use it.
93555
93556 2000-12-26  Jim Meyering  <meyering@lucent.com>
93557
93558         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93559         better with autoheader.
93560
93561 2000-12-24  Jim Meyering  <meyering@lucent.com>
93562
93563         * lib/hash.c (is_prime): Return explicit boolean values.
93564         (hash_get_first): Return NULL to appease Irix5.6's 89.
93565         Reported by Nelson Beebe.
93566
93567 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93568
93569         * lib/localcharset.c (locale_charset): Add support for Win32.
93570
93571 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93572
93573         * lib/physmem.h, lib/physmem.c: New files.
93574
93575         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93576         (noinst_HEADERS): Add physmem.h.
93577
93578         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93579         't' for compatibility with Solaris 8 sort.
93580
93581 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93582
93583         * lib/config.charset: Add support for BeOS.
93584
93585 2000-12-17  Jim Meyering  <meyering@lucent.com>
93586
93587         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93588         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93589
93590 2000-12-16  Jim Meyering  <meyering@lucent.com>
93591
93592         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93593         N and M) would have treated it like `chown N:N FILE'.
93594
93595         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93596
93597 2000-12-16  Jim Meyering  <meyering@lucent.com>
93598
93599         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93600         SHELLS_FILE to a file name that's useful on djgpp systems.
93601         Include stdlib.h.
93602         (ADDITIONAL_DEFAULT_SHELLS): Define.
93603         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93604         Based mostly on a patch from Prashant TR.
93605
93606 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93607
93608         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93609         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93610         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93611
93612 2000-12-08  Andreas Schwab  <schwab@suse.de>
93613
93614         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93615         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93616
93617 2000-12-07  Jim Meyering  <meyering@lucent.com>
93618
93619         * lib/stripslash.c (ISSLASH): Define.
93620         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93621         `/'.
93622         From Prashant TR.
93623
93624         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93625         (dir_name_r): Declare this function as static.
93626         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93627         manifest itself on a name containing a mix of slashes and
93628         backslashes.
93629         Make this function work with names starting with a DOS-style
93630         drive letter and colon prefix.
93631         (dir_name): Append `.' if necessary.
93632         Based mostly on patches from Prashant TR and Eli Zaretskii.
93633
93634         * lib/dirname.h (dir_name_r): Remove prototype.
93635
93636 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93637
93638         * m4/off_t-format.m4: Remove this file.
93639         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93640
93641 2000-12-06  Jim Meyering  <meyering@lucent.com>
93642
93643         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93644         replacement strtoull, we may well need the replacement strtoul, too.
93645         Check for declarations of strtoul and strtoull.
93646         Check for strtol.  Mainly as a cue to cause automake to include
93647         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93648         Check for limits.h -- strtol.c needs it.
93649
93650 2000-12-05  Jim Meyering  <meyering@lucent.com>
93651
93652         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93653
93654 2000-12-04  Jim Meyering  <meyering@lucent.com>
93655
93656         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93657         Also include memory.h, stdlib.h, unistd.h if appropriate.
93658         Reported by Andreas Jaeger (conflicting declaration of malloc).
93659
93660 2000-12-02  Jim Meyering  <meyering@lucent.com>
93661
93662         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93663         * m4/jm-macros.m4 (jm_MACROS): require it.
93664
93665 2000-12-02  Jim Meyering  <meyering@lucent.com>
93666
93667         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93668
93669 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93670
93671         * lib/memrchr.c: Include <config.h> before any system include file.
93672
93673 2000-11-30  Jim Meyering  <meyering@lucent.com>
93674
93675         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93676
93677 2000-11-30  Jim Meyering  <meyering@lucent.com>
93678
93679         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93680
93681 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93682
93683         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93684
93685 2000-11-26  Jim Meyering  <meyering@lucent.com>
93686
93687         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93688
93689 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93690
93691         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93692         size of (size_t) -1; it's not portable.
93693
93694 2000-11-17  Jim Meyering  <meyering@lucent.com>
93695
93696         * lib/strstr.c: Update from GNU libc.
93697
93698 2000-11-17  Akim Demaille  <akim@epita.fr>
93699
93700         * lib/obstack.h: Formatting changes.
93701         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93702         prevent type checking.
93703         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93704         cast the value to (void *): assigning a `foo *' to a `void *'
93705         variable is valid.
93706         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93707
93708 2000-11-16  Jim Meyering  <meyering@lucent.com>
93709
93710         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93711
93712 2000-11-11  Jim Meyering  <meyering@lucent.com>
93713
93714         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93715
93716 2000-11-10  Jim Meyering  <meyering@lucent.com>
93717
93718         * lib/obstack.h: Update from GNU libc.
93719         * lib/obstack.c: Likewise.
93720
93721 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93722
93723         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93724
93725 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93726
93727         * lib/getusershell.c (setusershell): Use rewind rather than
93728         fseek/fseeko, to avoid configuration hassles with fseeko.
93729         Don't bother opening SHELLS_FILE if shellstream is NULL;
93730         it's not necessary.
93731
93732 2000-11-05  Jim Meyering  <meyering@lucent.com>
93733
93734         * lib/makepath.h (make_dir): Declare.
93735         * lib/makepath.c (make_dir): Remove `static' attribute.
93736         Tweak a comment.
93737
93738 2000-11-04  Jim Meyering  <meyering@lucent.com>
93739
93740         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93741
93742 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93743
93744         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93745         last one in a bucket, advance to the next bucket.
93746
93747 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93748
93749         * lib/fnmatch.c: Do not comment out all the code if we are using
93750         the GNU C library, because in some cases we are replacing buggy
93751         code in the GNU C library itself.
93752
93753 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93754
93755         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93756         (regex_compile): Catch bogus \(\1\).
93757
93758 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93759
93760         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93761         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93762         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93763
93764 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93765
93766         * lib/error.h, getline.h, modechange.h:
93767         Remove "2000" from Copyright line, as the file hasn't been
93768         changed this year other than in the copyright notice.
93769
93770         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93771         was changed this year.
93772
93773 2000-10-29  Jim Meyering  <meyering@lucent.com>
93774
93775         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93776         renaming.
93777         * m4/ls-mntd-fs.m4: Likewise
93778
93779 2000-10-29  Jim Meyering  <meyering@lucent.com>
93780
93781         * lib/xstat.in: Fix grammar in comment.
93782
93783 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93784
93785         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93786         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93787         doesn't define __restrict_arr.
93788
93789 2000-10-28  Jim Meyering  <meyering@lucent.com>
93790
93791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93792         (jm_PREREQ_MEMCHR): New function.
93793
93794 2000-10-28  Jim Meyering  <meyering@lucent.com>
93795
93796         * lib/memchr.c: Update from libc.
93797         Adjust for portability:
93798         [HAVE_STDLIB_H]: Include stdlib.h.
93799         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93800         Undef __memchr, too.
93801         [!weak_alias]: Define __memchr to memchr.
93802
93803         * lib/regex.c: Update from libc.
93804         * lib/regex.h: Likewise.
93805         * lib/getopt1.c: Likewise.
93806         * lib/memcmp.c: Likewise.
93807
93808         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93809         Avoid using fseek, when possible -- it's broken by design.
93810         Patch by Ulrich Drepper.
93811
93812 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93813
93814         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93815         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93816         Giving in to popular pressure to shut up the compiler with casts.
93817
93818 2000-10-26  Jim Meyering  <meyering@lucent.com>
93819
93820         * lib/strftime.c: Update from libc.
93821
93822 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93823
93824         * regex.c: More `unsigned char' -> `re_char' changes.
93825         Also change several `int' into `re_wchar_t'.
93826         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93827         (PUSH_FAILURE_POINTER): Don't cast any more.
93828         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93829         We want GCC to complain, since this piece of code makes
93830         re_match non-reentrant, which *should* be fixed.
93831         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93832         (EXTEND_BUFFER): Use RETALLOC.
93833         (SET_LIST_BIT): Don't cast.
93834         (re_wchar_t): New type.
93835         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93836         that those two functions will always properly return.
93837         (IMMEDIATE_QUIT_CHECK): Cast to void.
93838         (analyse_first): Use recursion rather than an explicit stack.
93839         (re_compile_fastmap): Can't fail anymore.
93840         (re_search_2): Don't check re_compile_fastmap for failure.
93841         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93842         Now also sets the new value (passed in a new argument).
93843         (re_match_2_internal): Use it.
93844         Also, use a new var `reg' of type size_t when looping through regs
93845         rather than reuse the inappropriate `mcnt'.
93846
93847 2000-10-25  Jim Meyering  <meyering@lucent.com>
93848
93849         * lib/obstack.c: Update from libc.
93850
93851 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93852
93853         * regex.c (regex_compile): Change the way of handling a range from
93854         a char less than 256 to a char not less than 256.
93855
93856 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93857
93858         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93859         NT-Emacs only.
93860         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93861         so that re_search functions only quit when callers expect them to.
93862
93863 2000-10-23  Jim Meyering  <meyering@lucent.com>
93864
93865         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93866         wrong.  That set_locale call must not have any side effects.
93867         From Paul Eggert.
93868
93869 2000-10-22  Jim Meyering  <meyering@lucent.com>
93870
93871         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93872         [CYCLIC]: Remove now-unused definition.
93873
93874         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93875         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93876         Suggestion from Ulrich Drepper.
93877
93878 2000-10-21  Jim Meyering  <meyering@lucent.com>
93879
93880         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93881         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93882         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93883
93884 2000-10-21  Jim Meyering  <meyering@lucent.com>
93885
93886         * lib/dirname.c (memrchr): Declare if necessary.
93887         (dir_name): Remove the restriction that there be no
93888         trailing slashes.  Now, this code skips past them, effectively
93889         ignoring them.
93890         [TEST_DIRNAME] (main): New unit tests.
93891
93892         * lib/memrchr.c: New file from GNU libc.
93893         Undef __memrchr, too.
93894         [!weak_alias]: Define __memrchr to memrchr.
93895         Guard weak_alias use with `#ifdef weak_alias'.
93896
93897 2000-10-21  Jim Meyering  <meyering@lucent.com>
93898
93899         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93900         (dir_name): Use dir_name_r.
93901         * lib/dirname.h (dir_name_r): Declare it.
93902
93903 2000-10-17  Jim Meyering  <meyering@lucent.com>
93904
93905         * lib/quote.h (PARAMS): Define and use.
93906         Reported by Akim Demaille.
93907
93908         * lib/getopt.c: Update from libc.
93909
93910 2000-10-16  Jim Meyering  <meyering@lucent.com>
93911
93912         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93913         setlocale.
93914         From Jan Fedak.
93915
93916 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93917
93918         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93919
93920 2000-09-25  Jim Meyering  <meyering@lucent.com>
93921
93922         * lib/md5.h (rol): Define (from GnuPG).
93923
93924         * lib/sha.c: Give credit (GnuPG) where due.
93925         (M): Use rol rather than open-coding it.
93926         Add a FIXME comment.
93927
93928 2000-09-21  Jim Meyering  <meyering@lucent.com>
93929
93930         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93931         Reported by Michael Stone.
93932
93933 2000-09-20  Jim Meyering  <meyering@lucent.com>
93934
93935         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93936         (noinst_HEADERS): Add sha.h.
93937         Based on code from Scott G. Miller and from GnuPG.
93938
93939 2000-09-18  Jim Meyering  <meyering@lucent.com>
93940
93941         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93942         LIBS. Otherwise, everyone ends up linking with -lelf for some
93943         configurations.
93944         Reported by Mike Stone.
93945
93946 2000-09-15  Jim Meyering  <meyering@lucent.com>
93947
93948         * lib/regex.c: Update from libc.
93949
93950 2000-09-10  Jim Meyering  <meyering@lucent.com>
93951
93952         * lib/getopt.c (_getopt_internal): Update from glibc.
93953
93954 2000-09-09  Jim Meyering  <meyering@lucent.com>
93955
93956         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93957         think it should be used as a general replacement for isascii.
93958         * lib/fnmatch.c: Likewise.
93959         * lib/mbswidth.c: Likewise
93960         * lib/regex.c: Likewise.
93961
93962         Don't use atoi.
93963         * lib/userspec.c: Include sys/param.h and limits.h.
93964         Include xstrtol.h.
93965         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93966         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93967         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93968         UID, GID.  Check range.
93969
93970 2000-09-06  Jim Meyering  <meyering@lucent.com>
93971
93972         * lib/getopt.c (_getopt_internal): Update from glibc.
93973
93974 2000-08-30  Jim Meyering  <meyering@lucent.com>
93975
93976         * lib/strftime.c: Merge in changes from GNU libc.
93977
93978 2000-08-26  Jim Meyering  <meyering@lucent.com>
93979
93980         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93981         * m4/fpending.m4: New file.
93982
93983 2000-08-26  Jim Meyering  <meyering@lucent.com>
93984
93985         * lib/closeout.c: Include "__fpending.h".
93986         (close_stdout_status): Return right away if there's nothing to flush.
93987
93988         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93989         * lib/__fpending.c: New file.
93990         * lib/__fpending.h: New file.
93991
93992 2000-08-20  Jim Meyering  <meyering@lucent.com>
93993
93994         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93995         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93996         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93997
93998 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93999
94000         Improve fileutils installation on systems where running
94001         programs (like install) can't be unlinked.
94002         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94003         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94004
94005 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94006
94007         Standardize on "memory exhausted" instead of "Memory exhausted"
94008         or "virtual memory exhausted".
94009         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94010         "virtual memory exhausted".
94011         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94012         our own message.
94013         * lib/userspec.c (parse_user_spec): Likewise.
94014         * lib/bumpalloc.h: comment fix
94015         * lib/same.c, userspec.c: Include xalloc.h.
94016
94017         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94018         not char *const and pointing to a constant array.
94019         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94020         (xrealloc): Comment fix.
94021
94022         * lib/userspec.c (parse_user_spec):
94023         Don't translate a message until just before returning,
94024         to avoid unnecessary translation.
94025
94026 2000-08-07  Jim Meyering  <meyering@lucent.com>
94027
94028         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94029         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94030         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94031         getgroups.c, gethostname.c, getopt.h, group-member.c,
94032         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94033         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94034         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94035         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94036         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94037         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94038         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94039         yesno.c: Back out Copyright date changes for each file with no change
94040         this year.  This eases coordination with other programs using the same
94041         source code modules.  From Paul Eggert.
94042
94043 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94044
94045         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94046         not char, for compatibility with glibc 2.1.3 strftime.c.
94047
94048 2000-08-03  Greg McGary  <greg@mcgary.org>
94049
94050         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94051         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94052         (EXTEND_BUFFER): Use them.
94053
94054 2000-08-01  Jim Meyering  <meyering@lucent.com>
94055
94056         * lib/dirname.c (ISSLASH): Define.
94057         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94058         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94059         both `\' and `/' may be use as path separators.
94060         Based on a patch from Prashant TR.
94061
94062 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94063
94064         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94065         slot vector a constant, since it might get modified.
94066
94067 2000-07-31  Jim Meyering  <meyering@lucent.com>
94068
94069         * lib/xmalloc.c: Use `virtual memory exhausted', not
94070         `Memory exhausted'.
94071         * lib/obstack.c (print_and_abort): Likewise.
94072
94073 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94074
94075         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94076         buffer, so that the caller can always quote one small
94077         component of a "memory exhausted" message in slot 0.
94078         From a suggestion by Jim Meyering.
94079
94080 2000-07-30  Jim Meyering  <meyering@lucent.com>
94081
94082         * lib/makepath.c (make_path): Quote the other instance, too.
94083
94084         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94085         (STATIC_BUF_SIZE): Define.
94086         (quotearg_n_options): Use only statically allocated storage when
94087         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94088         than STATIC_BUF_SIZE.
94089
94090 2000-07-29  Jim Meyering  <meyering@lucent.com>
94091
94092         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94093         * lib/dirname.c (dir_name): Likewise.
94094
94095         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94096         `/'.
94097
94098         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94099         (dir_name): Assert that there are no trailing slashes.
94100
94101 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94102
94103         * lib/mbswidth.h (mbswidth): Add a flags argument.
94104         (mbswidth): New declaration.
94105         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94106         * lib/mbswidth.c (mbswidth): Add a flags argument.
94107         (mbsnwidth): New function.
94108
94109 2000-07-24  Jim Meyering  <meyering@lucent.com>
94110
94111         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94112
94113 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94114
94115         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94116
94117 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94118
94119         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94120         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94121         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94122         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94123         invoke multibyte primitives.
94124
94125 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94126
94127         * lib/quotearg.c:
94128         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94129         so that mbstate_t is always defined.
94130
94131         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94132         be 1 in at least one GCC installation, and this configuration
94133         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94134         performance on hosts that have mbrtowc but have only unibyte
94135         locales, but I assume these hosts are rare.
94136
94137 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94138
94139         * lib/mbswidth.c (_XOPEN_SOURCE):
94140         Don't define; this causes problems on Solaris 7.
94141         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94142
94143 2000-07-23  Jim Meyering  <meyering@lucent.com>
94144
94145         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94146         too: getgrgid, getpwuid, getuid.
94147
94148 2000-07-23  Jim Meyering  <meyering@lucent.com>
94149
94150         * lib/basename.c (base_name): Add an assertion.
94151
94152 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94153
94154         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94155         shadow its mbsinit function.
94156
94157 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94158
94159         * lib/mbswidth.h: New file.
94160         * lib/mbswidth.c: New file.
94161         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94162         (noinst_HEADERS): Add mbswidth.h.
94163
94164 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94165
94166         * lib/config.charset: Add support for FreeBSD. Improve support for
94167         HP-UX and IRIX 6.
94168
94169 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94170
94171         * m4/mbswidth.m4: New file.
94172         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94173
94174 2000-07-15  Jim Meyering  <meyering@lucent.com>
94175
94176         * lib/makepath.c: Include quote.h.
94177         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94178         corresponding argument in a `quote (...)' call.
94179         Give better diagnostics.
94180
94181         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94182         (noinst_HEADERS): Add quote.h.
94183
94184         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94185         from tar's src/misc.c.
94186         * lib/quote.h: New file.  Prototypes for same.
94187
94188 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94189
94190         From a suggestion by Bruno Haible.
94191         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94192         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94193         to decide whether to define the BeOS workaround macro;
94194         this adjusts to the change to AC_MBSTATE_T.
94195
94196 2000-07-14  Jim Meyering  <meyering@lucent.com>
94197
94198         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94199         jm_AC_TYPE_UINTMAX_T.
94200
94201 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94202
94203         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94204
94205         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94206         quotearg_buffer_restyled): Add support for
94207         clocale_quoting_style.  Undo previous change to
94208         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94209         and "{RIGHT QUOTATION MARK}" msgids.
94210
94211 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94212
94213         From a suggestion by Bruno Haible.
94214         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94215         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94216         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94217         and mbstate_t, to a single-part test that simply defines mbstate_t.
94218         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94219         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94220
94221 2000-07-10  Jim Meyering  <meyering@lucent.com>
94222
94223         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94224
94225         * m4/gnu-source.m4: Output to confdefs.h directly.
94226         Suggestion from Akim Demaille.
94227
94228 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94229
94230         The old behavior of quoting `like this' doesn't look good with
94231         newer, ISO-style fonts.  See:
94232         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94233
94234         Instead, quote "like this" by default.  Let the translator
94235         tailor the locale-specific quoting behavior by providing
94236         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94237
94238         * lib/quotearg.c (N_): New macro.
94239         (gettext_default): New function.
94240         (quotearg_buffer_restyled): Use
94241         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94242         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94243
94244 2000-07-09  Jim Meyering  <meyering@lucent.com>
94245
94246         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94247         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94248
94249         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94251
94252 2000-07-09  Jim Meyering  <meyering@lucent.com>
94253
94254         * lib/Most files: Update copyright dates to include 2000.
94255
94256 2000-07-08  Jim Meyering  <meyering@lucent.com>
94257
94258         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94259         if not defined.
94260         (xgethostname): Remove now-unnecessary #ifdef.
94261         Move declaration of `err' into loop where it's used.
94262
94263 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94264         and Bruno Haible  <haible@clisp.cons.org>
94265
94266         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94267         only if the test for an object-type mbstate_t fails.  This
94268         prevents us from mistakenly reporting that mbstate_t is a
94269         system object type after we "#define mbstate_t int" to work
94270         around its lack.
94271
94272 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94273         and Bruno Haible  <haible@clisp.cons.org>
94274
94275         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94276
94277 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94278
94279         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94280         to strerror_r.
94281         Include <ctype.h> for use of isalpha.
94282
94283 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94284
94285         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94286         by allocating a larger buffer. Test the gethostname return value for
94287         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94288         returns an error and ENAMETOOLONG isn't defined.
94289
94290 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94291
94292         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94293         dimension.
94294
94295 2000-07-04  Jim Meyering  <meyering@lucent.com>
94296
94297         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94298         of the deprecated AC_CHECKING.
94299
94300 2000-07-04  Jim Meyering  <meyering@lucent.com>
94301
94302         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94303         Reported by Bruno Haible.
94304
94305 2000-07-04  Jim Meyering  <meyering@lucent.com>
94306
94307         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94308         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94309         lacks mbrtowc.
94310
94311 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94312
94313         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94314         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94315
94316 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94317         and Bruno Haible  <haible@clisp.cons.org>
94318
94319         * lib/quotearg.c (mbrtowc):
94320         Assign to *pwc, and return 1 only if result is nonzero.
94321         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94322
94323 2000-07-03  Jim Meyering  <meyering@lucent.com>
94324
94325         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94326
94327 2000-07-03  Jim Meyering  <meyering@lucent.com>
94328
94329         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94330         This is necessary to get a definition of e.g., UTMP_FILE on
94331         HP-UX 10.20.
94332         From Bob Proulx.
94333
94334 2000-07-02  Jim Meyering  <meyering@lucent.com>
94335
94336         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94337
94338         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94339         AC_LIBOBJ(function_name).
94340         * m4/chown.m4: Likewise.
94341         * m4/fnmatch.m4: Likewise.
94342         * m4/ftruncate.m4: Likewise.
94343         * m4/getgroups.m4: Likewise.
94344         * m4/getline.m4: Likewise.
94345         * m4/group-member.m4: Likewise.
94346         * m4/jm-macros.m4: Likewise.
94347         * m4/lstat.m4: Likewise.
94348         * m4/malloc.m4: Likewise.
94349         * m4/memcmp.m4: Likewise.
94350         * m4/nanosleep.m4: Likewise.
94351         * m4/putenv.m4: Likewise.
94352         * m4/realloc.m4: Likewise.
94353         * m4/regex.m4: Likewise.
94354         * m4/stat.m4: Likewise.
94355         * m4/strftime.m4: Likewise.
94356
94357 2000-07-02  Jim Meyering  <meyering@lucent.com>
94358
94359         * lib/quotearg.c (mbstate_t): Don't define here.
94360
94361 2000-07-02  Jim Meyering  <meyering@lucent.com>
94362
94363         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94364
94365 2000-07-01  Jim Meyering  <meyering@lucent.com>
94366
94367         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94368
94369 2000-07-01  Jim Meyering  <meyering@lucent.com>
94370
94371         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94372         problem.
94373
94374 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94375
94376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94377         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94378
94379 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94380
94381         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94382         per change in ../m4/ls-mntd-fs.m4.
94383         (read_filesystem_list): Ignore symbolic links.
94384
94385 2000-06-29  Jim Meyering  <meyering@lucent.com>
94386
94387         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94388         for declaration of strcmp.
94389
94390         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94391
94392         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94393         Avoid warning by casting result to `char *' to remove `const'.
94394
94395 2000-06-28  Jim Meyering  <meyering@lucent.com>
94396
94397         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94398         included by quotearg.c, for which we perform this test.  From
94399         Bruno Haible.
94400
94401 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94402
94403         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94404         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94405         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94406
94407 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94408
94409         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94410
94411 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94412
94413         savedir now sets errno on failure and invokes xmalloc to get memory.
94414         Fix a couple of other minor bugs while we're at it.
94415
94416         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94417         (NAMLEN): Remove macro.
94418         (malloc, realloc): Remove decls.
94419         (stpcpy): Likewise.
94420         ("xalloc.h"): Include.
94421         (NAME_SIZE_DEFAULT): New macro.
94422         (savedir): Use xmalloc / xrealloc to allocate memory.
94423         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94424         Skip "" directory entries.
94425         Use strlen to calculate directory entry length, since the old method
94426         is rarely used these days and isn't worth supporting.
94427         Don't use a pointer after freeing it.
94428         Check for integer overflow when calculating allocation size.
94429         Use memcpy to copy entries, instead of stpcpy.
94430         Set errno properly when returning NULL.
94431         Check for readdir error.
94432
94433 2000-06-26  Jim Meyering  <meyering@lucent.com>
94434
94435         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94436
94437 2000-06-25  Jim Meyering  <meyering@lucent.com>
94438
94439         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94440         Linux header bug when _XOPEN_SOURCE is defined to 500.
94441
94442 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94443
94444         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94445         deficiency.
94446
94447 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94448
94449         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94450         Include xalloc.h.
94451         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94452
94453 2000-06-24  Jim Meyering  <meyering@lucent.com>
94454
94455         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94456         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94457         for which strerror does return char*, but which lacks a conveniently
94458         accessible declaration of the function.  If the compile-test says
94459         strerror_r doesn't work, then resort to a `run'-test that works on
94460         BeOS and segfaults on DEC Unix.
94461
94462 2000-06-24  Jim Meyering  <meyering@lucent.com>
94463
94464         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94465
94466 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94467
94468         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94469         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94470
94471 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94472
94473         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94474         (mbrtowc, mbstate_t): Define substitutes if
94475         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94476         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94477         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94478
94479 2000-06-23  Jim Meyering  <meyering@lucent.com>
94480
94481         * m4/afs.m4: Add missing AC_MSG_RESULT.
94482         Reported by Bruno Haible.
94483
94484         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94485         Suggestion from Bruno Haible.
94486
94487 2000-06-23  Jim Meyering  <meyering@lucent.com>
94488
94489         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94490
94491 2000-06-21  Jim Meyering  <meyering@lucent.com>
94492
94493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94494
94495 2000-06-21  Jim Meyering  <meyering@lucent.com>
94496
94497         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94498         (noinst_HEADERS): Add getstr.h.
94499
94500         * lib/getline.c (getstr): Move into a separate file.
94501         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94502         the following changes: new parameter, delim2; both delim[12]
94503         parameters have type `int', not `char'.  The latter would lose
94504         with 8-bit delimiters.
94505         * lib/getstr.h: New file.
94506
94507 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94508
94509         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94510         than 1024, return a memory chunk of least possible size, instead
94511         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94512         Use free/xmalloc instead of xrealloc to avoid copying for very long
94513         paths.
94514
94515 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94516
94517         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94518         the empty string.
94519
94520 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94521
94522         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94523         address, not strdup.  Include <stdlib.h> and don't declare free().
94524
94525 2000-06-19  Jim Meyering  <meyering@lucent.com>
94526
94527         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94528
94529 2000-06-18  Jim Meyering  <meyering@lucent.com>
94530
94531         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94532
94533         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94534         `checking whether...' message to be consistent with that of the
94535         lstat test.
94536
94537 2000-06-18  Jim Meyering  <meyering@lucent.com>
94538
94539         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94540         Besides, these days every porting target provides a mkdir function.
94541
94542         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94543         needed. (this snippet comes from src/system.h).
94544
94545 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94546
94547         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94548
94549 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94550
94551         * lib/human.c (adjust_value): New function.
94552         (human_readable_inexact): Apply rounding style even when
94553         printing approximate values.
94554
94555 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94556
94557         * lib/human.c (human_readable_inexact): Allow an input block
94558         size that is not a multiple of the output block size, and vice versa.
94559         Reported by Piergiorgio Sartor.
94560
94561 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94562
94563         * lib/getdate.y (get_date): Apply relative times after time
94564         zone indicator, not before.  Reported by Todd A. Jacobs.
94565
94566 2000-06-13  Jim Meyering  <meyering@lucent.com>
94567
94568         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94569
94570         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94571
94572 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94573
94574         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94575
94576 2000-06-12  Jim Meyering  <meyering@lucent.com>
94577
94578         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94579         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94580         optional argument.
94581         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94582         the optional argument, `lib'.
94583
94584 2000-06-08  Jim Meyering  <meyering@lucent.com>
94585
94586         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94587
94588 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94589
94590         Rewrite largefile configuration so that we don't need to run
94591         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94592         AC_CANONICAL_HOST in configure.in -- jmm]
94593
94594         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94595         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94596         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94597         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94598         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94599         All uses changed.
94600         Instead of inspecting the output of getconf, try to compile the
94601         test program without and with the macro definition.
94602         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94603         for getconf.  Instead, check for the needed flags by compiling
94604         test programs.
94605
94606 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94607
94608         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94609
94610 2000-06-04  Jim Meyering  <meyering@lucent.com>
94611
94612         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94613         SunOS 4.1.4 for which gid_t is an unsigned type.
94614
94615 2000-06-03  Jim Meyering  <meyering@lucent.com>
94616
94617         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94618         now that autoconf requires that.
94619
94620         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94621         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94622         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94623
94624 2000-06-03  Jim Meyering  <meyering@lucent.com>
94625
94626         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94627
94628 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94629
94630         * m4/glibc21.m4: New file.
94631         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94632
94633 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94634
94635         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94636         newer, don't install charset.alias.
94637         * lib/config.charset: Change the Linux/glibc rules so they become empty
94638         on glibc-2.1 or newer.
94639
94640 2000-06-02  Jim Meyering  <meyering@lucent.com>
94641
94642         * lib/mountlist.c: Back out last change.  Instead, do this...
94643         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94644         me_dummy member using the same `ignore'-testing code.
94645         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94646         fs_type strings.
94647         From Mark D. Roth.
94648
94649 2000-05-29  Jim Meyering  <meyering@lucent.com>
94650
94651         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94652         mounts with the `ignore' attribute.  Based on a patch from
94653         Mark D. Roth.
94654
94655 2000-05-28  Jim Meyering  <meyering@lucent.com>
94656
94657         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94658         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94659         * m4/stat.m4: Likewise.
94660         * m4/lstat.m4: Likewise.
94661         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94662
94663         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94664         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94665
94666 2000-05-26  Jim Meyering  <meyering@lucent.com>
94667
94668         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94669
94670 2000-05-24  Jim Meyering  <meyering@lucent.com>
94671
94672         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94673         autoconf requires that.
94674         * m4/lib-check.m4: Likewise.
94675         * m4/jm-macros.m4: Likewise.
94676         * m4/strftime.m4: Likewise.
94677
94678         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94679         AC_CHECK_DECLS, now that autoconf requires that.
94680
94681 2000-05-22  Jim Meyering  <meyering@lucent.com>
94682
94683         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94684         * m4/lstat.m4: Likewise.
94685
94686 2000-05-22  Jim Meyering  <meyering@lucent.com>
94687
94688         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94689
94690 2000-05-20  Jim Meyering  <meyering@lucent.com>
94691
94692         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94693         (jm_PREREQ): Use it.
94694
94695 2000-05-18  Jim Meyering  <meyering@lucent.com>
94696
94697         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94698         back, too, since it may have been modified by allocate_entry.
94699         (hash_delete): Rewrite to use neither the assignment operator
94700         nor the comma operator in an if-expression.
94701
94702 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94703
94704         * lib/closeout.c:
94705         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94706         Remove; no longer needed.
94707         "quotearg.h": Add include.
94708         (file_name): Do not bother to explicitly initialize to NULL; it's less
94709         efficient on some hosts.
94710         (close_stdout_status): Remove test as to whether stdout was already
94711         closed; it breaks for the case "echo x | sort >&-".
94712         Quote file name colons.
94713         Do not assume that _("write error") lacks format strings.
94714
94715 2000-05-15  Jim Meyering  <meyering@lucent.com>
94716
94717         * lib/version-etc.c (version_etc_copyright): Update the copyright
94718         string used in all --version output.
94719
94720 2000-05-14  Jim Meyering  <meyering@lucent.com>
94721
94722         * lib/closeout.c (close_stdout_set_file_name): New function.
94723         (close_stdout_status): Use new file-scoped global.
94724         Return right away if fstat says the stdout file descriptor is invalid.
94725         * lib/closeout.h (close_stdout_set_file_name): Declare.
94726
94727 2000-05-10  Jim Meyering  <meyering@lucent.com>
94728
94729         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94730         (close_stdout_set_status): New function.
94731         * lib/closeout.h (close_stdout_set_status): Declare.
94732
94733 2000-05-09  Jim Meyering  <meyering@lucent.com>
94734
94735         * m4/gettext.m4: Rename this...
94736         * m4/libintl.m4: ...to this.
94737
94738 2000-05-08  Jim Meyering  <meyering@lucent.com>
94739
94740         * lib/long-options.c: Don't include closeout.h.
94741         (parse_long_options): Don't call close_stdout for --version.
94742
94743 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94744
94745         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94746         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94747         2.1.3 bug.  This avoids a clash when files like regex.c define
94748         _GNU_SOURCE.
94749
94750 2000-05-06  Jim Meyering  <meyering@lucent.com>
94751
94752         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94753         (AC_REPLACE_FUNCS): Add strnlen.
94754
94755         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94756         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94757
94758         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94759         AC_SEARCH_LIBS call for nanosleep.
94760         (LIB_NANOSLEEP): Set and AC_SUBST.
94761
94762 2000-05-06  Jim Meyering  <meyering@lucent.com>
94763
94764         * lib/strnlen.c: Undefine __strnlen and strnlen.
94765         [!weak_alias]: Define __strnlen to strnlen.
94766
94767         * lib/atexit.c: New file, from libiberty.
94768
94769 2000-05-06  Jim Meyering  <meyering@lucent.com>
94770
94771         * lib/closeout.c (close_stdout_status): Also check for errors on the
94772         stderr stream.
94773
94774 2000-05-05  Jim Meyering  <meyering@lucent.com>
94775
94776         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94777         AC_SEARCH_LIBS call for clock_gettime.
94778         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94779
94780         * m4/search-libs.m4: Update from autoconf.
94781
94782         su doesn't work on Solaris 2.6.
94783         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94784         <shadow.h>.  Reported by Dragos Harabor.
94785
94786 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94787
94788         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94789         memcpy instead of xmalloc, xrealloc, path_concat.
94790         (locale_charset): Treat empty environment variables as absent.
94791         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94792
94793 2000-05-04  Jim Meyering  <meyering@lucent.com>
94794
94795         * lib/getopt.c: Update from glibc.
94796         * lib/obstack.c: Likewise.
94797         * lib/obstack.h: Likewise.
94798         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94799         file
94800
94801         * lib/regex.h: Likewise.
94802         * lib/strndup.c: Likewise.
94803         * lib/strnlen.c: New file, from glibc.
94804
94805 2000-05-03  Jim Meyering  <meyering@lucent.com>
94806
94807         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94808
94809 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94810
94811         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94812         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94813         compile-time test, rather than inspecting host and OS, to
94814         decide whether to define _LARGEFILE_SOURCE.
94815
94816 2000-05-01  Jim Meyering  <meyering@lucent.com>
94817
94818         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94819
94820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94821         Based on a patch from Bruno Haible.
94822
94823 2000-05-01  Jim Meyering  <meyering@lucent.com>
94824
94825         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94826
94827 2000-04-29  Jim Meyering  <meyering@lucent.com>
94828
94829         * lib/path-concat.c: Declare strdup only if it's not defined.
94830         * lib/canon-host.c: Likewise.
94831
94832 2000-04-28  Jim Meyering  <meyering@lucent.com>
94833
94834         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94835         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94836         is included first, then limits.h is included by locale.h by libintl.h.
94837         From John David Anglin.
94838
94839 2000-04-25  Jim Meyering  <meyering@lucent.com>
94840
94841         * lib/makepath.c (S_IRWXUGO): Define.
94842         (make_path): Always perform explicit chmod if MODE specifies any
94843         of the `special' permission bits.  Prompted by a bug report against
94844         install from Mate Wierdl and Joost van Baal.
94845
94846 2000-04-18  Jim Meyering  <meyering@lucent.com>
94847
94848         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94849         (jm_PREREQ): Use it.
94850
94851 2000-04-18  Jim Meyering  <meyering@lucent.com>
94852
94853         * lib/README: New file.
94854
94855         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94856         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94857
94858 2000-04-17  Jim Meyering  <meyering@lucent.com>
94859
94860         Get it right :-)
94861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94862         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94863         Suggestion from Akim Demaille.
94864
94865 2000-04-17  Jim Meyering  <meyering@lucent.com>
94866
94867         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94868         the definition of it to rpl_strftime also defined-away the system's
94869         declaration.
94870
94871 2000-04-15  Jim Meyering  <meyering@lucent.com>
94872
94873         Use `C' to denote so-called `contiguous' files, the same way
94874         that tar does.
94875         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94876         (ftypelet): Use S_ISCTG.
94877         From Michael Deutschmann.
94878
94879 2000-04-14  Jim Meyering  <meyering@lucent.com>
94880
94881         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94882         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94883         clobbered.
94884
94885 2000-04-14  Jim Meyering  <meyering@lucent.com>
94886
94887         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94888
94889 2000-04-13  Jim Meyering  <meyering@lucent.com>
94890
94891         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94892         AH_VERBATIM to insert required #ifndef into config.h.in.
94893         Suggestion from Akim Demaille.
94894
94895 2000-04-12  Jim Meyering  <meyering@lucent.com>
94896
94897         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94898         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94899         Christian Krackowizer.
94900
94901         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94902         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94903         (AC_SYS_LARGEFILE): Require.
94904         (AM_C_PROTOTYPES): Require.
94905
94906 2000-04-08  Jim Meyering  <meyering@lucent.com>
94907
94908         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94909         names don't conflict.  Reported by Eli Zaretskii.
94910
94911 2000-04-07  Jim Meyering  <meyering@lucent.com>
94912
94913         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94914         sys/types.h, to work around system header problems on AIX 3.2.5.
94915         From Bruno Haible.
94916
94917 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94918
94919         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94920         bug.  Deal with the different error behavior of Irix iconv.
94921
94922 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94923
94924         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94925         IRIX if the installer said otherwise.
94926
94927 2000-04-05  Jim Meyering  <meyering@lucent.com>
94928
94929         Portability tweaks required for ultrix4.3.
94930         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94931         (jm_CHECK_DECLS): Add getutent to the list of functions.
94932         (_jm_DECL_HEADERS): Add utmpx.h.
94933         From John David Anglin.
94934
94935         * m4/strftime.m4: Back out the 2000-04-02 change.
94936         Instead of that change, simply undefine putenv in the test program.
94937
94938 2000-04-05  Jim Meyering  <meyering@lucent.com>
94939
94940         Portability tweaks required for ultrix4.3.
94941         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94942         getutent.
94943         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94944         * lib/canon-host.c: Declare strdup.
94945         * lib/path-concat.c: Likewise.
94946         From John David Anglin.
94947
94948 2000-04-04  Jim Meyering  <meyering@lucent.com>
94949
94950         Be more DOS 8.3-friendly.
94951         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94952         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94953         * lib/Makefile.am: Reflect renaming.
94954         Reported by Eli Zaretskii.
94955
94956         Use a temporary file name that won't clash with `charset.alias'
94957         in the DOS 8.3 name space.
94958         * lib/Makefile.am (charset_tmp): Define.
94959         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94960         (uninstall-local): Likewise.
94961         Reported by Eli Zaretskii.
94962
94963 2000-04-03  Jim Meyering  <meyering@lucent.com>
94964
94965         * m4/gettext.m4: Fix typo in comment.
94966
94967         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94968         textutils/configure.in).  Suggestion from Paul Eggert.
94969         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94970
94971 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94972
94973         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94974         variable in the shell rather than using putenv, which isn't
94975         portable.  This avoids the configure-time inter-test dependency
94976         on the potentially-renamed putenv function.
94977
94978 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94979
94980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94981         before checking struct stat.st_blksize, so that
94982         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94983
94984 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94985
94986         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94987         since strftime.c uses HAVE_STRFTIME to decide whether to use
94988         the underlying strftime.
94989
94990 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94991
94992         * lib/time/strftime.c (my_strftime): Make sure we call the system
94993         strftime, not ourselves, when invoking the underlying strftime.
94994
94995 2000-03-24  Jim Meyering  <meyering@lucent.com>
94996
94997         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94998         (charset_alias): Define.
94999         (install-exec-local): Factor out common code.
95000         (uninstall-local): Split lines longer than 80.
95001         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95002         (SUFFIXES): Define.
95003         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95004         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95005
95006 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95007
95008         * lib/config.charset: Output a line containing "Packages using this
95009         file".
95010         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95011         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95012         ref-del.sed): New rules.
95013
95014 2000-03-17  Jim Meyering  <meyering@lucent.com>
95015
95016         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95017         Otherwise, include <strings.h>
95018
95019 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95020
95021         * lib/unicodeio.c (utf8_wctomb): New function.
95022         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95023         format instead of in UCS-4 with platform dependent endianness.
95024
95025 2000-03-10  Jim Meyering  <meyering@lucent.com>
95026
95027         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95028         From Marco Franzen.
95029
95030 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95031
95032         * lib/savedir.c (savedir): Work even if directory size is
95033         negative; this can happen with some screwy NFS configurations.
95034
95035 2000-03-06  Jim Meyering  <meyering@lucent.com>
95036
95037         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95038         if it's NULL (because we ran out of memory).  From Bruno Haible.
95039
95040 2000-03-05  Jim Meyering  <meyering@lucent.com>
95041
95042         * lib/localcharset.c ("path-concat.h"): Include.
95043         (get_charset_aliases): Use path_concat instead of ANSI string
95044         concatenation.
95045
95046         * lib/unicodeio.h (PARAMS): Define.
95047         Use it to guard prototype.
95048
95049 2000-03-04  Jim Meyering  <meyering@lucent.com>
95050
95051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95052         for lib/localcharset.c.
95053
95054 2000-03-04  Jim Meyering  <meyering@lucent.com>
95055
95056         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95057         installing into it.
95058         (uninstall-local): Uncomment this rule so `make distcheck' works
95059         once again.
95060
95061         * lib/unicodeio.c (<errno.h>): Include it.
95062         (errno): Declare if not defined.
95063
95064         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95065
95066         * lib/config.charset: New version, incorporating remarks from a linux
95067         i18n mailing list.  From Bruno Haible.
95068
95069 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95070
95071         * m4/codeset.m4: New file.
95072         * m4/iconv.m4: New file.
95073         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95074
95075 2000-03-03  Jim Meyering  <meyering@lucent.com>
95076
95077         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95078
95079 2000-03-02  Jim Meyering  <meyering@lucent.com>
95080
95081         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95082         the messages come out on separate lines.
95083
95084         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95085         rather than jm_CHECK_DECLARATIONS.
95086         * m4/decl.m4: Remove now-unused file.
95087
95088         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95089         geteuid.
95090
95091 2000-03-02  Jim Meyering  <meyering@lucent.com>
95092
95093         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95094
95095 2000-03-01  Jim Meyering  <meyering@lucent.com>
95096
95097         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95098         * lib/unicodeio.c: Likewise.
95099
95100 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95101
95102         * lib/config.charset: New file.
95103         * lib/localcharset.c: New file.
95104         * lib/unicodeio.h, lib/unicodeio.c: New files.
95105         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95106         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95107         (noinst_HEADERS): Add unicodeio.h.
95108         (all-local, install-exec-local, charset.alias): New targets.
95109
95110 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95111
95112         * lib/quotearg.c (ALERT_CHAR): New macro.
95113         (quotearg_buffer_restyled): Use it.
95114
95115 2000-02-27  Jim Meyering  <meyering@lucent.com>
95116
95117         * m4/check-decl.m4: Add getenv to the list.
95118
95119 2000-02-27  Jim Meyering  <meyering@lucent.com>
95120
95121         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95122         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95123
95124         * lib/backupfile.c: Guard inclusion of stdlib.h with
95125         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95126         Declare malloc if needed.
95127
95128         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95129         `#ifndef HAVE_DECL..'
95130         now that autoconf always defines the HAVE_DECL_ symbols.
95131         * lib/human.c: Likewise.
95132         * lib/same.c: Likewise.
95133         * lib/strtoumax.c: Likewise.
95134
95135         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95136         declaration check was not run.
95137         * lib/hash.c: Likewise.
95138         * lib/human.c: Likewise.
95139         * lib/same.c: Likewise.
95140         * lib/strtoumax.c: Likewise.
95141
95142         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95143         `.', then first look up the entire `.'-containing string as a login
95144         name.
95145
95146 2000-02-23  Jim Meyering  <meyering@lucent.com>
95147
95148         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95149         in place of my hack.
95150
95151 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95152
95153         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95154         (textint): New typedef.
95155         (parser_control): Member year changed from int to textint.
95156         All uses changed.
95157         (YYSTYPE): Removed; replaced by %union with int and textint members.
95158         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95159         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95160         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95161         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95162         (date, number, to_year): Use width of number in digits, not its value,
95163         to determine whether it's a 2-digit year, or a 2-digit time.
95164         (yylex): Store number of digits of numeric tokens.
95165         Reported by John Kendall.
95166
95167         (parser_control): Changed from struct parser_control to typedef (for
95168         consistency).  All uses changed.
95169
95170         (tID): Removed; not used.
95171         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95172
95173 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95174
95175         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95176         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95177
95178 2000-02-12  Jim Meyering  <meyering@lucent.com>
95179
95180         * lib/userspec.c (ISDIGIT): Define it.
95181         (isdigit): Remove definition.
95182         (is_number): Use ISDIGIT, not isdigit.
95183         <libintl.h>: Include.
95184         (_ and N_): Define.
95185         (parse_user_spec): Mark translatable strings.
95186
95187 2000-02-10  Jim Meyering  <meyering@lucent.com>
95188
95189         With these changes, nanosleep.[ch] are finally enough like the other
95190         lib/* replacement files to compile on a few more losing systems.
95191
95192         * lib/nanosleep.h: Don't include config.h.
95193         Remove prototype from declaration of nanosleep.
95194         (PARAMS): Remove now-unneeded definition.
95195         * lib/nanosleep.c: #undef nanosleep.
95196         (rpl_nanosleep): Rename from nanosleep.
95197
95198 2000-02-10  Jim Meyering  <meyering@lucent.com>
95199
95200         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95201         gnu_nanosleep to rpl_nanosleep.
95202
95203 2000-02-09  Jim Meyering  <meyering@lucent.com>
95204
95205         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95206         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95207
95208 2000-02-08  Akim Demaille  <akim@epita.fr>
95209
95210         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95211         `[' and `]' and remove uses of `changequote'.
95212         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95213         (AC_SYS_LARGEFILE): Likewise.
95214         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95215         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95216         of changequote.
95217         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95218         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95219         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95220         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95221
95222 2000-02-05  Jim Meyering  <meyering@lucent.com>
95223
95224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95225         Remove explicit use of AC_HEADER_TIME.  It is required by
95226         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95227         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95228         in autoconf whereby the expansion of the latter ended up preceding
95229         the expansion of its prerequisite, AC_HEADER_TIME.
95230         Reported by Volker Borchert.
95231
95232 2000-02-03  Jim Meyering  <meyering@lucent.com>
95233
95234         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95235
95236 2000-02-03  Jim Meyering  <meyering@lucent.com>
95237
95238         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95239         rather than with `#if HAVE_UTMPNAME'.
95240
95241 2000-02-02  Jim Meyering  <meyering@lucent.com>
95242
95243         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95244         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95245         Reported by Eli Zaretskii.
95246
95247 2000-02-01  Jim Meyering  <meyering@lucent.com>
95248
95249         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95250
95251 2000-01-31  Jim Meyering  <meyering@lucent.com>
95252
95253         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95254         functions.  Add the time.h and sys/time.h headers along with the
95255         AC_REQUIRE'ment of AC_HEADER_TIME.
95256
95257 2000-01-31  Jim Meyering  <meyering@lucent.com>
95258
95259         * lib/nanosleep.h (nanosleep): Guard declaration with
95260         `#if ! HAVE_DECL_NANOSLEEP'.
95261         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95262         the declaration in that vendor's sys/timers.h.
95263         Reported by Christian Krackowizer.
95264
95265         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95266         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95267         (ISPRINT): Likewise.
95268         Reported by Tom Tromey.
95269
95270 2000-01-30  Jim Meyering  <meyering@lucent.com>
95271
95272         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95273
95274         * m4/prereq.m4 (utmp_includes): Define.
95275         Check for ut_user and ut_name members in both struct utmpx
95276         and struct utmp.
95277
95278 2000-01-30  Jim Meyering  <meyering@lucent.com>
95279
95280         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95281         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95282         header files where only utmpx.ut_user is declared.
95283
95284         * lib/readutmp.h (UT_USER): Define.
95285
95286 2000-01-29  Jim Meyering  <meyering@lucent.com>
95287
95288         * m4/lib-check.m4: New file containing library-related checks from
95289         fileutils and sh-utils (textutils had none).
95290
95291 2000-01-28  Jim Meyering  <meyering@lucent.com>
95292
95293         * m4/perl.m4: Change format of warning message to look more like that
95294         from the missing script.  Suggestion from François Pinard.
95295
95296 2000-01-25  Jim Meyering  <meyering@lucent.com>
95297
95298         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95299         well as time.h in the compile check.
95300         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95301         Fix typo in cross-compiling case: s/yes/no/.
95302
95303 2000-01-23  Jim Meyering  <meyering@lucent.com>
95304
95305         * m4/jm-macros.m4: Move df-related tests here from
95306         fileutils/configure.in
95307
95308         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95309         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95310
95311         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95312         s/space/ac_fsusage_space/.
95313         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95314
95315         * m4/ftruncate.m4: New file (derived from part of
95316         fileutils/configure.in).
95317         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95318         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95319
95320         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95321         AC_SUBST these here, rather than just in sh-util/configure.in, so
95322         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95323         all the same.
95324         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95325         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95326         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95327         (AC_SUBST(POW_LIBM)): Likewise.
95328         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95329
95330 2000-01-23  Jim Meyering  <meyering@lucent.com>
95331
95332         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95333         obstack.c.
95334
95335 2000-01-22  Jim Meyering  <meyering@lucent.com>
95336
95337         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95338
95339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95340
95341         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95342         configure.in
95343         (AC_CHECK_HEADERS): Likewise for sh-utils.
95344         (AC_CHECK_HEADERS): Likewise for textutils.
95345         Merge the three lists of headers.
95346
95347         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95348         from fileutils' configure.in.
95349
95350         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95351         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95352         check-decl.m4.
95353
95354         * m4/check-decl.m4: Use #if rather than #ifdef.
95355         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95356         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95357         (_jm_DECL_HEADERS): Define new function.
95358         (jm_CHECK_DECLARATIONS): Require it.
95359
95360 2000-01-22  Jim Meyering  <meyering@lucent.com>
95361
95362         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95363         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95364         Required for some AIX systems.  Reported by Christian Krackowizer.
95365         [TESTING] (main): New function.
95366
95367         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95368         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95369         letters.
95370
95371         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95372         iswprint.
95373
95374         * lib/strverscmp.c (ISDIGIT): Define.
95375         (strverscmp): Use ISDIGIT, not isdigit.
95376
95377 2000-01-19  Jim Meyering  <meyering@lucent.com>
95378
95379         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95380         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95381         defines `struct timespec' in <sys/time.h>
95382
95383         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95384         Thanks to Akim for explaining.
95385
95386 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95387
95388         * lib/nanosleep.c (nanosleep):
95389         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95390         POSIX.1 doesn't require SA_INTERRUPT and some systems
95391         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95392         it's been part of POSIX.1 since day 1 (in 1988).
95393
95394 2000-01-17  Jim Meyering  <meyering@lucent.com>
95395
95396         * lib/interlock: Remove unused file.  Reported by François Pinard.
95397
95398 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95399
95400         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95401         alert, backslash, formfeed, and vertical tab unnecessarily in
95402         shell quoting style.
95403
95404 2000-01-16  Jim Meyering  <meyering@lucent.com>
95405
95406         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95407         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95408         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95409         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95410
95411 2000-01-16  Jim Meyering  <meyering@lucent.com>
95412
95413         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95414         because the latter didn't work.
95415
95416 2000-01-15  Jim Meyering  <meyering@lucent.com>
95417
95418         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95419         (AC_REPLACE_FUNCS): Add memcpy and memset.
95420         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95421         Add strpbrk.
95422         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95423
95424 2000-01-12  Jim Meyering  <meyering@lucent.com>
95425
95426         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95427         (jm_PREREQ): Use it.
95428         (jm_PREREQ_READUTMP): New macro.
95429         (jm_PREREQ): Use it.
95430
95431 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95432
95433         Quote multibyte characters correctly.
95434         * m4/c-bs-a.m4: New file.
95435         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95436         (jm_PREREQ): Use it.
95437
95438 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95439
95440         * m4/uintmax_t.m4: Port to autoconf 2.13.
95441
95442 2000-01-08  Jim Meyering  <meyering@ascend.com>
95443
95444         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95445         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95446
95447 2000-01-04  Jim Meyering  <meyering@ascend.com>
95448
95449         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95450         jm_STRUCT_DIRENT_D_TYPE.
95451         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95452         jm_STRUCT_DIRENT_D_INO.
95453         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95454         jm_STRUCT_UTIMBUF.
95455         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95456         renamings.
95457         * m4/utime.m4: Likewise.
95458
95459         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95460         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95461
95462 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95463
95464         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95465         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95466
95467 2000-01-02  Jim Meyering  <meyering@ascend.com>
95468
95469         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95470         remember if this is necessary.
95471
95472 1999-12-26  Jim Meyering  <meyering@ascend.com>
95473
95474         * m4/jm-macros.m4: Use it here.
95475         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95476
95477 1999-12-23  Jim Meyering  <meyering@ascend.com>
95478
95479         * m4/jm-macros.m4: Check for clock_gettime (moved from
95480         fileutils/configure.in)
95481         Check for gettimeofday.
95482
95483 1999-12-20  Jim Meyering  <meyering@ascend.com>
95484
95485         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95486         autoconf-2.14a-1999-12-20.
95487
95488 1999-12-19  Jim Meyering  <meyering@ascend.com>
95489
95490         * m4/lstat-slash.m4: New file.
95491         * m4/jm-macros.m4: Use the new macro:
95492         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95493
95494 1999-12-07  Jim Meyering  <meyering@ascend.com>
95495
95496         * m4/perl.m4: Require that File::Compare be available, too.
95497         Too many systems seem to lack it.
95498
95499         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95500         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95501
95502 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95503
95504         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95505         problem with the QNX 4.25 shell, which doesn't propagate exit
95506         status of failed commands inside shell assignments.
95507
95508 1999-11-17  Jim Meyering  <meyering@ascend.com>
95509
95510         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95511
95512 1999-11-07  Jim Meyering  <meyering@ascend.com>
95513
95514         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95515
95516 1999-11-06  Jim Meyering  <meyering@ascend.com>
95517
95518         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95519         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95520
95521 1999-11-05  Jim Meyering  <meyering@ascend.com>
95522
95523         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95524         configure.in of textutils, fileutils, and sh-utils into this one
95525         (shared between those packages) file.
95526         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95527         AC_STRUCT_ST_BLKSIZE.
95528
95529 1999-11-03  Jim Meyering  <meyering@ascend.com>
95530
95531         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95532         of AC_CHECK_TYPE checks includes unistd.h.
95533         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95534         Suggestion from Akim Demaille.
95535
95536 1999-10-30  Jim Meyering  <meyering@ascend.com>
95537
95538         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95539         m4-quoted string.
95540         * m4/ls-mntd-fs.m4: Likewise.
95541         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95542         * m4/jm-winsz1.m4: Likewise.
95543
95544         * m4/const.m4: Remove file, since the fix made it into the experimental
95545         version of autoconf.
95546         * m4/mktime.m4: Likewise.
95547
95548         * m4/check-type.m4: Remove file, now that the latest version of
95549         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95550
95551         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95552         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95553         AC_CHECK_TYPE.
95554
95555 1999-10-04  Jim Meyering  <meyering@ascend.com>
95556
95557         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95558
95559 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95560
95561         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95562         2.95.1 bug with HP-UX 10.20.
95563
95564 1999-09-17  Jim Meyering  <meyering@ascend.com>
95565
95566         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95567         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95568         due to missing strdup (against sh-utils-2.0).
95569
95570 1999-08-29  Jim Meyering  <meyering@ascend.com>
95571
95572         * m4/jm-macros.m4: Require jm_BISON.
95573         * m4/bison.m4: New file.
95574
95575 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95576
95577         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95578         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95579
95580 1999-08-05  Jim Meyering  <meyering@ascend.com>
95581
95582         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95583         to avoid conflicts with `conftest' on 8+3 filesystems.
95584         Suggestion from Eli Zaretskii.
95585
95586 1999-08-04  Jim Meyering  <meyering@ascend.com>
95587
95588         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95589         fileutils and sh-utils (textutils's getline test was inadequate).
95590         (AM_FUNC_GETLINE): Run this test.
95591         (AC_CHECK_FUNCS): Check for getdelim.
95592         Reported by Bob Proulx.
95593
95594 1999-08-02  Jim Meyering  <meyering@ascend.com>
95595
95596         * m4/jm-macros.m4: Add a comment.
95597
95598 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95599
95600         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95601         <inttypes.h> defines strtoumax as a macro (and not as a
95602         function).
95603
95604 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95605
95606         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95607         that we can shift, multiply and divide unsigned long long
95608         values; Ultrix cc can't do it.
95609
95610 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95611
95612         * m4/mktime.m4: New file, which is a preview of what should appear
95613         in the next public autoconf release.
95614
95615 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95616
95617         * m4/lfs.m4: Remove this file.
95618         * m4/largefile.m4: New file.  It contains the old contents of
95619         lfs.m4, except that all names with prefix AC_LFS have been
95620         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95621         compatible with future autoconf versions.  Also, some minor m4
95622         quoting problems have been fixed.
95623
95624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95625
95626         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95627         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95628         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95629         and simplify the shell code.
95630
95631 1999-08-01  Jim Meyering  <meyering@ascend.com>
95632
95633         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95634         m4.
95635
95636 1999-07-20  Jim Meyering  <meyering@ascend.com>
95637
95638         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95639
95640 1999-07-15  Jim Meyering  <meyering@ascend.com>
95641
95642         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95643
95644 1999-05-22  Jim Meyering  <meyering@ascend.com>
95645
95646         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95647
95648 1999-05-20  Jim Meyering  <meyering@ascend.com>
95649
95650         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95651         Add a colon after each `then' in case $4 is empty.
95652
95653 1999-05-16  Jim Meyering  <meyering@ascend.com>
95654
95655         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95656
95657 1999-05-10  Jim Meyering  <meyering@ascend.com>
95658
95659         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95660
95661         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95662         AC_FUNC_MKTIME.
95663
95664 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95665
95666         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95667
95668 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95669
95670         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95671         not CPPFLAGS, so that linking works correctly in IRIX.
95672
95673 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95674
95675         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95676
95677 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95678
95679         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95680         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95682         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95683         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95684
95685         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95686
95687 1999-04-20  Jim Meyering  <meyering@ascend.com>
95688
95689         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95690         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95691         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95692
95693 1999-04-18  Jim Meyering  <meyering@ascend.com>
95694
95695         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95696         * m4/jm-macros.m4: Use it.
95697
95698 1999-04-06  Jim Meyering  <meyering@ascend.com>
95699
95700         * m4/strftime.m4: Remove test for %f.
95701
95702 1999-03-29  Jim Meyering  <meyering@ascend.com>
95703
95704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95705         superset of the AC_TYPE_* checks in the textutils, fileutils,
95706         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95707         AC_TYPE_PID_T.
95708
95709 1999-03-28  Jim Meyering  <meyering@ascend.com>
95710
95711         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95712         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95713         replaced e.g., in the *.sh files of the sh-utils.
95714
95715 1999-03-20  Jim Meyering  <meyering@ascend.com>
95716
95717         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95718         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95719         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95720
95721 1999-03-19  Jim Meyering  <meyering@ascend.com>
95722
95723         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95724
95725 1999-03-12  Jim Meyering  <meyering@ascend.com>
95726
95727         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95728
95729 1999-03-07  Jim Meyering  <meyering@ascend.com>
95730
95731         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95732         declared.
95733
95734 1999-02-17  Jim Meyering  <meyering@ascend.com>
95735
95736         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95737         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95738
95739 1999-02-07  Jim Meyering  <meyering@ascend.com>
95740
95741         * m4/group-member.m4: New file -- extracted from sh-utils'
95742         configure.in.
95743
95744         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95745         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95746
95747 1999-02-06  Jim Meyering  <meyering@ascend.com>
95748
95749         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95750         * m4/fnmatch.m4: Likewise.
95751         * m4/getgroups.m4: Likewise.
95752         * m4/lstat.m4: Likewise.
95753         * m4/malloc.m4: Likewise.
95754         * m4/putenv.m4: Likewise.
95755         * m4/realloc.m4: Likewise.
95756         * m4/regex.m4: Likewise.
95757         * m4/stat.m4: Likewise.
95758         * m4/strftime.m4: Likewise.
95759         Suggestion from Alain Magloire.
95760
95761         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95762         * m4/fnmatch.m4: Likewise.
95763         * m4/getgroups.m4: Likewise.
95764         * m4/getline.m4: Likewise.
95765         * m4/lstat.m4: Likewise.
95766         * m4/malloc.m4: Likewise.
95767         * m4/memcmp.m4: Likewise.
95768         * m4/putenv.m4: Likewise.
95769         * m4/realloc.m4: Likewise.
95770         * m4/regex.m4: Likewise.
95771         * m4/stat.m4: Likewise.
95772         * m4/strftime.m4: Likewise.
95773         Suggestion from Alain Magloire.
95774
95775         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95776         an argument.
95777
95778         * m4/regex.m4: Add a run-time Test for proper operation of
95779         re_compile_pattern.
95780
95781 1999-01-31  Jim Meyering  <meyering@ascend.com>
95782
95783         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95784
95785 1999-01-30  Jim Meyering  <meyering@ascend.com>
95786
95787         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95788
95789         * m4/jm-mktime.m4: Make this a wrapper around the official
95790         AM_FUNC_MKTIME rather than my private copy, now that the official one
95791         is up to date.
95792         * m4/mktime.m4: Remove file.
95793
95794         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95795         * m4/uptime.m4: Likewise.
95796         * m4/uintmax_t.m4: Likewise.
95797
95798 1999-01-28  Jim Meyering  <meyering@ascend.com>
95799
95800         * m4/jm-macros.m4: Use jm_AFS.
95801         * m4/afs.m4: New file (from fileutils' configure.in).
95802
95803         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95804         * m4/chown.m4: Likewise.
95805         * m4/d-ino.m4: Likewise.
95806         * m4/d-type.m4: Likewise.
95807         * m4/fnmatch.m4: Likewise.
95808         * m4/getgroups.m4: Likewise.
95809         * m4/gettext.m4: Likewise.
95810         * m4/jm-mktime.m4: Likewise.
95811         * m4/jm-winsz2.m4: Likewise.
95812         * m4/lcmessage.m4: Likewise.
95813         * m4/ls-mntd-fs.m4: Likewise.
95814         * m4/malloc.m4: Likewise.
95815         * m4/memcmp.m4: Likewise.
95816         * m4/putenv.m4: Likewise.
95817         * m4/realloc.m4: Likewise.
95818         * m4/st_mtim.m4: Likewise.
95819         * m4/strftime.m4: Likewise.
95820
95821 1999-01-16  Jim Meyering  <meyering@ascend.com>
95822
95823         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95824         (ARGMATCH_DIE_DECL): Define.
95825
95826 1999-01-12  Jim Meyering  <meyering@ascend.com>
95827
95828         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95829         Reported by Lars Hecking.
95830
95831 1999-01-10  Jim Meyering  <meyering@ascend.com>
95832
95833         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95834         gross kludge.
95835         * m4/inttypes_h.m4: Likewise.
95836         * m4/lstat.m4: Likewise.
95837         * m4/malloc.m4: Likewise.
95838         * m4/readdir.m4: Likewise.
95839         * m4/realloc.m4: Likewise.
95840         * m4/st_dm_mode.m4: Likewise.
95841         * m4/stat.m4: Likewise.
95842         * m4/utimbuf.m4: Likewise.
95843         * m4/utimes.m4: Likewise.
95844
95845         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95846         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95847         comments in config.h.in are meaningful.
95848
95849         * m4/jm-macros.m4: Require autoconf-2.13 here.
95850
95851         * m4/regex.m4: By default, don't use the included regex.c on systems
95852         with glibc 2.  Suggestion from Uli Drepper.
95853
95854 1999-01-02  Jim Meyering  <meyering@ascend.com>
95855
95856         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95857
95858 1998-12-18  Jim Meyering  <meyering@ascend.com>
95859
95860         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95861         Based on a suggestion from Lars Hecking.
95862
95863 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95864
95865         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95866
95867 1998-11-16  Jim Meyering  <meyering@ascend.com>
95868
95869         * m4/lfs.m4: Double-quote the `uname...` expression.
95870
95871 1998-11-14  Jim Meyering  <meyering@ascend.com>
95872
95873         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95874         * m4/stat.m4: Likewise.
95875
95876 1998-11-03  Jim Meyering  <meyering@ascend.com>
95877
95878         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95879         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95880
95881 1998-10-18  Jim Meyering  <meyering@ascend.com>
95882
95883         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95884
95885 1998-10-17  Jim Meyering  <meyering@ascend.com>
95886
95887         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95888         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95889         calls for those previously hard-coded headers.  Instead, take a new
95890         parameter.
95891         (jm_CHECK_DECLARATIONS): Reflect interface change.
95892         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95893         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95894
95895         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95896
95897 1998-10-14  Jim Meyering  <meyering@ascend.com>
95898
95899         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95900         instead of "TZ=America/Vancouver".  From Paul Eggert.
95901
95902 1998-10-11  Jim Meyering  <meyering@ascend.com>
95903
95904         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95905         This adds a test for a recently added compatibility fix for mktime.c.
95906         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95907
95908 1998-09-27  Jim Meyering  <meyering@ascend.com>
95909
95910         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95911
95912         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95913         ../configure.in, including a change from Gordon Matzigkeit to allow
95914         cross-compiling for the Hurd.
95915
95916         * m4/glibc.m4: New file/macro to test for the GNU C Library
95917         versions 1 and 2.  From Gordon Matzigkeit.
95918         Indent.
95919
95920 1998-09-21  Jim Meyering  <meyering@ascend.com>
95921
95922         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95923
95924 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95925
95926         Port nanosecond-resolution times to UnixWare 2.1.2 and
95927         pedantic Solaris 2.6.
95928
95929         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95930         AC_STRUCT_ST_MTIM.
95931         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95932         Generate name of ns member, instead of just 1 or undef.
95933         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95934
95935 1998-08-15  Jim Meyering  <meyering@ascend.com>
95936
95937         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95938         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95939         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95940         instead of jm_TYPE_SSIZE_T.
95941
95942 1998-08-12  Jim Meyering  <meyering@ascend.com>
95943
95944         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95945
95946 1998-08-02  Jim Meyering  <meyering@ascend.com>
95947
95948         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95949         in acconfig.h manually.
95950
95951 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95952
95953         * m4/st_mtim.m4: New file.
95954
95955 1998-07-28  Jim Meyering  <meyering@ascend.com>
95956
95957         * m4/utimes.m4: Undef stat.
95958
95959 1998-07-25  Jim Meyering  <meyering@ascend.com>
95960
95961         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95962         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95963
95964 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95965
95966         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95967         uid and gid actually remain unchanged.
95968
95969 1998-07-07  Jim Meyering  <meyering@ascend.com>
95970
95971         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95972
95973 1998-07-04  Jim Meyering  <meyering@ascend.com>
95974
95975         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95976         to prove that this macro can be used in packages without regex.c.
95977
95978 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95979
95980         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95981         is to be used.
95982
95983 1998-07-03  Jim Meyering  <meyering@ascend.com>
95984
95985         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95986
95987         * m4/gettext.m4: New file -- from gettext-0.10.35.
95988         * m4/lcmessage.m4: Likewise.
95989         * m4/progtest.m4: Likewise.
95990
95991         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95992         * m4/jm-macros.m4: Require the new macro.
95993
95994 1998-06-29  Jim Meyering  <meyering@ascend.com>
95995
95996         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95997         for the definition of NGROUPS (used in a system header included
95998         by sys/mount.h).
95999
96000 1998-06-28  Jim Meyering  <meyering@ascend.com>
96001
96002         * m4/ls-mntd-fs.m4: New file.
96003         * m4/fstypename.m4: New file.
96004
96005         * m4/jm-macros.m4: Require the new macro.
96006         * m4/jm-glibc-io.m4: New file.
96007
96008 1998-05-19  Jim Meyering  <meyering@ascend.com>
96009
96010         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96011         * m4/lchown.m4: New file.
96012
96013         * m4/Makefile.am.in: New file.
96014         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96015
96016 1998-05-14  Jim Meyering  <meyering@ascend.com>
96017
96018         * m4/Makefile.am (EXTRA_DIST): Add them.
96019         * m4/jm-macros.m4: New file.
96020         * m4/utimbuf.m4: New file.
96021
96022 1998-05-12  Jim Meyering  <meyering@ascend.com>
96023
96024         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96025
96026 1998-05-11  Jim Meyering  <meyering@ascend.com>
96027
96028         * m4/isc-posix.m4: New file.
96029
96030 1998-05-10  Jim Meyering  <meyering@ascend.com>
96031
96032         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96033
96034 1998-05-09  Jim Meyering  <meyering@ascend.com>
96035
96036         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96037         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96038         with automake.
96039
96040         * m4/ssize_t.m4: New file.
96041         * m4/mktime.m4: Remove file -- the new automake has this now.
96042
96043 1998-04-26  Jim Meyering  <meyering@ascend.com>
96044
96045         * m4/assert.m4: New file.
96046         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96047
96048 1998-04-05  Jim Meyering  <meyering@ascend.com>
96049
96050         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96051         (jm_PREREQ): Use it here.
96052
96053 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96054
96055         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96056         in acconfig.h.
96057
96058 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96059
96060         * m4/prereq.m4: New file.
96061         * m4/error.m4: New file.
96062         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96063
96064 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96065
96066         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96067         cache-check for the same variable -- that defeated the purpose of
96068         the test; the test program was never run.  This was a problem only
96069         on systems with losing getline functions -- HP-UX 10.20 is one.
96070         Reported by Bjorn Helgaas.
96071
96072 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96073
96074         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96075
96076 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96077
96078         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96079
96080         * m4/const.m4: New file.  Use an initializer in this declaration
96081         typedef int charset[2]; const charset x;
96082         Reported by Bob Glickstein.
96083
96084 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96085
96086         * m4/chown.m4: Fix reversed types on -1 args to chown.
96087         From Kaveh Ghazi.
96088
96089 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96090
96091         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96092         Add lseek and memchr.
96093
96094         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96095         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96096         have a 20-character limit on names.
96097
96098 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96099
96100         * m4/inttypes_h.m4: New file.
96101         * m4/uintmax_t.m4: New file.
96102         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96103
96104
96105         -----
96106
96107         Local Variables:
96108         coding: utf-8
96109         End:
96110
96111         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96112
96113         Copying and distribution of this file, with or without
96114         modification, are permitted provided the copyright notice
96115         and this notice are preserved.